From 53262bf74a95987066dee54483ed1011c86613e9 Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Wed, 18 Feb 2026 18:42:34 +0530 Subject: [PATCH 01/24] oci go sdk update to v65.105.0 --- go.mod | 3 +- go.sum | 13 +- .../v65/common/auth/certificate_retriever.go | 2 +- .../v65/common/auth/configuration.go | 2 +- .../v65/common/auth/dispatcher_modifier.go | 2 +- .../v65/common/auth/federation_client.go | 197 +- ...federation_client_oke_workload_identity.go | 12 +- ...nce_principal_delegation_token_provider.go | 2 +- .../auth/instance_principal_key_provider.go | 17 +- .../oracle/oci-go-sdk/v65/common/auth/jwt.go | 2 +- .../v65/common/auth/oauth2_provider.go | 82 + ...rce_principal_delegation_token_provider.go | 2 +- .../auth/resource_principal_key_provider.go | 2 +- .../resource_principal_token_path_provider.go | 2 +- .../v65/common/auth/resource_principals_v1.go | 2 +- .../v65/common/auth/resource_principals_v3.go | 2 +- .../oci-go-sdk/v65/common/auth/utils.go | 8 +- .../oci-go-sdk/v65/common/circuit_breaker.go | 2 +- .../oracle/oci-go-sdk/v65/common/client.go | 104 +- .../oracle/oci-go-sdk/v65/common/common.go | 52 +- .../oci-go-sdk/v65/common/configuration.go | 4 +- .../oracle/oci-go-sdk/v65/common/errors.go | 4 +- .../v65/common/eventual_consistency.go | 2 +- .../oracle/oci-go-sdk/v65/common/helpers.go | 41 +- .../oracle/oci-go-sdk/v65/common/http.go | 86 +- .../oci-go-sdk/v65/common/http_signer.go | 2 +- .../oracle/oci-go-sdk/v65/common/log.go | 2 +- .../v65/common/oci_http_transport_wrapper.go | 2 +- .../oracle/oci-go-sdk/v65/common/regions.go | 664 +++--- .../oracle/oci-go-sdk/v65/common/regions.json | 60 + .../oracle/oci-go-sdk/v65/common/retry.go | 2 +- .../oracle/oci-go-sdk/v65/common/sseReader.go | 2 +- .../v65/common/tls_config_provider.go | 2 +- .../v65/common/transport_template_provider.go | 2 +- .../v65/common/utils/opc_request_id.go | 2 +- .../oracle/oci-go-sdk/v65/common/version.go | 2 +- .../v65/containerengine/add_on_options.go | 6 +- .../oci-go-sdk/v65/containerengine/addon.go | 6 +- .../containerengine/addon_configuration.go | 6 +- .../v65/containerengine/addon_error.go | 8 +- .../containerengine/addon_lifecycle_state.go | 4 +- .../containerengine/addon_option_summary.go | 10 +- .../v65/containerengine/addon_summary.go | 6 +- .../addon_version_configuration.go | 6 +- .../v65/containerengine/addon_versions.go | 6 +- .../admission_controller_options.go | 6 +- .../oci-go-sdk/v65/containerengine/cluster.go | 18 +- .../containerengine/cluster_create_options.go | 57 +- .../cluster_endpoint_config.go | 6 +- .../v65/containerengine/cluster_endpoints.go | 9 +- .../cluster_lifecycle_state.go | 4 +- .../v65/containerengine/cluster_metadata.go | 6 +- .../cluster_migrate_to_native_vcn_details.go | 6 +- ..._migrate_to_native_vcn_request_response.go | 6 +- .../cluster_migrate_to_native_vcn_status.go | 6 +- .../v65/containerengine/cluster_node.go | 44 + .../v65/containerengine/cluster_options.go | 6 +- .../cluster_pod_network_option_details.go | 8 +- .../v65/containerengine/cluster_summary.go | 14 +- .../v65/containerengine/cluster_type.go | 4 +- ...te_credential_rotation_request_response.go | 6 +- .../containerengine/containerengine_client.go | 218 +- .../containerengine/create_cluster_details.go | 10 +- .../create_cluster_endpoint_config_details.go | 6 +- ...eate_cluster_kubeconfig_content_details.go | 6 +- .../create_cluster_request_response.go | 6 +- .../create_image_policy_config_details.go | 6 +- .../create_kubeconfig_request_response.go | 6 +- .../create_node_pool_details.go | 10 +- .../create_node_pool_node_config_details.go | 10 +- .../create_node_pool_request_response.go | 6 +- .../create_node_shape_config_details.go | 8 +- .../create_virtual_node_pool_details.go | 16 +- ...eate_virtual_node_pool_request_response.go | 6 +- .../create_workload_mapping_details.go | 10 +- ...reate_workload_mapping_request_response.go | 6 +- .../credential_rotation_status.go | 6 +- .../v65/containerengine/cycle_mode.go | 58 + .../delete_cluster_request_response.go | 6 +- .../delete_node_pool_request_response.go | 6 +- .../delete_node_request_response.go | 6 +- ...lete_virtual_node_pool_request_response.go | 6 +- .../delete_work_request_request_response.go | 6 +- ...elete_workload_mapping_request_response.go | 6 +- .../disable_addon_request_response.go | 6 +- ...rlay_cluster_pod_network_option_details.go | 6 +- ...ay_node_pool_pod_network_option_details.go | 6 +- .../get_addon_request_response.go | 6 +- ...e_to_native_vcn_status_request_response.go | 6 +- .../get_cluster_options_request_response.go | 9 +- .../get_cluster_request_response.go | 9 +- ...ential_rotation_status_request_response.go | 6 +- .../get_node_pool_options_request_response.go | 112 +- .../get_node_pool_request_response.go | 6 +- .../get_virtual_node_pool_request_response.go | 6 +- .../get_virtual_node_request_response.go | 6 +- .../get_work_request_request_response.go | 6 +- .../get_workload_mapping_request_response.go | 6 +- .../oci-go-sdk/v65/containerengine/image.go | 47 + .../containerengine/image_policy_config.go | 6 +- .../initial_virtual_node_label.go | 6 +- .../containerengine/install_addon_details.go | 6 +- .../install_addon_request_response.go | 6 +- .../v65/containerengine/key_details.go | 6 +- .../v65/containerengine/key_value.go | 6 +- .../kubernetes_network_config.go | 6 +- .../kubernetes_versions_filters.go | 6 +- .../list_addon_options_request_response.go | 16 +- .../list_addons_request_response.go | 12 +- .../list_clusters_request_response.go | 14 +- .../list_node_pools_request_response.go | 14 +- .../list_pod_shapes_request_response.go | 12 +- ...ist_virtual_node_pools_request_response.go | 12 +- .../list_virtual_nodes_request_response.go | 12 +- ...st_work_request_errors_request_response.go | 6 +- ...list_work_request_logs_request_response.go | 6 +- .../list_work_requests_request_response.go | 12 +- ...list_workload_mappings_request_response.go | 12 +- .../oci-go-sdk/v65/containerengine/node.go | 12 +- .../v65/containerengine/node_error.go | 8 +- .../node_eviction_node_pool_settings.go | 9 +- .../containerengine/node_eviction_settings.go | 45 + .../v65/containerengine/node_pool.go | 12 +- .../node_pool_cycling_details.go | 11 +- .../node_pool_lifecycle_state.go | 4 +- .../node_pool_node_config_details.go | 10 +- .../v65/containerengine/node_pool_options.go | 6 +- .../node_pool_placement_config_details.go | 6 +- .../node_pool_pod_network_option_details.go | 8 +- .../v65/containerengine/node_pool_summary.go | 12 +- .../v65/containerengine/node_shape_config.go | 8 +- .../containerengine/node_source_details.go | 8 +- .../v65/containerengine/node_source_option.go | 8 +- .../v65/containerengine/node_source_type.go | 4 +- .../node_source_via_image_details.go | 8 +- .../node_source_via_image_option.go | 6 +- ...tive_cluster_pod_network_option_details.go | 6 +- ...ve_node_pool_pod_network_option_details.go | 12 +- .../open_id_connect_discovery.go | 6 +- ..._id_connect_token_authentication_config.go | 9 +- .../persistent_volume_config_details.go | 10 +- .../placement_configuration.go | 6 +- .../v65/containerengine/pod_configuration.go | 6 +- .../v65/containerengine/pod_shape.go | 6 +- .../v65/containerengine/pod_shape_summary.go | 6 +- .../preemptible_node_config_details.go | 6 +- .../v65/containerengine/preemption_action.go | 8 +- .../reboot_cluster_node_details.go | 39 + .../reboot_cluster_node_request_response.go | 100 + ...eplace_boot_volume_cluster_node_details.go | 39 + ...ot_volume_cluster_node_request_response.go | 100 + .../service_lb_config_details.go | 10 +- .../containerengine/shape_memory_options.go | 6 +- .../shape_network_bandwidth_options.go | 6 +- .../v65/containerengine/shape_ocpu_options.go | 6 +- .../v65/containerengine/sort_order.go | 4 +- .../start_credential_rotation_details.go | 6 +- ...rt_credential_rotation_request_response.go | 6 +- .../oci-go-sdk/v65/containerengine/taint.go | 6 +- .../terminate_preemption_action.go | 6 +- .../containerengine/update_addon_details.go | 6 +- .../update_addon_request_response.go | 6 +- .../containerengine/update_cluster_details.go | 10 +- .../update_cluster_endpoint_config_details.go | 6 +- ...luster_endpoint_config_request_response.go | 6 +- .../update_cluster_options_details.go | 6 +- .../update_cluster_request_response.go | 6 +- .../update_image_policy_config_details.go | 6 +- .../update_node_pool_details.go | 10 +- .../update_node_pool_node_config_details.go | 10 +- .../update_node_pool_request_response.go | 6 +- .../update_node_shape_config_details.go | 8 +- .../update_virtual_node_pool_details.go | 10 +- ...date_virtual_node_pool_request_response.go | 6 +- .../update_workload_mapping_details.go | 10 +- ...pdate_workload_mapping_request_response.go | 6 +- .../v65/containerengine/virtual_node.go | 10 +- .../virtual_node_lifecycle_state.go | 4 +- .../v65/containerengine/virtual_node_pool.go | 16 +- .../virtual_node_pool_lifecycle_state.go | 4 +- .../virtual_node_pool_summary.go | 16 +- .../containerengine/virtual_node_summary.go | 10 +- .../v65/containerengine/virtual_node_tags.go | 10 +- .../v65/containerengine/work_request.go | 6 +- .../v65/containerengine/work_request_error.go | 8 +- .../containerengine/work_request_log_entry.go | 6 +- .../work_request_operation_type.go | 120 +- .../containerengine/work_request_resource.go | 6 +- .../containerengine/work_request_status.go | 4 +- .../containerengine/work_request_summary.go | 44 +- .../v65/containerengine/workload_mapping.go | 10 +- .../workload_mapping_lifecycle_state.go | 4 +- .../workload_mapping_summary.go | 10 +- ...elded_integrity_policy_request_response.go | 8 +- ...rg_route_distribution_statement_details.go | 12 +- ...g_route_distribution_statements_details.go | 12 +- ...istribution_statements_request_response.go | 8 +- .../v65/core/add_drg_route_rule_details.go | 14 +- .../v65/core/add_drg_route_rules_details.go | 12 +- .../add_drg_route_rules_request_response.go | 8 +- ...image_shape_compatibility_entry_details.go | 12 +- ...pe_compatibility_entry_request_response.go | 8 +- .../v65/core/add_ipv4_subnet_cidr_details.go | 48 + .../add_ipv4_subnet_cidr_request_response.go | 108 + .../add_ipv6_subnet_cidr_request_response.go | 12 +- .../add_ipv6_vcn_cidr_request_response.go | 12 +- ...k_security_group_security_rules_details.go | 12 +- ...y_group_security_rules_request_response.go | 8 +- .../add_public_ip_pool_capacity_details.go | 14 +- ...ublic_ip_pool_capacity_request_response.go | 8 +- .../v65/core/add_security_rule_details.go | 24 +- .../v65/core/add_subnet_ipv6_cidr_details.go | 14 +- .../v65/core/add_vcn_cidr_details.go | 12 +- .../v65/core/add_vcn_cidr_request_response.go | 12 +- .../v65/core/add_vcn_ipv6_cidr_details.go | 14 +- ...d_network_security_group_security_rules.go | 12 +- .../oci-go-sdk/v65/core/address_type.go | 10 +- .../advertise_byoip_range_request_response.go | 8 +- .../v65/core/allowed_ike_ip_sec_parameters.go | 12 +- .../v65/core/allowed_phase_one_parameters.go | 12 +- .../v65/core/allowed_phase_two_parameters.go | 12 +- ..._bm_gpu_launch_instance_platform_config.go | 16 +- .../core/amd_milan_bm_gpu_platform_config.go | 16 +- ...ilan_bm_launch_instance_platform_config.go | 16 +- .../v65/core/amd_milan_bm_platform_config.go | 16 +- ..._bm_gpu_launch_instance_platform_config.go | 16 +- .../core/amd_rome_bm_gpu_platform_config.go | 16 +- ...rome_bm_launch_instance_platform_config.go | 16 +- .../v65/core/amd_rome_bm_platform_config.go | 16 +- .../amd_vm_launch_instance_platform_config.go | 12 +- .../v65/core/amd_vm_platform_config.go | 12 +- .../amd_vm_update_instance_platform_config.go | 12 +- .../v65/core/app_catalog_listing.go | 12 +- .../app_catalog_listing_resource_version.go | 14 +- ...log_listing_resource_version_agreements.go | 12 +- ...atalog_listing_resource_version_summary.go | 12 +- .../v65/core/app_catalog_listing_summary.go | 12 +- .../v65/core/app_catalog_subscription.go | 12 +- .../core/app_catalog_subscription_summary.go | 12 +- .../v65/core/attach_boot_volume_details.go | 12 +- .../attach_boot_volume_request_response.go | 6 +- .../attach_compute_host_group_host_details.go | 45 + ...ompute_host_group_host_request_response.go | 117 ++ .../core/attach_emulated_volume_details.go | 12 +- .../v65/core/attach_i_scsi_volume_details.go | 12 +- .../attach_instance_pool_instance_details.go | 14 +- ...instance_pool_instance_request_response.go | 12 +- .../v65/core/attach_load_balancer_details.go | 14 +- .../attach_load_balancer_request_response.go | 8 +- .../attach_paravirtualized_volume_details.go | 12 +- ...ttach_service_determined_volume_details.go | 12 +- .../attach_service_id_request_response.go | 8 +- .../v65/core/attach_vnic_details.go | 14 +- .../v65/core/attach_vnic_request_response.go | 6 +- .../v65/core/attach_volume_details.go | 14 +- .../core/attach_volume_request_response.go | 6 +- .../oci-go-sdk/v65/core/autotune_policy.go | 14 +- .../oci-go-sdk/v65/core/bgp_session_info.go | 12 +- .../v65/core/block_volume_replica.go | 24 +- .../v65/core/block_volume_replica_details.go | 16 +- .../v65/core/block_volume_replica_info.go | 16 +- ...lean_image_capability_schema_descriptor.go | 12 +- .../oracle/oci-go-sdk/v65/core/boot_volume.go | 22 +- .../v65/core/boot_volume_attachment.go | 12 +- .../oci-go-sdk/v65/core/boot_volume_backup.go | 24 +- .../v65/core/boot_volume_kms_key.go | 12 +- .../v65/core/boot_volume_replica.go | 24 +- .../v65/core/boot_volume_replica_details.go | 16 +- .../v65/core/boot_volume_replica_info.go | 16 +- .../v65/core/boot_volume_source_details.go | 14 +- ...e_from_boot_volume_backup_delta_details.go | 12 +- ..._source_from_boot_volume_backup_details.go | 12 +- ..._volume_source_from_boot_volume_details.go | 12 +- ...source_from_boot_volume_replica_details.go | 12 +- ...virtual_circuit_public_prefixes_details.go | 12 +- ...ircuit_public_prefixes_request_response.go | 8 +- ...virtual_circuit_public_prefixes_details.go | 12 +- ...ircuit_public_prefixes_request_response.go | 8 +- .../oracle/oci-go-sdk/v65/core/byoasn.go | 143 ++ .../oci-go-sdk/v65/core/byoasn_byoip_range.go | 56 + .../oci-go-sdk/v65/core/byoasn_collection.go | 45 + .../oci-go-sdk/v65/core/byoasn_summary.go | 79 + .../core/byoip_allocated_range_collection.go | 12 +- .../v65/core/byoip_allocated_range_summary.go | 14 +- .../oracle/oci-go-sdk/v65/core/byoip_range.go | 26 +- .../v65/core/byoip_range_collection.go | 12 +- .../v65/core/byoip_range_origin_asn.go | 51 + .../v65/core/byoip_range_summary.go | 20 +- ...byoip_range_vcn_ipv6_allocation_summary.go | 18 +- .../v65/core/byoipv6_cidr_details.go | 14 +- .../oci-go-sdk/v65/core/capacity_bin.go | 60 + .../v65/core/capacity_bin_preview.go | 54 + .../oci-go-sdk/v65/core/capacity_config.go | 53 + .../capacity_report_instance_shape_config.go | 12 +- .../capacity_report_shape_availability.go | 12 +- .../capacity_reservation_instance_summary.go | 12 +- .../oci-go-sdk/v65/core/capacity_source.go | 14 +- .../core/capture_console_history_details.go | 16 +- ...apture_console_history_request_response.go | 6 +- .../oci-go-sdk/v65/core/capture_filter.go | 22 +- ..._boot_volume_backup_compartment_details.go | 14 +- ...ume_backup_compartment_request_response.go | 6 +- .../change_boot_volume_compartment_details.go | 14 +- ...oot_volume_compartment_request_response.go | 6 +- .../core/change_byoasn_compartment_details.go | 45 + ...nge_byoasn_compartment_request_response.go | 103 + .../change_byoip_range_compartment_details.go | 14 +- ...yoip_range_compartment_request_response.go | 8 +- ...ange_capture_filter_compartment_details.go | 14 +- ...ure_filter_compartment_request_response.go | 12 +- ...nge_cluster_network_compartment_details.go | 14 +- ...er_network_compartment_request_response.go | 8 +- ...apacity_reservation_compartment_details.go | 14 +- ...eservation_compartment_request_response.go | 10 +- ...e_capacity_topology_compartment_details.go | 14 +- ...y_topology_compartment_request_response.go | 12 +- ...nge_compute_cluster_compartment_details.go | 14 +- ...te_cluster_compartment_request_response.go | 10 +- ..._gpu_memory_cluster_compartment_details.go | 46 + ...ry_cluster_compartment_request_response.go | 103 + ...e_gpu_memory_fabric_compartment_details.go | 46 + ...ory_fabric_compartment_request_response.go | 103 + ...change_compute_host_compartment_details.go | 46 + ...mpute_host_compartment_request_response.go | 108 + ..._compute_host_group_compartment_details.go | 46 + ...host_group_compartment_request_response.go | 108 + ...e_capability_schema_compartment_details.go | 14 +- ...ity_schema_compartment_request_response.go | 6 +- .../core/change_cpe_compartment_details.go | 14 +- ...change_cpe_compartment_request_response.go | 8 +- ...hange_cross_connect_compartment_details.go | 14 +- ...ss_connect_compartment_request_response.go | 8 +- ...cross_connect_group_compartment_details.go | 14 +- ...nect_group_compartment_request_response.go | 8 +- ...e_dedicated_vm_host_compartment_details.go | 14 +- ...ed_vm_host_compartment_request_response.go | 10 +- ...change_dhcp_options_compartment_details.go | 14 +- ...cp_options_compartment_request_response.go | 8 +- .../core/change_drg_compartment_details.go | 14 +- ...change_drg_compartment_request_response.go | 12 +- ...connection_compartment_request_response.go | 8 +- .../core/change_image_compartment_details.go | 14 +- ...ange_image_compartment_request_response.go | 8 +- .../change_instance_compartment_details.go | 14 +- ...e_instance_compartment_request_response.go | 12 +- ...tance_configuration_compartment_details.go | 14 +- ...figuration_compartment_request_response.go | 6 +- ...hange_instance_pool_compartment_details.go | 14 +- ...tance_pool_compartment_request_response.go | 8 +- ...ge_internet_gateway_compartment_details.go | 14 +- ...et_gateway_compartment_request_response.go | 8 +- ...e_ip_sec_connection_compartment_details.go | 14 +- ...cal_peering_gateway_compartment_details.go | 14 +- ...ng_gateway_compartment_request_response.go | 8 +- .../change_nat_gateway_compartment_details.go | 14 +- ...at_gateway_compartment_request_response.go | 8 +- ...work_security_group_compartment_details.go | 14 +- ...rity_group_compartment_request_response.go | 8 +- .../change_public_ip_compartment_details.go | 14 +- ..._public_ip_compartment_request_response.go | 8 +- ...ange_public_ip_pool_compartment_details.go | 14 +- ...ic_ip_pool_compartment_request_response.go | 8 +- ..._peering_connection_compartment_details.go | 14 +- ...connection_compartment_request_response.go | 8 +- .../change_route_table_compartment_details.go | 14 +- ...oute_table_compartment_request_response.go | 8 +- ...hange_security_list_compartment_details.go | 14 +- ...urity_list_compartment_request_response.go | 8 +- ...nge_service_gateway_compartment_details.go | 14 +- ...ce_gateway_compartment_request_response.go | 8 +- .../core/change_subnet_compartment_details.go | 14 +- ...nge_subnet_compartment_request_response.go | 12 +- .../core/change_vcn_compartment_details.go | 14 +- ...change_vcn_compartment_request_response.go | 12 +- ...nge_virtual_circuit_compartment_details.go | 14 +- ...al_circuit_compartment_request_response.go | 8 +- .../core/change_vlan_compartment_details.go | 14 +- ...hange_vlan_compartment_request_response.go | 12 +- ...hange_volume_backup_compartment_details.go | 14 +- ...ume_backup_compartment_request_response.go | 6 +- .../core/change_volume_compartment_details.go | 14 +- ...nge_volume_compartment_request_response.go | 6 +- ...volume_group_backup_compartment_details.go | 14 +- ...oup_backup_compartment_request_response.go | 6 +- ...change_volume_group_compartment_details.go | 14 +- ...lume_group_compartment_request_response.go | 6 +- .../core/change_vtap_compartment_details.go | 14 +- ...hange_vtap_compartment_request_response.go | 12 +- .../v65/core/cluster_config_details.go | 14 +- .../v65/core/cluster_configuration_details.go | 14 +- .../oci-go-sdk/v65/core/cluster_network.go | 24 +- ...network_placement_configuration_details.go | 14 +- .../v65/core/cluster_network_summary.go | 22 +- .../v65/core/compartment_internal.go | 14 +- .../v65/core/compute_bare_metal_host.go | 24 +- .../compute_bare_metal_host_collection.go | 12 +- ...metal_host_placement_constraint_details.go | 61 + .../core/compute_bare_metal_host_summary.go | 24 +- .../v65/core/compute_capacity_report.go | 14 +- .../v65/core/compute_capacity_reservation.go | 22 +- ...city_reservation_instance_shape_summary.go | 12 +- .../compute_capacity_reservation_summary.go | 18 +- .../v65/core/compute_capacity_topology.go | 20 +- .../compute_capacity_topology_collection.go | 12 +- .../core/compute_capacity_topology_summary.go | 20 +- .../oci-go-sdk/v65/core/compute_cluster.go | 22 +- .../v65/core/compute_cluster_collection.go | 14 +- .../v65/core/compute_cluster_summary.go | 22 +- .../compute_global_image_capability_schema.go | 18 +- ..._global_image_capability_schema_summary.go | 18 +- ..._global_image_capability_schema_version.go | 12 +- ...image_capability_schema_version_summary.go | 12 +- .../v65/core/compute_gpu_memory_cluster.go | 146 ++ .../compute_gpu_memory_cluster_collection.go | 45 + ..._gpu_memory_cluster_instance_collection.go | 45 + ...ute_gpu_memory_cluster_instance_summary.go | 159 ++ .../compute_gpu_memory_cluster_summary.go | 81 + .../v65/core/compute_gpu_memory_fabric.go | 270 +++ .../compute_gpu_memory_fabric_collection.go | 45 + .../core/compute_gpu_memory_fabric_summary.go | 168 ++ .../oci-go-sdk/v65/core/compute_host.go | 240 +++ .../v65/core/compute_host_collection.go | 45 + ...ompute_host_configuration_check_details.go | 153 ++ .../core/compute_host_configuration_data.go | 47 + .../oci-go-sdk/v65/core/compute_host_group.go | 133 ++ .../v65/core/compute_host_group_collection.go | 45 + .../v65/core/compute_host_group_summary.go | 87 + .../v65/core/compute_host_summary.go | 127 ++ .../oci-go-sdk/v65/core/compute_hpc_island.go | 16 +- .../v65/core/compute_hpc_island_collection.go | 12 +- .../v65/core/compute_hpc_island_summary.go | 16 +- .../core/compute_image_capability_schema.go | 91 +- ...compute_image_capability_schema_summary.go | 18 +- .../v65/core/compute_instance_details.go | 12 +- .../v65/core/compute_instance_options.go | 12 +- .../v65/core/compute_network_block.go | 18 +- .../core/compute_network_block_collection.go | 12 +- .../v65/core/compute_network_block_summary.go | 18 +- .../v65/core/configuration_state.go | 78 + .../connect_local_peering_gateways_details.go | 14 +- ...local_peering_gateways_request_response.go | 8 +- ...nect_remote_peering_connections_details.go | 14 +- ...te_peering_connections_request_response.go | 8 +- .../oci-go-sdk/v65/core/console_history.go | 16 +- .../core/copy_boot_volume_backup_details.go | 16 +- ...opy_boot_volume_backup_request_response.go | 10 +- .../v65/core/copy_volume_backup_details.go | 16 +- .../copy_volume_backup_request_response.go | 10 +- .../core/copy_volume_group_backup_details.go | 16 +- ...py_volume_group_backup_request_response.go | 6 +- .../v65/core/core_blockstorage_client.go | 194 +- .../v65/core/core_compute_client.go | 1861 +++++++++++++++-- .../v65/core/core_computemanagement_client.go | 160 +- .../v65/core/core_virtualnetwork_client.go | 1702 +++++++++++---- .../oracle/oci-go-sdk/v65/core/cpe.go | 26 +- .../v65/core/cpe_device_config_answer.go | 12 +- .../v65/core/cpe_device_config_question.go | 12 +- .../oci-go-sdk/v65/core/cpe_device_info.go | 12 +- .../v65/core/cpe_device_shape_detail.go | 14 +- .../v65/core/cpe_device_shape_summary.go | 14 +- ...create_app_catalog_subscription_details.go | 12 +- ...p_catalog_subscription_request_response.go | 6 +- .../core/create_boot_volume_backup_details.go | 20 +- ...ate_boot_volume_backup_request_response.go | 6 +- .../v65/core/create_boot_volume_details.go | 22 +- .../create_boot_volume_request_response.go | 6 +- .../v65/core/create_byoasn_details.go | 62 + .../core/create_byoasn_request_response.go | 101 + .../v65/core/create_byoip_range_details.go | 18 +- .../create_byoip_range_request_response.go | 6 +- ...acity_report_shape_availability_details.go | 12 +- .../core/create_capacity_source_details.go | 14 +- .../v65/core/create_capture_filter_details.go | 18 +- .../create_capture_filter_request_response.go | 6 +- .../core/create_cluster_network_details.go | 20 +- ...e_cluster_network_instance_pool_details.go | 18 +- ...create_cluster_network_request_response.go | 10 +- .../create_compute_capacity_report_details.go | 14 +- ...ompute_capacity_report_request_response.go | 6 +- ...te_compute_capacity_reservation_details.go | 20 +- ...e_capacity_reservation_request_response.go | 10 +- ...reate_compute_capacity_topology_details.go | 18 +- ...pute_capacity_topology_request_response.go | 10 +- .../core/create_compute_cluster_details.go | 20 +- ...create_compute_cluster_request_response.go | 8 +- ...eate_compute_gpu_memory_cluster_details.go | 75 + ...ute_gpu_memory_cluster_request_response.go | 106 + .../core/create_compute_host_group_details.go | 69 + ...ate_compute_host_group_request_response.go | 109 + ...compute_image_capability_schema_details.go | 16 +- ...mage_capability_schema_request_response.go | 6 +- .../oci-go-sdk/v65/core/create_cpe_details.go | 20 +- .../v65/core/create_cpe_request_response.go | 6 +- .../v65/core/create_cross_connect_details.go | 24 +- .../create_cross_connect_group_details.go | 18 +- ...te_cross_connect_group_request_response.go | 6 +- .../create_cross_connect_request_response.go | 6 +- ...reate_dedicated_capacity_source_details.go | 14 +- .../core/create_dedicated_vm_host_details.go | 81 +- ...eate_dedicated_vm_host_request_response.go | 10 +- .../v65/core/create_dhcp_details.go | 20 +- .../create_dhcp_options_request_response.go | 6 +- .../v65/core/create_drg_attachment_details.go | 30 +- .../create_drg_attachment_request_response.go | 6 +- .../oci-go-sdk/v65/core/create_drg_details.go | 18 +- .../v65/core/create_drg_request_response.go | 6 +- .../create_drg_route_distribution_details.go | 22 +- ...drg_route_distribution_request_response.go | 6 +- .../core/create_drg_route_table_details.go | 20 +- ...create_drg_route_table_request_response.go | 6 +- ...ate_i_p_sec_connection_request_response.go | 6 +- .../v65/core/create_image_details.go | 16 +- .../v65/core/create_image_request_response.go | 10 +- .../create_instance_configuration_base.go | 20 +- .../create_instance_configuration_details.go | 18 +- ...nce_configuration_from_instance_details.go | 20 +- ...instance_configuration_request_response.go | 6 +- ...ate_instance_console_connection_details.go | 16 +- ...nce_console_connection_request_response.go | 6 +- .../v65/core/create_instance_pool_details.go | 22 +- ...ce_pool_placement_configuration_details.go | 14 +- .../create_instance_pool_request_response.go | 6 +- .../core/create_internet_gateway_details.go | 22 +- ...reate_internet_gateway_request_response.go | 6 +- .../core/create_ip_sec_connection_details.go | 50 +- ...create_ip_sec_connection_tunnel_details.go | 16 +- ...reate_ip_sec_tunnel_bgp_session_details.go | 12 +- ...ip_sec_tunnel_encryption_domain_details.go | 14 +- .../v65/core/create_ipv6_details.go | 86 +- .../v65/core/create_ipv6_request_response.go | 6 +- .../create_local_peering_gateway_details.go | 30 +- ..._local_peering_gateway_request_response.go | 6 +- .../oci-go-sdk/v65/core/create_macsec_key.go | 18 +- .../v65/core/create_macsec_properties.go | 12 +- .../v65/core/create_nat_gateway_details.go | 24 +- .../create_nat_gateway_request_response.go | 6 +- .../create_network_security_group_details.go | 20 +- ...network_security_group_request_response.go | 6 +- .../v65/core/create_private_ip_details.go | 92 +- .../create_private_ip_request_response.go | 6 +- .../v65/core/create_public_ip_details.go | 26 +- .../v65/core/create_public_ip_pool_details.go | 18 +- .../create_public_ip_pool_request_response.go | 6 +- .../core/create_public_ip_request_response.go | 6 +- ...reate_remote_peering_connection_details.go | 20 +- ...ote_peering_connection_request_response.go | 6 +- .../v65/core/create_route_table_details.go | 20 +- .../create_route_table_request_response.go | 6 +- .../v65/core/create_security_list_details.go | 20 +- .../create_security_list_request_response.go | 6 +- .../core/create_service_gateway_details.go | 24 +- ...create_service_gateway_request_response.go | 6 +- .../v65/core/create_subnet_details.go | 46 +- .../core/create_subnet_request_response.go | 6 +- .../oci-go-sdk/v65/core/create_vcn_details.go | 29 +- .../v65/core/create_vcn_request_response.go | 6 +- .../core/create_virtual_circuit_details.go | 24 +- ...e_virtual_circuit_public_prefix_details.go | 12 +- ...create_virtual_circuit_request_response.go | 6 +- .../v65/core/create_vlan_details.go | 22 +- .../v65/core/create_vlan_request_response.go | 6 +- .../v65/core/create_vnic_details.go | 60 +- .../v65/core/create_volume_backup_details.go | 20 +- ...volume_backup_policy_assignment_details.go | 16 +- ...ckup_policy_assignment_request_response.go | 6 +- .../create_volume_backup_policy_details.go | 26 +- ...e_volume_backup_policy_request_response.go | 6 +- .../create_volume_backup_request_response.go | 6 +- .../v65/core/create_volume_details.go | 29 +- .../create_volume_group_backup_details.go | 16 +- ...te_volume_group_backup_request_response.go | 6 +- .../v65/core/create_volume_group_details.go | 20 +- .../create_volume_group_request_response.go | 6 +- .../core/create_volume_request_response.go | 6 +- .../v65/core/create_vtap_details.go | 28 +- .../v65/core/create_vtap_request_response.go | 6 +- .../oci-go-sdk/v65/core/cross_connect.go | 24 +- .../v65/core/cross_connect_group.go | 26 +- .../v65/core/cross_connect_location.go | 12 +- .../v65/core/cross_connect_mapping.go | 18 +- .../v65/core/cross_connect_mapping_details.go | 14 +- ...ross_connect_mapping_details_collection.go | 12 +- .../core/cross_connect_port_speed_shape.go | 12 +- .../v65/core/cross_connect_status.go | 14 +- .../v65/core/dedicated_capacity_source.go | 14 +- .../oci-go-sdk/v65/core/dedicated_vm_host.go | 116 +- ...edicated_vm_host_instance_shape_summary.go | 14 +- .../dedicated_vm_host_instance_summary.go | 15 +- .../core/dedicated_vm_host_shape_summary.go | 17 +- .../v65/core/dedicated_vm_host_summary.go | 17 +- .../v65/core/default_drg_route_tables.go | 20 +- .../v65/core/default_phase_one_parameters.go | 12 +- .../v65/core/default_phase_two_parameters.go | 12 +- ...p_catalog_subscription_request_response.go | 8 +- ...ete_boot_volume_backup_request_response.go | 6 +- ...te_boot_volume_kms_key_request_response.go | 6 +- .../delete_boot_volume_request_response.go | 6 +- .../core/delete_byoasn_request_response.go | 93 + .../delete_byoip_range_request_response.go | 12 +- .../delete_capture_filter_request_response.go | 8 +- ...e_capacity_reservation_request_response.go | 10 +- ...pute_capacity_topology_request_response.go | 12 +- ...delete_compute_cluster_request_response.go | 10 +- ...ute_gpu_memory_cluster_request_response.go | 98 + ...ete_compute_host_group_request_response.go | 93 + ...mage_capability_schema_request_response.go | 6 +- ...delete_console_history_request_response.go | 6 +- .../v65/core/delete_cpe_request_response.go | 8 +- ...te_cross_connect_group_request_response.go | 8 +- .../delete_cross_connect_request_response.go | 8 +- ...lete_dedicated_vm_host_request_response.go | 10 +- .../delete_dhcp_options_request_response.go | 8 +- .../delete_drg_attachment_request_response.go | 8 +- .../v65/core/delete_drg_request_response.go | 8 +- ...drg_route_distribution_request_response.go | 8 +- ...delete_drg_route_table_request_response.go | 8 +- ...ete_i_p_sec_connection_request_response.go | 8 +- .../v65/core/delete_image_request_response.go | 8 +- ...instance_configuration_request_response.go | 6 +- ...nce_console_connection_request_response.go | 6 +- ...elete_internet_gateway_request_response.go | 8 +- .../v65/core/delete_ipv6_request_response.go | 8 +- ..._local_peering_gateway_request_response.go | 8 +- .../delete_nat_gateway_request_response.go | 8 +- ...network_security_group_request_response.go | 8 +- .../delete_private_ip_request_response.go | 8 +- .../delete_public_ip_pool_request_response.go | 8 +- .../core/delete_public_ip_request_response.go | 8 +- ...ote_peering_connection_request_response.go | 8 +- .../delete_route_table_request_response.go | 8 +- .../delete_security_list_request_response.go | 8 +- ...delete_service_gateway_request_response.go | 8 +- .../core/delete_subnet_request_response.go | 8 +- .../v65/core/delete_vcn_request_response.go | 8 +- ...e_virtual_circuit_public_prefix_details.go | 12 +- ...delete_virtual_circuit_request_response.go | 8 +- .../v65/core/delete_vlan_request_response.go | 8 +- ...ckup_policy_assignment_request_response.go | 6 +- ...e_volume_backup_policy_request_response.go | 6 +- .../delete_volume_backup_request_response.go | 6 +- ...te_volume_group_backup_request_response.go | 6 +- .../delete_volume_group_request_response.go | 6 +- .../delete_volume_kms_key_request_response.go | 6 +- .../core/delete_volume_request_response.go | 6 +- .../v65/core/delete_vtap_request_response.go | 12 +- .../detach_boot_volume_request_response.go | 6 +- .../detach_compute_host_group_host_details.go | 45 + ...ompute_host_group_host_request_response.go | 108 + .../detach_instance_pool_instance_details.go | 14 +- ...instance_pool_instance_request_response.go | 12 +- .../v65/core/detach_load_balancer_details.go | 12 +- .../detach_load_balancer_request_response.go | 8 +- .../detach_service_id_request_response.go | 8 +- .../v65/core/detach_vnic_request_response.go | 6 +- .../core/detach_volume_request_response.go | 6 +- .../core/detached_volume_autotune_policy.go | 12 +- .../oracle/oci-go-sdk/v65/core/device.go | 12 +- .../oci-go-sdk/v65/core/dhcp_dns_option.go | 16 +- .../oracle/oci-go-sdk/v65/core/dhcp_option.go | 18 +- .../oci-go-sdk/v65/core/dhcp_options.go | 28 +- .../v65/core/dhcp_search_domain_option.go | 14 +- .../oracle/oci-go-sdk/v65/core/dpd_config.go | 12 +- .../oracle/oci-go-sdk/v65/core/drg.go | 30 +- .../oci-go-sdk/v65/core/drg_attachment.go | 40 +- ...d_drg_route_distribution_match_criteria.go | 14 +- .../v65/core/drg_attachment_info.go | 14 +- ...l_drg_route_distribution_match_criteria.go | 12 +- .../drg_attachment_network_create_details.go | 16 +- .../core/drg_attachment_network_details.go | 16 +- .../drg_attachment_network_update_details.go | 14 +- ...e_drg_route_distribution_match_criteria.go | 12 +- .../oci-go-sdk/v65/core/drg_customer.go | 54 + .../v65/core/drg_customer_resource.go | 54 + .../v65/core/drg_promotion_status_response.go | 110 + .../v65/core/drg_redundancy_status.go | 16 +- .../v65/core/drg_route_distribution.go | 29 +- .../drg_route_distribution_match_criteria.go | 14 +- .../core/drg_route_distribution_statement.go | 12 +- .../oci-go-sdk/v65/core/drg_route_rule.go | 14 +- .../oci-go-sdk/v65/core/drg_route_table.go | 24 +- .../v65/core/egress_security_rule.go | 14 +- .../v65/core/emulated_volume_attachment.go | 12 +- .../v65/core/encryption_domain_config.go | 12 +- .../v65/core/encryption_in_transit_type.go | 10 +- ...num_integer_image_capability_descriptor.go | 12 +- ...ring_image_capability_schema_descriptor.go | 12 +- .../v65/core/export_image_details.go | 14 +- .../v65/core/export_image_request_response.go | 12 +- ..._image_via_object_storage_tuple_details.go | 12 +- ...rt_image_via_object_storage_uri_details.go | 16 +- .../v65/core/fast_connect_provider_service.go | 16 +- .../core/fast_connect_provider_service_key.go | 12 +- .../flow_log_capture_filter_rule_details.go | 12 +- ...eric_bm_launch_instance_platform_config.go | 16 +- .../v65/core/generic_bm_platform_config.go | 16 +- ...et_all_drg_attachments_request_response.go | 14 +- ...ike_i_p_sec_parameters_request_response.go | 6 +- ...log_listing_agreements_request_response.go | 6 +- ...et_app_catalog_listing_request_response.go | 6 +- ...sting_resource_version_request_response.go | 6 +- ...t_block_volume_replica_request_response.go | 6 +- ...boot_volume_attachment_request_response.go | 6 +- ...get_boot_volume_backup_request_response.go | 6 +- ...et_boot_volume_kms_key_request_response.go | 6 +- ...et_boot_volume_replica_request_response.go | 6 +- .../core/get_boot_volume_request_response.go | 6 +- .../v65/core/get_byoasn_request_response.go | 94 + .../core/get_byoip_range_request_response.go | 8 +- .../get_capture_filter_request_response.go | 8 +- .../get_cluster_network_request_response.go | 8 +- ...e_capacity_reservation_request_response.go | 6 +- ...pute_capacity_topology_request_response.go | 8 +- .../get_compute_cluster_request_response.go | 10 +- ...mage_capability_schema_request_response.go | 8 +- ...ability_schema_version_request_response.go | 8 +- ...ute_gpu_memory_cluster_request_response.go | 94 + ...pute_gpu_memory_fabric_request_response.go | 94 + ...get_compute_host_group_request_response.go | 94 + .../core/get_compute_host_request_response.go | 94 + ...mage_capability_schema_request_response.go | 6 +- ...onsole_history_content_request_response.go | 6 +- .../get_console_history_request_response.go | 6 +- ..._device_config_content_request_response.go | 8 +- .../get_cpe_device_shape_request_response.go | 8 +- .../v65/core/get_cpe_request_response.go | 8 +- ...et_cross_connect_group_request_response.go | 8 +- ...ct_letter_of_authority_request_response.go | 8 +- .../get_cross_connect_request_response.go | 8 +- ...t_cross_connect_status_request_response.go | 8 +- .../get_dedicated_vm_host_request_response.go | 6 +- .../core/get_dhcp_options_request_response.go | 8 +- .../get_drg_attachment_request_response.go | 8 +- ..._drg_redundancy_status_request_response.go | 8 +- .../v65/core/get_drg_request_response.go | 8 +- ...drg_route_distribution_request_response.go | 8 +- .../get_drg_route_table_request_response.go | 8 +- ...t_provider_service_key_request_response.go | 8 +- ...nnect_provider_service_request_response.go | 8 +- ...nnection_device_config_request_response.go | 8 +- ...nnection_device_status_request_response.go | 8 +- ...get_i_p_sec_connection_request_response.go | 8 +- ...onnection_tunnel_error_request_response.go | 10 +- ..._sec_connection_tunnel_request_response.go | 10 +- ...n_tunnel_shared_secret_request_response.go | 10 +- .../v65/core/get_image_request_response.go | 8 +- ...pe_compatibility_entry_request_response.go | 8 +- ...instance_configuration_request_response.go | 6 +- ...nce_console_connection_request_response.go | 6 +- ...ance_maintenance_event_request_response.go | 6 +- ...nce_maintenance_reboot_request_response.go | 8 +- ...instance_pool_instance_request_response.go | 10 +- ...ad_balancer_attachment_request_response.go | 8 +- .../get_instance_pool_request_response.go | 8 +- .../v65/core/get_instance_request_response.go | 8 +- .../get_internet_gateway_request_response.go | 8 +- .../get_ip_inventory_vcn_overlap_details.go | 14 +- ..._device_config_content_request_response.go | 8 +- .../v65/core/get_ipv6_request_response.go | 8 +- ..._local_peering_gateway_request_response.go | 8 +- ...t_measured_boot_report_request_response.go | 8 +- .../core/get_nat_gateway_request_response.go | 8 +- ...network_security_group_request_response.go | 8 +- ...et_networking_topology_request_response.go | 8 +- .../core/get_private_ip_request_response.go | 8 +- .../get_public_ip_by_ip_address_details.go | 12 +- ...ublic_ip_by_ip_address_request_response.go | 6 +- .../get_public_ip_by_private_ip_id_details.go | 14 +- ...ic_ip_by_private_ip_id_request_response.go | 6 +- .../get_public_ip_pool_request_response.go | 8 +- .../core/get_public_ip_request_response.go | 8 +- ...ote_peering_connection_request_response.go | 8 +- ..._resource_ip_inventory_request_response.go | 8 +- .../core/get_route_table_request_response.go | 8 +- .../get_security_list_request_response.go | 8 +- .../get_service_gateway_request_response.go | 8 +- .../v65/core/get_service_request_response.go | 8 +- ...ubnet_cidr_utilization_request_response.go | 8 +- ...et_subnet_ip_inventory_request_response.go | 8 +- .../v65/core/get_subnet_request_response.go | 8 +- .../get_subnet_topology_request_response.go | 10 +- ..._device_config_content_request_response.go | 10 +- ...nnel_cpe_device_config_request_response.go | 10 +- .../get_upgrade_status_request_response.go | 8 +- ...s_resolver_association_request_response.go | 8 +- .../core/get_vcn_overlap_request_response.go | 16 +- .../v65/core/get_vcn_request_response.go | 8 +- .../core/get_vcn_topology_request_response.go | 10 +- .../get_virtual_circuit_request_response.go | 8 +- .../v65/core/get_vlan_request_response.go | 8 +- .../get_vnic_attachment_request_response.go | 6 +- .../v65/core/get_vnic_request_response.go | 8 +- .../get_volume_attachment_request_response.go | 6 +- ...olicy_asset_assignment_request_response.go | 12 +- ...ckup_policy_assignment_request_response.go | 6 +- ...t_volume_backup_policy_request_response.go | 6 +- .../get_volume_backup_request_response.go | 6 +- ...et_volume_group_backup_request_response.go | 6 +- ...t_volume_group_replica_request_response.go | 6 +- .../core/get_volume_group_request_response.go | 6 +- .../get_volume_kms_key_request_response.go | 6 +- .../v65/core/get_volume_request_response.go | 6 +- .../v65/core/get_vtap_request_response.go | 8 +- ...ce_initial_credentials_request_response.go | 8 +- .../v65/core/host_group_configuration.go | 98 + ...host_group_placement_constraint_details.go | 60 + .../v65/core/i_scsi_volume_attachment.go | 12 +- .../oci-go-sdk/v65/core/icmp_options.go | 12 +- .../oracle/oci-go-sdk/v65/core/image.go | 20 +- .../image_capability_schema_descriptor.go | 14 +- .../v65/core/image_memory_constraints.go | 12 +- .../v65/core/image_ocpu_constraints.go | 12 +- .../core/image_shape_compatibility_entry.go | 12 +- .../core/image_shape_compatibility_summary.go | 14 +- .../v65/core/image_source_details.go | 14 +- ...source_via_object_storage_tuple_details.go | 12 +- ...e_source_via_object_storage_uri_details.go | 12 +- .../v65/core/ingress_security_rule.go | 14 +- .../oracle/oci-go-sdk/v65/core/instance.go | 119 +- .../core/instance_action_request_response.go | 8 +- .../v65/core/instance_agent_config.go | 14 +- .../v65/core/instance_agent_features.go | 12 +- .../instance_agent_plugin_config_details.go | 14 +- .../v65/core/instance_availability_config.go | 12 +- .../v65/core/instance_configuration.go | 22 +- ..._bm_gpu_launch_instance_platform_config.go | 16 +- ...ilan_bm_launch_instance_platform_config.go | 16 +- ..._bm_gpu_launch_instance_platform_config.go | 16 +- ...rome_bm_launch_instance_platform_config.go | 16 +- ..._amd_vm_launch_instance_platform_config.go | 12 +- ...tance_configuration_attach_vnic_details.go | 14 +- ...nce_configuration_attach_volume_details.go | 14 +- .../instance_configuration_autotune_policy.go | 14 +- ...tance_configuration_availability_config.go | 12 +- ...ance_configuration_block_volume_details.go | 12 +- ...figuration_block_volume_replica_details.go | 12 +- ...tance_configuration_create_vnic_details.go | 31 +- ...nce_configuration_create_volume_details.go | 29 +- ...uration_detached_volume_autotune_policy.go | 12 +- ...eric_bm_launch_instance_platform_config.go | 16 +- ...host_group_placement_constraint_details.go | 60 + ...instance_configuration_instance_details.go | 14 +- ...instance_configuration_instance_options.go | 12 +- ...e_configuration_instance_source_details.go | 14 +- ...on_instance_source_image_filter_details.go | 14 +- ...instance_source_via_boot_volume_details.go | 12 +- ...ation_instance_source_via_image_details.go | 14 +- ...lake_bm_launch_instance_platform_config.go | 12 +- ...lake_bm_launch_instance_platform_config.go | 12 +- ...ntel_vm_launch_instance_platform_config.go | 12 +- ...6_address_ipv6_subnet_cidr_pair_details.go | 12 +- ...nfiguration_iscsi_attach_volume_details.go | 12 +- ...on_launch_instance_agent_config_details.go | 14 +- ...e_configuration_launch_instance_details.go | 64 +- ...uration_launch_instance_platform_config.go | 14 +- ...on_launch_instance_shape_config_details.go | 60 +- .../instance_configuration_launch_options.go | 12 +- ...n_paravirtualized_attach_volume_details.go | 12 +- ...ation_performance_based_autotune_policy.go | 12 +- ...figuration_placement_constraint_details.go | 83 + .../core/instance_configuration_summary.go | 16 +- ...nce_configuration_volume_source_details.go | 14 +- ...olume_source_from_volume_backup_details.go | 12 +- ...ation_volume_source_from_volume_details.go | 12 +- .../v65/core/instance_console_connection.go | 18 +- .../v65/core/instance_credentials.go | 12 +- ...ntenance_alternative_resolution_actions.go | 10 +- .../v65/core/instance_maintenance_event.go | 22 +- .../instance_maintenance_event_summary.go | 22 +- .../v65/core/instance_maintenance_reboot.go | 12 +- .../oci-go-sdk/v65/core/instance_options.go | 12 +- .../oci-go-sdk/v65/core/instance_pool.go | 26 +- .../v65/core/instance_pool_instance.go | 46 +- ...nce_pool_instance_load_balancer_backend.go | 12 +- ...instance_pool_lifecycle_actions_details.go | 43 + ...tance_pool_lifecycle_management_details.go | 43 + .../instance_pool_load_balancer_attachment.go | 18 +- .../instance_pool_placement_configuration.go | 14 +- ...t_ipv6_address_ipv6_subnet_cidr_details.go | 12 +- .../instance_pool_placement_primary_subnet.go | 14 +- ...ce_pool_placement_secondary_vnic_subnet.go | 14 +- .../instance_pool_placement_subnet_details.go | 14 +- ...nce_pool_pre_termination_action_details.go | 50 + ...rmination_action_handle_timeout_details.go | 146 ++ .../v65/core/instance_pool_summary.go | 16 +- .../v65/core/instance_power_action_details.go | 14 +- .../v65/core/instance_reservation_config.go | 14 +- .../instance_reservation_config_details.go | 16 +- ...stance_reservation_shape_config_details.go | 14 +- .../v65/core/instance_shape_config.go | 60 +- .../v65/core/instance_source_details.go | 14 +- .../instance_source_image_filter_details.go | 14 +- ...instance_source_via_boot_volume_details.go | 12 +- .../core/instance_source_via_image_details.go | 14 +- .../oci-go-sdk/v65/core/instance_summary.go | 12 +- ...lake_bm_launch_instance_platform_config.go | 12 +- .../core/intel_icelake_bm_platform_config.go | 12 +- ...lake_bm_launch_instance_platform_config.go | 12 +- .../core/intel_skylake_bm_platform_config.go | 12 +- ...ntel_vm_launch_instance_platform_config.go | 12 +- .../v65/core/intel_vm_platform_config.go | 12 +- ...ntel_vm_update_instance_platform_config.go | 12 +- .../oci-go-sdk/v65/core/internet_gateway.go | 28 +- .../v65/core/inventory_ip_address_summary.go | 14 +- .../v65/core/inventory_resource_summary.go | 17 +- .../inventory_subnet_cidr_block_summary.go | 12 +- .../v65/core/inventory_subnet_summary.go | 16 +- .../core/inventory_vcn_cidr_block_summary.go | 12 +- .../v65/core/inventory_vcn_summary.go | 16 +- ...p_inventory_cidr_utilization_collection.go | 12 +- .../ip_inventory_cidr_utilization_summary.go | 12 +- .../v65/core/ip_inventory_collection.go | 12 +- ...ip_inventory_subnet_resource_collection.go | 12 +- .../ip_inventory_subnet_resource_summary.go | 17 +- .../ip_inventory_vcn_overlap_collection.go | 12 +- .../core/ip_inventory_vcn_overlap_summary.go | 14 +- .../oci-go-sdk/v65/core/ip_sec_connection.go | 54 +- .../core/ip_sec_connection_device_config.go | 16 +- .../core/ip_sec_connection_device_status.go | 16 +- .../v65/core/ip_sec_connection_tunnel.go | 18 +- .../ip_sec_connection_tunnel_error_details.go | 12 +- .../ip_sec_connection_tunnel_shared_secret.go | 12 +- .../oracle/oci-go-sdk/v65/core/ipam.go | 12 +- ...c_tunnel_drg_attachment_network_details.go | 16 +- .../oracle/oci-go-sdk/v65/core/ipv6.go | 138 +- ...6_address_ipv6_subnet_cidr_pair_details.go | 12 +- .../core/ipv6_vnic_detach_request_response.go | 106 + .../launch_attach_i_scsi_volume_details.go | 12 +- ...h_attach_paravirtualized_volume_details.go | 12 +- .../v65/core/launch_attach_volume_details.go | 14 +- .../v65/core/launch_create_volume_details.go | 14 +- .../launch_create_volume_from_attributes.go | 14 +- .../launch_instance_agent_config_details.go | 14 +- ...ch_instance_availability_config_details.go | 12 +- ...instance_configuration_request_response.go | 10 +- .../v65/core/launch_instance_details.go | 63 +- .../core/launch_instance_licensing_config.go | 178 ++ .../core/launch_instance_platform_config.go | 18 +- .../core/launch_instance_request_response.go | 10 +- .../launch_instance_shape_config_details.go | 60 +- ...aunch_instance_windows_licensing_config.go | 70 + .../oci-go-sdk/v65/core/launch_options.go | 12 +- .../v65/core/letter_of_authority.go | 14 +- .../oci-go-sdk/v65/core/licensing_config.go | 139 ++ ...ons_for_remote_peering_request_response.go | 6 +- ...ting_resource_versions_request_response.go | 12 +- ...t_app_catalog_listings_request_response.go | 12 +- ..._catalog_subscriptions_request_response.go | 14 +- ..._block_volume_replicas_request_response.go | 14 +- ...oot_volume_attachments_request_response.go | 14 +- ...st_boot_volume_backups_request_response.go | 14 +- ...t_boot_volume_replicas_request_response.go | 14 +- .../list_boot_volumes_request_response.go | 14 +- .../v65/core/list_byoasns_request_response.go | 210 ++ ...byoip_allocated_ranges_request_response.go | 14 +- .../list_byoip_ranges_request_response.go | 14 +- .../list_capture_filters_request_response.go | 14 +- ...ster_network_instances_request_response.go | 16 +- .../list_cluster_networks_request_response.go | 14 +- ...vation_instance_shapes_request_response.go | 14 +- ..._reservation_instances_request_response.go | 14 +- ..._capacity_reservations_request_response.go | 14 +- ...te_capacity_topologies_request_response.go | 14 +- ...mpute_bare_metal_hosts_request_response.go | 22 +- ...gy_compute_hpc_islands_request_response.go | 16 +- ...compute_network_blocks_request_response.go | 18 +- .../list_compute_clusters_request_response.go | 14 +- ...bility_schema_versions_request_response.go | 14 +- ...age_capability_schemas_request_response.go | 12 +- ...mory_cluster_instances_request_response.go | 213 ++ ...te_gpu_memory_clusters_request_response.go | 228 ++ ...ute_gpu_memory_fabrics_request_response.go | 238 +++ ...st_compute_host_groups_request_response.go | 107 + .../list_compute_hosts_request_response.go | 237 +++ ...age_capability_schemas_request_response.go | 14 +- ...list_console_histories_request_response.go | 14 +- ...list_cpe_device_shapes_request_response.go | 12 +- .../v65/core/list_cpes_request_response.go | 14 +- ...t_cross_connect_groups_request_response.go | 14 +- ...ross_connect_locations_request_response.go | 14 +- ...cross_connect_mappings_request_response.go | 8 +- .../list_cross_connects_request_response.go | 16 +- ...nect_port_speed_shapes_request_response.go | 14 +- ...m_host_instance_shapes_request_response.go | 14 +- ...ated_vm_host_instances_request_response.go | 17 +- ...dicated_vm_host_shapes_request_response.go | 14 +- ...ist_dedicated_vm_hosts_request_response.go | 17 +- .../list_dhcp_options_request_response.go | 16 +- .../list_drg_attachments_request_response.go | 22 +- ...istribution_statements_request_response.go | 14 +- ...rg_route_distributions_request_response.go | 14 +- .../list_drg_route_rules_request_response.go | 14 +- .../list_drg_route_tables_request_response.go | 16 +- .../v65/core/list_drgs_request_response.go | 14 +- ...nect_provider_services_request_response.go | 14 +- ...rcuit_bandwidth_shapes_request_response.go | 14 +- ...nnection_tunnel_routes_request_response.go | 16 +- ..._security_associations_request_response.go | 16 +- ...sec_connection_tunnels_request_response.go | 14 +- ...st_i_p_sec_connections_request_response.go | 18 +- ..._compatibility_entries_request_response.go | 14 +- .../v65/core/list_images_request_response.go | 14 +- ...nstance_configurations_request_response.go | 14 +- ...ce_console_connections_request_response.go | 14 +- .../list_instance_devices_request_response.go | 14 +- ...nce_maintenance_events_request_response.go | 14 +- ...nstance_pool_instances_request_response.go | 16 +- .../list_instance_pools_request_response.go | 14 +- .../core/list_instances_request_response.go | 18 +- ...list_internet_gateways_request_response.go | 16 +- .../v65/core/list_ip_inventory_details.go | 18 +- .../list_ip_inventory_request_response.go | 16 +- .../v65/core/list_ipv6s_request_response.go | 23 +- ...local_peering_gateways_request_response.go | 16 +- .../list_nat_gateways_request_response.go | 16 +- ...y_group_security_rules_request_response.go | 14 +- ...k_security_group_vnics_request_response.go | 14 +- ...etwork_security_groups_request_response.go | 18 +- .../core/list_private_ips_request_response.go | 25 +- .../list_public_ip_pools_request_response.go | 14 +- .../core/list_public_ips_request_response.go | 14 +- ...te_peering_connections_request_response.go | 16 +- .../list_route_tables_request_response.go | 16 +- .../list_security_lists_request_response.go | 16 +- .../list_service_gateways_request_response.go | 16 +- .../core/list_services_request_response.go | 12 +- .../v65/core/list_shapes_request_response.go | 16 +- .../v65/core/list_subnets_request_response.go | 16 +- .../v65/core/list_vcns_request_response.go | 14 +- ...uit_associated_tunnels_request_response.go | 14 +- ...rcuit_bandwidth_shapes_request_response.go | 14 +- ...ircuit_public_prefixes_request_response.go | 8 +- .../list_virtual_circuits_request_response.go | 14 +- .../v65/core/list_vlans_request_response.go | 16 +- .../list_vnic_attachments_request_response.go | 14 +- ...ist_volume_attachments_request_response.go | 14 +- ...volume_backup_policies_request_response.go | 12 +- .../list_volume_backups_request_response.go | 14 +- ...t_volume_group_backups_request_response.go | 14 +- ..._volume_group_replicas_request_response.go | 14 +- .../list_volume_groups_request_response.go | 14 +- .../v65/core/list_volumes_request_response.go | 14 +- .../v65/core/list_vtaps_request_response.go | 20 +- .../v65/core/local_peering_gateway.go | 38 +- ...oop_back_drg_attachment_network_details.go | 16 +- .../v65/core/macsec_encryption_cipher.go | 10 +- .../oracle/oci-go-sdk/v65/core/macsec_key.go | 16 +- .../oci-go-sdk/v65/core/macsec_properties.go | 12 +- .../oci-go-sdk/v65/core/macsec_state.go | 10 +- .../v65/core/measured_boot_entry.go | 12 +- .../v65/core/measured_boot_report.go | 12 +- .../core/measured_boot_report_measurements.go | 12 +- .../oci-go-sdk/v65/core/member_replica.go | 12 +- .../memory_fabric_preferences_descriptor.go | 97 + .../core/modify_ipv4_subnet_cidr_details.go | 48 + ...odify_ipv4_subnet_cidr_request_response.go | 108 + .../v65/core/modify_vcn_cidr_details.go | 12 +- .../core/modify_vcn_cidr_request_response.go | 12 +- .../oci-go-sdk/v65/core/multipath_device.go | 12 +- .../oracle/oci-go-sdk/v65/core/nat_gateway.go | 30 +- .../v65/core/network_security_group.go | 38 +- .../v65/core/network_security_group_vnic.go | 16 +- .../v65/core/networking_topology.go | 14 +- .../core/paravirtualized_volume_attachment.go | 12 +- .../core/peer_region_for_remote_peering.go | 14 +- .../percentage_of_cores_enabled_options.go | 12 +- .../core/performance_based_autotune_policy.go | 12 +- .../v65/core/phase_one_config_details.go | 12 +- .../v65/core/phase_two_config_details.go | 12 +- .../v65/core/placement_constraint_details.go | 87 + .../oci-go-sdk/v65/core/platform_config.go | 14 +- .../oracle/oci-go-sdk/v65/core/port_range.go | 12 +- .../preemptible_instance_config_details.go | 12 +- .../oci-go-sdk/v65/core/preemption_action.go | 14 +- .../oracle/oci-go-sdk/v65/core/private_ip.go | 143 +- ...private_ip_vnic_detach_request_response.go | 106 + .../oracle/oci-go-sdk/v65/core/public_ip.go | 30 +- .../oci-go-sdk/v65/core/public_ip_pool.go | 20 +- .../v65/core/public_ip_pool_collection.go | 12 +- .../v65/core/public_ip_pool_summary.go | 20 +- .../v65/core/reboot_migrate_action_details.go | 12 +- .../oci-go-sdk/v65/core/recycle_details.go | 95 + .../v65/core/remote_peering_connection.go | 30 +- ...nnection_drg_attachment_network_details.go | 14 +- ...g_route_distribution_statements_details.go | 12 +- ...istribution_statements_request_response.go | 8 +- .../core/remove_drg_route_rules_details.go | 12 +- ...remove_drg_route_rules_request_response.go | 8 +- ...drg_route_distribution_request_response.go | 8 +- ...pe_compatibility_entry_request_response.go | 8 +- ...drg_route_distribution_request_response.go | 8 +- .../core/remove_ipv4_subnet_cidr_details.go | 50 + ...emove_ipv4_subnet_cidr_request_response.go | 108 + ...emove_ipv6_subnet_cidr_request_response.go | 12 +- .../remove_ipv6_vcn_cidr_request_response.go | 12 +- ...k_security_group_security_rules_details.go | 12 +- ...y_group_security_rules_request_response.go | 8 +- .../remove_public_ip_pool_capacity_details.go | 12 +- ...ublic_ip_pool_capacity_request_response.go | 8 +- .../core/remove_subnet_ipv6_cidr_details.go | 14 +- .../v65/core/remove_vcn_cidr_details.go | 12 +- .../core/remove_vcn_cidr_request_response.go | 12 +- .../v65/core/remove_vcn_ipv6_cidr_details.go | 14 +- .../v65/core/reset_action_details.go | 14 +- .../reset_instance_pool_request_response.go | 8 +- .../oracle/oci-go-sdk/v65/core/route_rule.go | 18 +- .../oracle/oci-go-sdk/v65/core/route_table.go | 26 +- .../oci-go-sdk/v65/core/security_list.go | 26 +- .../oci-go-sdk/v65/core/security_rule.go | 24 +- .../oracle/oci-go-sdk/v65/core/service.go | 16 +- .../oci-go-sdk/v65/core/service_gateway.go | 30 +- .../v65/core/service_id_request_details.go | 14 +- .../v65/core/service_id_response_details.go | 14 +- .../v65/core/set_origin_asn_details.go | 48 + .../core/set_origin_asn_request_response.go | 108 + ...t_origin_asn_to_oracle_request_response.go | 93 + .../oracle/oci-go-sdk/v65/core/shape.go | 22 +- ...ontrol_service_enabled_platform_options.go | 12 +- .../v65/core/shape_alternative_object.go | 12 +- ...anagement_unit_enabled_platform_options.go | 12 +- .../core/shape_max_vnic_attachment_options.go | 12 +- .../v65/core/shape_measured_boot_options.go | 12 +- .../core/shape_memory_encryption_options.go | 12 +- .../v65/core/shape_memory_options.go | 12 +- .../shape_networking_bandwidth_options.go | 12 +- ..._numa_nodes_per_socket_platform_options.go | 16 +- .../oci-go-sdk/v65/core/shape_ocpu_options.go | 12 +- .../v65/core/shape_platform_config_options.go | 12 +- .../v65/core/shape_secure_boot_options.go | 12 +- ...ulti_threading_enabled_platform_options.go | 12 +- .../shape_trusted_platform_module_options.go | 12 +- ...l_instructions_enabled_platform_options.go | 12 +- .../v65/core/soft_reset_action_details.go | 14 +- ...oftreset_instance_pool_request_response.go | 8 +- ...softstop_instance_pool_request_response.go | 8 +- .../start_instance_pool_request_response.go | 8 +- .../stop_instance_pool_request_response.go | 8 +- .../oracle/oci-go-sdk/v65/core/subnet.go | 44 +- .../oci-go-sdk/v65/core/subnet_topology.go | 16 +- .../v65/core/supported_capabilities.go | 45 + .../oracle/oci-go-sdk/v65/core/tcp_options.go | 12 +- ...minate_cluster_network_request_response.go | 12 +- ...erminate_instance_pool_request_response.go | 8 +- .../terminate_instance_request_response.go | 54 +- .../v65/core/terminate_preemption_action.go | 12 +- ..._proceed_instance_pool_instance_details.go | 45 + ...instance_pool_instance_request_response.go | 98 + .../oracle/oci-go-sdk/v65/core/topology.go | 14 +- ...ogy_associated_with_entity_relationship.go | 16 +- ...gy_associated_with_relationship_details.go | 14 +- .../topology_contains_entity_relationship.go | 16 +- .../v65/core/topology_entity_relationship.go | 18 +- .../topology_routes_to_entity_relationship.go | 16 +- ...topology_routes_to_relationship_details.go | 14 +- .../oci-go-sdk/v65/core/tunnel_config.go | 12 +- .../v65/core/tunnel_cpe_device_config.go | 12 +- .../v65/core/tunnel_phase_one_details.go | 12 +- .../v65/core/tunnel_phase_two_details.go | 12 +- .../v65/core/tunnel_route_summary.go | 12 +- .../tunnel_security_association_summary.go | 12 +- .../oci-go-sdk/v65/core/tunnel_status.go | 12 +- .../oracle/oci-go-sdk/v65/core/udp_options.go | 12 +- .../core/update_boot_volume_backup_details.go | 20 +- ...ate_boot_volume_backup_request_response.go | 6 +- .../v65/core/update_boot_volume_details.go | 18 +- .../update_boot_volume_kms_key_details.go | 12 +- ...te_boot_volume_kms_key_request_response.go | 6 +- .../update_boot_volume_request_response.go | 6 +- .../v65/core/update_byoasn_details.go | 56 + .../core/update_byoasn_request_response.go | 102 + .../v65/core/update_byoip_range_details.go | 16 +- .../update_byoip_range_request_response.go | 8 +- .../core/update_capacity_source_details.go | 14 +- .../v65/core/update_capture_filter_details.go | 16 +- .../update_capture_filter_request_response.go | 8 +- .../core/update_cluster_network_details.go | 18 +- ...e_cluster_network_instance_pool_details.go | 20 +- ...update_cluster_network_request_response.go | 8 +- ...te_compute_capacity_reservation_details.go | 18 +- ...e_capacity_reservation_request_response.go | 10 +- ...pdate_compute_capacity_topology_details.go | 16 +- ...pute_capacity_topology_request_response.go | 12 +- .../core/update_compute_cluster_details.go | 18 +- ...update_compute_cluster_request_response.go | 10 +- ...date_compute_gpu_memory_cluster_details.go | 62 + ...ute_gpu_memory_cluster_request_response.go | 114 + ...pdate_compute_gpu_memory_fabric_details.go | 58 + ...pute_gpu_memory_fabric_request_response.go | 109 + .../v65/core/update_compute_host_details.go | 56 + .../core/update_compute_host_group_details.go | 62 + ...ate_compute_host_group_request_response.go | 117 ++ .../update_compute_host_request_response.go | 111 + ...compute_image_capability_schema_details.go | 16 +- ...mage_capability_schema_request_response.go | 6 +- .../core/update_console_history_details.go | 16 +- ...update_console_history_request_response.go | 6 +- .../oci-go-sdk/v65/core/update_cpe_details.go | 18 +- .../v65/core/update_cpe_request_response.go | 8 +- .../v65/core/update_cross_connect_details.go | 16 +- .../update_cross_connect_group_details.go | 16 +- ...te_cross_connect_group_request_response.go | 8 +- .../update_cross_connect_request_response.go | 8 +- ...pdate_dedicated_capacity_source_details.go | 12 +- .../core/update_dedicated_vm_host_details.go | 16 +- ...date_dedicated_vm_host_request_response.go | 6 +- .../v65/core/update_dhcp_details.go | 16 +- .../update_dhcp_options_request_response.go | 8 +- .../v65/core/update_drg_attachment_details.go | 26 +- .../update_drg_attachment_request_response.go | 8 +- .../oci-go-sdk/v65/core/update_drg_details.go | 16 +- .../v65/core/update_drg_request_response.go | 8 +- .../update_drg_route_distribution_details.go | 16 +- ...drg_route_distribution_request_response.go | 8 +- ...rg_route_distribution_statement_details.go | 12 +- ...g_route_distribution_statements_details.go | 12 +- ...istribution_statements_request_response.go | 8 +- .../v65/core/update_drg_route_rule_details.go | 14 +- .../core/update_drg_route_rules_details.go | 12 +- ...update_drg_route_rules_request_response.go | 8 +- .../core/update_drg_route_table_details.go | 18 +- ...update_drg_route_table_request_response.go | 8 +- ...ate_i_p_sec_connection_request_response.go | 8 +- ..._sec_connection_tunnel_request_response.go | 10 +- ...n_tunnel_shared_secret_request_response.go | 10 +- .../v65/core/update_image_details.go | 16 +- .../v65/core/update_image_request_response.go | 8 +- .../update_instance_agent_config_details.go | 14 +- ...te_instance_availability_config_details.go | 12 +- .../update_instance_configuration_details.go | 16 +- ...instance_configuration_request_response.go | 6 +- ...ate_instance_console_connection_details.go | 16 +- ...nce_console_connection_request_response.go | 6 +- .../v65/core/update_instance_details.go | 50 +- .../core/update_instance_licensing_config.go | 178 ++ ...date_instance_maintenance_event_details.go | 16 +- ...ance_maintenance_event_request_response.go | 10 +- .../core/update_instance_platform_config.go | 14 +- .../v65/core/update_instance_pool_details.go | 20 +- ...ce_pool_placement_configuration_details.go | 14 +- .../update_instance_pool_request_response.go | 8 +- .../core/update_instance_request_response.go | 12 +- .../update_instance_shape_config_details.go | 60 +- .../core/update_instance_source_details.go | 14 +- ...instance_source_via_boot_volume_details.go | 12 +- ...pdate_instance_source_via_image_details.go | 12 +- ...pdate_instance_windows_licensing_config.go | 70 + .../core/update_internet_gateway_details.go | 18 +- ...pdate_internet_gateway_request_response.go | 8 +- .../core/update_ip_sec_connection_details.go | 20 +- ...update_ip_sec_connection_tunnel_details.go | 12 +- ...connection_tunnel_shared_secret_details.go | 12 +- ...pdate_ip_sec_tunnel_bgp_session_details.go | 12 +- ...ip_sec_tunnel_encryption_domain_details.go | 14 +- .../v65/core/update_ipv6_details.go | 73 +- .../v65/core/update_ipv6_request_response.go | 8 +- .../v65/core/update_launch_options.go | 16 +- .../update_local_peering_gateway_details.go | 26 +- ..._local_peering_gateway_request_response.go | 8 +- .../oci-go-sdk/v65/core/update_macsec_key.go | 16 +- .../v65/core/update_macsec_properties.go | 12 +- .../v65/core/update_nat_gateway_details.go | 18 +- .../update_nat_gateway_request_response.go | 8 +- .../update_network_security_group_details.go | 16 +- ...network_security_group_request_response.go | 8 +- ...k_security_group_security_rules_details.go | 12 +- ...y_group_security_rules_request_response.go | 8 +- .../v65/core/update_private_ip_details.go | 75 +- .../update_private_ip_request_response.go | 8 +- .../v65/core/update_public_ip_details.go | 18 +- .../v65/core/update_public_ip_pool_details.go | 16 +- .../update_public_ip_pool_request_response.go | 8 +- .../core/update_public_ip_request_response.go | 8 +- ...pdate_remote_peering_connection_details.go | 16 +- ...ote_peering_connection_request_response.go | 8 +- .../v65/core/update_route_table_details.go | 16 +- .../update_route_table_request_response.go | 8 +- .../v65/core/update_security_list_details.go | 16 +- .../update_security_list_request_response.go | 8 +- .../v65/core/update_security_rule_details.go | 24 +- .../core/update_service_gateway_details.go | 20 +- ...update_service_gateway_request_response.go | 8 +- .../v65/core/update_subnet_details.go | 22 +- .../core/update_subnet_request_response.go | 8 +- ...update_tunnel_cpe_device_config_details.go | 12 +- ...nnel_cpe_device_config_request_response.go | 10 +- .../oci-go-sdk/v65/core/update_vcn_details.go | 23 +- .../v65/core/update_vcn_request_response.go | 8 +- .../core/update_virtual_circuit_details.go | 20 +- ...update_virtual_circuit_request_response.go | 8 +- .../v65/core/update_vlan_details.go | 18 +- .../v65/core/update_vlan_request_response.go | 8 +- .../v65/core/update_vnic_details.go | 30 +- .../v65/core/update_vnic_request_response.go | 8 +- .../core/update_volume_attachment_details.go | 12 +- ...date_volume_attachment_request_response.go | 6 +- .../v65/core/update_volume_backup_details.go | 20 +- .../update_volume_backup_policy_details.go | 26 +- ...e_volume_backup_policy_request_response.go | 6 +- .../update_volume_backup_request_response.go | 6 +- .../v65/core/update_volume_details.go | 41 +- .../update_volume_group_backup_details.go | 16 +- ...te_volume_group_backup_request_response.go | 6 +- .../v65/core/update_volume_group_details.go | 16 +- .../update_volume_group_request_response.go | 6 +- .../v65/core/update_volume_kms_key_details.go | 12 +- .../update_volume_kms_key_request_response.go | 6 +- .../core/update_volume_request_response.go | 6 +- .../v65/core/update_vtap_details.go | 24 +- .../v65/core/update_vtap_request_response.go | 12 +- ...d_network_security_group_security_rules.go | 12 +- .../v65/core/upgrade_drg_request_response.go | 12 +- .../oci-go-sdk/v65/core/upgrade_status.go | 12 +- .../core/validate_byoasn_request_response.go | 105 + .../validate_byoip_range_request_response.go | 12 +- .../oracle/oci-go-sdk/v65/core/vcn.go | 41 +- .../v65/core/vcn_dns_resolver_association.go | 16 +- ...n_drg_attachment_network_create_details.go | 22 +- .../vcn_drg_attachment_network_details.go | 20 +- ...n_drg_attachment_network_update_details.go | 18 +- .../oci-go-sdk/v65/core/vcn_topology.go | 16 +- .../oci-go-sdk/v65/core/virtual_circuit.go | 34 +- ...rtual_circuit_associated_tunnel_details.go | 16 +- .../core/virtual_circuit_bandwidth_shape.go | 12 +- ..._circuit_drg_attachment_network_details.go | 14 +- .../v65/core/virtual_circuit_ip_mtu.go | 10 +- .../v65/core/virtual_circuit_public_prefix.go | 14 +- .../virtual_circuit_redundancy_metadata.go | 20 +- .../oracle/oci-go-sdk/v65/core/vlan.go | 24 +- .../oracle/oci-go-sdk/v65/core/vnic.go | 42 +- .../oci-go-sdk/v65/core/vnic_attachment.go | 16 +- .../oracle/oci-go-sdk/v65/core/volume.go | 29 +- .../oci-go-sdk/v65/core/volume_attachment.go | 16 +- .../oci-go-sdk/v65/core/volume_backup.go | 24 +- .../v65/core/volume_backup_policy.go | 18 +- .../core/volume_backup_policy_assignment.go | 18 +- .../v65/core/volume_backup_schedule.go | 14 +- .../oci-go-sdk/v65/core/volume_group.go | 18 +- .../v65/core/volume_group_backup.go | 20 +- .../v65/core/volume_group_replica.go | 20 +- .../v65/core/volume_group_replica_details.go | 16 +- .../v65/core/volume_group_replica_info.go | 16 +- .../v65/core/volume_group_source_details.go | 14 +- ...source_from_volume_group_backup_details.go | 12 +- ..._group_source_from_volume_group_details.go | 12 +- ...ource_from_volume_group_replica_details.go | 12 +- ...olume_group_source_from_volumes_details.go | 12 +- .../oci-go-sdk/v65/core/volume_kms_key.go | 12 +- .../v65/core/volume_source_details.go | 14 +- ...ource_from_block_volume_replica_details.go | 12 +- ...source_from_volume_backup_delta_details.go | 12 +- ...olume_source_from_volume_backup_details.go | 12 +- .../core/volume_source_from_volume_details.go | 12 +- .../oracle/oci-go-sdk/v65/core/vtap.go | 30 +- .../core/vtap_capture_filter_rule_details.go | 12 +- .../withdraw_byoip_range_request_response.go | 8 +- .../add_export_lock_request_response.go | 8 +- .../add_file_system_lock_request_response.go | 8 +- ...m_snapshot_policy_lock_request_response.go | 8 +- .../add_mount_target_lock_request_response.go | 8 +- ...utbound_connector_lock_request_response.go | 8 +- .../add_replication_lock_request_response.go | 8 +- .../add_snapshot_lock_request_response.go | 8 +- ...ade_shape_mount_target_request_response.go | 8 +- .../change_file_system_compartment_details.go | 8 +- ...ile_system_compartment_request_response.go | 8 +- ...tem_snapshot_policy_compartment_details.go | 8 +- ...hot_policy_compartment_request_response.go | 8 +- ...change_mount_target_compartment_details.go | 8 +- ...unt_target_compartment_request_response.go | 8 +- ..._outbound_connector_compartment_details.go | 8 +- ..._connector_compartment_request_response.go | 8 +- .../change_replication_compartment_details.go | 8 +- ...eplication_compartment_request_response.go | 8 +- .../v65/filestorage/client_options.go | 6 +- .../v65/filestorage/create_export_details.go | 10 +- .../create_export_request_response.go | 6 +- .../filestorage/create_file_system_details.go | 23 +- .../create_file_system_request_response.go | 6 +- ...eate_filesystem_snapshot_policy_details.go | 12 +- ...system_snapshot_policy_request_response.go | 6 +- .../filestorage/create_kerberos_details.go | 8 +- .../create_ldap_bind_account_details.go | 14 +- .../filestorage/create_ldap_idmap_details.go | 20 +- .../create_mount_target_details.go | 33 +- .../create_mount_target_request_response.go | 6 +- .../create_outbound_connector_details.go | 14 +- ...ate_outbound_connector_request_response.go | 6 +- .../filestorage/create_quota_rule_details.go | 115 + .../create_quota_rule_request_response.go | 112 + .../filestorage/create_replication_details.go | 16 +- .../create_replication_request_response.go | 6 +- .../filestorage/create_snapshot_details.go | 12 +- .../create_snapshot_request_response.go | 6 +- .../delete_export_request_response.go | 8 +- .../delete_file_system_request_response.go | 8 +- ...system_snapshot_policy_request_response.go | 8 +- .../delete_mount_target_request_response.go | 8 +- ...ete_outbound_connector_request_response.go | 8 +- .../delete_quota_rule_request_response.go | 99 + .../delete_replication_request_response.go | 8 +- ...ete_replication_target_request_response.go | 8 +- .../delete_snapshot_request_response.go | 8 +- .../detach_clone_request_response.go | 8 +- .../oci-go-sdk/v65/filestorage/endpoint.go | 6 +- .../estimate_replication_request_response.go | 8 +- .../oci-go-sdk/v65/filestorage/export.go | 14 +- .../oci-go-sdk/v65/filestorage/export_set.go | 12 +- .../v65/filestorage/export_set_summary.go | 12 +- .../v65/filestorage/export_summary.go | 12 +- .../oci-go-sdk/v65/filestorage/file_system.go | 104 +- .../v65/filestorage/file_system_summary.go | 91 +- .../v65/filestorage/filestorage_client.go | 535 ++++- .../filestorage/filesystem_snapshot_policy.go | 22 +- .../filesystem_snapshot_policy_summary.go | 18 +- .../get_export_request_response.go | 8 +- .../get_export_set_request_response.go | 8 +- .../get_file_system_request_response.go | 8 +- ...system_snapshot_policy_request_response.go | 8 +- .../get_mount_target_request_response.go | 8 +- ...get_outbound_connector_request_response.go | 8 +- .../get_quota_rule_request_response.go | 105 + .../get_replication_request_response.go | 8 +- ...get_replication_target_request_response.go | 8 +- .../get_snapshot_request_response.go | 8 +- .../oci-go-sdk/v65/filestorage/kerberos.go | 8 +- .../v65/filestorage/kerberos_keytab_entry.go | 6 +- .../v65/filestorage/key_tab_secret_details.go | 8 +- .../v65/filestorage/ldap_bind_account.go | 25 +- .../filestorage/ldap_bind_account_summary.go | 23 +- .../oci-go-sdk/v65/filestorage/ldap_idmap.go | 20 +- .../list_export_sets_request_response.go | 16 +- .../list_exports_request_response.go | 20 +- .../list_file_systems_request_response.go | 22 +- ...stem_snapshot_policies_request_response.go | 16 +- .../list_mount_targets_request_response.go | 18 +- ...st_outbound_connectors_request_response.go | 16 +- .../list_quota_rules_request_response.go | 239 +++ ...st_replication_targets_request_response.go | 16 +- .../list_replications_request_response.go | 18 +- .../list_snapshots_request_response.go | 20 +- .../v65/filestorage/mount_target.go | 32 +- .../v65/filestorage/mount_target_summary.go | 32 +- .../v65/filestorage/outbound_connector.go | 27 +- .../filestorage/outbound_connector_summary.go | 27 +- ...system_snapshot_policy_request_response.go | 8 +- .../oci-go-sdk/v65/filestorage/quota_rule.go | 131 ++ .../v65/filestorage/quota_rule_summary.go | 140 ++ .../remove_export_lock_request_response.go | 8 +- ...emove_file_system_lock_request_response.go | 8 +- ...m_snapshot_policy_lock_request_response.go | 8 +- ...move_mount_target_lock_request_response.go | 8 +- ...utbound_connector_lock_request_response.go | 8 +- ...emove_replication_lock_request_response.go | 8 +- .../remove_snapshot_lock_request_response.go | 8 +- .../oci-go-sdk/v65/filestorage/replication.go | 28 +- .../v65/filestorage/replication_estimate.go | 6 +- .../v65/filestorage/replication_summary.go | 18 +- .../v65/filestorage/replication_target.go | 28 +- .../filestorage/replication_target_summary.go | 18 +- .../v65/filestorage/resource_lock.go | 6 +- ...le_downgrade_shape_mount_target_details.go | 6 +- ...ade_shape_mount_target_request_response.go | 8 +- .../oci-go-sdk/v65/filestorage/snapshot.go | 26 +- .../v65/filestorage/snapshot_schedule.go | 6 +- .../v65/filestorage/snapshot_summary.go | 24 +- .../v65/filestorage/source_details.go | 14 +- .../filestorage/toggle_quota_rules_details.go | 40 + .../toggle_quota_rules_request_response.go | 106 + ...system_snapshot_policy_request_response.go | 8 +- .../v65/filestorage/update_export_details.go | 6 +- .../update_export_request_response.go | 8 +- .../filestorage/update_export_set_details.go | 6 +- .../update_export_set_request_response.go | 8 +- .../filestorage/update_file_system_details.go | 16 +- .../update_file_system_request_response.go | 8 +- ...date_filesystem_snapshot_policy_details.go | 10 +- ...system_snapshot_policy_request_response.go | 8 +- .../filestorage/update_kerberos_details.go | 8 +- .../filestorage/update_ldap_idmap_details.go | 20 +- .../update_mount_target_details.go | 20 +- .../update_mount_target_request_response.go | 8 +- .../update_outbound_connector_details.go | 10 +- ...ate_outbound_connector_request_response.go | 8 +- .../filestorage/update_quota_rule_details.go | 45 + .../update_quota_rule_request_response.go | 108 + .../filestorage/update_replication_details.go | 10 +- .../update_replication_request_response.go | 8 +- .../filestorage/update_snapshot_details.go | 10 +- .../update_snapshot_request_response.go | 8 +- .../upgrade_shape_mount_target_details.go | 6 +- ...ade_shape_mount_target_request_response.go | 8 +- .../filestorage/validate_key_tabs_details.go | 8 +- .../validate_key_tabs_request_response.go | 6 +- .../validate_key_tabs_response_details.go | 6 +- .../activate_domain_request_response.go | 8 +- ...tivate_mfa_totp_device_request_response.go | 6 +- .../v65/identity/add_lock_details.go | 6 +- .../add_tag_default_lock_request_response.go | 6 +- ...add_tag_namespace_lock_request_response.go | 6 +- .../v65/identity/add_user_to_group_details.go | 6 +- .../add_user_to_group_request_response.go | 6 +- .../allowed_domain_license_type_summary.go | 6 +- .../oracle/oci-go-sdk/v65/identity/api_key.go | 10 +- ...mble_effective_tag_set_request_response.go | 6 +- .../oci-go-sdk/v65/identity/auth_token.go | 8 +- .../v65/identity/authentication_policy.go | 6 +- .../v65/identity/availability_domain.go | 8 +- .../identity/base_tag_definition_validator.go | 12 +- .../v65/identity/bulk_action_resource.go | 6 +- .../v65/identity/bulk_action_resource_type.go | 6 +- .../bulk_action_resource_type_collection.go | 6 +- .../identity/bulk_delete_resources_details.go | 6 +- .../bulk_delete_resources_request_response.go | 8 +- .../v65/identity/bulk_delete_tags_details.go | 6 +- .../bulk_delete_tags_request_response.go | 8 +- .../identity/bulk_edit_operation_details.go | 8 +- .../v65/identity/bulk_edit_resource.go | 6 +- .../v65/identity/bulk_edit_tags_details.go | 6 +- .../bulk_edit_tags_request_response.go | 8 +- .../identity/bulk_edit_tags_resource_type.go | 10 +- ...bulk_edit_tags_resource_type_collection.go | 6 +- .../identity/bulk_move_resources_details.go | 8 +- .../bulk_move_resources_request_response.go | 8 +- ...e_delete_tag_namespace_request_response.go | 8 +- .../change_domain_compartment_details.go | 8 +- ...nge_domain_compartment_request_response.go | 8 +- .../change_domain_license_type_details.go | 6 +- ...ge_domain_license_type_request_response.go | 8 +- ...change_tag_namespace_compartment_detail.go | 6 +- ..._namespace_compartment_request_response.go | 6 +- .../change_tas_domain_license_type_details.go | 6 +- .../oci-go-sdk/v65/identity/compartment.go | 16 +- .../v65/identity/create_api_key_details.go | 6 +- .../v65/identity/create_auth_token_details.go | 6 +- .../create_auth_token_request_response.go | 6 +- .../identity/create_compartment_details.go | 10 +- .../create_compartment_request_response.go | 6 +- .../create_customer_secret_key_details.go | 6 +- ...te_customer_secret_key_request_response.go | 6 +- .../identity/create_db_credential_details.go | 6 +- .../create_db_credential_request_response.go | 6 +- .../v65/identity/create_domain_details.go | 12 +- .../create_domain_request_response.go | 8 +- .../identity/create_dynamic_group_details.go | 12 +- .../create_dynamic_group_request_response.go | 6 +- .../v65/identity/create_group_details.go | 10 +- .../identity/create_group_request_response.go | 6 +- .../create_identity_provider_details.go | 12 +- ...eate_identity_provider_request_response.go | 6 +- .../create_idp_group_mapping_details.go | 6 +- ...eate_idp_group_mapping_request_response.go | 6 +- ...create_mfa_totp_device_request_response.go | 6 +- .../identity/create_network_source_details.go | 10 +- .../create_network_source_request_response.go | 6 +- ...reate_o_auth2_client_credential_details.go | 6 +- ...auth_client_credential_request_response.go | 6 +- ..._or_reset_u_i_password_request_response.go | 6 +- .../v65/identity/create_policy_details.go | 14 +- .../create_policy_request_response.go | 6 +- .../create_region_subscription_details.go | 8 +- ...te_region_subscription_request_response.go | 6 +- .../create_saml2_identity_provider_details.go | 10 +- .../create_smtp_credential_details.go | 6 +- ...create_smtp_credential_request_response.go | 6 +- .../identity/create_swift_password_details.go | 6 +- .../create_swift_password_request_response.go | 6 +- .../identity/create_tag_default_details.go | 6 +- .../create_tag_default_request_response.go | 6 +- .../v65/identity/create_tag_details.go | 10 +- .../identity/create_tag_namespace_details.go | 10 +- .../create_tag_namespace_request_response.go | 6 +- .../identity/create_tag_request_response.go | 6 +- .../v65/identity/create_user_details.go | 10 +- .../identity/create_user_request_response.go | 6 +- .../v65/identity/customer_secret_key.go | 10 +- .../identity/customer_secret_key_summary.go | 6 +- .../oci-go-sdk/v65/identity/db_credential.go | 6 +- .../v65/identity/db_credential_summary.go | 6 +- .../deactivate_domain_request_response.go | 8 +- .../default_tag_definition_validator.go | 6 +- .../delete_api_key_request_response.go | 6 +- .../delete_auth_token_request_response.go | 6 +- .../delete_compartment_request_response.go | 8 +- ...te_customer_secret_key_request_response.go | 6 +- .../delete_db_credential_request_response.go | 6 +- .../delete_domain_request_response.go | 8 +- .../delete_dynamic_group_request_response.go | 6 +- .../identity/delete_group_request_response.go | 6 +- ...lete_identity_provider_request_response.go | 6 +- ...lete_idp_group_mapping_request_response.go | 6 +- ...delete_mfa_totp_device_request_response.go | 6 +- .../delete_network_source_request_response.go | 6 +- ...auth_client_credential_request_response.go | 6 +- .../delete_policy_request_response.go | 6 +- ...delete_smtp_credential_request_response.go | 6 +- .../delete_swift_password_request_response.go | 6 +- .../delete_tag_default_request_response.go | 6 +- .../delete_tag_namespace_request_response.go | 6 +- .../identity/delete_tag_request_response.go | 8 +- .../identity/delete_user_request_response.go | 6 +- .../oracle/oci-go-sdk/v65/identity/domain.go | 12 +- .../v65/identity/domain_replication.go | 6 +- .../v65/identity/domain_replication_states.go | 6 +- .../oci-go-sdk/v65/identity/domain_summary.go | 10 +- .../oci-go-sdk/v65/identity/dynamic_group.go | 14 +- .../enable_replication_to_region_details.go | 8 +- ..._replication_to_region_request_response.go | 8 +- .../identity/enum_tag_definition_validator.go | 6 +- .../oci-go-sdk/v65/identity/fault_domain.go | 6 +- .../v65/identity/fully_qualified_scope.go | 6 +- .../generate_totp_seed_request_response.go | 6 +- ..._authentication_policy_request_response.go | 6 +- .../get_compartment_request_response.go | 6 +- .../identity/get_domain_request_response.go | 6 +- .../get_dynamic_group_request_response.go | 6 +- .../identity/get_group_request_response.go | 6 +- .../get_iam_work_request_request_response.go | 6 +- .../get_identity_provider_request_response.go | 6 +- .../get_idp_group_mapping_request_response.go | 6 +- .../get_mfa_totp_device_request_response.go | 6 +- .../get_network_source_request_response.go | 6 +- .../identity/get_policy_request_response.go | 6 +- ..._standard_tag_template_request_response.go | 6 +- .../get_tag_default_request_response.go | 6 +- .../get_tag_namespace_request_response.go | 6 +- .../v65/identity/get_tag_request_response.go | 6 +- ...t_tagging_work_request_request_response.go | 6 +- .../identity/get_tenancy_request_response.go | 6 +- ..._user_group_membership_request_response.go | 6 +- .../v65/identity/get_user_request_response.go | 6 +- ...i_password_information_request_response.go | 6 +- .../get_work_request_request_response.go | 6 +- .../oracle/oci-go-sdk/v65/identity/group.go | 16 +- .../v65/identity/iam_work_request.go | 6 +- .../iam_work_request_error_summary.go | 6 +- .../identity/iam_work_request_log_summary.go | 6 +- .../v65/identity/iam_work_request_resource.go | 6 +- .../v65/identity/iam_work_request_summary.go | 6 +- .../v65/identity/identity_client.go | 393 ++-- .../v65/identity/identity_provider.go | 16 +- .../identity_provider_group_summary.go | 6 +- .../v65/identity/idp_group_mapping.go | 8 +- .../identity/import_standard_tags_details.go | 6 +- .../import_standard_tags_request_response.go | 8 +- ...d_domain_license_types_request_response.go | 6 +- .../list_api_keys_request_response.go | 6 +- .../list_auth_tokens_request_response.go | 6 +- ...t_availability_domains_request_response.go | 6 +- ..._action_resource_types_request_response.go | 6 +- ...it_tags_resource_types_request_response.go | 6 +- .../list_compartments_request_response.go | 6 +- ...ist_cost_tracking_tags_request_response.go | 8 +- ...t_customer_secret_keys_request_response.go | 6 +- .../list_db_credentials_request_response.go | 6 +- .../identity/list_domains_request_response.go | 6 +- .../list_dynamic_groups_request_response.go | 6 +- .../list_fault_domains_request_response.go | 6 +- .../identity/list_groups_request_response.go | 6 +- ...am_work_request_errors_request_response.go | 8 +- ..._iam_work_request_logs_request_response.go | 6 +- ...list_iam_work_requests_request_response.go | 6 +- ...entity_provider_groups_request_response.go | 6 +- ...ist_identity_providers_request_response.go | 6 +- ...ist_idp_group_mappings_request_response.go | 6 +- .../list_mfa_totp_devices_request_response.go | 6 +- .../list_network_sources_request_response.go | 6 +- ...uth_client_credentials_request_response.go | 6 +- .../list_policies_request_response.go | 6 +- ...t_region_subscriptions_request_response.go | 6 +- .../identity/list_regions_request_response.go | 6 +- .../list_smtp_credentials_request_response.go | 6 +- ...tandard_tag_namespaces_request_response.go | 6 +- .../list_swift_passwords_request_response.go | 6 +- .../list_tag_defaults_request_response.go | 6 +- .../list_tag_namespaces_request_response.go | 6 +- ...ng_work_request_errors_request_response.go | 6 +- ...ging_work_request_logs_request_response.go | 6 +- ..._tagging_work_requests_request_response.go | 6 +- .../identity/list_tags_request_response.go | 6 +- ...user_group_memberships_request_response.go | 6 +- .../identity/list_users_request_response.go | 6 +- .../list_work_requests_request_response.go | 6 +- .../v65/identity/mfa_totp_device.go | 8 +- .../v65/identity/mfa_totp_device_summary.go | 6 +- .../oci-go-sdk/v65/identity/mfa_totp_token.go | 6 +- .../v65/identity/move_compartment_details.go | 8 +- .../move_compartment_request_response.go | 8 +- .../oci-go-sdk/v65/identity/network_policy.go | 6 +- .../v65/identity/network_sources.go | 12 +- .../v65/identity/network_sources_summary.go | 12 +- .../network_sources_virtual_source_list.go | 6 +- .../v65/identity/o_auth2_client_credential.go | 6 +- .../o_auth2_client_credential_summary.go | 6 +- .../v65/identity/password_policy.go | 6 +- .../oracle/oci-go-sdk/v65/identity/policy.go | 14 +- .../recover_compartment_request_response.go | 6 +- .../oracle/oci-go-sdk/v65/identity/region.go | 14 +- .../v65/identity/region_subscription.go | 14 +- .../v65/identity/remove_lock_details.go | 6 +- ...emove_tag_default_lock_request_response.go | 6 +- ...ove_tag_namespace_lock_request_response.go | 6 +- ...remove_user_from_group_request_response.go | 6 +- .../v65/identity/replicated_region_details.go | 8 +- .../reset_idp_scim_client_request_response.go | 6 +- .../oci-go-sdk/v65/identity/resource_lock.go | 6 +- .../v65/identity/saml2_identity_provider.go | 12 +- .../v65/identity/scim_client_credentials.go | 6 +- .../v65/identity/smtp_credential.go | 8 +- .../v65/identity/smtp_credential_summary.go | 8 +- .../standard_tag_definition_template.go | 6 +- .../standard_tag_namespace_template.go | 6 +- ...standard_tag_namespace_template_summary.go | 6 +- .../oci-go-sdk/v65/identity/swift_password.go | 8 +- .../oracle/oci-go-sdk/v65/identity/tag.go | 14 +- .../oci-go-sdk/v65/identity/tag_default.go | 8 +- .../v65/identity/tag_default_summary.go | 6 +- .../oci-go-sdk/v65/identity/tag_namespace.go | 14 +- .../v65/identity/tag_namespace_summary.go | 12 +- .../oci-go-sdk/v65/identity/tag_summary.go | 12 +- .../v65/identity/tagging_work_request.go | 6 +- .../tagging_work_request_error_summary.go | 6 +- .../tagging_work_request_log_summary.go | 6 +- .../identity/tagging_work_request_summary.go | 6 +- .../oracle/oci-go-sdk/v65/identity/tenancy.go | 14 +- .../oci-go-sdk/v65/identity/ui_password.go | 8 +- .../v65/identity/ui_password_information.go | 8 +- .../v65/identity/update_auth_token_details.go | 6 +- .../update_auth_token_request_response.go | 6 +- .../update_authentication_policy_details.go | 6 +- ..._authentication_policy_request_response.go | 6 +- .../identity/update_compartment_details.go | 10 +- .../update_compartment_request_response.go | 6 +- .../update_customer_secret_key_details.go | 6 +- ...te_customer_secret_key_request_response.go | 6 +- .../v65/identity/update_domain_details.go | 10 +- .../update_domain_request_response.go | 8 +- .../identity/update_dynamic_group_details.go | 12 +- .../update_dynamic_group_request_response.go | 6 +- .../v65/identity/update_group_details.go | 10 +- .../identity/update_group_request_response.go | 6 +- .../update_identity_provider_details.go | 12 +- ...date_identity_provider_request_response.go | 6 +- .../update_idp_group_mapping_details.go | 6 +- ...date_idp_group_mapping_request_response.go | 6 +- .../identity/update_network_source_details.go | 10 +- .../update_network_source_request_response.go | 6 +- ...pdate_o_auth2_client_credential_details.go | 6 +- ...auth_client_credential_request_response.go | 6 +- .../v65/identity/update_policy_details.go | 14 +- .../update_policy_request_response.go | 6 +- .../update_saml2_identity_provider_details.go | 10 +- .../update_smtp_credential_details.go | 6 +- ...update_smtp_credential_request_response.go | 6 +- .../v65/identity/update_state_details.go | 6 +- .../identity/update_swift_password_details.go | 6 +- .../update_swift_password_request_response.go | 6 +- .../identity/update_tag_default_details.go | 6 +- .../update_tag_default_request_response.go | 6 +- .../v65/identity/update_tag_details.go | 12 +- .../identity/update_tag_namespace_details.go | 12 +- .../update_tag_namespace_request_response.go | 6 +- .../identity/update_tag_request_response.go | 6 +- .../update_user_capabilities_details.go | 6 +- ...date_user_capabilities_request_response.go | 6 +- .../v65/identity/update_user_details.go | 10 +- .../identity/update_user_request_response.go | 6 +- .../update_user_state_request_response.go | 6 +- .../upload_api_key_request_response.go | 6 +- .../oracle/oci-go-sdk/v65/identity/user.go | 18 +- .../v65/identity/user_capabilities.go | 6 +- .../v65/identity/user_group_membership.go | 6 +- .../oci-go-sdk/v65/identity/work_request.go | 6 +- .../v65/identity/work_request_error.go | 6 +- .../v65/identity/work_request_log_entry.go | 6 +- .../v65/identity/work_request_resource.go | 6 +- .../v65/identity/work_request_summary.go | 6 +- .../oci-go-sdk/v65/loadbalancer/action.go | 8 +- .../add_http_request_header_rule.go | 6 +- .../add_http_response_header_rule.go | 6 +- .../oci-go-sdk/v65/loadbalancer/allow_rule.go | 6 +- .../oci-go-sdk/v65/loadbalancer/backend.go | 14 +- .../v65/loadbalancer/backend_details.go | 14 +- .../v65/loadbalancer/backend_health.go | 6 +- .../v65/loadbalancer/backend_set.go | 13 +- .../v65/loadbalancer/backend_set_details.go | 15 +- .../v65/loadbalancer/backend_set_health.go | 6 +- .../v65/loadbalancer/certificate.go | 8 +- .../v65/loadbalancer/certificate_details.go | 8 +- ...hange_load_balancer_compartment_details.go | 8 +- ...d_balancer_compartment_request_response.go | 10 +- .../loadbalancer/connection_configuration.go | 8 +- .../control_access_using_http_methods_rule.go | 8 +- .../loadbalancer/create_backend_details.go | 16 +- .../create_backend_request_response.go | 10 +- .../create_backend_set_details.go | 15 +- .../create_backend_set_request_response.go | 10 +- .../create_certificate_details.go | 8 +- .../create_certificate_request_response.go | 10 +- .../loadbalancer/create_hostname_details.go | 8 +- .../create_hostname_request_response.go | 10 +- .../loadbalancer/create_listener_details.go | 13 +- .../create_listener_request_response.go | 10 +- .../create_load_balancer_details.go | 27 +- .../create_load_balancer_request_response.go | 8 +- .../create_path_route_set_details.go | 6 +- .../create_path_route_set_request_response.go | 10 +- .../create_routing_policy_details.go | 6 +- .../create_routing_policy_request_response.go | 10 +- .../loadbalancer/create_rule_set_details.go | 6 +- .../create_rule_set_request_response.go | 10 +- ...ate_s_s_l_cipher_suite_request_response.go | 10 +- .../create_ssl_cipher_suite_details.go | 10 +- .../delete_backend_request_response.go | 10 +- .../delete_backend_set_request_response.go | 10 +- .../delete_certificate_request_response.go | 10 +- .../delete_hostname_request_response.go | 10 +- .../delete_listener_request_response.go | 10 +- .../delete_load_balancer_request_response.go | 10 +- .../delete_path_route_set_request_response.go | 10 +- .../delete_routing_policy_request_response.go | 10 +- .../delete_rule_set_request_response.go | 10 +- ...ete_s_s_l_cipher_suite_request_response.go | 10 +- .../extend_http_request_header_value_rule.go | 6 +- .../extend_http_response_header_value_rule.go | 6 +- .../loadbalancer/forward_to_backend_set.go | 6 +- .../get_backend_health_request_response.go | 8 +- .../get_backend_request_response.go | 8 +- ...get_backend_set_health_request_response.go | 8 +- .../get_backend_set_request_response.go | 8 +- .../get_health_checker_request_response.go | 8 +- .../get_hostname_request_response.go | 8 +- ...t_load_balancer_health_request_response.go | 8 +- .../get_load_balancer_request_response.go | 8 +- .../get_path_route_set_request_response.go | 8 +- .../get_routing_policy_request_response.go | 8 +- .../get_rule_set_request_response.go | 8 +- ...get_s_s_l_cipher_suite_request_response.go | 8 +- .../get_work_request_request_response.go | 8 +- .../v65/loadbalancer/health_check_result.go | 8 +- .../v65/loadbalancer/health_checker.go | 8 +- .../loadbalancer/health_checker_details.go | 6 +- .../oci-go-sdk/v65/loadbalancer/hostname.go | 8 +- .../v65/loadbalancer/hostname_details.go | 8 +- .../v65/loadbalancer/http_header_rule.go | 6 +- .../oci-go-sdk/v65/loadbalancer/ip_address.go | 6 +- .../ip_based_max_connections_rule.go | 6 +- .../v65/loadbalancer/ip_max_connections.go | 6 +- ...ssion_persistence_configuration_details.go | 8 +- .../list_backend_sets_request_response.go | 8 +- .../list_backends_request_response.go | 8 +- .../list_certificates_request_response.go | 8 +- .../list_hostnames_request_response.go | 8 +- .../list_listener_rules_request_response.go | 8 +- ..._load_balancer_healths_request_response.go | 14 +- .../list_load_balancers_request_response.go | 14 +- .../list_path_route_sets_request_response.go | 8 +- .../list_policies_request_response.go | 14 +- .../list_protocols_request_response.go | 14 +- .../list_routing_policies_request_response.go | 14 +- .../list_rule_sets_request_response.go | 8 +- ...st_s_s_l_cipher_suites_request_response.go | 8 +- .../list_shapes_request_response.go | 14 +- .../list_work_requests_request_response.go | 14 +- .../oci-go-sdk/v65/loadbalancer/listener.go | 13 +- .../v65/loadbalancer/listener_details.go | 11 +- .../v65/loadbalancer/listener_rule_summary.go | 6 +- .../v65/loadbalancer/load_balancer.go | 85 +- .../v65/loadbalancer/load_balancer_health.go | 6 +- .../load_balancer_health_summary.go | 8 +- .../v65/loadbalancer/load_balancer_policy.go | 8 +- .../loadbalancer/load_balancer_protocol.go | 6 +- .../v65/loadbalancer/load_balancer_shape.go | 6 +- .../v65/loadbalancer/loadbalancer_client.go | 144 +- .../v65/loadbalancer/path_match_condition.go | 6 +- .../v65/loadbalancer/path_match_type.go | 8 +- .../oci-go-sdk/v65/loadbalancer/path_route.go | 6 +- .../v65/loadbalancer/path_route_set.go | 8 +- .../loadbalancer/path_route_set_details.go | 6 +- .../v65/loadbalancer/redirect_rule.go | 6 +- .../v65/loadbalancer/redirect_uri.go | 6 +- .../remove_http_request_header_rule.go | 6 +- .../remove_http_response_header_rule.go | 6 +- .../v65/loadbalancer/reserved_ip.go | 7 +- .../v65/loadbalancer/routing_policy.go | 6 +- .../loadbalancer/routing_policy_details.go | 6 +- .../v65/loadbalancer/routing_rule.go | 6 +- .../oci-go-sdk/v65/loadbalancer/rule.go | 8 +- .../v65/loadbalancer/rule_condition.go | 8 +- .../oci-go-sdk/v65/loadbalancer/rule_set.go | 8 +- .../v65/loadbalancer/rule_set_details.go | 6 +- ...ssion_persistence_configuration_details.go | 8 +- .../v65/loadbalancer/shape_details.go | 6 +- .../source_ip_address_condition.go | 6 +- .../loadbalancer/source_vcn_id_condition.go | 8 +- .../source_vcn_ip_address_condition.go | 6 +- .../v65/loadbalancer/ssl_cipher_suite.go | 10 +- .../loadbalancer/ssl_cipher_suite_details.go | 10 +- .../v65/loadbalancer/ssl_configuration.go | 6 +- .../loadbalancer/ssl_configuration_details.go | 6 +- .../loadbalancer/update_backend_details.go | 14 +- .../update_backend_request_response.go | 10 +- .../update_backend_set_details.go | 15 +- .../update_backend_set_request_response.go | 10 +- .../update_health_checker_details.go | 6 +- .../update_health_checker_request_response.go | 10 +- .../loadbalancer/update_hostname_details.go | 10 +- .../update_hostname_request_response.go | 10 +- .../loadbalancer/update_listener_details.go | 11 +- .../update_listener_request_response.go | 10 +- .../update_load_balancer_details.go | 70 +- .../update_load_balancer_request_response.go | 10 +- .../update_load_balancer_shape_details.go | 6 +- ...te_load_balancer_shape_request_response.go | 10 +- .../update_network_security_groups_details.go | 8 +- ...etwork_security_groups_request_response.go | 10 +- .../update_path_route_set_details.go | 6 +- .../update_path_route_set_request_response.go | 10 +- .../update_routing_policy_details.go | 6 +- .../update_routing_policy_request_response.go | 10 +- .../loadbalancer/update_rule_set_details.go | 6 +- .../update_rule_set_request_response.go | 10 +- ...ate_s_s_l_cipher_suite_request_response.go | 10 +- .../update_ssl_cipher_suite_details.go | 6 +- .../v65/loadbalancer/work_request.go | 14 +- .../v65/loadbalancer/work_request_error.go | 6 +- .../v65/monitoring/aggregated_datapoint.go | 6 +- .../oracle/oci-go-sdk/v65/monitoring/alarm.go | 42 +- .../alarm_dimension_states_collection.go | 8 +- .../alarm_dimension_states_entry.go | 10 +- .../monitoring/alarm_history_collection.go | 8 +- .../v65/monitoring/alarm_history_entry.go | 10 +- .../v65/monitoring/alarm_override.go | 16 +- .../v65/monitoring/alarm_status_summary.go | 20 +- .../v65/monitoring/alarm_summary.go | 40 +- .../v65/monitoring/alarm_suppression.go | 10 +- .../alarm_suppression_alarm_target.go | 8 +- .../alarm_suppression_collection.go | 6 +- .../alarm_suppression_compartment_target.go | 8 +- .../alarm_suppression_history_item.go | 8 +- ...arm_suppression_history_item_collection.go | 6 +- .../monitoring/alarm_suppression_summary.go | 10 +- .../monitoring/alarm_suppression_target.go | 8 +- .../change_alarm_compartment_details.go | 8 +- ...ange_alarm_compartment_request_response.go | 8 +- .../v65/monitoring/create_alarm_details.go | 32 +- .../create_alarm_request_response.go | 6 +- .../create_alarm_suppression_details.go | 6 +- ...eate_alarm_suppression_request_response.go | 6 +- .../oci-go-sdk/v65/monitoring/datapoint.go | 6 +- .../delete_alarm_request_response.go | 8 +- ...lete_alarm_suppression_request_response.go | 8 +- .../v65/monitoring/failed_metric_record.go | 6 +- .../get_alarm_history_request_response.go | 14 +- .../monitoring/get_alarm_request_response.go | 8 +- .../get_alarm_suppression_request_response.go | 8 +- ...ist_alarm_suppressions_request_response.go | 18 +- .../list_alarms_request_response.go | 14 +- .../list_alarms_status_request_response.go | 18 +- .../v65/monitoring/list_metrics_details.go | 6 +- .../list_metrics_request_response.go | 14 +- .../oci-go-sdk/v65/monitoring/metric.go | 10 +- .../oci-go-sdk/v65/monitoring/metric_data.go | 12 +- .../v65/monitoring/metric_data_details.go | 8 +- .../v65/monitoring/monitoring_client.go | 124 +- .../monitoring/post_metric_data_details.go | 6 +- .../post_metric_data_request_response.go | 6 +- .../post_metric_data_response_details.go | 6 +- .../oci-go-sdk/v65/monitoring/recurrence.go | 6 +- ...move_alarm_suppression_request_response.go | 8 +- .../retrieve_dimension_states_details.go | 6 +- ...rieve_dimension_states_request_response.go | 14 +- ...arize_alarm_suppression_history_details.go | 6 +- ...rm_suppression_history_request_response.go | 16 +- .../summarize_metrics_data_details.go | 10 +- ...summarize_metrics_data_request_response.go | 8 +- .../oci-go-sdk/v65/monitoring/suppression.go | 8 +- .../v65/monitoring/suppression_condition.go | 8 +- .../v65/monitoring/update_alarm_details.go | 32 +- .../update_alarm_request_response.go | 8 +- .../v65/networkloadbalancer/action_type.go | 2 +- .../v65/networkloadbalancer/backend.go | 10 +- .../networkloadbalancer/backend_collection.go | 4 +- .../networkloadbalancer/backend_details.go | 6 +- .../v65/networkloadbalancer/backend_health.go | 4 +- .../backend_operational_status.go | 88 + .../v65/networkloadbalancer/backend_set.go | 12 +- .../backend_set_collection.go | 4 +- .../backend_set_details.go | 12 +- .../networkloadbalancer/backend_set_health.go | 4 +- .../backend_set_summary.go | 12 +- .../networkloadbalancer/backend_summary.go | 10 +- ...twork_load_balancer_compartment_details.go | 6 +- ...d_balancer_compartment_request_response.go | 8 +- .../create_backend_details.go | 10 +- .../create_backend_request_response.go | 8 +- .../create_backend_set_details.go | 12 +- .../create_backend_set_request_response.go | 8 +- .../create_listener_details.go | 8 +- .../create_listener_request_response.go | 8 +- .../create_network_load_balancer_details.go | 24 +- ..._network_load_balancer_request_response.go | 6 +- .../delete_backend_request_response.go | 8 +- .../delete_backend_set_request_response.go | 8 +- .../delete_listener_request_response.go | 8 +- ..._network_load_balancer_request_response.go | 8 +- .../dns_health_check_query_classes.go | 2 +- .../dns_health_check_query_types.go | 2 +- .../dns_health_check_r_codes.go | 2 +- .../dns_health_check_transport_protocols.go | 2 +- .../dns_health_checker_details.go | 4 +- .../get_backend_health_request_response.go | 8 +- ...end_operational_status_request_response.go | 102 + .../get_backend_request_response.go | 8 +- ...get_backend_set_health_request_response.go | 8 +- .../get_backend_set_request_response.go | 8 +- .../get_health_checker_request_response.go | 8 +- .../get_listener_request_response.go | 8 +- ...k_load_balancer_health_request_response.go | 8 +- ..._network_load_balancer_request_response.go | 8 +- .../get_work_request_request_response.go | 6 +- .../hcs_infra_ip_version.go | 2 +- .../health_check_protocols.go | 2 +- .../health_check_result.go | 4 +- .../v65/networkloadbalancer/health_checker.go | 6 +- .../health_checker_details.go | 6 +- .../v65/networkloadbalancer/ip_address.go | 4 +- .../v65/networkloadbalancer/ip_version.go | 2 +- .../networkloadbalancer/lifecycle_state.go | 2 +- .../list_backend_sets_request_response.go | 12 +- .../list_backends_request_response.go | 12 +- .../list_listeners_request_response.go | 12 +- ..._load_balancer_healths_request_response.go | 12 +- ...oad_balancers_policies_request_response.go | 10 +- ...ad_balancers_protocols_request_response.go | 10 +- ...network_load_balancers_request_response.go | 12 +- ...st_work_request_errors_request_response.go | 12 +- ...list_work_request_logs_request_response.go | 12 +- .../list_work_requests_request_response.go | 12 +- .../v65/networkloadbalancer/listener.go | 8 +- .../listener_collection.go | 4 +- .../networkloadbalancer/listener_details.go | 8 +- .../networkloadbalancer/listener_protocols.go | 2 +- .../networkloadbalancer/listener_summary.go | 8 +- .../network_load_balancer.go | 30 +- .../network_load_balancer_collection.go | 4 +- .../network_load_balancer_health.go | 4 +- ...network_load_balancer_health_collection.go | 4 +- .../network_load_balancer_health_summary.go | 6 +- .../network_load_balancer_summary.go | 22 +- ...etwork_load_balancers_policy_collection.go | 4 +- .../network_load_balancers_policy_summary.go | 2 +- ...work_load_balancers_protocol_collection.go | 4 +- ...network_load_balancers_protocol_summary.go | 2 +- .../network_load_balancing_policy.go | 2 +- .../networkloadbalancer_client.go | 130 +- .../v65/networkloadbalancer/nlb_ip_version.go | 2 +- .../networkloadbalancer/operation_status.go | 2 +- .../v65/networkloadbalancer/operation_type.go | 2 +- .../v65/networkloadbalancer/reserved_ip.go | 4 +- .../v65/networkloadbalancer/sort_order.go | 2 +- .../update_backend_details.go | 8 +- .../update_backend_request_response.go | 8 +- .../update_backend_set_details.go | 12 +- .../update_backend_set_request_response.go | 8 +- .../update_health_checker_details.go | 4 +- .../update_health_checker_request_response.go | 8 +- .../update_listener_details.go | 8 +- .../update_listener_request_response.go | 8 +- .../update_network_load_balancer_details.go | 10 +- ..._network_load_balancer_request_response.go | 8 +- .../update_network_security_groups_details.go | 6 +- ...etwork_security_groups_request_response.go | 8 +- .../v65/networkloadbalancer/work_request.go | 4 +- .../work_request_collection.go | 4 +- .../networkloadbalancer/work_request_error.go | 6 +- .../work_request_error_collection.go | 4 +- .../work_request_log_entry.go | 4 +- .../work_request_log_entry_collection.go | 4 +- .../work_request_resource.go | 4 +- .../work_request_summary.go | 4 +- vendor/github.com/youmark/pkcs8/.gitignore | 23 + vendor/github.com/youmark/pkcs8/LICENSE | 21 + vendor/github.com/youmark/pkcs8/README | 1 + vendor/github.com/youmark/pkcs8/README.md | 22 + vendor/github.com/youmark/pkcs8/cipher.go | 60 + .../github.com/youmark/pkcs8/cipher_3des.go | 24 + vendor/github.com/youmark/pkcs8/cipher_aes.go | 84 + vendor/github.com/youmark/pkcs8/kdf_pbkdf2.go | 91 + vendor/github.com/youmark/pkcs8/kdf_scrypt.go | 62 + vendor/github.com/youmark/pkcs8/pkcs8.go | 309 +++ vendor/modules.txt | 7 +- 2090 files changed, 30062 insertions(+), 12238 deletions(-) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/common/auth/oauth2_provider.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_node.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cycle_mode.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/image.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_eviction_settings.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/reboot_cluster_node_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/reboot_cluster_node_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/replace_boot_volume_cluster_node_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/replace_boot_volume_cluster_node_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv4_subnet_cidr_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv4_subnet_cidr_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_compute_host_group_host_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_compute_host_group_host_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_byoip_range.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_origin_asn.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_bin.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_bin_preview.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoasn_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoasn_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_cluster_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_cluster_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_fabric_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_fabric_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_group_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_group_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_placement_constraint_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_instance_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_instance_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_configuration_check_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_configuration_data.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/configuration_state.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoasn_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoasn_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_gpu_memory_cluster_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_gpu_memory_cluster_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_host_group_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_host_group_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoasn_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_gpu_memory_cluster_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_host_group_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/detach_compute_host_group_host_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/detach_compute_host_group_host_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_customer.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_customer_resource.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_promotion_status_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoasn_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_gpu_memory_cluster_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_gpu_memory_fabric_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_host_group_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_host_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/host_group_configuration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/host_group_placement_constraint_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_host_group_placement_constraint_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_placement_constraint_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_lifecycle_actions_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_lifecycle_management_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_pre_termination_action_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_pre_termination_action_handle_timeout_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6_vnic_detach_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_licensing_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_windows_licensing_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/licensing_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoasns_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_cluster_instances_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_clusters_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_fabrics_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_host_groups_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_hosts_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/memory_fabric_preferences_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/modify_ipv4_subnet_cidr_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/modify_ipv4_subnet_cidr_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/placement_constraint_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_vnic_detach_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/recycle_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv4_subnet_cidr_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv4_subnet_cidr_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_to_oracle_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/supported_capabilities.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/termination_proceed_instance_pool_instance_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/termination_proceed_instance_pool_instance_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoasn_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoasn_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_cluster_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_cluster_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_fabric_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_fabric_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_group_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_group_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_licensing_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_windows_licensing_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoasn_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_quota_rule_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_quota_rule_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_quota_rule_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_quota_rule_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_quota_rules_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/quota_rule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/quota_rule_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/toggle_quota_rules_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/toggle_quota_rules_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_quota_rule_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_quota_rule_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_operational_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_operational_status_request_response.go create mode 100644 vendor/github.com/youmark/pkcs8/.gitignore create mode 100644 vendor/github.com/youmark/pkcs8/LICENSE create mode 100644 vendor/github.com/youmark/pkcs8/README create mode 100644 vendor/github.com/youmark/pkcs8/README.md create mode 100644 vendor/github.com/youmark/pkcs8/cipher.go create mode 100644 vendor/github.com/youmark/pkcs8/cipher_3des.go create mode 100644 vendor/github.com/youmark/pkcs8/cipher_aes.go create mode 100644 vendor/github.com/youmark/pkcs8/kdf_pbkdf2.go create mode 100644 vendor/github.com/youmark/pkcs8/kdf_scrypt.go create mode 100644 vendor/github.com/youmark/pkcs8/pkcs8.go diff --git a/go.mod b/go.mod index a047265e5a..518f9355bf 100644 --- a/go.mod +++ b/go.mod @@ -44,7 +44,7 @@ require ( github.com/kubernetes-csi/external-snapshotter/client/v6 v6.3.0 github.com/onsi/ginkgo v1.16.5 github.com/onsi/gomega v1.36.2 - github.com/oracle/oci-go-sdk/v65 v65.79.0 + github.com/oracle/oci-go-sdk/v65 v65.105.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.22.0 github.com/spf13/cobra v1.9.1 // indirect @@ -196,6 +196,7 @@ require ( github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect github.com/xlab/treeprint v1.2.0 // indirect + github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect go.etcd.io/etcd/api/v3 v3.5.21 // indirect go.etcd.io/etcd/client/pkg/v3 v3.5.21 // indirect go.etcd.io/etcd/client/v3 v3.5.21 // indirect diff --git a/go.sum b/go.sum index c08df74d65..d3b7d77bd9 100644 --- a/go.sum +++ b/go.sum @@ -195,7 +195,6 @@ github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZ github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gofrs/flock v0.12.1 h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E= github.com/gofrs/flock v0.12.1/go.mod h1:9zxTsyu5xtJ9DK+1tFZyibEV7y3uwDxPPfbxeeHCoD0= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= @@ -447,8 +446,8 @@ github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJw github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M= github.com/opencontainers/selinux v1.11.1 h1:nHFvthhM0qY8/m+vfhJylliSshm8G1jJ2jDMcgULaH8= github.com/opencontainers/selinux v1.11.1/go.mod h1:E5dMC3VPuVvVHDYmi78qvhJp8+M586T4DlDRYpFkyec= -github.com/oracle/oci-go-sdk/v65 v65.79.0 h1:Tv9L1XTKWkdXtSViMbP+dA93WunquvW++/2s5pOvOgU= -github.com/oracle/oci-go-sdk/v65 v65.79.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= +github.com/oracle/oci-go-sdk/v65 v65.105.0 h1:VN3IkW4kwyOOIrjrg7Lh1QGG/sou54c8dqTZB2THeTE= +github.com/oracle/oci-go-sdk/v65 v65.105.0/go.mod h1:oB8jFGVc/7/zJ+DbleE8MzGHjhs2ioCz5stRTdZdIcY= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= @@ -484,8 +483,8 @@ github.com/redis/go-redis/v9 v9.7.3 h1:YpPyAayJV+XErNsatSElgRZZVCwXX9QzkKYNvO7x0 github.com/redis/go-redis/v9 v9.7.3/go.mod h1:bGUrSggJ9X9GUmZpZNEOQKaANxSGgOEBRltRTZHSvrA= 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/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= -github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= github.com/rubenv/sql-migrate v1.8.0 h1:dXnYiJk9k3wetp7GfQbKJcPHjVJL6YK19tKj8t2Ns0o= github.com/rubenv/sql-migrate v1.8.0/go.mod h1:F2bGFBwCU+pnmbtNYDeKvSuvL6lBVtXDXUUv5t+u1qw= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= @@ -535,7 +534,6 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= @@ -556,6 +554,8 @@ github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510 h1:S2dVYn90KE98chq github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ= github.com/xlab/treeprint v1.2.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0= +github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 h1:ilQV1hzziu+LLM3zUTJ0trRztfwgjqKnBWNtSRkbmwM= +github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78/go.mod h1:aL8wCCfTfSfmXjznFBSZNN13rSJjlIOI1fUNAtF7rmI= 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= @@ -807,7 +807,6 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw= golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/certificate_retriever.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/certificate_retriever.go index af3c772e16..23fed45c28 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/auth/configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/configuration.go index 8c3bc3f135..37da71796b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/auth/dispatcher_modifier.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/dispatcher_modifier.go index c570f20a74..3ef8a33d5d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/dispatcher_modifier.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/dispatcher_modifier.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/auth/federation_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/federation_client.go index e3805e3931..06561a7021 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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 @@ -133,6 +133,188 @@ func newStaticFederationClient(sessionToken string, supplier sessionKeySupplier) }, nil } +// oAuth2FederationClient retrieves a security token from the scoped OAuth endpoint in Auth Service +type oAuth2FederationClient struct { + sessionKeySupplier sessionKeySupplier + authClientKeyProvider common.KeyProvider + authClient *common.BaseClient + securityToken securityToken + lastRefresh time.Time + scope string + targetCompartment string + mux sync.Mutex +} + +var OAuthTokenStaleWindow = 20 * time.Minute + +// newOAuth2FederationClient creates a new oAuth2FederationClient from the provided configProvider and Auth request parameters +func newOAuth2FederationClient(configProvider common.ConfigurationProvider, scope string, targetCompartment string, sessionKeySupplier sessionKeySupplier) (federationClient, error) { + client := &oAuth2FederationClient{} + client.sessionKeySupplier = sessionKeySupplier + region, err := configProvider.Region() + if err != nil { + return nil, fmt.Errorf("failed to build OAuth Federation Client: %s", err.Error()) + } + authClient := newAuthClient(common.StringToRegion(region), configProvider, "v1/oauth2/scoped") + client.authClient = authClient + client.authClientKeyProvider = configProvider + client.scope = scope + client.targetCompartment = targetCompartment + return client, nil +} + +// KeyID calls the KeyID method of the auth provider given to the federation client +func (c *oAuth2FederationClient) KeyID() (string, error) { + return c.authClientKeyProvider.KeyID() +} + +// PrivateRSAKey calls the PrivateRSAKey method of the auth provider given to the federation client +func (c *oAuth2FederationClient) PrivateRSAKey() (*rsa.PrivateKey, error) { + return c.authClientKeyProvider.PrivateRSAKey() +} + +func (c *oAuth2FederationClient) GetClaim(key string) (interface{}, error) { + c.mux.Lock() + defer c.mux.Unlock() + + if err := c.renewKeyAndSecurityTokenIfNotValid(); err != nil { + return nil, err + } + return c.securityToken.GetClaim(key) +} + +// isTokenStale returns true if the JWT token is older than OAuthTokenStaleWindow +func (c *oAuth2FederationClient) isTokenStale() bool { + return c.lastRefresh.IsZero() || time.Now().After(c.lastRefresh.Add(OAuthTokenStaleWindow)) +} + +func (c *oAuth2FederationClient) renewKeyAndSecurityTokenIfNotValid() (err error) { + return c.renewSecurityTokenIfNotValid() +} + +func (c *oAuth2FederationClient) renewSecurityTokenIfNotValid() (err error) { + + // Get a new token if this one is stale (or nil), even if it is still valid + if c.securityToken == nil || c.isTokenStale() { + if err = c.renewSecurityToken(); err != nil { + if c.securityToken != nil && c.securityToken.Valid() { + // Token is stale but still valid. We failed to get a new token + // but we can still use the old one + common.Debugln("failed to refresh OAuth token. Using valid cached token") + return nil + } + + return fmt.Errorf("failed to refresh token: %s", err.Error()) + } + } + + // Token exists and is not stale, + // or token was stale and a new one was retrieved + return nil +} + +func (c *oAuth2FederationClient) renewSecurityToken() (err error) { + if err = c.sessionKeySupplier.Refresh(); err != nil { + return fmt.Errorf("failed to refresh session key: %s", err.Error()) + } + + common.Logf("Renewing security token at: %v\n", time.Now().Format("15:04:05.000")) + if newToken, err := c.getSecurityToken(); err != nil { + return fmt.Errorf("failed to get security token: %s", err.Error()) + } else { + // only update token if a new one was retrieved. + c.lastRefresh = time.Now() + c.securityToken = newToken + } + + common.Logf("Security token renewed at: %v\n", time.Now().Format("15:04:05.000")) + + return nil + +} + +func (c *oAuth2FederationClient) getSecurityToken() (securityToken, error) { + var err error + var httpRequest http.Request + var httpResponse *http.Response + defer common.CloseBodyIfValid(httpResponse) + for retry := 0; retry < 3; retry++ { + request := c.makeOAuthFederationRequest() + + 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 + } + // Don't retry on 4xx errors + if httpResponse != nil && httpResponse.StatusCode >= 400 && httpResponse.StatusCode <= 499 { + return nil, fmt.Errorf("error %s returned by auth service: %s", httpResponse.Status, err.Error()) + } + 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()) + } + + response := oAuthFederationResponse{} + if err = common.UnmarshalResponse(httpResponse, &response); err != nil { + return nil, fmt.Errorf("failed to unmarshal the response: %s", err.Error()) + } + + return newPrincipalToken(response.Token.Token) + +} + +type oAuthFederationRequest struct { + OAuthFederationDetails `contributesTo:"body"` +} + +// OAuthFederationDetails Scoped Oauth federation details +// The scope type should correspond to the type of config provider used to create +// the OAuth Federation Client +type OAuthFederationDetails struct { + Scope string `mandatory:"true" json:"scope,omitempty"` + PublicKey string `mandatory:"true" json:"public_key,omitempty"` + TargetCompartment string `mandatory:"true" json:"target_compartment,omitempty"` +} + +type oAuthFederationResponse struct { + Token `presentIn:"body"` +} + +func (c *oAuth2FederationClient) makeOAuthFederationRequest() *oAuthFederationRequest { + publicKey := sanitizeCertificateString(string(c.sessionKeySupplier.PublicKeyPemRaw())) + details := OAuthFederationDetails{ + Scope: c.scope, + PublicKey: publicKey, + TargetCompartment: c.targetCompartment, + } + return &oAuthFederationRequest{details} +} + +func (c *oAuth2FederationClient) PrivateKey() (*rsa.PrivateKey, error) { + c.mux.Lock() + defer c.mux.Unlock() + + if err := c.renewSecurityTokenIfNotValid(); err != nil { + return nil, err + } + return c.sessionKeySupplier.PrivateKey(), nil +} + +func (c *oAuth2FederationClient) SecurityToken() (token string, err error) { + c.mux.Lock() + defer c.mux.Unlock() + + if err = c.renewSecurityTokenIfNotValid(); err != nil { + return "", err + } + return c.securityToken.String(), nil +} + // x509FederationClient retrieves a security token from Auth service. type x509FederationClient struct { tenancyID string @@ -151,7 +333,7 @@ func newX509FederationClient(region common.Region, tenancyID string, leafCertifi intermediateCertificateRetrievers: intermediateCertificateRetrievers, } client.sessionKeySupplier = newSessionKeySupplier() - authClient := newAuthClient(region, client) + authClient := newAuthClient(region, client, "v1/x509") var err error @@ -176,7 +358,7 @@ func newX509FederationClientWithCerts(region common.Region, tenancyID string, le intermediateCertificateRetrievers: intermediateRetrievers, } client.sessionKeySupplier = newSessionKeySupplier() - authClient := newAuthClient(region, client) + authClient := newAuthClient(region, client, "v1/x509") var err error @@ -194,15 +376,16 @@ var ( bodyHeaders = []string{"content-length", "content-type", "x-content-sha256"} ) -func newAuthClient(region common.Region, provider common.KeyProvider) *common.BaseClient { +func newAuthClient(region common.Region, provider common.KeyProvider, authBasePath string) *common.BaseClient { signer := common.RequestSigner(provider, genericHeaders, bodyHeaders) client := common.DefaultBaseClientWithSigner(signer) + if regionURL, ok := os.LookupEnv("OCI_SDK_AUTH_CLIENT_REGION_URL"); ok { client.Host = regionURL } else { client.Host = region.Endpoint("auth") } - client.BasePath = "v1/x509" + client.BasePath = authBasePath if common.GlobalAuthClientCircuitBreakerSetting != nil { client.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.GlobalAuthClientCircuitBreakerSetting) @@ -217,7 +400,7 @@ func newAuthClient(region common.Region, provider common.KeyProvider) *common.Ba func (c *x509FederationClient) KeyID() (string, error) { tenancy := c.tenancyID fingerprint := fingerprint(c.leafCertificateRetriever.Certificate()) - return fmt.Sprintf("%s/fed-x509/%s", tenancy, fingerprint), nil + return fmt.Sprintf("%s/fed-x509-sha256/%s", tenancy, fingerprint), nil } // For authClient to sign requests to X509 Federation Endpoint @@ -343,6 +526,7 @@ type X509FederationDetails struct { Certificate string `mandatory:"true" json:"certificate,omitempty"` PublicKey string `mandatory:"true" json:"publicKey,omitempty"` IntermediateCertificates []string `mandatory:"false" json:"intermediateCertificates,omitempty"` + FingerprintAlgorithm string `mandatory:"false" json:"fingerprintAlgorithm,omitempty"` } type x509FederationResponse struct { @@ -366,6 +550,7 @@ func (c *x509FederationClient) makeX509FederationRequest() *x509FederationReques Certificate: certificate, PublicKey: publicKey, IntermediateCertificates: intermediateCertificates, + FingerprintAlgorithm: "SHA256", } return &x509FederationRequest{details} } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/federation_client_oke_workload_identity.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/federation_client_oke_workload_identity.go index 517fbce051..f4f24cec93 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/federation_client_oke_workload_identity.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/federation_client_oke_workload_identity.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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 @@ -125,8 +125,14 @@ func (c *x509FederationClientForOkeWorkloadIdentity) getSecurityToken() (securit statusCode := response.StatusCode if statusCode != http.StatusOK { - return nil, fmt.Errorf("failed to get a RPST token from Proxymux: URL: %s, Status: %s, Message: %s", - c.proxymuxEndpoint, response.Status, body.String()) + if statusCode == http.StatusForbidden { + return nil, fmt.Errorf("please ensure the cluster type is enhanced: Status: %s, Message: %s", + response.Status, body.String()) + } else { + return nil, fmt.Errorf("failed to get a RPST token from Proxymux: URL: %s, Status: %s, Message: %s", + c.proxymuxEndpoint, response.Status, body.String()) + } + } if _, err = body.ReadFrom(response.Body); err != nil { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 83130748bc..fdbdcf1923 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/auth/instance_principal_key_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/instance_principal_key_provider.go index a307de341c..8b1be2a6cb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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,9 +7,9 @@ import ( "bytes" "crypto/rsa" "fmt" + "math/rand" "net/http" "os" - "strings" "time" "github.com/oracle/oci-go-sdk/v65/common" @@ -18,7 +18,6 @@ import ( const ( defaultMetadataBaseURL = `http://169.254.169.254/opc/v2` metadataBaseURLEnvVar = `OCI_METADATA_BASE_URL` - metadataFallbackURL = `http://169.254.169.254/opc/v1` regionPath = `/instance/region` leafCertificatePath = `/identity/cert.pem` leafCertificateKeyPath = `/identity/key.pem` @@ -106,19 +105,19 @@ func newInstancePrincipalKeyProvider(modifier func(common.HTTPRequestDispatcher) func getRegionForFederationClient(dispatcher common.HTTPRequestDispatcher, url string) (r common.Region, err error) { var body bytes.Buffer var statusCode int - MaxRetriesFederationClient := 3 + MaxRetriesFederationClient := 8 for currTry := 0; currTry < MaxRetriesFederationClient; currTry++ { body, statusCode, err = httpGet(dispatcher, url) if err == nil && statusCode == 200 { return common.StringToRegion(body.String()), nil } common.Logf("Error in getting region from url: %s, Status code: %v, Error: %s", url, statusCode, err.Error()) - if statusCode == 404 && strings.Compare(url, getMetadataBaseURL()+regionPath) == 0 { - common.Logf("Falling back to http://169.254.169.254/opc/v1 to try again...\n") - updateX509CertRetrieverURLParas(metadataFallbackURL) - url = regionURL + nextDuration := time.Duration(float64(int(1)< 30*time.Second { + nextDuration = 30*time.Second + time.Duration(rand.Float64())*time.Second } - time.Sleep(1 * time.Second) + common.Logf("Retrying for getRegionForFederationClinet function, current retry count is:%v, sleep after %v", currTry+1, nextDuration) + time.Sleep(nextDuration) } return } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/jwt.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/jwt.go index 36d0631d80..8d6485db11 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/auth/oauth2_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/oauth2_provider.go new file mode 100644 index 0000000000..d5e1e8ed15 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/oauth2_provider.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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" +) + +// OAuth2ConfigurationProvider provides Oauth2 type authentication +type OAuth2ConfigurationProvider struct { + federationClient federationClient + sessionKeySupplier sessionKeySupplier + region string +} + +// NewOAuth2ConfigurationProvider builds an OAuth2ConfigurationProvider from an existing config provider, and auth endpoint parameters +// The config provider can be for instance, resource, or service principals. +func NewOAuth2ConfigurationProvider(configProvider common.ConfigurationProvider, scope string, targetCompartment string) (common.ConfigurationProvider, error) { + sessionKeySupplier := newSessionKeySupplier() + region, err := configProvider.Region() + if err != nil { + return nil, fmt.Errorf("failed to get region from configProvider: %s", err.Error()) + } + federationClient, err := newOAuth2FederationClient(configProvider, scope, targetCompartment, sessionKeySupplier) + if err != nil { + err = fmt.Errorf("failed to create auth provider: %w", err) + return nil, err + } + return &OAuth2ConfigurationProvider{ + federationClient: federationClient, + sessionKeySupplier: sessionKeySupplier, + region: region, + }, nil +} + +// KeyID checks if the current security token is valid, and retrieves a new token from Auth Service if not +func (p OAuth2ConfigurationProvider) 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 "", err + } + return fmt.Sprintf("ST$%s", securityToken), nil +} + +// PrivateRSAKey returns the private key of the session key supplier created for the OAuth Provider +func (p OAuth2ConfigurationProvider) 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 OAuth2ConfigurationProvider) SecurityToken() (string, error) { + return p.federationClient.SecurityToken() +} + +func (p OAuth2ConfigurationProvider) TenancyOCID() (string, error) { + return "", nil +} + +func (p OAuth2ConfigurationProvider) UserOCID() (string, error) { + return "", nil +} + +func (p OAuth2ConfigurationProvider) KeyFingerprint() (string, error) { + return "", nil +} + +func (p OAuth2ConfigurationProvider) Region() (string, error) { + return p.region, nil +} + +func (p OAuth2ConfigurationProvider) AuthType() (common.AuthConfig, error) { + return common.AuthConfig{AuthType: common.OAuthDelegationToken}, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principal_delegation_token_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principal_delegation_token_provider.go index d83918fe02..7c04882e9a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principal_delegation_token_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principal_delegation_token_provider.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/auth/resource_principal_key_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principal_key_provider.go index 6ae1348d1d..e4ae6034ee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principal_key_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principal_key_provider.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/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 index 2c958880f9..56db98c520 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/auth/resource_principals_v1.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principals_v1.go index d56b80ab48..6477e47062 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/auth/resource_principals_v3.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principals_v3.go index 61ac2dbf94..4fa6ffab99 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principals_v3.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principals_v3.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/auth/utils.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/utils.go index 444f3783bb..9f091f3c4f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/utils.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/utils.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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 ( "bytes" - "crypto/sha1" + "crypto/sha256" "crypto/x509" "fmt" "net/http" @@ -61,11 +61,11 @@ func extractTenancyIDFromCertificate(cert *x509.Certificate) string { } func fingerprint(certificate *x509.Certificate) string { - fingerprint := sha1.Sum(certificate.Raw) + fingerprint := sha256.Sum256(certificate.Raw) return colonSeparatedString(fingerprint) } -func colonSeparatedString(fingerprint [sha1.Size]byte) string { +func colonSeparatedString(fingerprint [sha256.Size]byte) string { spaceSeparated := fmt.Sprintf("% x", fingerprint) return strings.Replace(spaceSeparated, " ", ":", -1) } 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 index b6635f0d48..f4ee25899b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/client.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/client.go index 2ee83ae518..7f67178266 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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 @@ -19,6 +19,7 @@ import ( "path" "path/filepath" "reflect" + "regexp" "runtime" "strconv" "strings" @@ -122,6 +123,21 @@ const ( //defaultRefreshIntervalForCustomCerts is the default refresh interval in minutes defaultRefreshIntervalForCustomCerts = 30 + + // CustomClientTimeoutEnvVar allows the user to set the timeout in seconds to be used by each service client. + CustomClientTimeoutEnvVar = "OCI_CUSTOM_CLIENT_TIMEOUT" + + // Environment variable to check whether dual stack endpoints should be enabled + ociDualStackEndpointEnabledEnvVar = "OCI_DUAL_STACK_ENDPOINT_ENABLED" + + // String representing a single "phrase" of an endpoint template option + endpointTemplateOptionPhrase = "((\\w|\\.|\\-)+)" + + // Checks for template for endpoint options + patternForEndpointTemplateOptions = "\\{" + endpointTemplateOptionPhrase + "\\?((" + endpointTemplateOptionPhrase + ":" + endpointTemplateOptionPhrase + ")" + + "|(" + endpointTemplateOptionPhrase + ":\\s*)|(\\s*:" + endpointTemplateOptionPhrase + "))}" + + dualStackOption = "{dualStack" ) // OciGlobalRefreshIntervalForCustomCerts is the global policy for overriding the refresh interval in minutes. @@ -140,11 +156,24 @@ type HTTPRequestDispatcher interface { Do(req *http.Request) (*http.Response, error) } -// CustomClientConfiguration contains configurations set at client level, currently it only includes RetryPolicy +// CustomClientConfiguration contains configurations set at client level type CustomClientConfiguration struct { - RetryPolicy *RetryPolicy - CircuitBreaker *OciCircuitBreaker + + // Retry policy used on calls made by the client + RetryPolicy *RetryPolicy + + // The Circuit Breaker used to regulate calls made by the client + CircuitBreaker *OciCircuitBreaker + + // Allows user to decide if they want to use realm specific endpoints RealmSpecificServiceEndpointTemplateEnabled *bool + + // Allows user to decide if they want to use dual stack endpoints + EnableDualStackEndpoints *bool + + // Set on creation of the client, based on the below flag from the service spec + // x-obmcs-endpoint-template-options: dualStack: true/false + ServiceUsesDualStackByDefault *bool } // BaseClient struct implements all basic operations to call oci web services. @@ -190,6 +219,56 @@ func (client *BaseClient) Endpoint() string { return host } +func UpdateEndpointTemplateForOptions(client *BaseClient) { + templateRegex := regexp.MustCompile(patternForEndpointTemplateOptions) + templates := templateRegex.FindAllString(client.Host, -1) + for _, option := range templates { + optionParam := "" + optionEnabledParam := option[strings.Index(option, "?")+1 : strings.Index(option, ":")] + optionDisabledParam := option[strings.Index(option, ":")+1 : strings.Index(option, "}")] + + // Option case: Dual Stack Endpoints + if strings.Contains(option, dualStackOption) { + dualStackEnvVarValue := os.Getenv(ociDualStackEndpointEnabledEnvVar) + if client.IsServiceDualStackEnabledByDefault() { + if !client.IsDualStackEndpointEnabled() || (dualStackEnvVarValue != "" && strings.ToLower(dualStackEnvVarValue) == "false") { + optionParam = optionDisabledParam + } else { + optionParam = optionEnabledParam + } + } else { + if client.IsDualStackEndpointEnabled() || (dualStackEnvVarValue != "" && strings.ToLower(dualStackEnvVarValue) == "true") { + optionParam = optionEnabledParam + } else { + optionParam = optionDisabledParam + } + } + } + client.Host = strings.Replace(client.Host, option, optionParam, -1) + } +} + +// UseDualStackEndpointsByDefault sets whether dual stack endpoints are used by default +func (client *BaseClient) UseDualStackEndpointsByDefault(useByDefault bool) { + client.Configuration.EnableDualStackEndpoints = &useByDefault + client.Configuration.ServiceUsesDualStackByDefault = &useByDefault +} + +// EnableDualStackEndpoints sets whether dual stack endpoints should be used for this client +func (client *BaseClient) EnableDualStackEndpoints(EnableDualStack bool) { + client.Configuration.EnableDualStackEndpoints = &EnableDualStack +} + +// IsDualStackEndpointEnabled is used to check if Dual Stack Endpoints are Enabled +func (client *BaseClient) IsDualStackEndpointEnabled() bool { + return client.Configuration.EnableDualStackEndpoints != nil && *client.Configuration.EnableDualStackEndpoints +} + +// IsServiceDualStackEnabledByDefault is used to check if Dual Stack Endpoints enabled by default for the service of the client +func (client *BaseClient) IsServiceDualStackEnabledByDefault() bool { + return client.Configuration.ServiceUsesDualStackByDefault != nil && *client.Configuration.ServiceUsesDualStackByDefault +} + func defaultUserAgent() string { userAgent := fmt.Sprintf(defaultUserAgentTemplate, defaultSDKMarker, Version(), runtime.GOOS, runtime.GOARCH, runtime.Version()) appendUA := os.Getenv(appendUserAgentEnv) @@ -229,6 +308,8 @@ func newBaseClient(signer HTTPRequestSigner, dispatcher HTTPRequestDispatcher) B baseClient.Configuration.RetryPolicy = GlobalRetry } + baseClient.UseDualStackEndpointsByDefault(false) + return baseClient } @@ -242,8 +323,21 @@ func defaultHTTPDispatcher() http.Client { RefreshRate: time.Duration(refreshInterval) * time.Minute, TLSConfigProvider: GetTLSConfigTemplateForTransport(), } + + // Set client timeout to default or value set in environment variable + clientTimeout := defaultTimeout + if customTimeout := os.Getenv(CustomClientTimeoutEnvVar); customTimeout != "" { + if timeInSeconds, err := strconv.Atoi(customTimeout); err != nil || timeInSeconds < 0 { + Logf("WARNING: %s set but could not be converted to a postive integer", CustomClientTimeoutEnvVar) + } else { + Debugf("Using custom client timeout of %s seconds", customTimeout) + clientTimeout = time.Duration(timeInSeconds) * time.Second + } + } + + // Create the underlying HTTP client httpClient = http.Client{ - Timeout: defaultTimeout, + Timeout: clientTimeout, Transport: tp, } return httpClient diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/common.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/common.go index 51deac4ea0..d9c0149776 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/common.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/common.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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,6 +12,7 @@ import ( "path/filepath" "regexp" "strings" + "sync" "time" ) @@ -53,9 +54,18 @@ var getRegionInfoFromInstanceMetadataService = getRegionInfoFromInstanceMetadata // OciRealmSpecificServiceEndpointTemplateEnabled is the flag to enable the realm specific service endpoint template. This one has higher priority than the environment variable. var OciRealmSpecificServiceEndpointTemplateEnabled *bool = nil +// reNonWord precomiles the regex once at the package scope +var reNonWord = regexp.MustCompile(`[^\w]`) + // OciSdkEnabledServicesMap is a list of services that are enabled, default is an empty list which means all services are enabled var OciSdkEnabledServicesMap map[string]bool +// OciSdkEnabledServicesOnce is a sync.Once variable to ensure the OciSdkEnabledServicesMap is initialized only once +var OciSdkEnabledServicesOnce sync.Once + +// OciSdkEnabledServicesMu is a mutex to protect access to the OciSdkEnabledServicesMap +var OciSdkEnabledServicesMu sync.RWMutex + // OciDeveloperToolConfigurationFilePathEnvVar is the environment variable name for the OCI Developer Tool Config File Path const OciDeveloperToolConfigurationFilePathEnvVar = "OCI_DEVELOPER_TOOL_CONFIGURATION_FILE_PATH" @@ -79,7 +89,7 @@ func (region Region) Endpoint(service string) string { if strings.Contains(string(region), ".") { return fmt.Sprintf("%s.%s", service, region) } - return fmt.Sprintf("%s.%s.%s", service, region, region.secondLevelDomain()) + return fmt.Sprintf("%s.%s.%s", service, region, region.SecondLevelDomain()) } // 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. @@ -105,7 +115,7 @@ func (region Region) EndpointForTemplate(service string, serviceEndpointTemplate endpoint = strings.Replace(endpoint, "{region}", string(region), 1) // replace second level domain - endpoint = strings.Replace(endpoint, "{secondLevelDomain}", region.secondLevelDomain(), 1) + endpoint = strings.Replace(endpoint, "{secondLevelDomain}", region.SecondLevelDomain(), 1) return endpoint } @@ -148,7 +158,7 @@ func (region Region) EndpointForTemplateDottedRegion(service string, serviceEndp return "", fmt.Errorf("EndpointForTemplateDottedRegion function requires endpointServiceName or serviceEndpointTemplate, no endpointServiceName or serviceEndpointTemplate provided") } -func (region Region) secondLevelDomain() string { +func (region Region) SecondLevelDomain() string { if realmID, ok := regionRealm[region]; ok { if secondLevelDomain, ok := realm[realmID]; ok { return secondLevelDomain @@ -585,13 +595,19 @@ func getOciSdkEnabledServicesMap() map[string]bool { // AddServiceToEnabledServicesMap adds the service to the enabledServiceMap // The service name will auto transit to lower case and remove all the non-word characters. +// Concurrency (goroutine-safe). The map is initialized with sync.Once, and writes are protected by a RWMutex. func AddServiceToEnabledServicesMap(serviceName string) { - if OciSdkEnabledServicesMap == nil { - OciSdkEnabledServicesMap = make(map[string]bool) - } - re, _ := regexp.Compile(`[^\w]`) + OciSdkEnabledServicesOnce.Do(func() { + OciSdkEnabledServicesMap = getOciSdkEnabledServicesMap() + if OciSdkEnabledServicesMap == nil { + OciSdkEnabledServicesMap = make(map[string]bool) + } + }) serviceName = strings.ToLower(serviceName) - serviceName = re.ReplaceAllString(serviceName, "") + serviceName = reNonWord.ReplaceAllString(serviceName, "") + + OciSdkEnabledServicesMu.Lock() + defer OciSdkEnabledServicesMu.Unlock() OciSdkEnabledServicesMap[serviceName] = true } @@ -599,18 +615,28 @@ func AddServiceToEnabledServicesMap(serviceName string) { // It will first check if the map is initialized, if not, it will initialize the map. // If the map is empty, it means all the services are enabled. // If the map is not empty, it means only the services in the map and value is true are enabled. +// Concurrency (goroutine-safe). Initialization uses sync.Once and reads are protected by a RWMutex. func CheckForEnabledServices(serviceName string) bool { - if OciSdkEnabledServicesMap == nil { + OciSdkEnabledServicesOnce.Do(func() { OciSdkEnabledServicesMap = getOciSdkEnabledServicesMap() - } + if OciSdkEnabledServicesMap == nil { + OciSdkEnabledServicesMap = make(map[string]bool) + } + }) serviceName = strings.ToLower(serviceName) + serviceName = reNonWord.ReplaceAllString(serviceName, "") + + OciSdkEnabledServicesMu.RLock() + defer OciSdkEnabledServicesMu.RUnlock() + if len(OciSdkEnabledServicesMap) == 0 { return true } - if _, ok := OciSdkEnabledServicesMap[serviceName]; !ok { + allowed, ok := OciSdkEnabledServicesMap[serviceName] + if !ok { return false } - return OciSdkEnabledServicesMap[serviceName] + return allowed } // CheckAllowOnlyDeveloperToolConfigurationRegions checks if only developer tool configuration regions are allowed 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 index d499523fb9..86371c9866 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/configuration.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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 @@ -27,6 +27,8 @@ const ( InstancePrincipalDelegationToken AuthenticationType = "instance_principle_delegation_token" // ResourcePrincipalDelegationToken is used for resource principal delegation token auth type ResourcePrincipalDelegationToken AuthenticationType = "resource_principle_delegation_token" + // OAuth2DelegationToken is used for oauth delegation token auth type + OAuthDelegationToken AuthenticationType = "oauth_delegation_token" // UnknownAuthenticationType is used for none meaningful auth type UnknownAuthenticationType AuthenticationType = "unknown_auth_type" ) 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 index 26692c09b6..4d85ddbd2d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/errors.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/errors.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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 @@ -25,7 +25,7 @@ type ServiceError interface { 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 + // See https://docs.oracle.com/iaas/Content/API/References/apierrors.htm GetCode() string // Unique Oracle-assigned identifier for the request. 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 index 39d25df034..505fe68cf6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/helpers.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/helpers.go index 0b0916938b..9f783d22be 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/helpers.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/helpers.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. //lint:file-ignore SA1019 older versions of staticcheck (those compatible with Golang 1.17) falsely flag x509.IsEncryptedPEMBlock and x509.DecryptPEMBlock. @@ -10,6 +10,7 @@ import ( "crypto/rsa" "crypto/x509" "encoding/pem" + "errors" "fmt" "net/textproto" "os" @@ -17,6 +18,8 @@ import ( "strconv" "strings" "time" + + "github.com/youmark/pkcs8" ) // String returns a pointer to the provided string @@ -222,24 +225,30 @@ func PrivateKeyFromBytes(pemData []byte, password *string) (key *rsa.PrivateKey, // PrivateKeyFromBytesWithPassword is a helper function that will produce a RSA private // key from bytes and a password. func PrivateKeyFromBytesWithPassword(pemData, password []byte) (key *rsa.PrivateKey, e error) { - if pemBlock, _ := pem.Decode(pemData); pemBlock != nil { - decrypted := pemBlock.Bytes - if x509.IsEncryptedPEMBlock(pemBlock) { - if password == nil { - e = fmt.Errorf("private key password is required for encrypted private keys") - return - } - if decrypted, e = x509.DecryptPEMBlock(pemBlock, password); e != nil { - return - } - } - - key, e = parsePKCSPrivateKey(decrypted) - - } else { + pemBlock, _ := pem.Decode(pemData) + if pemBlock == nil { e = fmt.Errorf("PEM data was not found in buffer") return } + + decrypted := pemBlock.Bytes + // Support for encrypted PKCS8 format, this format can not be handled by x509.IsEncryptedPEMBlock func + if key, e = pkcs8.ParsePKCS8PrivateKeyRSA(pemBlock.Bytes, password); key != nil { + return + } + // if pemBlock.Type == "ENCRYPTED PRIVATE KEY" { + // return pkcs8.ParsePKCS8PrivateKeyRSA(pemData, password) + // } + if x509.IsEncryptedPEMBlock(pemBlock) { + if password == nil { + return nil, errors.New("private key password is required for encrypted private keys") + } + + if decrypted, e = x509.DecryptPEMBlock(pemBlock, password); e != nil { + return + } + } + key, e = parsePKCSPrivateKey(decrypted) return } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/http.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/http.go index 1f57b3a6fb..1bec10de0b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/http.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/http.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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 @@ -22,6 +22,10 @@ import ( const ( //UsingExpectHeaderEnvVar is the key to determine whether expect 100-continue is enabled or not UsingExpectHeaderEnvVar = "OCI_GOSDK_USING_EXPECT_HEADER" + //EncodePathParamsEnvVar determines if special characters in path params such as / and & are URL encoded + EncodePathParamsEnvVar = "OCI_GOSDK_ENCODE_PATH_PARAMS" + // EscapeJSONToASCIIEnvVar determines if non-ASCII characters in JSON strings are escaped + EscapeJSONToASCIIEnvVar = "OCI_GOSDK_ESCAPE_JSON_ASCII" ) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -255,6 +259,49 @@ func removeNilFieldsInJSONWithTaggedStruct(rawJSON []byte, value reflect.Value) return json.Marshal(fixedMap) } +// escapeJSONToASCII takes a JSON payload and returns an equivalent JSON where all string values are escaped to ASCII +func escapeJSONToASCII(rawJSON []byte) ([]byte, error) { + var rawInterface interface{} + decoder := json.NewDecoder(bytes.NewReader(rawJSON)) + decoder.UseNumber() + if err := decoder.Decode(&rawInterface); err != nil { + return nil, err + } + + // transform recursively visits the JSON value: + // - For objects (map[string[interface{}]]), recurse on each value + // - For arrays ([]interface{}), recurse on each element + // - For strings, produce a JSON-quoted ASCII-only representation + // - For other types, return as is + var transform func(interface{}) interface{} + transform = func(x interface{}) interface{} { + switch t := x.(type) { + case map[string]interface{}: + m := make(map[string]interface{}, len(t)) + for key, val := range t { + m[key] = transform(val) + } + return m + case []interface{}: + s := make([]interface{}, len(t)) + for i, val := range t { + s[i] = transform(val) + } + return s + case string: + // QuoteToASCII returns a 'quoted' JSON string containing only ASCII characters + // ex: input: "ハッピー" -> "\"\\u30cf\\u30c3\\u30d4\\u30fc\"" + // Returns as json.RawMessage so it gets embedded directly + q := strconv.AppendQuoteToASCII(nil, t) + return json.RawMessage(q) + default: + return x + } + } + + return json.Marshal(transform(rawInterface)) +} + func addToBody(request *http.Request, value reflect.Value, field reflect.StructField, binaryBodySpecified *bool) (e error) { Debugln("Marshaling to body from field:", field.Name) if request.Body != nil { @@ -277,6 +324,13 @@ func addToBody(request *http.Request, value reflect.Value, field reflect.StructF return } + if IsEnvVarTrue(EscapeJSONToASCIIEnvVar) { + marshaled, e = escapeJSONToASCII(marshaled) + if e != nil { + return + } + } + if defaultLogger.LogLevel() == verboseLogging { Debugf("Marshaled body is: %s\n", string(marshaled)) } @@ -461,6 +515,11 @@ func addToPath(request *http.Request, value reflect.Value, field reflect.StructF return fmt.Errorf("value cannot be empty for field %s in path", field.Name) } + // encode path param if EncodePathParamsEnvVar is set + if IsEnvVarTrue(EncodePathParamsEnvVar) { + additionalURLPathPart = url.PathEscape(additionalURLPathPart) + } + if request.URL == nil { request.URL = &url.URL{} request.URL.Path = "" @@ -526,8 +585,29 @@ func addToHeader(request *http.Request, value reflect.Value, field reflect.Struc } //Otherwise get value and set header - if headerValue, e = toStringValue(value, field); e != nil { - return + encoding := strings.ToLower(field.Tag.Get("collectionFormat")) + var collectionFormatStringValues []string + switch encoding { + case "csv", "multi": + if value.Kind() != reflect.Slice && value.Kind() != reflect.Array { + e = fmt.Errorf("header is tagged as csv or multi yet its type is neither an Array nor a Slice: %s", field.Name) + return + } + + numOfElements := value.Len() + collectionFormatStringValues = make([]string, numOfElements) + for i := 0; i < numOfElements; i++ { + collectionFormatStringValues[i], e = toStringValue(value.Index(i), field) + if e != nil { + Debugf("Header element could not be marshalled to a string: %w", e) + return + } + } + headerValue = strings.Join(collectionFormatStringValues, ",") + default: + if headerValue, e = toStringValue(value, field); e != nil { + return + } } if e = setWellKnownHeaders(request, headerName, headerValue, contentLenSpecified); e != nil { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/http_signer.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/http_signer.go index d27d4e42ec..af6e57e837 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/log.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/log.go index ea3c496c25..c5ea9921c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/log.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/log.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/oci_http_transport_wrapper.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/oci_http_transport_wrapper.go index b589aca051..5eed0902ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/oci_http_transport_wrapper.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/oci_http_transport_wrapper.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/regions.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go index 98075ae994..26feb56784 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go @@ -1,341 +1,385 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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" - //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" - //RegionSAVinhedo1 region Vinhedo - RegionSAVinhedo1 Region = "sa-vinhedo-1" - //RegionSASantiago1 region Santiago - RegionSASantiago1 Region = "sa-santiago-1" - //RegionILJerusalem1 region Jerusalem - RegionILJerusalem1 Region = "il-jerusalem-1" - //RegionEUMarseille1 region Marseille - RegionEUMarseille1 Region = "eu-marseille-1" - //RegionAPSingapore1 region Singapore - RegionAPSingapore1 Region = "ap-singapore-1" - //RegionMEAbudhabi1 region Abudhabi - RegionMEAbudhabi1 Region = "me-abudhabi-1" - //RegionEUMilan1 region Milan - RegionEUMilan1 Region = "eu-milan-1" - //RegionEUStockholm1 region Stockholm - RegionEUStockholm1 Region = "eu-stockholm-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" - //RegionMXMonterrey1 region Monterrey - RegionMXMonterrey1 Region = "mx-monterrey-1" - //RegionUSSaltlake2 region Saltlake - RegionUSSaltlake2 Region = "us-saltlake-2" - //RegionSABogota1 region Bogota - RegionSABogota1 Region = "sa-bogota-1" - //RegionSAValparaiso1 region Valparaiso - RegionSAValparaiso1 Region = "sa-valparaiso-1" - //RegionAPSingapore2 region Singapore - RegionAPSingapore2 Region = "ap-singapore-2" - //RegionMERiyadh1 region Riyadh - RegionMERiyadh1 Region = "me-riyadh-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" - //RegionEUDccMilan2 region Milan - RegionEUDccMilan2 Region = "eu-dcc-milan-2" - //RegionEUDccDublin2 region Dublin - RegionEUDccDublin2 Region = "eu-dcc-dublin-2" - //RegionEUDccRating2 region Rating - RegionEUDccRating2 Region = "eu-dcc-rating-2" - //RegionEUDccRating1 region Rating - RegionEUDccRating1 Region = "eu-dcc-rating-1" - //RegionEUDccDublin1 region Dublin - RegionEUDccDublin1 Region = "eu-dcc-dublin-1" - //RegionAPDccGazipur1 region Gazipur - RegionAPDccGazipur1 Region = "ap-dcc-gazipur-1" - //RegionEUMadrid2 region Madrid - RegionEUMadrid2 Region = "eu-madrid-2" - //RegionEUFrankfurt2 region Frankfurt - RegionEUFrankfurt2 Region = "eu-frankfurt-2" - //RegionEUJovanovac1 region Jovanovac - RegionEUJovanovac1 Region = "eu-jovanovac-1" - //RegionMEDccDoha1 region Doha - RegionMEDccDoha1 Region = "me-dcc-doha-1" - //RegionUSSomerset1 region Somerset - RegionUSSomerset1 Region = "us-somerset-1" - //RegionUSThames1 region Thames - RegionUSThames1 Region = "us-thames-1" - //RegionEUDccZurich1 region Zurich - RegionEUDccZurich1 Region = "eu-dcc-zurich-1" - //RegionEUCrissier1 region Crissier - RegionEUCrissier1 Region = "eu-crissier-1" - //RegionMEAbudhabi3 region Abudhabi - RegionMEAbudhabi3 Region = "me-abudhabi-3" - //RegionMEAlain1 region Alain - RegionMEAlain1 Region = "me-alain-1" - //RegionMEAbudhabi2 region Abudhabi - RegionMEAbudhabi2 Region = "me-abudhabi-2" - //RegionMEAbudhabi4 region Abudhabi - RegionMEAbudhabi4 Region = "me-abudhabi-4" - //RegionAPSeoul2 region Seoul - RegionAPSeoul2 Region = "ap-seoul-2" - //RegionAPSuwon1 region Suwon - RegionAPSuwon1 Region = "ap-suwon-1" - //RegionAPChuncheon2 region Chuncheon - RegionAPChuncheon2 Region = "ap-chuncheon-2" + //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" + //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" + //RegionSAVinhedo1 region Vinhedo + RegionSAVinhedo1 Region = "sa-vinhedo-1" + //RegionSASantiago1 region Santiago + RegionSASantiago1 Region = "sa-santiago-1" + //RegionILJerusalem1 region Jerusalem + RegionILJerusalem1 Region = "il-jerusalem-1" + //RegionEUMarseille1 region Marseille + RegionEUMarseille1 Region = "eu-marseille-1" + //RegionAPSingapore1 region Singapore + RegionAPSingapore1 Region = "ap-singapore-1" + //RegionMEAbudhabi1 region Abudhabi + RegionMEAbudhabi1 Region = "me-abudhabi-1" + //RegionEUMilan1 region Milan + RegionEUMilan1 Region = "eu-milan-1" + //RegionEUStockholm1 region Stockholm + RegionEUStockholm1 Region = "eu-stockholm-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" + //RegionMXMonterrey1 region Monterrey + RegionMXMonterrey1 Region = "mx-monterrey-1" + //RegionUSSaltlake2 region Saltlake + RegionUSSaltlake2 Region = "us-saltlake-2" + //RegionSABogota1 region Bogota + RegionSABogota1 Region = "sa-bogota-1" + //RegionSAValparaiso1 region Valparaiso + RegionSAValparaiso1 Region = "sa-valparaiso-1" + //RegionAPSingapore2 region Singapore + RegionAPSingapore2 Region = "ap-singapore-2" + //RegionMERiyadh1 region Riyadh + RegionMERiyadh1 Region = "me-riyadh-1" + //RegionAPDelhi1 region Delhi + RegionAPDelhi1 Region = "ap-delhi-1" + //RegionAPBatam1 region Batam + RegionAPBatam1 Region = "ap-batam-1" + //RegionEUMadrid3 region Madrid + RegionEUMadrid3 Region = "eu-madrid-3" + //RegionAPChennai1 region Chennai + RegionAPChennai1 Region = "ap-chennai-1" + //RegionUSColumbus1 region Columbus + RegionUSColumbus1 Region = "us-columbus-1" + //RegionEUTurin1 region Turin + RegionEUTurin1 Region = "eu-turin-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" + //RegionMEIbri1 region Ibri + RegionMEIbri1 Region = "me-ibri-1" + //RegionAPDccCanberra1 region Canberra + RegionAPDccCanberra1 Region = "ap-dcc-canberra-1" + //RegionEUDccMilan1 region Milan + RegionEUDccMilan1 Region = "eu-dcc-milan-1" + //RegionEUDccMilan2 region Milan + RegionEUDccMilan2 Region = "eu-dcc-milan-2" + //RegionEUDccDublin2 region Dublin + RegionEUDccDublin2 Region = "eu-dcc-dublin-2" + //RegionEUDccRating2 region Rating + RegionEUDccRating2 Region = "eu-dcc-rating-2" + //RegionEUDccRating1 region Rating + RegionEUDccRating1 Region = "eu-dcc-rating-1" + //RegionEUDccDublin1 region Dublin + RegionEUDccDublin1 Region = "eu-dcc-dublin-1" + //RegionAPDccGazipur1 region Gazipur + RegionAPDccGazipur1 Region = "ap-dcc-gazipur-1" + //RegionEUMadrid2 region Madrid + RegionEUMadrid2 Region = "eu-madrid-2" + //RegionEUFrankfurt2 region Frankfurt + RegionEUFrankfurt2 Region = "eu-frankfurt-2" + //RegionEUJovanovac1 region Jovanovac + RegionEUJovanovac1 Region = "eu-jovanovac-1" + //RegionMEDccDoha1 region Doha + RegionMEDccDoha1 Region = "me-dcc-doha-1" + //RegionUSSomerset1 region Somerset + RegionUSSomerset1 Region = "us-somerset-1" + //RegionUSThames1 region Thames + RegionUSThames1 Region = "us-thames-1" + //RegionEUDccZurich1 region Zurich + RegionEUDccZurich1 Region = "eu-dcc-zurich-1" + //RegionEUCrissier1 region Crissier + RegionEUCrissier1 Region = "eu-crissier-1" + //RegionMEAbudhabi3 region Abudhabi + RegionMEAbudhabi3 Region = "me-abudhabi-3" + //RegionMEAlain1 region Alain + RegionMEAlain1 Region = "me-alain-1" + //RegionMEAbudhabi2 region Abudhabi + RegionMEAbudhabi2 Region = "me-abudhabi-2" + //RegionMEAbudhabi4 region Abudhabi + RegionMEAbudhabi4 Region = "me-abudhabi-4" + //RegionAPSeoul2 region Seoul + RegionAPSeoul2 Region = "ap-seoul-2" + //RegionAPSuwon1 region Suwon + RegionAPSuwon1 Region = "ap-suwon-1" + //RegionAPChuncheon2 region Chuncheon + RegionAPChuncheon2 Region = "ap-chuncheon-2" + //RegionUSAshburn2 region Ashburn + RegionUSAshburn2 Region = "us-ashburn-2" + //RegionUSNewark1 region Newark + RegionUSNewark1 Region = "us-newark-1" + //RegionEUBudapest1 region Budapest + RegionEUBudapest1 Region = "eu-budapest-1" ) var shortNameRegion = map[string]Region{ - "yny": RegionAPChuncheon1, - "hyd": RegionAPHyderabad1, - "mel": RegionAPMelbourne1, - "bom": RegionAPMumbai1, - "kix": RegionAPOsaka1, - "icn": RegionAPSeoul1, - "syd": RegionAPSydney1, - "nrt": RegionAPTokyo1, - "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, - "vcp": RegionSAVinhedo1, - "scl": RegionSASantiago1, - "mtz": RegionILJerusalem1, - "mrs": RegionEUMarseille1, - "sin": RegionAPSingapore1, - "auh": RegionMEAbudhabi1, - "lin": RegionEUMilan1, - "arn": RegionEUStockholm1, - "jnb": RegionAFJohannesburg1, - "cdg": RegionEUParis1, - "qro": RegionMXQueretaro1, - "mad": RegionEUMadrid1, - "ord": RegionUSChicago1, - "mty": RegionMXMonterrey1, - "aga": RegionUSSaltlake2, - "bog": RegionSABogota1, - "vap": RegionSAValparaiso1, - "xsp": RegionAPSingapore2, - "ruh": RegionMERiyadh1, - "lfi": RegionUSLangley1, - "luf": RegionUSLuke1, - "ric": RegionUSGovAshburn1, - "pia": RegionUSGovChicago1, - "tus": RegionUSGovPhoenix1, - "ltn": RegionUKGovLondon1, - "brs": RegionUKGovCardiff1, - "nja": RegionAPChiyoda1, - "ukb": RegionAPIbaraki1, - "mct": RegionMEDccMuscat1, - "wga": RegionAPDccCanberra1, - "bgy": RegionEUDccMilan1, - "mxp": RegionEUDccMilan2, - "snn": RegionEUDccDublin2, - "dtm": RegionEUDccRating2, - "dus": RegionEUDccRating1, - "ork": RegionEUDccDublin1, - "dac": RegionAPDccGazipur1, - "vll": RegionEUMadrid2, - "str": RegionEUFrankfurt2, - "beg": RegionEUJovanovac1, - "doh": RegionMEDccDoha1, - "ebb": RegionUSSomerset1, - "ebl": RegionUSThames1, - "avz": RegionEUDccZurich1, - "avf": RegionEUCrissier1, - "ahu": RegionMEAbudhabi3, - "rba": RegionMEAlain1, - "rkt": RegionMEAbudhabi2, - "shj": RegionMEAbudhabi4, - "dtz": RegionAPSeoul2, - "dln": RegionAPSuwon1, - "bno": RegionAPChuncheon2, + "yny": RegionAPChuncheon1, + "hyd": RegionAPHyderabad1, + "mel": RegionAPMelbourne1, + "bom": RegionAPMumbai1, + "kix": RegionAPOsaka1, + "icn": RegionAPSeoul1, + "syd": RegionAPSydney1, + "nrt": RegionAPTokyo1, + "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, + "vcp": RegionSAVinhedo1, + "scl": RegionSASantiago1, + "mtz": RegionILJerusalem1, + "mrs": RegionEUMarseille1, + "sin": RegionAPSingapore1, + "auh": RegionMEAbudhabi1, + "lin": RegionEUMilan1, + "arn": RegionEUStockholm1, + "jnb": RegionAFJohannesburg1, + "cdg": RegionEUParis1, + "qro": RegionMXQueretaro1, + "mad": RegionEUMadrid1, + "ord": RegionUSChicago1, + "mty": RegionMXMonterrey1, + "aga": RegionUSSaltlake2, + "bog": RegionSABogota1, + "vap": RegionSAValparaiso1, + "xsp": RegionAPSingapore2, + "ruh": RegionMERiyadh1, + "onm": RegionAPDelhi1, + "hsg": RegionAPBatam1, + "orf": RegionEUMadrid3, + "des": RegionAPChennai1, + "vkz": RegionUSColumbus1, + "nrq": RegionEUTurin1, + "lfi": RegionUSLangley1, + "luf": RegionUSLuke1, + "ric": RegionUSGovAshburn1, + "pia": RegionUSGovChicago1, + "tus": RegionUSGovPhoenix1, + "ltn": RegionUKGovLondon1, + "brs": RegionUKGovCardiff1, + "nja": RegionAPChiyoda1, + "ukb": RegionAPIbaraki1, + "mct": RegionMEDccMuscat1, + "ibr": RegionMEIbri1, + "wga": RegionAPDccCanberra1, + "bgy": RegionEUDccMilan1, + "mxp": RegionEUDccMilan2, + "snn": RegionEUDccDublin2, + "dtm": RegionEUDccRating2, + "dus": RegionEUDccRating1, + "ork": RegionEUDccDublin1, + "dac": RegionAPDccGazipur1, + "vll": RegionEUMadrid2, + "str": RegionEUFrankfurt2, + "beg": RegionEUJovanovac1, + "doh": RegionMEDccDoha1, + "ebb": RegionUSSomerset1, + "ebl": RegionUSThames1, + "avz": RegionEUDccZurich1, + "avf": RegionEUCrissier1, + "ahu": RegionMEAbudhabi3, + "rba": RegionMEAlain1, + "rkt": RegionMEAbudhabi2, + "shj": RegionMEAbudhabi4, + "dtz": RegionAPSeoul2, + "dln": RegionAPSuwon1, + "bno": RegionAPChuncheon2, + "yxj": RegionUSAshburn2, + "pgc": RegionUSNewark1, + "jsk": RegionEUBudapest1, } 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", - "oc19": "oraclecloud.eu", - "oc20": "oraclecloud20.com", - "oc21": "oraclecloud21.com", - "oc23": "oraclecloud23.com", - "oc24": "oraclecloud24.com", - "oc26": "oraclecloud26.com", - "oc29": "oraclecloud29.com", - "oc35": "oraclecloud35.com", + "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", + "oc19": "oraclecloud.eu", + "oc20": "oraclecloud20.com", + "oc21": "oraclecloud21.com", + "oc23": "oraclecloud23.com", + "oc24": "oraclecloud24.com", + "oc26": "oraclecloud26.com", + "oc29": "oraclecloud29.com", + "oc35": "oraclecloud35.com", + "oc42": "oraclecloud42.com", + "oc51": "oraclecloud51.com", } var regionRealm = map[Region]string{ - RegionAPChuncheon1: "oc1", - RegionAPHyderabad1: "oc1", - RegionAPMelbourne1: "oc1", - RegionAPMumbai1: "oc1", - RegionAPOsaka1: "oc1", - RegionAPSeoul1: "oc1", - RegionAPSydney1: "oc1", - RegionAPTokyo1: "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", - RegionSAVinhedo1: "oc1", - RegionSASantiago1: "oc1", - RegionILJerusalem1: "oc1", - RegionEUMarseille1: "oc1", - RegionAPSingapore1: "oc1", - RegionMEAbudhabi1: "oc1", - RegionEUMilan1: "oc1", - RegionEUStockholm1: "oc1", - RegionAFJohannesburg1: "oc1", - RegionEUParis1: "oc1", - RegionMXQueretaro1: "oc1", - RegionEUMadrid1: "oc1", - RegionUSChicago1: "oc1", - RegionMXMonterrey1: "oc1", - RegionUSSaltlake2: "oc1", - RegionSABogota1: "oc1", - RegionSAValparaiso1: "oc1", - RegionAPSingapore2: "oc1", - RegionMERiyadh1: "oc1", + RegionAPChuncheon1: "oc1", + RegionAPHyderabad1: "oc1", + RegionAPMelbourne1: "oc1", + RegionAPMumbai1: "oc1", + RegionAPOsaka1: "oc1", + RegionAPSeoul1: "oc1", + RegionAPSydney1: "oc1", + RegionAPTokyo1: "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", + RegionSAVinhedo1: "oc1", + RegionSASantiago1: "oc1", + RegionILJerusalem1: "oc1", + RegionEUMarseille1: "oc1", + RegionAPSingapore1: "oc1", + RegionMEAbudhabi1: "oc1", + RegionEUMilan1: "oc1", + RegionEUStockholm1: "oc1", + RegionAFJohannesburg1: "oc1", + RegionEUParis1: "oc1", + RegionMXQueretaro1: "oc1", + RegionEUMadrid1: "oc1", + RegionUSChicago1: "oc1", + RegionMXMonterrey1: "oc1", + RegionUSSaltlake2: "oc1", + RegionSABogota1: "oc1", + RegionSAValparaiso1: "oc1", + RegionAPSingapore2: "oc1", + RegionMERiyadh1: "oc1", + RegionAPDelhi1: "oc1", + RegionAPBatam1: "oc1", + RegionEUMadrid3: "oc1", + RegionAPChennai1: "oc1", + RegionUSColumbus1: "oc1", + RegionEUTurin1: "oc1", - RegionUSLangley1: "oc2", - RegionUSLuke1: "oc2", + RegionUSLangley1: "oc2", + RegionUSLuke1: "oc2", - RegionUSGovAshburn1: "oc3", - RegionUSGovChicago1: "oc3", - RegionUSGovPhoenix1: "oc3", + RegionUSGovAshburn1: "oc3", + RegionUSGovChicago1: "oc3", + RegionUSGovPhoenix1: "oc3", - RegionUKGovLondon1: "oc4", - RegionUKGovCardiff1: "oc4", + RegionUKGovLondon1: "oc4", + RegionUKGovCardiff1: "oc4", - RegionAPChiyoda1: "oc8", - RegionAPIbaraki1: "oc8", + RegionAPChiyoda1: "oc8", + RegionAPIbaraki1: "oc8", - RegionMEDccMuscat1: "oc9", + RegionMEDccMuscat1: "oc9", + RegionMEIbri1: "oc9", - RegionAPDccCanberra1: "oc10", + RegionAPDccCanberra1: "oc10", - RegionEUDccMilan1: "oc14", - RegionEUDccMilan2: "oc14", - RegionEUDccDublin2: "oc14", - RegionEUDccRating2: "oc14", - RegionEUDccRating1: "oc14", - RegionEUDccDublin1: "oc14", + RegionEUDccMilan1: "oc14", + RegionEUDccMilan2: "oc14", + RegionEUDccDublin2: "oc14", + RegionEUDccRating2: "oc14", + RegionEUDccRating1: "oc14", + RegionEUDccDublin1: "oc14", - RegionAPDccGazipur1: "oc15", + RegionAPDccGazipur1: "oc15", - RegionEUMadrid2: "oc19", - RegionEUFrankfurt2: "oc19", + RegionEUMadrid2: "oc19", + RegionEUFrankfurt2: "oc19", - RegionEUJovanovac1: "oc20", + RegionEUJovanovac1: "oc20", - RegionMEDccDoha1: "oc21", + RegionMEDccDoha1: "oc21", - RegionUSSomerset1: "oc23", - RegionUSThames1: "oc23", + RegionUSSomerset1: "oc23", + RegionUSThames1: "oc23", - RegionEUDccZurich1: "oc24", - RegionEUCrissier1: "oc24", + RegionEUDccZurich1: "oc24", + RegionEUCrissier1: "oc24", - RegionMEAbudhabi3: "oc26", - RegionMEAlain1: "oc26", + RegionMEAbudhabi3: "oc26", + RegionMEAlain1: "oc26", - RegionMEAbudhabi2: "oc29", - RegionMEAbudhabi4: "oc29", + RegionMEAbudhabi2: "oc29", + RegionMEAbudhabi4: "oc29", - RegionAPSeoul2: "oc35", - RegionAPSuwon1: "oc35", - RegionAPChuncheon2: "oc35", + RegionAPSeoul2: "oc35", + RegionAPSuwon1: "oc35", + RegionAPChuncheon2: "oc35", + + RegionUSAshburn2: "oc42", + RegionUSNewark1: "oc42", + + RegionEUBudapest1: "oc51", } 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 index 84ffa621cd..b330520495 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json @@ -436,5 +436,65 @@ "realmKey": "oc26", "regionIdentifier": "me-alain-1", "realmDomainComponent": "oraclecloud26.com" + }, + { + "regionKey": "yxj", + "realmKey": "oc42", + "regionIdentifier": "us-ashburn-2", + "realmDomainComponent": "oraclecloud42.com" + }, + { + "regionKey": "onm", + "realmKey": "oc1", + "regionIdentifier": "ap-delhi-1", + "realmDomainComponent": "oraclecloud.com" + }, + { + "regionKey": "hsg", + "realmKey": "oc1", + "regionIdentifier": "ap-batam-1", + "realmDomainComponent": "oraclecloud.com" + }, + { + "regionKey": "pgc", + "realmKey": "oc42", + "regionIdentifier": "us-newark-1", + "realmDomainComponent": "oraclecloud42.com" + }, + { + "regionKey": "jsk", + "realmKey": "oc51", + "regionIdentifier": "eu-budapest-1", + "realmDomainComponent": "oraclecloud51.com" + }, + { + "regionKey": "ibr", + "realmKey": "oc9", + "regionIdentifier": "me-ibri-1", + "realmDomainComponent": "oraclecloud9.com" + }, + { + "regionKey": "orf", + "realmKey": "oc1", + "regionIdentifier": "eu-madrid-3", + "realmDomainComponent": "oraclecloud.com" + }, + { + "regionKey": "des", + "realmKey": "oc1", + "regionIdentifier": "ap-chennai-1", + "realmDomainComponent": "oraclecloud.com" + }, + { + "regionKey": "vkz", + "realmKey": "oc1", + "regionIdentifier": "us-columbus-1", + "realmDomainComponent": "oraclecloud.com" + }, + { + "regionKey": "nrq", + "realmKey": "oc1", + "regionIdentifier": "eu-turin-1", + "realmDomainComponent": "oraclecloud.com" } ] \ No newline at end of file diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/retry.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/retry.go index b9ee0946dd..1552fa052e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/retry.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/retry.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/sseReader.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/sseReader.go index 45e224b426..f8c41c82e5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/sseReader.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/sseReader.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/tls_config_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/tls_config_provider.go index 13dc76f111..cdcba13999 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/tls_config_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/tls_config_provider.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/transport_template_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/transport_template_provider.go index 260c1ef8cb..639e1104af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/transport_template_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/transport_template_provider.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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/v65/common/utils/opc_request_id.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/utils/opc_request_id.go index d82f0bf5e7..db32933834 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/utils/opc_request_id.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/utils/opc_request_id.go @@ -6,7 +6,7 @@ import ( "fmt" ) -// GenerateOpcRequestID - Reference: https://confluence.oci.oraclecorp.com/display/DEX/Request+IDs +// GenerateOpcRequestID - // Maximum segment length: 32 characters // Allowed segment contents: regular expression pattern /^[a-zA-Z0-9]{0,32}$/ func GenerateOpcRequestID() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go index af27c28086..1d76969a4b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go @@ -12,7 +12,7 @@ import ( const ( major = "65" - minor = "79" + minor = "105" patch = "0" tag = "" ) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/add_on_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/add_on_options.go index d7944957ed..55c83ee3ee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/add_on_options.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/add_on_options.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m AddOnOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon.go index c6247ce6ad..45f4e9b972 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -56,7 +56,7 @@ func (m Addon) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_configuration.go index 4d79d670b8..b35db39475 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_configuration.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m AddonConfiguration) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_error.go index 2f10b7f933..5d0bc11239 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_error.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_error.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -20,7 +20,7 @@ import ( // AddonError The error info of the addon. type AddonError 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). + // A short error code that defines the upstream error, meant for programmatic parsing. See API Errors (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). Code *string `mandatory:"false" json:"code"` // A human-readable error string of the upstream error. @@ -41,7 +41,7 @@ func (m AddonError) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_lifecycle_state.go index e7339e90ce..c19a154959 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_lifecycle_state.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_option_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_option_summary.go index 46210220f7..30d2e5e44b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_option_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_option_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -42,12 +42,12 @@ type AddonOptionSummary struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -73,7 +73,7 @@ func (m AddonOptionSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_summary.go index aaf7c03f3f..6a5c83729f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -53,7 +53,7 @@ func (m AddonSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_version_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_version_configuration.go index 8c8d9c3eef..082dea3daf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_version_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_version_configuration.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -47,7 +47,7 @@ func (m AddonVersionConfiguration) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_versions.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_versions.go index 2296534d31..cc047eb440 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_versions.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_versions.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -50,7 +50,7 @@ func (m AddonVersions) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetAddonVersionsStatusEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d80d33ca8c..0a383e925e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -35,7 +35,7 @@ func (m AdmissionControllerOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 65f3d4dd43..710eb5e858 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -43,12 +43,12 @@ type Cluster struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -62,7 +62,7 @@ type Cluster struct { // Metadata about the cluster. Metadata *ClusterMetadata `mandatory:"false" json:"metadata"` - // The state of the cluster masters. For more information, see Monitoring Clusters (https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm) + // The state of the cluster masters. For more information, see Monitoring Clusters (https://docs.oracle.com/iaas/Content/ContEng/Tasks/contengmonitoringclusters.htm) LifecycleState ClusterLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // Details about the state of the cluster masters. @@ -85,6 +85,9 @@ type Cluster struct { // The cluster-specific OpenID Connect Discovery endpoint OpenIdConnectDiscoveryEndpoint *string `mandatory:"false" json:"openIdConnectDiscoveryEndpoint"` + + // The cluster-specific OpenID Connect Discovery Key to derive the DiscoveryEndpoint + OpenIdConnectDiscoveryKey *string `mandatory:"false" json:"openIdConnectDiscoveryKey"` } func (m Cluster) String() string { @@ -104,7 +107,7 @@ func (m Cluster) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetClusterTypeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -132,6 +135,7 @@ func (m *Cluster) UnmarshalJSON(data []byte) (e error) { ClusterPodNetworkOptions []clusterpodnetworkoptiondetails `json:"clusterPodNetworkOptions"` Type ClusterTypeEnum `json:"type"` OpenIdConnectDiscoveryEndpoint *string `json:"openIdConnectDiscoveryEndpoint"` + OpenIdConnectDiscoveryKey *string `json:"openIdConnectDiscoveryKey"` }{} e = json.Unmarshal(data, &model) @@ -189,5 +193,7 @@ func (m *Cluster) UnmarshalJSON(data []byte) (e error) { m.OpenIdConnectDiscoveryEndpoint = model.OpenIdConnectDiscoveryEndpoint + m.OpenIdConnectDiscoveryKey = model.OpenIdConnectDiscoveryKey + 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 index e9c0a3dac1..90e6e74a3f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -23,6 +23,9 @@ type ClusterCreateOptions struct { // The OCIDs of the subnets used for Kubernetes services load balancers. ServiceLbSubnetIds []string `mandatory:"false" json:"serviceLbSubnetIds"` + // IP family to use for single stack or define the order of IP families for dual-stack + IpFamilies []ClusterCreateOptionsIpFamiliesEnum `mandatory:"false" json:"ipFamilies,omitempty"` + // Network configuration for Kubernetes. KubernetesNetworkConfig *KubernetesNetworkConfig `mandatory:"false" json:"kubernetesNetworkConfig"` @@ -51,8 +54,56 @@ func (m ClusterCreateOptions) String() string { func (m ClusterCreateOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} + for _, val := range m.IpFamilies { + if _, ok := GetMappingClusterCreateOptionsIpFamiliesEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpFamilies: %s. Supported values are: %s.", val, strings.Join(GetClusterCreateOptionsIpFamiliesEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } + +// ClusterCreateOptionsIpFamiliesEnum Enum with underlying type: string +type ClusterCreateOptionsIpFamiliesEnum string + +// Set of constants representing the allowable values for ClusterCreateOptionsIpFamiliesEnum +const ( + ClusterCreateOptionsIpFamiliesIpv4 ClusterCreateOptionsIpFamiliesEnum = "IPv4" + ClusterCreateOptionsIpFamiliesIpv6 ClusterCreateOptionsIpFamiliesEnum = "IPv6" +) + +var mappingClusterCreateOptionsIpFamiliesEnum = map[string]ClusterCreateOptionsIpFamiliesEnum{ + "IPv4": ClusterCreateOptionsIpFamiliesIpv4, + "IPv6": ClusterCreateOptionsIpFamiliesIpv6, +} + +var mappingClusterCreateOptionsIpFamiliesEnumLowerCase = map[string]ClusterCreateOptionsIpFamiliesEnum{ + "ipv4": ClusterCreateOptionsIpFamiliesIpv4, + "ipv6": ClusterCreateOptionsIpFamiliesIpv6, +} + +// GetClusterCreateOptionsIpFamiliesEnumValues Enumerates the set of values for ClusterCreateOptionsIpFamiliesEnum +func GetClusterCreateOptionsIpFamiliesEnumValues() []ClusterCreateOptionsIpFamiliesEnum { + values := make([]ClusterCreateOptionsIpFamiliesEnum, 0) + for _, v := range mappingClusterCreateOptionsIpFamiliesEnum { + values = append(values, v) + } + return values +} + +// GetClusterCreateOptionsIpFamiliesEnumStringValues Enumerates the set of values in String for ClusterCreateOptionsIpFamiliesEnum +func GetClusterCreateOptionsIpFamiliesEnumStringValues() []string { + return []string{ + "IPv4", + "IPv6", + } +} + +// GetMappingClusterCreateOptionsIpFamiliesEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClusterCreateOptionsIpFamiliesEnum(val string) (ClusterCreateOptionsIpFamiliesEnum, bool) { + enum, ok := mappingClusterCreateOptionsIpFamiliesEnumLowerCase[strings.ToLower(val)] + return enum, ok +} 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 index 4d2db14a0a..982ae66b47 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -41,7 +41,7 @@ func (m ClusterEndpointConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d0b7e5bc56..b0bf835dd1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -32,6 +32,9 @@ type ClusterEndpoints struct { // The FQDN assigned to the Kubernetes API private endpoint. // Example: 'https://yourVcnHostnameEndpoint' VcnHostnameEndpoint *string `mandatory:"false" json:"vcnHostnameEndpoint"` + + // The IPv6 networking Kubernetes API server endpoint. + Ipv6Endpoint *string `mandatory:"false" json:"ipv6Endpoint"` } func (m ClusterEndpoints) String() string { @@ -45,7 +48,7 @@ func (m ClusterEndpoints) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 67cb898583..5216c12427 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go index 25a4ddce7f..70cc02cd47 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -62,7 +62,7 @@ func (m ClusterMetadata) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 829b4308aa..4170ab3f11 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m ClusterMigrateToNativeVcnDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index e85ff36a8c..052e436f53 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ClusterMigrateToNativeVcn.go.html to see an example of how to use ClusterMigrateToNativeVcnRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ClusterMigrateToNativeVcn.go.html to see an example of how to use ClusterMigrateToNativeVcnRequest. type ClusterMigrateToNativeVcnRequest struct { // The OCID of the cluster. @@ -70,7 +70,7 @@ func (request ClusterMigrateToNativeVcnRequest) RetryPolicy() *common.RetryPolic func (request ClusterMigrateToNativeVcnRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e57770322b..fa03edc244 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -41,7 +41,7 @@ func (m ClusterMigrateToNativeVcnStatus) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_node.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_node.go new file mode 100644 index 0000000000..10f4d04876 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_node.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Kubernetes Engine API +// +// API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterNode The properties that define a cluster node. +type ClusterNode struct { + + // The OCID of the compute instance backing this node. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the cluster to which this node belongs. + ClusterId *string `mandatory:"false" json:"clusterId"` +} + +func (m ClusterNode) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterNode) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} 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 index f1790141ba..23cfe4e69c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -39,7 +39,7 @@ func (m ClusterOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index dc854ded84..1a4708349a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -61,7 +61,7 @@ func (m *clusterpodnetworkoptiondetails) UnmarshalPolymorphicJSON(data []byte) ( err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for ClusterPodNetworkOptionDetails: %s.", m.CniType) + common.Logf("Received unsupported enum value for ClusterPodNetworkOptionDetails: %s.", m.CniType) return *m, nil } } @@ -77,7 +77,7 @@ func (m clusterpodnetworkoptiondetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d84864fb28..67ed0a49d8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -40,12 +40,12 @@ type ClusterSummary struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -59,7 +59,7 @@ type ClusterSummary struct { // Metadata about the cluster. Metadata *ClusterMetadata `mandatory:"false" json:"metadata"` - // The state of the cluster masters. For more information, see Monitoring Clusters (https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm) + // The state of the cluster masters. For more information, see Monitoring Clusters (https://docs.oracle.com/iaas/Content/ContEng/Tasks/contengmonitoringclusters.htm) LifecycleState ClusterLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // Details about the state of the cluster masters. @@ -77,7 +77,7 @@ type ClusterSummary struct { // Available CNIs and network options for existing and new node pools of the cluster ClusterPodNetworkOptions []ClusterPodNetworkOptionDetails `mandatory:"false" json:"clusterPodNetworkOptions"` - // Type of cluster. Values can be BASIC_CLUSTER or ENHANCED_CLUSTER. For more information, see Cluster Types (https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengcomparingenhancedwithbasicclusters_topic.htm) + // Type of cluster. Values can be BASIC_CLUSTER or ENHANCED_CLUSTER. For more information, see Cluster Types (https://docs.oracle.com/iaas/Content/ContEng/Tasks/contengcomparingenhancedwithbasicclusters_topic.htm) Type ClusterTypeEnum `mandatory:"false" json:"type,omitempty"` } @@ -98,7 +98,7 @@ func (m ClusterSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetClusterTypeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_type.go index 52e7876580..f185c31c26 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_type.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go index 416ca633db..a1efde28f0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CompleteCredentialRotation.go.html to see an example of how to use CompleteCredentialRotationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CompleteCredentialRotation.go.html to see an example of how to use CompleteCredentialRotationRequest. type CompleteCredentialRotationRequest struct { // The OCID of the cluster. @@ -71,7 +71,7 @@ func (request CompleteCredentialRotationRequest) RetryPolicy() *common.RetryPoli func (request CompleteCredentialRotationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index fc94e57af9..55e5dcb84e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -97,7 +97,7 @@ func (client *ContainerEngineClient) ConfigurationProvider() *common.Configurati // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ClusterMigrateToNativeVcn.go.html to see an example of how to use ClusterMigrateToNativeVcn API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ClusterMigrateToNativeVcn.go.html to see an example of how to use ClusterMigrateToNativeVcn API. // 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 @@ -155,7 +155,7 @@ func (client ContainerEngineClient) clusterMigrateToNativeVcn(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CompleteCredentialRotation.go.html to see an example of how to use CompleteCredentialRotation API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CompleteCredentialRotation.go.html to see an example of how to use CompleteCredentialRotation API. // A default retry strategy applies to this operation CompleteCredentialRotation() func (client ContainerEngineClient) CompleteCredentialRotation(ctx context.Context, request CompleteCredentialRotationRequest) (response CompleteCredentialRotationResponse, err error) { var ociResponse common.OCIResponse @@ -218,7 +218,7 @@ func (client ContainerEngineClient) completeCredentialRotation(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateCluster.go.html to see an example of how to use CreateCluster API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateCluster.go.html to see an example of how to use CreateCluster API. // 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 @@ -281,7 +281,7 @@ func (client ContainerEngineClient) createCluster(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateKubeconfig.go.html to see an example of how to use CreateKubeconfig API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateKubeconfig.go.html to see an example of how to use CreateKubeconfig API. // 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 @@ -338,7 +338,7 @@ func (client ContainerEngineClient) createKubeconfig(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateNodePool.go.html to see an example of how to use CreateNodePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateNodePool.go.html to see an example of how to use CreateNodePool API. // 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 @@ -401,7 +401,7 @@ func (client ContainerEngineClient) createNodePool(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateVirtualNodePool.go.html to see an example of how to use CreateVirtualNodePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateVirtualNodePool.go.html to see an example of how to use CreateVirtualNodePool API. // 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 @@ -464,7 +464,7 @@ func (client ContainerEngineClient) createVirtualNodePool(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateWorkloadMapping.go.html to see an example of how to use CreateWorkloadMapping API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateWorkloadMapping.go.html to see an example of how to use CreateWorkloadMapping API. // A default retry strategy applies to this operation CreateWorkloadMapping() func (client ContainerEngineClient) CreateWorkloadMapping(ctx context.Context, request CreateWorkloadMappingRequest) (response CreateWorkloadMappingResponse, err error) { var ociResponse common.OCIResponse @@ -527,7 +527,7 @@ func (client ContainerEngineClient) createWorkloadMapping(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteCluster.go.html to see an example of how to use DeleteCluster API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteCluster.go.html to see an example of how to use DeleteCluster API. // 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 @@ -585,7 +585,7 @@ func (client ContainerEngineClient) deleteCluster(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteNode.go.html to see an example of how to use DeleteNode API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteNode.go.html to see an example of how to use DeleteNode API. // 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 @@ -643,7 +643,7 @@ func (client ContainerEngineClient) deleteNode(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteNodePool.go.html to see an example of how to use DeleteNodePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteNodePool.go.html to see an example of how to use DeleteNodePool API. // 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 @@ -701,7 +701,7 @@ func (client ContainerEngineClient) deleteNodePool(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteVirtualNodePool.go.html to see an example of how to use DeleteVirtualNodePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteVirtualNodePool.go.html to see an example of how to use DeleteVirtualNodePool API. // 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 @@ -759,7 +759,7 @@ func (client ContainerEngineClient) deleteVirtualNodePool(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteWorkRequest.go.html to see an example of how to use DeleteWorkRequest API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteWorkRequest.go.html to see an example of how to use DeleteWorkRequest API. // 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 @@ -817,7 +817,7 @@ func (client ContainerEngineClient) deleteWorkRequest(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteWorkloadMapping.go.html to see an example of how to use DeleteWorkloadMapping API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteWorkloadMapping.go.html to see an example of how to use DeleteWorkloadMapping API. // A default retry strategy applies to this operation DeleteWorkloadMapping() func (client ContainerEngineClient) DeleteWorkloadMapping(ctx context.Context, request DeleteWorkloadMappingRequest) (response DeleteWorkloadMappingResponse, err error) { var ociResponse common.OCIResponse @@ -875,7 +875,7 @@ func (client ContainerEngineClient) deleteWorkloadMapping(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DisableAddon.go.html to see an example of how to use DisableAddon API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DisableAddon.go.html to see an example of how to use DisableAddon API. // A default retry strategy applies to this operation DisableAddon() func (client ContainerEngineClient) DisableAddon(ctx context.Context, request DisableAddonRequest) (response DisableAddonResponse, err error) { var ociResponse common.OCIResponse @@ -933,7 +933,7 @@ func (client ContainerEngineClient) disableAddon(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetAddon.go.html to see an example of how to use GetAddon API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetAddon.go.html to see an example of how to use GetAddon API. // A default retry strategy applies to this operation GetAddon() func (client ContainerEngineClient) GetAddon(ctx context.Context, request GetAddonRequest) (response GetAddonResponse, err error) { var ociResponse common.OCIResponse @@ -991,7 +991,7 @@ func (client ContainerEngineClient) getAddon(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCluster.go.html to see an example of how to use GetCluster API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCluster.go.html to see an example of how to use GetCluster API. // 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 @@ -1049,7 +1049,7 @@ func (client ContainerEngineClient) getCluster(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetClusterMigrateToNativeVcnStatus.go.html to see an example of how to use GetClusterMigrateToNativeVcnStatus API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetClusterMigrateToNativeVcnStatus.go.html to see an example of how to use GetClusterMigrateToNativeVcnStatus API. // 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 @@ -1107,7 +1107,7 @@ func (client ContainerEngineClient) getClusterMigrateToNativeVcnStatus(ctx conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetClusterOptions.go.html to see an example of how to use GetClusterOptions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetClusterOptions.go.html to see an example of how to use GetClusterOptions API. // 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 @@ -1165,7 +1165,7 @@ func (client ContainerEngineClient) getClusterOptions(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCredentialRotationStatus.go.html to see an example of how to use GetCredentialRotationStatus API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCredentialRotationStatus.go.html to see an example of how to use GetCredentialRotationStatus API. // A default retry strategy applies to this operation GetCredentialRotationStatus() func (client ContainerEngineClient) GetCredentialRotationStatus(ctx context.Context, request GetCredentialRotationStatusRequest) (response GetCredentialRotationStatusResponse, err error) { var ociResponse common.OCIResponse @@ -1223,7 +1223,7 @@ func (client ContainerEngineClient) getCredentialRotationStatus(ctx context.Cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetNodePool.go.html to see an example of how to use GetNodePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetNodePool.go.html to see an example of how to use GetNodePool API. // 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 @@ -1281,7 +1281,7 @@ func (client ContainerEngineClient) getNodePool(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetNodePoolOptions.go.html to see an example of how to use GetNodePoolOptions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetNodePoolOptions.go.html to see an example of how to use GetNodePoolOptions API. // 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 @@ -1339,7 +1339,7 @@ func (client ContainerEngineClient) getNodePoolOptions(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetVirtualNode.go.html to see an example of how to use GetVirtualNode API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetVirtualNode.go.html to see an example of how to use GetVirtualNode API. // 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 @@ -1397,7 +1397,7 @@ func (client ContainerEngineClient) getVirtualNode(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetVirtualNodePool.go.html to see an example of how to use GetVirtualNodePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetVirtualNodePool.go.html to see an example of how to use GetVirtualNodePool API. // 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 @@ -1455,7 +1455,7 @@ func (client ContainerEngineClient) getVirtualNodePool(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. // 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 @@ -1513,7 +1513,7 @@ func (client ContainerEngineClient) getWorkRequest(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetWorkloadMapping.go.html to see an example of how to use GetWorkloadMapping API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetWorkloadMapping.go.html to see an example of how to use GetWorkloadMapping API. // A default retry strategy applies to this operation GetWorkloadMapping() func (client ContainerEngineClient) GetWorkloadMapping(ctx context.Context, request GetWorkloadMappingRequest) (response GetWorkloadMappingResponse, err error) { var ociResponse common.OCIResponse @@ -1571,7 +1571,7 @@ func (client ContainerEngineClient) getWorkloadMapping(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/InstallAddon.go.html to see an example of how to use InstallAddon API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/InstallAddon.go.html to see an example of how to use InstallAddon API. // A default retry strategy applies to this operation InstallAddon() func (client ContainerEngineClient) InstallAddon(ctx context.Context, request InstallAddonRequest) (response InstallAddonResponse, err error) { var ociResponse common.OCIResponse @@ -1634,7 +1634,7 @@ func (client ContainerEngineClient) installAddon(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListAddonOptions.go.html to see an example of how to use ListAddonOptions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListAddonOptions.go.html to see an example of how to use ListAddonOptions API. // A default retry strategy applies to this operation ListAddonOptions() func (client ContainerEngineClient) ListAddonOptions(ctx context.Context, request ListAddonOptionsRequest) (response ListAddonOptionsResponse, err error) { var ociResponse common.OCIResponse @@ -1692,7 +1692,7 @@ func (client ContainerEngineClient) listAddonOptions(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListAddons.go.html to see an example of how to use ListAddons API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListAddons.go.html to see an example of how to use ListAddons API. // A default retry strategy applies to this operation ListAddons() func (client ContainerEngineClient) ListAddons(ctx context.Context, request ListAddonsRequest) (response ListAddonsResponse, err error) { var ociResponse common.OCIResponse @@ -1750,7 +1750,7 @@ func (client ContainerEngineClient) listAddons(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListClusters.go.html to see an example of how to use ListClusters API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListClusters.go.html to see an example of how to use ListClusters API. // 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 @@ -1808,7 +1808,7 @@ func (client ContainerEngineClient) listClusters(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListNodePools.go.html to see an example of how to use ListNodePools API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListNodePools.go.html to see an example of how to use ListNodePools API. // 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 @@ -1866,7 +1866,7 @@ func (client ContainerEngineClient) listNodePools(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListPodShapes.go.html to see an example of how to use ListPodShapes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListPodShapes.go.html to see an example of how to use ListPodShapes API. // 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 @@ -1924,7 +1924,7 @@ func (client ContainerEngineClient) listPodShapes(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListVirtualNodePools.go.html to see an example of how to use ListVirtualNodePools API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListVirtualNodePools.go.html to see an example of how to use ListVirtualNodePools API. // 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 @@ -1982,7 +1982,7 @@ func (client ContainerEngineClient) listVirtualNodePools(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListVirtualNodes.go.html to see an example of how to use ListVirtualNodes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListVirtualNodes.go.html to see an example of how to use ListVirtualNodes API. // 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 @@ -2040,7 +2040,7 @@ func (client ContainerEngineClient) listVirtualNodes(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. // 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 @@ -2098,7 +2098,7 @@ func (client ContainerEngineClient) listWorkRequestErrors(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. // 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 @@ -2156,7 +2156,7 @@ func (client ContainerEngineClient) listWorkRequestLogs(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. // 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 @@ -2214,7 +2214,7 @@ func (client ContainerEngineClient) listWorkRequests(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkloadMappings.go.html to see an example of how to use ListWorkloadMappings API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkloadMappings.go.html to see an example of how to use ListWorkloadMappings API. // A default retry strategy applies to this operation ListWorkloadMappings() func (client ContainerEngineClient) ListWorkloadMappings(ctx context.Context, request ListWorkloadMappingsRequest) (response ListWorkloadMappingsResponse, err error) { var ociResponse common.OCIResponse @@ -2268,11 +2268,137 @@ func (client ContainerEngineClient) listWorkloadMappings(ctx context.Context, re return response, err } +// RebootClusterNode perform reboot action to node in cluster +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/RebootClusterNode.go.html to see an example of how to use RebootClusterNode API. +// A default retry strategy applies to this operation RebootClusterNode() +func (client ContainerEngineClient) RebootClusterNode(ctx context.Context, request RebootClusterNodeRequest) (response RebootClusterNodeResponse, 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.rebootClusterNode, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RebootClusterNodeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RebootClusterNodeResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RebootClusterNodeResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RebootClusterNodeResponse") + } + return +} + +// rebootClusterNode implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) rebootClusterNode(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/nodes/{nodeId}/actions/reboot", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RebootClusterNodeResponse + 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/RebootClusterNode" + err = common.PostProcessServiceError(err, "ContainerEngine", "RebootClusterNode", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ReplaceBootVolumeClusterNode perform cycle action to node in cluster +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ReplaceBootVolumeClusterNode.go.html to see an example of how to use ReplaceBootVolumeClusterNode API. +// A default retry strategy applies to this operation ReplaceBootVolumeClusterNode() +func (client ContainerEngineClient) ReplaceBootVolumeClusterNode(ctx context.Context, request ReplaceBootVolumeClusterNodeRequest) (response ReplaceBootVolumeClusterNodeResponse, 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.replaceBootVolumeClusterNode, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ReplaceBootVolumeClusterNodeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ReplaceBootVolumeClusterNodeResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ReplaceBootVolumeClusterNodeResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ReplaceBootVolumeClusterNodeResponse") + } + return +} + +// replaceBootVolumeClusterNode implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) replaceBootVolumeClusterNode(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/nodes/{nodeId}/actions/replaceBootVolume", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ReplaceBootVolumeClusterNodeResponse + 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/ReplaceBootVolumeClusterNode" + err = common.PostProcessServiceError(err, "ContainerEngine", "ReplaceBootVolumeClusterNode", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // StartCredentialRotation Start cluster credential rotation by adding new credentials, old credentials will still work after this operation. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/StartCredentialRotation.go.html to see an example of how to use StartCredentialRotation API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/StartCredentialRotation.go.html to see an example of how to use StartCredentialRotation API. // A default retry strategy applies to this operation StartCredentialRotation() func (client ContainerEngineClient) StartCredentialRotation(ctx context.Context, request StartCredentialRotationRequest) (response StartCredentialRotationResponse, err error) { var ociResponse common.OCIResponse @@ -2335,7 +2461,7 @@ func (client ContainerEngineClient) startCredentialRotation(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateAddon.go.html to see an example of how to use UpdateAddon API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateAddon.go.html to see an example of how to use UpdateAddon API. // A default retry strategy applies to this operation UpdateAddon() func (client ContainerEngineClient) UpdateAddon(ctx context.Context, request UpdateAddonRequest) (response UpdateAddonResponse, err error) { var ociResponse common.OCIResponse @@ -2393,7 +2519,7 @@ func (client ContainerEngineClient) updateAddon(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateCluster.go.html to see an example of how to use UpdateCluster API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateCluster.go.html to see an example of how to use UpdateCluster API. // 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 @@ -2451,7 +2577,7 @@ func (client ContainerEngineClient) updateCluster(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateClusterEndpointConfig.go.html to see an example of how to use UpdateClusterEndpointConfig API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateClusterEndpointConfig.go.html to see an example of how to use UpdateClusterEndpointConfig API. // 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 @@ -2509,7 +2635,7 @@ func (client ContainerEngineClient) updateClusterEndpointConfig(ctx context.Cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateNodePool.go.html to see an example of how to use UpdateNodePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateNodePool.go.html to see an example of how to use UpdateNodePool API. // 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 @@ -2567,7 +2693,7 @@ func (client ContainerEngineClient) updateNodePool(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateVirtualNodePool.go.html to see an example of how to use UpdateVirtualNodePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateVirtualNodePool.go.html to see an example of how to use UpdateVirtualNodePool API. // 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 @@ -2625,7 +2751,7 @@ func (client ContainerEngineClient) updateVirtualNodePool(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateWorkloadMapping.go.html to see an example of how to use UpdateWorkloadMapping API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateWorkloadMapping.go.html to see an example of how to use UpdateWorkloadMapping API. // A default retry strategy applies to this operation UpdateWorkloadMapping() func (client ContainerEngineClient) UpdateWorkloadMapping(ctx context.Context, request UpdateWorkloadMappingRequest) (response UpdateWorkloadMappingResponse, err error) { var ociResponse common.OCIResponse 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 index 60c01becbc..3acf0cb835 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -41,12 +41,12 @@ type CreateClusterDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -79,7 +79,7 @@ func (m CreateClusterDetails) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetClusterTypeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f847686e7c..bea8155ef1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -41,7 +41,7 @@ func (m CreateClusterEndpointConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e108dded1c..f557d21f48 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -44,7 +44,7 @@ func (m CreateClusterKubeconfigContentDetails) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_request_response.go index 934710458c..cf88ce4261 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateCluster.go.html to see an example of how to use CreateClusterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateCluster.go.html to see an example of how to use CreateClusterRequest. type CreateClusterRequest struct { // The details of the cluster to create. @@ -66,7 +66,7 @@ func (request CreateClusterRequest) RetryPolicy() *common.RetryPolicy { func (request CreateClusterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b7abd79282..65edbb5667 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m CreateImagePolicyConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_kubeconfig_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_kubeconfig_request_response.go index f31c8e45a2..2425310977 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_kubeconfig_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_kubeconfig_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,7 +16,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateKubeconfig.go.html to see an example of how to use CreateKubeconfigRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateKubeconfig.go.html to see an example of how to use CreateKubeconfigRequest. type CreateKubeconfigRequest struct { // The OCID of the cluster. @@ -66,7 +66,7 @@ func (request CreateKubeconfigRequest) RetryPolicy() *common.RetryPolicy { func (request CreateKubeconfigRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3dfdfdf2e3..c710271dd0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -70,12 +70,12 @@ type CreateNodePoolDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -95,7 +95,7 @@ func (m CreateNodePoolDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1b229cd542..f61062b97f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -41,12 +41,12 @@ type CreateNodePoolNodeConfigDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -65,7 +65,7 @@ func (m CreateNodePoolNodeConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_request_response.go index d63f06b886..543caa5821 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateNodePool.go.html to see an example of how to use CreateNodePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateNodePool.go.html to see an example of how to use CreateNodePoolRequest. type CreateNodePoolRequest struct { // The details of the node pool to create. @@ -66,7 +66,7 @@ func (request CreateNodePoolRequest) RetryPolicy() *common.RetryPolicy { func (request CreateNodePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0e1efee1f8..124ca6cdca 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -21,7 +21,7 @@ import ( 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. + // See here (https://docs.oracle.com/iaas/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. @@ -39,7 +39,7 @@ func (m CreateNodeShapeConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 212c656681..9bb1dba7f6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -29,6 +29,9 @@ type CreateVirtualNodePoolDetails struct { // Display name of the virtual node pool. This is a non-unique value. DisplayName *string `mandatory:"true" json:"displayName"` + // 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:"true" 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:"true" json:"placementConfigurations"` @@ -38,9 +41,6 @@ type CreateVirtualNodePoolDetails struct { // 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"` @@ -48,12 +48,12 @@ type CreateVirtualNodePoolDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -71,7 +71,7 @@ func (m CreateVirtualNodePoolDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 359e45b76e..2992de0f5d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateVirtualNodePool.go.html to see an example of how to use CreateVirtualNodePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateVirtualNodePool.go.html to see an example of how to use CreateVirtualNodePoolRequest. type CreateVirtualNodePoolRequest struct { // The details of the virtual node pool to create. @@ -66,7 +66,7 @@ func (request CreateVirtualNodePoolRequest) RetryPolicy() *common.RetryPolicy { func (request CreateVirtualNodePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_workload_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_workload_mapping_details.go index 080a552bd3..00babdfef7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_workload_mapping_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_workload_mapping_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -27,12 +27,12 @@ type CreateWorkloadMappingDetails struct { MappedCompartmentId *string `mandatory:"true" json:"mappedCompartmentId"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -48,7 +48,7 @@ func (m CreateWorkloadMappingDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_workload_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_workload_mapping_request_response.go index 7c4f31628b..488dd57750 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_workload_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_workload_mapping_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateWorkloadMapping.go.html to see an example of how to use CreateWorkloadMappingRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CreateWorkloadMapping.go.html to see an example of how to use CreateWorkloadMappingRequest. type CreateWorkloadMappingRequest struct { // The OCID of the cluster. @@ -69,7 +69,7 @@ func (request CreateWorkloadMappingRequest) RetryPolicy() *common.RetryPolicy { func (request CreateWorkloadMappingRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go index f3a3bce1e4..7166713954 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -54,7 +54,7 @@ func (m CredentialRotationStatus) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cycle_mode.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cycle_mode.go new file mode 100644 index 0000000000..be37ece220 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cycle_mode.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Kubernetes Engine API +// +// API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "strings" +) + +// CycleModeEnum Enum with underlying type: string +type CycleModeEnum string + +// Set of constants representing the allowable values for CycleModeEnum +const ( + CycleModeBootVolumeReplace CycleModeEnum = "BOOT_VOLUME_REPLACE" + CycleModeInstanceReplace CycleModeEnum = "INSTANCE_REPLACE" +) + +var mappingCycleModeEnum = map[string]CycleModeEnum{ + "BOOT_VOLUME_REPLACE": CycleModeBootVolumeReplace, + "INSTANCE_REPLACE": CycleModeInstanceReplace, +} + +var mappingCycleModeEnumLowerCase = map[string]CycleModeEnum{ + "boot_volume_replace": CycleModeBootVolumeReplace, + "instance_replace": CycleModeInstanceReplace, +} + +// GetCycleModeEnumValues Enumerates the set of values for CycleModeEnum +func GetCycleModeEnumValues() []CycleModeEnum { + values := make([]CycleModeEnum, 0) + for _, v := range mappingCycleModeEnum { + values = append(values, v) + } + return values +} + +// GetCycleModeEnumStringValues Enumerates the set of values in String for CycleModeEnum +func GetCycleModeEnumStringValues() []string { + return []string{ + "BOOT_VOLUME_REPLACE", + "INSTANCE_REPLACE", + } +} + +// GetMappingCycleModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCycleModeEnum(val string) (CycleModeEnum, bool) { + enum, ok := mappingCycleModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_cluster_request_response.go index 162fb193c4..3bae51da5d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_cluster_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteCluster.go.html to see an example of how to use DeleteClusterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteCluster.go.html to see an example of how to use DeleteClusterRequest. type DeleteClusterRequest struct { // The OCID of the cluster. @@ -67,7 +67,7 @@ func (request DeleteClusterRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteClusterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b6415945c3..ad33152e1b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteNodePool.go.html to see an example of how to use DeleteNodePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteNodePool.go.html to see an example of how to use DeleteNodePoolRequest. type DeleteNodePoolRequest struct { // The OCID of the node pool. @@ -74,7 +74,7 @@ func (request DeleteNodePoolRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteNodePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f99104b088..f36e0a296b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteNode.go.html to see an example of how to use DeleteNodeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteNode.go.html to see an example of how to use DeleteNodeRequest. type DeleteNodeRequest struct { // The OCID of the node pool. @@ -80,7 +80,7 @@ func (request DeleteNodeRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteNodeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 394309a191..cad66f037a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteVirtualNodePool.go.html to see an example of how to use DeleteVirtualNodePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteVirtualNodePool.go.html to see an example of how to use DeleteVirtualNodePoolRequest. type DeleteVirtualNodePoolRequest struct { // The OCID of the virtual node pool. @@ -74,7 +74,7 @@ func (request DeleteVirtualNodePoolRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteVirtualNodePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_work_request_request_response.go index b030cdcbfc..2f3b0c8965 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_work_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_work_request_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteWorkRequest.go.html to see an example of how to use DeleteWorkRequestRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteWorkRequest.go.html to see an example of how to use DeleteWorkRequestRequest. type DeleteWorkRequestRequest struct { // The OCID of the work request. @@ -67,7 +67,7 @@ func (request DeleteWorkRequestRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteWorkRequestRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_workload_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_workload_mapping_request_response.go index f2c8ff3b84..fcdd39961e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_workload_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_workload_mapping_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteWorkloadMapping.go.html to see an example of how to use DeleteWorkloadMappingRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DeleteWorkloadMapping.go.html to see an example of how to use DeleteWorkloadMappingRequest. type DeleteWorkloadMappingRequest struct { // The OCID of the cluster. @@ -70,7 +70,7 @@ func (request DeleteWorkloadMappingRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteWorkloadMappingRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/disable_addon_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/disable_addon_request_response.go index 1f428d3e35..0400aecfea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/disable_addon_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/disable_addon_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DisableAddon.go.html to see an example of how to use DisableAddonRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/DisableAddon.go.html to see an example of how to use DisableAddonRequest. type DisableAddonRequest struct { // The OCID of the cluster. @@ -73,7 +73,7 @@ func (request DisableAddonRequest) RetryPolicy() *common.RetryPolicy { func (request DisableAddonRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 73031e9184..d62aa20c18 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -33,7 +33,7 @@ func (m FlannelOverlayClusterPodNetworkOptionDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 54e054c010..fe910e5813 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -33,7 +33,7 @@ func (m FlannelOverlayNodePoolPodNetworkOptionDetails) ValidateEnumValue() (bool errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_addon_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_addon_request_response.go index 0e2f5e28bc..93a8873e1e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_addon_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_addon_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetAddon.go.html to see an example of how to use GetAddonRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetAddon.go.html to see an example of how to use GetAddonRequest. type GetAddonRequest struct { // The OCID of the cluster. @@ -65,7 +65,7 @@ func (request GetAddonRequest) RetryPolicy() *common.RetryPolicy { func (request GetAddonRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 90f618a028..9b00a94424 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetClusterMigrateToNativeVcnStatus.go.html to see an example of how to use GetClusterMigrateToNativeVcnStatusRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetClusterMigrateToNativeVcnStatus.go.html to see an example of how to use GetClusterMigrateToNativeVcnStatusRequest. type GetClusterMigrateToNativeVcnStatusRequest struct { // The OCID of the cluster. @@ -62,7 +62,7 @@ func (request GetClusterMigrateToNativeVcnStatusRequest) RetryPolicy() *common.R func (request GetClusterMigrateToNativeVcnStatusRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_options_request_response.go index 5f43d622c7..a472639c58 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_options_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetClusterOptions.go.html to see an example of how to use GetClusterOptionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetClusterOptions.go.html to see an example of how to use GetClusterOptionsRequest. type GetClusterOptionsRequest struct { // The id of the option set to retrieve. Use "all" get all options, or use a cluster ID to get options specific to the provided cluster. @@ -24,6 +24,9 @@ type GetClusterOptionsRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + // Option to show all kubernetes patch versions + ShouldListAllPatchVersions *bool `mandatory:"false" contributesTo:"query" name:"shouldListAllPatchVersions"` + // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -65,7 +68,7 @@ func (request GetClusterOptionsRequest) RetryPolicy() *common.RetryPolicy { func (request GetClusterOptionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_request_response.go index cb8dee2977..5497b45839 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCluster.go.html to see an example of how to use GetClusterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCluster.go.html to see an example of how to use GetClusterRequest. type GetClusterRequest struct { // The OCID of the cluster. @@ -25,6 +25,9 @@ type GetClusterRequest struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // Boolean value to determine if the OpenIdConnectAuth configuration file should be displayed for the provided cluster. + ShouldIncludeOidcConfigFile *bool `mandatory:"false" contributesTo:"query" name:"shouldIncludeOidcConfigFile"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -62,7 +65,7 @@ func (request GetClusterRequest) RetryPolicy() *common.RetryPolicy { func (request GetClusterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go index 583fb2cd7f..5791c165ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCredentialRotationStatus.go.html to see an example of how to use GetCredentialRotationStatusRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCredentialRotationStatus.go.html to see an example of how to use GetCredentialRotationStatusRequest. type GetCredentialRotationStatusRequest struct { // The OCID of the cluster. @@ -62,7 +62,7 @@ func (request GetCredentialRotationStatusRequest) RetryPolicy() *common.RetryPol func (request GetCredentialRotationStatusRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 6979f9e0eb..d583ed8d0d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetNodePoolOptions.go.html to see an example of how to use GetNodePoolOptionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetNodePoolOptions.go.html to see an example of how to use GetNodePoolOptionsRequest. type GetNodePoolOptionsRequest struct { // The id of the option set to retrieve. Use "all" get all options, or use a cluster ID to get options specific to the provided cluster. @@ -24,6 +24,18 @@ type GetNodePoolOptionsRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + // Option to show all kubernetes patch versions + ShouldListAllPatchVersions *bool `mandatory:"false" contributesTo:"query" name:"shouldListAllPatchVersions"` + + // Filter node pool options by OS type. + NodePoolOsType GetNodePoolOptionsNodePoolOsTypeEnum `mandatory:"false" contributesTo:"query" name:"nodePoolOsType" omitEmpty:"true"` + + // Filter node pool options by OS architecture. + NodePoolOsArch GetNodePoolOptionsNodePoolOsArchEnum `mandatory:"false" contributesTo:"query" name:"nodePoolOsArch" omitEmpty:"true"` + + // Filter node pool options by Kubernetes version. + NodePoolK8sVersion *string `mandatory:"false" contributesTo:"query" name:"nodePoolK8sVersion"` + // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -64,8 +76,14 @@ func (request GetNodePoolOptionsRequest) RetryPolicy() *common.RetryPolicy { // Not recommended for calling this function directly func (request GetNodePoolOptionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingGetNodePoolOptionsNodePoolOsTypeEnum(string(request.NodePoolOsType)); !ok && request.NodePoolOsType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NodePoolOsType: %s. Supported values are: %s.", request.NodePoolOsType, strings.Join(GetGetNodePoolOptionsNodePoolOsTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingGetNodePoolOptionsNodePoolOsArchEnum(string(request.NodePoolOsArch)); !ok && request.NodePoolOsArch != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NodePoolOsArch: %s. Supported values are: %s.", request.NodePoolOsArch, strings.Join(GetGetNodePoolOptionsNodePoolOsArchEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,3 +110,91 @@ func (response GetNodePoolOptionsResponse) String() string { func (response GetNodePoolOptionsResponse) HTTPResponse() *http.Response { return response.RawResponse } + +// GetNodePoolOptionsNodePoolOsTypeEnum Enum with underlying type: string +type GetNodePoolOptionsNodePoolOsTypeEnum string + +// Set of constants representing the allowable values for GetNodePoolOptionsNodePoolOsTypeEnum +const ( + GetNodePoolOptionsNodePoolOsTypeOl7 GetNodePoolOptionsNodePoolOsTypeEnum = "OL7" + GetNodePoolOptionsNodePoolOsTypeOl8 GetNodePoolOptionsNodePoolOsTypeEnum = "OL8" + GetNodePoolOptionsNodePoolOsTypeUbuntu GetNodePoolOptionsNodePoolOsTypeEnum = "UBUNTU" +) + +var mappingGetNodePoolOptionsNodePoolOsTypeEnum = map[string]GetNodePoolOptionsNodePoolOsTypeEnum{ + "OL7": GetNodePoolOptionsNodePoolOsTypeOl7, + "OL8": GetNodePoolOptionsNodePoolOsTypeOl8, + "UBUNTU": GetNodePoolOptionsNodePoolOsTypeUbuntu, +} + +var mappingGetNodePoolOptionsNodePoolOsTypeEnumLowerCase = map[string]GetNodePoolOptionsNodePoolOsTypeEnum{ + "ol7": GetNodePoolOptionsNodePoolOsTypeOl7, + "ol8": GetNodePoolOptionsNodePoolOsTypeOl8, + "ubuntu": GetNodePoolOptionsNodePoolOsTypeUbuntu, +} + +// GetGetNodePoolOptionsNodePoolOsTypeEnumValues Enumerates the set of values for GetNodePoolOptionsNodePoolOsTypeEnum +func GetGetNodePoolOptionsNodePoolOsTypeEnumValues() []GetNodePoolOptionsNodePoolOsTypeEnum { + values := make([]GetNodePoolOptionsNodePoolOsTypeEnum, 0) + for _, v := range mappingGetNodePoolOptionsNodePoolOsTypeEnum { + values = append(values, v) + } + return values +} + +// GetGetNodePoolOptionsNodePoolOsTypeEnumStringValues Enumerates the set of values in String for GetNodePoolOptionsNodePoolOsTypeEnum +func GetGetNodePoolOptionsNodePoolOsTypeEnumStringValues() []string { + return []string{ + "OL7", + "OL8", + "UBUNTU", + } +} + +// GetMappingGetNodePoolOptionsNodePoolOsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetNodePoolOptionsNodePoolOsTypeEnum(val string) (GetNodePoolOptionsNodePoolOsTypeEnum, bool) { + enum, ok := mappingGetNodePoolOptionsNodePoolOsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// GetNodePoolOptionsNodePoolOsArchEnum Enum with underlying type: string +type GetNodePoolOptionsNodePoolOsArchEnum string + +// Set of constants representing the allowable values for GetNodePoolOptionsNodePoolOsArchEnum +const ( + GetNodePoolOptionsNodePoolOsArchX8664 GetNodePoolOptionsNodePoolOsArchEnum = "X86_64" + GetNodePoolOptionsNodePoolOsArchAarch64 GetNodePoolOptionsNodePoolOsArchEnum = "AARCH64" +) + +var mappingGetNodePoolOptionsNodePoolOsArchEnum = map[string]GetNodePoolOptionsNodePoolOsArchEnum{ + "X86_64": GetNodePoolOptionsNodePoolOsArchX8664, + "AARCH64": GetNodePoolOptionsNodePoolOsArchAarch64, +} + +var mappingGetNodePoolOptionsNodePoolOsArchEnumLowerCase = map[string]GetNodePoolOptionsNodePoolOsArchEnum{ + "x86_64": GetNodePoolOptionsNodePoolOsArchX8664, + "aarch64": GetNodePoolOptionsNodePoolOsArchAarch64, +} + +// GetGetNodePoolOptionsNodePoolOsArchEnumValues Enumerates the set of values for GetNodePoolOptionsNodePoolOsArchEnum +func GetGetNodePoolOptionsNodePoolOsArchEnumValues() []GetNodePoolOptionsNodePoolOsArchEnum { + values := make([]GetNodePoolOptionsNodePoolOsArchEnum, 0) + for _, v := range mappingGetNodePoolOptionsNodePoolOsArchEnum { + values = append(values, v) + } + return values +} + +// GetGetNodePoolOptionsNodePoolOsArchEnumStringValues Enumerates the set of values in String for GetNodePoolOptionsNodePoolOsArchEnum +func GetGetNodePoolOptionsNodePoolOsArchEnumStringValues() []string { + return []string{ + "X86_64", + "AARCH64", + } +} + +// GetMappingGetNodePoolOptionsNodePoolOsArchEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetNodePoolOptionsNodePoolOsArchEnum(val string) (GetNodePoolOptionsNodePoolOsArchEnum, bool) { + enum, ok := mappingGetNodePoolOptionsNodePoolOsArchEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_node_pool_request_response.go index fcbebde244..d84ff35222 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_node_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_node_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetNodePool.go.html to see an example of how to use GetNodePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetNodePool.go.html to see an example of how to use GetNodePoolRequest. type GetNodePoolRequest struct { // The OCID of the node pool. @@ -62,7 +62,7 @@ func (request GetNodePoolRequest) RetryPolicy() *common.RetryPolicy { func (request GetNodePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 487113db04..c1a7767141 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetVirtualNodePool.go.html to see an example of how to use GetVirtualNodePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetVirtualNodePool.go.html to see an example of how to use GetVirtualNodePoolRequest. type GetVirtualNodePoolRequest struct { // The OCID of the virtual node pool. @@ -62,7 +62,7 @@ func (request GetVirtualNodePoolRequest) RetryPolicy() *common.RetryPolicy { func (request GetVirtualNodePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 20d6c9225b..27625db0cc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetVirtualNode.go.html to see an example of how to use GetVirtualNodeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetVirtualNode.go.html to see an example of how to use GetVirtualNodeRequest. type GetVirtualNodeRequest struct { // The OCID of the virtual node pool. @@ -65,7 +65,7 @@ func (request GetVirtualNodeRequest) RetryPolicy() *common.RetryPolicy { func (request GetVirtualNodeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7e928d24af..4bf80f1ac2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. type GetWorkRequestRequest struct { // The OCID of the work request. @@ -62,7 +62,7 @@ func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_workload_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_workload_mapping_request_response.go index 06b483960d..00dacc5713 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_workload_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_workload_mapping_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetWorkloadMapping.go.html to see an example of how to use GetWorkloadMappingRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetWorkloadMapping.go.html to see an example of how to use GetWorkloadMappingRequest. type GetWorkloadMappingRequest struct { // The OCID of the cluster. @@ -65,7 +65,7 @@ func (request GetWorkloadMappingRequest) RetryPolicy() *common.RetryPolicy { func (request GetWorkloadMappingRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/image.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/image.go new file mode 100644 index 0000000000..dd280c5b57 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/image.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Kubernetes Engine API +// +// API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Image Describes image metadata. +type Image struct { + + // The Oracle Cloud ID (OCID) that uniquely identifies the image. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the compartment that the image was created in. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // A friendly user-specified name for the image. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +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 len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} 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 index 30a0bbc59f..3dc32053ed 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m ImagePolicyConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e4165e880a..e95abb0277 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m InitialVirtualNodeLabel) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_details.go index 4fe7ad4787..3e23ad24d2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -44,7 +44,7 @@ func (m InstallAddonDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_request_response.go index f28396b419..c7d905e16b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/InstallAddon.go.html to see an example of how to use InstallAddonRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/InstallAddon.go.html to see an example of how to use InstallAddonRequest. type InstallAddonRequest struct { // The OCID of the cluster. @@ -74,7 +74,7 @@ func (request InstallAddonRequest) RetryPolicy() *common.RetryPolicy { func (request InstallAddonRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9d9e670cdb..37a27e4bcb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -35,7 +35,7 @@ func (m KeyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8857b46467..94a100c211 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m KeyValue) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index b19c03a3a2..a115390b8c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m KubernetesNetworkConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/kubernetes_versions_filters.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/kubernetes_versions_filters.go index 3c39420337..cf4b99be17 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/kubernetes_versions_filters.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/kubernetes_versions_filters.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -41,7 +41,7 @@ func (m KubernetesVersionsFilters) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_addon_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_addon_options_request_response.go index dc572f11fe..ddd8dd7541 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_addon_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_addon_options_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListAddonOptions.go.html to see an example of how to use ListAddonOptionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListAddonOptions.go.html to see an example of how to use ListAddonOptionsRequest. type ListAddonOptionsRequest struct { // The kubernetes version to fetch the addons. @@ -30,11 +30,11 @@ type ListAddonOptionsRequest struct { // 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). + // see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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. @@ -43,6 +43,10 @@ type ListAddonOptionsRequest struct { // The optional field to sort the results by. SortBy ListAddonOptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + // Specifies whether all add-on versions should be displayed. The default value is false. If set to true, the API will return all available add-on versions, including deprecated versions and detailed build numbers. + // Please note that the use of deprecated versions, as well as the specification of a particular build of a supported version, is not recommended for standard operations. + ShouldShowAllVersions *bool `mandatory:"false" contributesTo:"query" name:"shouldShowAllVersions"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -86,7 +90,7 @@ func (request ListAddonOptionsRequest) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListAddonOptionsSortByEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -101,7 +105,7 @@ type ListAddonOptionsResponse struct { Items []AddonOptionSummary `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 important details about how pagination works, see List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_addons_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_addons_request_response.go index a23f278492..fbb4c455b0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_addons_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_addons_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListAddons.go.html to see an example of how to use ListAddonsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListAddons.go.html to see an example of how to use ListAddonsRequest. type ListAddonsRequest struct { // The OCID of the cluster. @@ -27,11 +27,11 @@ type ListAddonsRequest struct { // 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). + // see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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. @@ -83,7 +83,7 @@ func (request ListAddonsRequest) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListAddonsSortByEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -98,7 +98,7 @@ type ListAddonsResponse struct { Items []AddonSummary `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 important details about how pagination works, see List Pagination (https://docs.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 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 index 114fd486db..bb3ae63ba2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListClusters.go.html to see an example of how to use ListClustersRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListClusters.go.html to see an example of how to use ListClustersRequest. 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. For more information, see Monitoring Clusters (https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm) + // A cluster lifecycle state to filter on. Can have multiple parameters of this name. For more information, see Monitoring Clusters (https://docs.oracle.com/iaas/Content/ContEng/Tasks/contengmonitoringclusters.htm) LifecycleState []ClusterLifecycleStateEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` // The name to filter on. @@ -29,11 +29,11 @@ type ListClustersRequest struct { // 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). + // see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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. @@ -95,7 +95,7 @@ func (request ListClustersRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -110,7 +110,7 @@ type ListClustersResponse struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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 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 index 9052e163d1..2437400374 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListNodePools.go.html to see an example of how to use ListNodePoolsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListNodePools.go.html to see an example of how to use ListNodePoolsRequest. type ListNodePoolsRequest struct { // The OCID of the compartment. @@ -29,11 +29,11 @@ type ListNodePoolsRequest struct { // 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). + // see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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. @@ -46,7 +46,7 @@ type ListNodePoolsRequest struct { // 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. For more information, see Monitoring Clusters (https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm) + // A list of nodepool lifecycle states on which to filter on, matching any of the list items (OR logic). eg. ACTIVE, DELETING. For more information, see Monitoring Clusters (https://docs.oracle.com/iaas/Content/ContEng/Tasks/contengmonitoringclusters.htm) LifecycleState []NodePoolLifecycleStateEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` // Metadata about the request. This information will not be transmitted to the service, but @@ -98,7 +98,7 @@ func (request ListNodePoolsRequest) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -113,7 +113,7 @@ type ListNodePoolsResponse struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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 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 index 52f11e78d0..244dc15306 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListPodShapes.go.html to see an example of how to use ListPodShapesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListPodShapes.go.html to see an example of how to use ListPodShapesRequest. type ListPodShapesRequest struct { // The OCID of the compartment. @@ -33,11 +33,11 @@ type ListPodShapesRequest struct { // 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). + // see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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. @@ -89,7 +89,7 @@ func (request ListPodShapesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -104,7 +104,7 @@ type ListPodShapesResponse struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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 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 index c7d335cb52..fc0ad3e0b2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListVirtualNodePools.go.html to see an example of how to use ListVirtualNodePoolsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListVirtualNodePools.go.html to see an example of how to use ListVirtualNodePoolsRequest. type ListVirtualNodePoolsRequest struct { // The OCID of the compartment. @@ -33,11 +33,11 @@ type ListVirtualNodePoolsRequest struct { // 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). + // see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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. @@ -98,7 +98,7 @@ func (request ListVirtualNodePoolsRequest) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -113,7 +113,7 @@ type ListVirtualNodePoolsResponse struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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 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 index ce04ec8d31..ca6b17f206 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListVirtualNodes.go.html to see an example of how to use ListVirtualNodesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListVirtualNodes.go.html to see an example of how to use ListVirtualNodesRequest. type ListVirtualNodesRequest struct { // The OCID of the virtual node pool. @@ -30,11 +30,11 @@ type ListVirtualNodesRequest struct { // 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). + // see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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. @@ -86,7 +86,7 @@ func (request ListVirtualNodesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -101,7 +101,7 @@ type ListVirtualNodesResponse struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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 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 index 078de0ad51..8b0ed0c103 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest. type ListWorkRequestErrorsRequest struct { // The OCID of the compartment. @@ -65,7 +65,7 @@ func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy { func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6211a7b19e..e569c5cfc0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest. type ListWorkRequestLogsRequest struct { // The OCID of the compartment. @@ -65,7 +65,7 @@ func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a232c50322..b3ce02245a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. type ListWorkRequestsRequest struct { // The OCID of the compartment. @@ -35,11 +35,11 @@ type ListWorkRequestsRequest struct { // 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). + // see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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. @@ -98,7 +98,7 @@ func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -113,7 +113,7 @@ type ListWorkRequestsResponse struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_workload_mappings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_workload_mappings_request_response.go index 2de1ead876..1484c9dc48 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_workload_mappings_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_workload_mappings_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkloadMappings.go.html to see an example of how to use ListWorkloadMappingsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ListWorkloadMappings.go.html to see an example of how to use ListWorkloadMappingsRequest. type ListWorkloadMappingsRequest struct { // The OCID of the cluster. @@ -27,11 +27,11 @@ type ListWorkloadMappingsRequest struct { // 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). + // see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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. @@ -83,7 +83,7 @@ func (request ListWorkloadMappingsRequest) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListWorkloadMappingsSortByEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -98,7 +98,7 @@ type ListWorkloadMappingsResponse struct { Items []WorkloadMappingSummary `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 important details about how pagination works, see List Pagination (https://docs.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 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 index 643d95669f..8aa8b3eb83 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -51,12 +51,12 @@ type Node struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -64,7 +64,7 @@ type Node struct { // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - // The state of the node. For more information, see Monitoring Clusters (https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm) + // The state of the node. For more information, see Monitoring Clusters (https://docs.oracle.com/iaas/Content/ContEng/Tasks/contengmonitoringclusters.htm) LifecycleState NodeLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // Details about the state of the node. @@ -85,7 +85,7 @@ func (m Node) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f25519f5c0..deacb12791 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -20,7 +20,7 @@ import ( // 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). + // A short error code that defines the upstream error, meant for programmatic parsing. See API Errors (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). Code *string `mandatory:"true" json:"code"` // A human-readable error string of the upstream error. @@ -44,7 +44,7 @@ func (m NodeError) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index cee7b51792..f398dd9545 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -26,6 +26,9 @@ type NodeEvictionNodePoolSettings struct { // If the underlying compute instance should be deleted if you cannot evict all the pods in grace period IsForceDeleteAfterGraceDuration *bool `mandatory:"false" json:"isForceDeleteAfterGraceDuration"` + + // If the node action should be performed if not all the pods can be evicted in the grace period + IsForceActionAfterGraceDuration *bool `mandatory:"false" json:"isForceActionAfterGraceDuration"` } func (m NodeEvictionNodePoolSettings) String() string { @@ -39,7 +42,7 @@ func (m NodeEvictionNodePoolSettings) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_eviction_settings.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_eviction_settings.go new file mode 100644 index 0000000000..7a9f064c0e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_eviction_settings.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Kubernetes Engine API +// +// API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodeEvictionSettings Node Eviction Configuration +type NodeEvictionSettings struct { + + // Duration after which OKE will give up eviction of the pods on the node. PT0M will indicate you want to perform node action without cordon and drain. + // Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M + EvictionGraceDuration *string `mandatory:"false" json:"evictionGraceDuration"` + + // If the node action should be performed if not all the pods can be evicted in the grace period + IsForceActionAfterGraceDuration *bool `mandatory:"false" json:"isForceActionAfterGraceDuration"` +} + +func (m NodeEvictionSettings) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodeEvictionSettings) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", 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 index 562cb9eabf..5abe23caec 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -24,7 +24,7 @@ type NodePool struct { // The OCID of the node pool. Id *string `mandatory:"false" json:"id"` - // The state of the nodepool. For more information, see Monitoring Clusters (https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm) + // The state of the nodepool. For more information, see Monitoring Clusters (https://docs.oracle.com/iaas/Content/ContEng/Tasks/contengmonitoringclusters.htm) LifecycleState NodePoolLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // Details about the state of the nodepool. @@ -82,12 +82,12 @@ type NodePool struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -114,7 +114,7 @@ func (m NodePool) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_cycling_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_cycling_details.go index 63e7923b69..a5e93bdef0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_cycling_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_cycling_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -30,8 +30,11 @@ type NodePoolCyclingDetails struct { // Defaults to 1, Ranges from 0 to Nodepool size or 0% to 100% MaximumSurge *string `mandatory:"false" json:"maximumSurge"` - // If nodes in the nodepool will be cycled to have new changes. + // If cycling operation should be performed on the nodes in the node pool. IsNodeCyclingEnabled *bool `mandatory:"false" json:"isNodeCyclingEnabled"` + + // An ordered list of cycle modes that should be performed on the OKE nodes. + CycleModes []CycleModeEnum `mandatory:"false" json:"cycleModes"` } func (m NodePoolCyclingDetails) String() string { @@ -45,7 +48,7 @@ func (m NodePoolCyclingDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1f74dbd290..6570c73581 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine 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 index ae8faf928b..d526dde52e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -34,12 +34,12 @@ type NodePoolNodeConfigDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -65,7 +65,7 @@ func (m NodePoolNodeConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_options.go index b9332dd200..8981f6191d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -47,7 +47,7 @@ func (m NodePoolOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1baeb94de9..ec3ef68d4c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -47,7 +47,7 @@ func (m NodePoolPlacementConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 96b1b7d6ad..194c11f52f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -61,7 +61,7 @@ func (m *nodepoolpodnetworkoptiondetails) UnmarshalPolymorphicJSON(data []byte) err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for NodePoolPodNetworkOptionDetails: %s.", m.CniType) + common.Logf("Received unsupported enum value for NodePoolPodNetworkOptionDetails: %s.", m.CniType) return *m, nil } } @@ -77,7 +77,7 @@ func (m nodepoolpodnetworkoptiondetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3d8f8e22c1..afc4d0ba4d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -24,7 +24,7 @@ type NodePoolSummary struct { // The OCID of the node pool. Id *string `mandatory:"false" json:"id"` - // The state of the nodepool. For more information, see Monitoring Clusters (https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm) + // The state of the nodepool. For more information, see Monitoring Clusters (https://docs.oracle.com/iaas/Content/ContEng/Tasks/contengmonitoringclusters.htm) LifecycleState NodePoolLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // Details about the state of the nodepool. @@ -76,12 +76,12 @@ type NodePoolSummary struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -108,7 +108,7 @@ func (m NodePoolSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b5a24ef74d..3aa2ccedcb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -21,7 +21,7 @@ import ( 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. + // See here (https://docs.oracle.com/iaas/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. @@ -39,7 +39,7 @@ func (m NodeShapeConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8fdbe27c19..6c70e80bb6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -57,7 +57,7 @@ func (m *nodesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for NodeSourceDetails: %s.", m.SourceType) + common.Logf("Received unsupported enum value for NodeSourceDetails: %s.", m.SourceType) return *m, nil } } @@ -73,7 +73,7 @@ func (m nodesourcedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_option.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_option.go index a56ad2fafc..9b78957d35 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -62,7 +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) + common.Logf("Received unsupported enum value for NodeSourceOption: %s.", m.SourceType) return *m, nil } } @@ -83,7 +83,7 @@ func (m nodesourceoption) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 6aa63cec48..f0ef4c6899 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_via_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_via_image_details.go index d8f9bb2060..3b55f457a9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -24,7 +24,7 @@ type NodeSourceViaImageDetails struct { // The OCID of the image used to boot the node. ImageId *string `mandatory:"true" json:"imageId"` - // The size of the boot volume in GBs. Minimum value is 50 GB. See here (https://docs.cloud.oracle.com/en-us/iaas/Content/Block/Concepts/bootvolumes.htm) for max custom boot volume sizing and OS-specific requirements. + // The size of the boot volume in GBs. Minimum value is 50 GB. See here (https://docs.oracle.com/iaas/en-us/iaas/Content/Block/Concepts/bootvolumes.htm) for max custom boot volume sizing and OS-specific requirements. BootVolumeSizeInGBs *int64 `mandatory:"false" json:"bootVolumeSizeInGBs"` } @@ -39,7 +39,7 @@ func (m NodeSourceViaImageDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_via_image_option.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_via_image_option.go index 3dea684936..2e830d18bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -44,7 +44,7 @@ func (m NodeSourceViaImageOption) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2cc1f3d7ad..0d495960d2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -33,7 +33,7 @@ func (m OciVcnIpNativeClusterPodNetworkOptionDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a3e715a560..8917b1a407 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -21,14 +21,14 @@ import ( // 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"` + + // 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:"false" json:"podSubnetIds"` } func (m OciVcnIpNativeNodePoolPodNetworkOptionDetails) String() string { @@ -42,7 +42,7 @@ func (m OciVcnIpNativeNodePoolPodNetworkOptionDetails) ValidateEnumValue() (bool errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/open_id_connect_discovery.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/open_id_connect_discovery.go index b4a842ea0e..4bd3ee62ff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/open_id_connect_discovery.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/open_id_connect_discovery.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -35,7 +35,7 @@ func (m OpenIdConnectDiscovery) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/open_id_connect_token_authentication_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/open_id_connect_token_authentication_config.go index f8b2c9157b..9d7458d0ff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/open_id_connect_token_authentication_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/open_id_connect_token_authentication_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -58,6 +58,9 @@ type OpenIdConnectTokenAuthenticationConfig struct { // The signing algorithms accepted. Default is ["RS256"]. SigningAlgorithms []string `mandatory:"false" json:"signingAlgorithms"` + + // A Base64 encoded string of a Kubernetes OIDC Auth Config file. More info here (https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration) + ConfigurationFile *string `mandatory:"false" json:"configurationFile"` } func (m OpenIdConnectTokenAuthenticationConfig) String() string { @@ -71,7 +74,7 @@ func (m OpenIdConnectTokenAuthenticationConfig) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/persistent_volume_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/persistent_volume_config_details.go index 7a98797c96..5b0bbd6fac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -21,12 +21,12 @@ import ( type PersistentVolumeConfigDetails 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -42,7 +42,7 @@ func (m PersistentVolumeConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index edd17776ad..5e96fcd9d1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -42,7 +42,7 @@ func (m PlacementConfiguration) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9d847384e2..45a89b3250 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -41,7 +41,7 @@ func (m PodConfiguration) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 4db17edcd6..cfdbb2b6dc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -47,7 +47,7 @@ func (m PodShape) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e20bcd4524..9b7852cc09 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -47,7 +47,7 @@ func (m PodShapeSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/preemptible_node_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/preemptible_node_config_details.go index 18310c9039..0b8f488511 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/preemptible_node_config_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/preemptible_node_config_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -34,7 +34,7 @@ func (m PreemptibleNodeConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/preemption_action.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/preemption_action.go index 55530ca8ef..eb3456dfeb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/preemption_action.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/preemption_action.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -57,7 +57,7 @@ func (m *preemptionaction) UnmarshalPolymorphicJSON(data []byte) (interface{}, e err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for PreemptionAction: %s.", m.Type) + common.Logf("Received unsupported enum value for PreemptionAction: %s.", m.Type) return *m, nil } } @@ -73,7 +73,7 @@ func (m preemptionaction) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/reboot_cluster_node_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/reboot_cluster_node_details.go new file mode 100644 index 0000000000..f8abf75031 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/reboot_cluster_node_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Kubernetes Engine API +// +// API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RebootClusterNodeDetails The properties that define a node reboot action. +type RebootClusterNodeDetails struct { + NodeEvictionSettings *NodeEvictionSettings `mandatory:"false" json:"nodeEvictionSettings"` +} + +func (m RebootClusterNodeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RebootClusterNodeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/reboot_cluster_node_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/reboot_cluster_node_request_response.go new file mode 100644 index 0000000000..b43eda9ceb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/reboot_cluster_node_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 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" +) + +// RebootClusterNodeRequest wrapper for the RebootClusterNode operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/RebootClusterNode.go.html to see an example of how to use RebootClusterNodeRequest. +type RebootClusterNodeRequest struct { + + // The OCID of the cluster. + ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` + + // The OCID of the compute instance. + NodeId *string `mandatory:"true" contributesTo:"path" name:"nodeId"` + + // The fields to reboot a node. + RebootClusterNodeDetails `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"` + + // 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 RebootClusterNodeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RebootClusterNodeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RebootClusterNodeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RebootClusterNodeRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RebootClusterNodeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RebootClusterNodeResponse wrapper for the RebootClusterNode operation +type RebootClusterNodeResponse 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 RebootClusterNodeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RebootClusterNodeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/replace_boot_volume_cluster_node_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/replace_boot_volume_cluster_node_details.go new file mode 100644 index 0000000000..dd54621622 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/replace_boot_volume_cluster_node_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Kubernetes Engine API +// +// API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReplaceBootVolumeClusterNodeDetails The properties that define a node boot volume replacement action. +type ReplaceBootVolumeClusterNodeDetails struct { + NodeEvictionSettings *NodeEvictionSettings `mandatory:"false" json:"nodeEvictionSettings"` +} + +func (m ReplaceBootVolumeClusterNodeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReplaceBootVolumeClusterNodeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/replace_boot_volume_cluster_node_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/replace_boot_volume_cluster_node_request_response.go new file mode 100644 index 0000000000..16fa596b10 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/replace_boot_volume_cluster_node_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 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" +) + +// ReplaceBootVolumeClusterNodeRequest wrapper for the ReplaceBootVolumeClusterNode operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/ReplaceBootVolumeClusterNode.go.html to see an example of how to use ReplaceBootVolumeClusterNodeRequest. +type ReplaceBootVolumeClusterNodeRequest struct { + + // The OCID of the cluster. + ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` + + // The OCID of the compute instance. + NodeId *string `mandatory:"true" contributesTo:"path" name:"nodeId"` + + // The fields to replace boot volume of a node. + ReplaceBootVolumeClusterNodeDetails `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"` + + // 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 ReplaceBootVolumeClusterNodeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ReplaceBootVolumeClusterNodeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ReplaceBootVolumeClusterNodeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ReplaceBootVolumeClusterNodeRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ReplaceBootVolumeClusterNodeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReplaceBootVolumeClusterNodeResponse wrapper for the ReplaceBootVolumeClusterNode operation +type ReplaceBootVolumeClusterNodeResponse 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 ReplaceBootVolumeClusterNodeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ReplaceBootVolumeClusterNodeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 49521e94e4..729ec2a6ed 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -21,12 +21,12 @@ import ( 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -42,7 +42,7 @@ func (m ServiceLbConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f56fb9e325..92b45b319f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -47,7 +47,7 @@ func (m ShapeMemoryOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9ea7342d04..b64de04d86 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -41,7 +41,7 @@ func (m ShapeNetworkBandwidthOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8ea6491e51..2c78fa6fe7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m ShapeOcpuOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index ebe40a0fa7..9da1b23bd8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go index cf45729c63..b9e992f786 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -35,7 +35,7 @@ func (m StartCredentialRotationDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go index 3576c06267..a336b2e1e4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/StartCredentialRotation.go.html to see an example of how to use StartCredentialRotationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/StartCredentialRotation.go.html to see an example of how to use StartCredentialRotationRequest. type StartCredentialRotationRequest struct { // The OCID of the cluster. @@ -74,7 +74,7 @@ func (request StartCredentialRotationRequest) RetryPolicy() *common.RetryPolicy func (request StartCredentialRotationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 15bcec0b74..8c63e1e02e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/taint.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/taint.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -41,7 +41,7 @@ func (m Taint) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/terminate_preemption_action.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/terminate_preemption_action.go index 6113f332c3..2b1a5f6f0a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/terminate_preemption_action.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/terminate_preemption_action.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -36,7 +36,7 @@ func (m TerminatePreemptionAction) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_addon_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_addon_details.go index 27d01bcc1b..2b46317aba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_addon_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_addon_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m UpdateAddonDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_addon_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_addon_request_response.go index e998a60874..935ee786d6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_addon_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_addon_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateAddon.go.html to see an example of how to use UpdateAddonRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateAddon.go.html to see an example of how to use UpdateAddonRequest. type UpdateAddonRequest struct { // The OCID of the cluster. @@ -73,7 +73,7 @@ func (request UpdateAddonRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateAddonRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_details.go index e10c3039ef..185502cfdc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -29,12 +29,12 @@ type UpdateClusterDetails struct { Options *UpdateClusterOptionsDetails `mandatory:"false" json:"options"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -61,7 +61,7 @@ func (m UpdateClusterDetails) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetClusterTypeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e86d8047f7..eaabfd7059 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m UpdateClusterEndpointConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 541a5876ef..cd330644cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateClusterEndpointConfig.go.html to see an example of how to use UpdateClusterEndpointConfigRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateClusterEndpointConfig.go.html to see an example of how to use UpdateClusterEndpointConfigRequest. type UpdateClusterEndpointConfigRequest struct { // The OCID of the cluster. @@ -70,7 +70,7 @@ func (request UpdateClusterEndpointConfigRequest) RetryPolicy() *common.RetryPol func (request UpdateClusterEndpointConfigRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ec8d7ae17f..dfadd5e484 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -43,7 +43,7 @@ func (m UpdateClusterOptionsDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_request_response.go index 1e7716d63e..8a830dd269 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateCluster.go.html to see an example of how to use UpdateClusterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateCluster.go.html to see an example of how to use UpdateClusterRequest. type UpdateClusterRequest struct { // The OCID of the cluster. @@ -70,7 +70,7 @@ func (request UpdateClusterRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateClusterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bf1266a56f..29c37f59d3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m UpdateImagePolicyConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 1643a11dc4..f31bc8af75 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -64,12 +64,12 @@ type UpdateNodePoolDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -89,7 +89,7 @@ func (m UpdateNodePoolDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cbeef7c02e..e00183638a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -34,12 +34,12 @@ type UpdateNodePoolNodeConfigDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -65,7 +65,7 @@ func (m UpdateNodePoolNodeConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b80c317dac..8015b88d27 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateNodePool.go.html to see an example of how to use UpdateNodePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateNodePool.go.html to see an example of how to use UpdateNodePoolRequest. type UpdateNodePoolRequest struct { // The OCID of the node pool. @@ -77,7 +77,7 @@ func (request UpdateNodePoolRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateNodePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1dbd9a1be7..23f3b84866 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -21,7 +21,7 @@ import ( 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. + // See here (https://docs.oracle.com/iaas/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. @@ -39,7 +39,7 @@ func (m UpdateNodeShapeConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index da7cff3517..dae7fcb327 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -42,12 +42,12 @@ type UpdateVirtualNodePoolDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -65,7 +65,7 @@ func (m UpdateVirtualNodePoolDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9707b90b66..7849c29bb3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateVirtualNodePool.go.html to see an example of how to use UpdateVirtualNodePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateVirtualNodePool.go.html to see an example of how to use UpdateVirtualNodePoolRequest. type UpdateVirtualNodePoolRequest struct { // The OCID of the virtual node pool. @@ -70,7 +70,7 @@ func (request UpdateVirtualNodePoolRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVirtualNodePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_workload_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_workload_mapping_details.go index a7ff13899c..8ab69070d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_workload_mapping_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_workload_mapping_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -24,12 +24,12 @@ type UpdateWorkloadMappingDetails struct { MappedCompartmentId *string `mandatory:"false" json:"mappedCompartmentId"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -45,7 +45,7 @@ func (m UpdateWorkloadMappingDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_workload_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_workload_mapping_request_response.go index 29d5dfb881..022be01d56 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_workload_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_workload_mapping_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateWorkloadMapping.go.html to see an example of how to use UpdateWorkloadMappingRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/UpdateWorkloadMapping.go.html to see an example of how to use UpdateWorkloadMappingRequest. type UpdateWorkloadMappingRequest struct { // The OCID of the cluster. @@ -73,7 +73,7 @@ func (request UpdateWorkloadMappingRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateWorkloadMappingRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 29a6231cd1..fa967b72f2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -60,12 +60,12 @@ type VirtualNode struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -88,7 +88,7 @@ func (m VirtualNode) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index a29b0ff389..2c168043ee 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine 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 index 188355de89..30da7fed02 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -35,6 +35,9 @@ type VirtualNodePool struct { // The version of Kubernetes running on the nodes in the node pool. KubernetesVersion *string `mandatory:"true" json:"kubernetesVersion"` + // 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:"true" 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:"true" json:"placementConfigurations"` @@ -44,9 +47,6 @@ type VirtualNodePool struct { // 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"` @@ -66,12 +66,12 @@ type VirtualNodePool struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -96,7 +96,7 @@ func (m VirtualNodePool) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index f129e44da6..12ebbf667c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine 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 index 6ec4675ed6..c6cf9c34d0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -35,6 +35,9 @@ type VirtualNodePoolSummary struct { // The version of Kubernetes running on the nodes in the node pool. KubernetesVersion *string `mandatory:"true" json:"kubernetesVersion"` + // 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:"true" 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:"true" json:"placementConfigurations"` @@ -44,9 +47,6 @@ type VirtualNodePoolSummary struct { // 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"` @@ -66,12 +66,12 @@ type VirtualNodePoolSummary struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -96,7 +96,7 @@ func (m VirtualNodePoolSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index e387e53652..e40935f998 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -60,12 +60,12 @@ type VirtualNodeSummary struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -88,7 +88,7 @@ func (m VirtualNodeSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_tags.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_tags.go index a9db750c1e..e1876845b2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_tags.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_tags.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -21,12 +21,12 @@ import ( type VirtualNodeTags 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -42,7 +42,7 @@ func (m VirtualNodeTags) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 4ea63058bc..3c88ea4f9d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -62,7 +62,7 @@ func (m WorkRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index ef6f6f5a21..b4c6ad1458 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -20,7 +20,7 @@ import ( // 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). + // A short error code that defines the error, meant for programmatic parsing. See API Errors (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). Code *string `mandatory:"true" json:"code"` // A human-readable error string. @@ -41,7 +41,7 @@ func (m WorkRequestError) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8a8d7f9975..99d6d4c9d7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -38,7 +38,7 @@ func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index cf959fdb54..91b53dbe0e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -20,66 +20,72 @@ 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" - WorkRequestOperationTypeCreateNamespace WorkRequestOperationTypeEnum = "CREATE_NAMESPACE" - WorkRequestOperationTypeNodepoolCreate WorkRequestOperationTypeEnum = "NODEPOOL_CREATE" - WorkRequestOperationTypeNodepoolUpdate WorkRequestOperationTypeEnum = "NODEPOOL_UPDATE" - WorkRequestOperationTypeNodepoolDelete WorkRequestOperationTypeEnum = "NODEPOOL_DELETE" - WorkRequestOperationTypeNodepoolReconcile WorkRequestOperationTypeEnum = "NODEPOOL_RECONCILE" - WorkRequestOperationTypeNodepoolCycling WorkRequestOperationTypeEnum = "NODEPOOL_CYCLING" - WorkRequestOperationTypeWorkrequestCancel WorkRequestOperationTypeEnum = "WORKREQUEST_CANCEL" - WorkRequestOperationTypeVirtualnodepoolCreate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_CREATE" - WorkRequestOperationTypeVirtualnodepoolUpdate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_UPDATE" - WorkRequestOperationTypeVirtualnodepoolDelete WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_DELETE" - WorkRequestOperationTypeVirtualnodeDelete WorkRequestOperationTypeEnum = "VIRTUALNODE_DELETE" - WorkRequestOperationTypeEnableAddon WorkRequestOperationTypeEnum = "ENABLE_ADDON" - WorkRequestOperationTypeUpdateAddon WorkRequestOperationTypeEnum = "UPDATE_ADDON" - WorkRequestOperationTypeDisableAddon WorkRequestOperationTypeEnum = "DISABLE_ADDON" - WorkRequestOperationTypeReconcileAddon WorkRequestOperationTypeEnum = "RECONCILE_ADDON" + WorkRequestOperationTypeClusterCreate WorkRequestOperationTypeEnum = "CLUSTER_CREATE" + WorkRequestOperationTypeClusterUpdate WorkRequestOperationTypeEnum = "CLUSTER_UPDATE" + WorkRequestOperationTypeClusterDelete WorkRequestOperationTypeEnum = "CLUSTER_DELETE" + WorkRequestOperationTypeCreateNamespace WorkRequestOperationTypeEnum = "CREATE_NAMESPACE" + WorkRequestOperationTypeNodepoolCreate WorkRequestOperationTypeEnum = "NODEPOOL_CREATE" + WorkRequestOperationTypeNodepoolUpdate WorkRequestOperationTypeEnum = "NODEPOOL_UPDATE" + WorkRequestOperationTypeNodepoolDelete WorkRequestOperationTypeEnum = "NODEPOOL_DELETE" + WorkRequestOperationTypeNodepoolReconcile WorkRequestOperationTypeEnum = "NODEPOOL_RECONCILE" + WorkRequestOperationTypeNodepoolCycling WorkRequestOperationTypeEnum = "NODEPOOL_CYCLING" + WorkRequestOperationTypeWorkrequestCancel WorkRequestOperationTypeEnum = "WORKREQUEST_CANCEL" + WorkRequestOperationTypeVirtualnodepoolCreate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_CREATE" + WorkRequestOperationTypeVirtualnodepoolUpdate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_UPDATE" + WorkRequestOperationTypeVirtualnodepoolDelete WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_DELETE" + WorkRequestOperationTypeVirtualnodeDelete WorkRequestOperationTypeEnum = "VIRTUALNODE_DELETE" + WorkRequestOperationTypeEnableAddon WorkRequestOperationTypeEnum = "ENABLE_ADDON" + WorkRequestOperationTypeUpdateAddon WorkRequestOperationTypeEnum = "UPDATE_ADDON" + WorkRequestOperationTypeDisableAddon WorkRequestOperationTypeEnum = "DISABLE_ADDON" + WorkRequestOperationTypeReconcileAddon WorkRequestOperationTypeEnum = "RECONCILE_ADDON" + WorkRequestOperationTypeClusterNodeReboot WorkRequestOperationTypeEnum = "CLUSTER_NODE_REBOOT" + WorkRequestOperationTypeClusterNodeReplaceBootVolume WorkRequestOperationTypeEnum = "CLUSTER_NODE_REPLACE_BOOT_VOLUME" ) var mappingWorkRequestOperationTypeEnum = map[string]WorkRequestOperationTypeEnum{ - "CLUSTER_CREATE": WorkRequestOperationTypeClusterCreate, - "CLUSTER_UPDATE": WorkRequestOperationTypeClusterUpdate, - "CLUSTER_DELETE": WorkRequestOperationTypeClusterDelete, - "CREATE_NAMESPACE": WorkRequestOperationTypeCreateNamespace, - "NODEPOOL_CREATE": WorkRequestOperationTypeNodepoolCreate, - "NODEPOOL_UPDATE": WorkRequestOperationTypeNodepoolUpdate, - "NODEPOOL_DELETE": WorkRequestOperationTypeNodepoolDelete, - "NODEPOOL_RECONCILE": WorkRequestOperationTypeNodepoolReconcile, - "NODEPOOL_CYCLING": WorkRequestOperationTypeNodepoolCycling, - "WORKREQUEST_CANCEL": WorkRequestOperationTypeWorkrequestCancel, - "VIRTUALNODEPOOL_CREATE": WorkRequestOperationTypeVirtualnodepoolCreate, - "VIRTUALNODEPOOL_UPDATE": WorkRequestOperationTypeVirtualnodepoolUpdate, - "VIRTUALNODEPOOL_DELETE": WorkRequestOperationTypeVirtualnodepoolDelete, - "VIRTUALNODE_DELETE": WorkRequestOperationTypeVirtualnodeDelete, - "ENABLE_ADDON": WorkRequestOperationTypeEnableAddon, - "UPDATE_ADDON": WorkRequestOperationTypeUpdateAddon, - "DISABLE_ADDON": WorkRequestOperationTypeDisableAddon, - "RECONCILE_ADDON": WorkRequestOperationTypeReconcileAddon, + "CLUSTER_CREATE": WorkRequestOperationTypeClusterCreate, + "CLUSTER_UPDATE": WorkRequestOperationTypeClusterUpdate, + "CLUSTER_DELETE": WorkRequestOperationTypeClusterDelete, + "CREATE_NAMESPACE": WorkRequestOperationTypeCreateNamespace, + "NODEPOOL_CREATE": WorkRequestOperationTypeNodepoolCreate, + "NODEPOOL_UPDATE": WorkRequestOperationTypeNodepoolUpdate, + "NODEPOOL_DELETE": WorkRequestOperationTypeNodepoolDelete, + "NODEPOOL_RECONCILE": WorkRequestOperationTypeNodepoolReconcile, + "NODEPOOL_CYCLING": WorkRequestOperationTypeNodepoolCycling, + "WORKREQUEST_CANCEL": WorkRequestOperationTypeWorkrequestCancel, + "VIRTUALNODEPOOL_CREATE": WorkRequestOperationTypeVirtualnodepoolCreate, + "VIRTUALNODEPOOL_UPDATE": WorkRequestOperationTypeVirtualnodepoolUpdate, + "VIRTUALNODEPOOL_DELETE": WorkRequestOperationTypeVirtualnodepoolDelete, + "VIRTUALNODE_DELETE": WorkRequestOperationTypeVirtualnodeDelete, + "ENABLE_ADDON": WorkRequestOperationTypeEnableAddon, + "UPDATE_ADDON": WorkRequestOperationTypeUpdateAddon, + "DISABLE_ADDON": WorkRequestOperationTypeDisableAddon, + "RECONCILE_ADDON": WorkRequestOperationTypeReconcileAddon, + "CLUSTER_NODE_REBOOT": WorkRequestOperationTypeClusterNodeReboot, + "CLUSTER_NODE_REPLACE_BOOT_VOLUME": WorkRequestOperationTypeClusterNodeReplaceBootVolume, } var mappingWorkRequestOperationTypeEnumLowerCase = map[string]WorkRequestOperationTypeEnum{ - "cluster_create": WorkRequestOperationTypeClusterCreate, - "cluster_update": WorkRequestOperationTypeClusterUpdate, - "cluster_delete": WorkRequestOperationTypeClusterDelete, - "create_namespace": WorkRequestOperationTypeCreateNamespace, - "nodepool_create": WorkRequestOperationTypeNodepoolCreate, - "nodepool_update": WorkRequestOperationTypeNodepoolUpdate, - "nodepool_delete": WorkRequestOperationTypeNodepoolDelete, - "nodepool_reconcile": WorkRequestOperationTypeNodepoolReconcile, - "nodepool_cycling": WorkRequestOperationTypeNodepoolCycling, - "workrequest_cancel": WorkRequestOperationTypeWorkrequestCancel, - "virtualnodepool_create": WorkRequestOperationTypeVirtualnodepoolCreate, - "virtualnodepool_update": WorkRequestOperationTypeVirtualnodepoolUpdate, - "virtualnodepool_delete": WorkRequestOperationTypeVirtualnodepoolDelete, - "virtualnode_delete": WorkRequestOperationTypeVirtualnodeDelete, - "enable_addon": WorkRequestOperationTypeEnableAddon, - "update_addon": WorkRequestOperationTypeUpdateAddon, - "disable_addon": WorkRequestOperationTypeDisableAddon, - "reconcile_addon": WorkRequestOperationTypeReconcileAddon, + "cluster_create": WorkRequestOperationTypeClusterCreate, + "cluster_update": WorkRequestOperationTypeClusterUpdate, + "cluster_delete": WorkRequestOperationTypeClusterDelete, + "create_namespace": WorkRequestOperationTypeCreateNamespace, + "nodepool_create": WorkRequestOperationTypeNodepoolCreate, + "nodepool_update": WorkRequestOperationTypeNodepoolUpdate, + "nodepool_delete": WorkRequestOperationTypeNodepoolDelete, + "nodepool_reconcile": WorkRequestOperationTypeNodepoolReconcile, + "nodepool_cycling": WorkRequestOperationTypeNodepoolCycling, + "workrequest_cancel": WorkRequestOperationTypeWorkrequestCancel, + "virtualnodepool_create": WorkRequestOperationTypeVirtualnodepoolCreate, + "virtualnodepool_update": WorkRequestOperationTypeVirtualnodepoolUpdate, + "virtualnodepool_delete": WorkRequestOperationTypeVirtualnodepoolDelete, + "virtualnode_delete": WorkRequestOperationTypeVirtualnodeDelete, + "enable_addon": WorkRequestOperationTypeEnableAddon, + "update_addon": WorkRequestOperationTypeUpdateAddon, + "disable_addon": WorkRequestOperationTypeDisableAddon, + "reconcile_addon": WorkRequestOperationTypeReconcileAddon, + "cluster_node_reboot": WorkRequestOperationTypeClusterNodeReboot, + "cluster_node_replace_boot_volume": WorkRequestOperationTypeClusterNodeReplaceBootVolume, } // GetWorkRequestOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum @@ -112,6 +118,8 @@ func GetWorkRequestOperationTypeEnumStringValues() []string { "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON", + "CLUSTER_NODE_REBOOT", + "CLUSTER_NODE_REPLACE_BOOT_VOLUME", } } 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 index c79a7234d6..fdab05822e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -47,7 +47,7 @@ func (m WorkRequestResource) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4c71155a61..84cea13735 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine 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 index 9f22598124..a83cc186cd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -62,7 +62,7 @@ func (m WorkRequestSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -75,24 +75,26 @@ 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" - WorkRequestSummaryOperationTypeCreateNamespace WorkRequestOperationTypeEnum = "CREATE_NAMESPACE" - WorkRequestSummaryOperationTypeNodepoolCreate WorkRequestOperationTypeEnum = "NODEPOOL_CREATE" - WorkRequestSummaryOperationTypeNodepoolUpdate WorkRequestOperationTypeEnum = "NODEPOOL_UPDATE" - WorkRequestSummaryOperationTypeNodepoolDelete WorkRequestOperationTypeEnum = "NODEPOOL_DELETE" - WorkRequestSummaryOperationTypeNodepoolReconcile WorkRequestOperationTypeEnum = "NODEPOOL_RECONCILE" - WorkRequestSummaryOperationTypeNodepoolCycling WorkRequestOperationTypeEnum = "NODEPOOL_CYCLING" - WorkRequestSummaryOperationTypeWorkrequestCancel WorkRequestOperationTypeEnum = "WORKREQUEST_CANCEL" - WorkRequestSummaryOperationTypeVirtualnodepoolCreate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_CREATE" - WorkRequestSummaryOperationTypeVirtualnodepoolUpdate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_UPDATE" - WorkRequestSummaryOperationTypeVirtualnodepoolDelete WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_DELETE" - WorkRequestSummaryOperationTypeVirtualnodeDelete WorkRequestOperationTypeEnum = "VIRTUALNODE_DELETE" - WorkRequestSummaryOperationTypeEnableAddon WorkRequestOperationTypeEnum = "ENABLE_ADDON" - WorkRequestSummaryOperationTypeUpdateAddon WorkRequestOperationTypeEnum = "UPDATE_ADDON" - WorkRequestSummaryOperationTypeDisableAddon WorkRequestOperationTypeEnum = "DISABLE_ADDON" - WorkRequestSummaryOperationTypeReconcileAddon WorkRequestOperationTypeEnum = "RECONCILE_ADDON" + WorkRequestSummaryOperationTypeClusterCreate WorkRequestOperationTypeEnum = "CLUSTER_CREATE" + WorkRequestSummaryOperationTypeClusterUpdate WorkRequestOperationTypeEnum = "CLUSTER_UPDATE" + WorkRequestSummaryOperationTypeClusterDelete WorkRequestOperationTypeEnum = "CLUSTER_DELETE" + WorkRequestSummaryOperationTypeCreateNamespace WorkRequestOperationTypeEnum = "CREATE_NAMESPACE" + WorkRequestSummaryOperationTypeNodepoolCreate WorkRequestOperationTypeEnum = "NODEPOOL_CREATE" + WorkRequestSummaryOperationTypeNodepoolUpdate WorkRequestOperationTypeEnum = "NODEPOOL_UPDATE" + WorkRequestSummaryOperationTypeNodepoolDelete WorkRequestOperationTypeEnum = "NODEPOOL_DELETE" + WorkRequestSummaryOperationTypeNodepoolReconcile WorkRequestOperationTypeEnum = "NODEPOOL_RECONCILE" + WorkRequestSummaryOperationTypeNodepoolCycling WorkRequestOperationTypeEnum = "NODEPOOL_CYCLING" + WorkRequestSummaryOperationTypeWorkrequestCancel WorkRequestOperationTypeEnum = "WORKREQUEST_CANCEL" + WorkRequestSummaryOperationTypeVirtualnodepoolCreate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_CREATE" + WorkRequestSummaryOperationTypeVirtualnodepoolUpdate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_UPDATE" + WorkRequestSummaryOperationTypeVirtualnodepoolDelete WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_DELETE" + WorkRequestSummaryOperationTypeVirtualnodeDelete WorkRequestOperationTypeEnum = "VIRTUALNODE_DELETE" + WorkRequestSummaryOperationTypeEnableAddon WorkRequestOperationTypeEnum = "ENABLE_ADDON" + WorkRequestSummaryOperationTypeUpdateAddon WorkRequestOperationTypeEnum = "UPDATE_ADDON" + WorkRequestSummaryOperationTypeDisableAddon WorkRequestOperationTypeEnum = "DISABLE_ADDON" + WorkRequestSummaryOperationTypeReconcileAddon WorkRequestOperationTypeEnum = "RECONCILE_ADDON" + WorkRequestSummaryOperationTypeClusterNodeReboot WorkRequestOperationTypeEnum = "CLUSTER_NODE_REBOOT" + WorkRequestSummaryOperationTypeClusterNodeReplaceBootVolume WorkRequestOperationTypeEnum = "CLUSTER_NODE_REPLACE_BOOT_VOLUME" ) // GetWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping.go index 2c05a5e941..5a49286d52 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -42,12 +42,12 @@ type WorkloadMapping struct { LifecycleState WorkloadMappingLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -70,7 +70,7 @@ func (m WorkloadMapping) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping_lifecycle_state.go index e86f9bf04e..b18671ad56 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping_lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping_lifecycle_state.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping_summary.go index a284b3600e..ef667766c5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/workload_mapping_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,7 +6,7 @@ // // API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, // and manage cloud-native applications. For more information, see -// Overview of Kubernetes Engine (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// Overview of Kubernetes Engine (https://docs.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). // package containerengine @@ -42,12 +42,12 @@ type WorkloadMappingSummary struct { LifecycleState WorkloadMappingLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -70,7 +70,7 @@ func (m WorkloadMappingSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 96f5093aa1..630f9c8661 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AcceptShieldedIntegrityPolicy.go.html to see an example of how to use AcceptShieldedIntegrityPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AcceptShieldedIntegrityPolicy.go.html to see an example of how to use AcceptShieldedIntegrityPolicyRequest. type AcceptShieldedIntegrityPolicyRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` // Unique identifier for the request. @@ -74,7 +74,7 @@ func (request AcceptShieldedIntegrityPolicyRequest) RetryPolicy() *common.RetryP func (request AcceptShieldedIntegrityPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1e67f9a067..504d4b7b66 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -53,7 +53,7 @@ func (m AddDrgRouteDistributionStatementDetails) ValidateEnumValue() (bool, erro } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4868bb30ad..7732c15f22 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m AddDrgRouteDistributionStatementsDetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 387906918b..8e315260b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddDrgRouteDistributionStatements.go.html to see an example of how to use AddDrgRouteDistributionStatementsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddDrgRouteDistributionStatements.go.html to see an example of how to use AddDrgRouteDistributionStatementsRequest. type AddDrgRouteDistributionStatementsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. DrgRouteDistributionId *string `mandatory:"true" contributesTo:"path" name:"drgRouteDistributionId"` // Request with one or more route distribution statements to be inserted into the route distribution. @@ -65,7 +65,7 @@ func (request AddDrgRouteDistributionStatementsRequest) RetryPolicy() *common.Re func (request AddDrgRouteDistributionStatementsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e5c9a7c5cd..c07c16e15d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -36,7 +36,7 @@ type AddDrgRouteRuleDetails struct { // 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 + // The OCID (https://docs.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"` } @@ -55,7 +55,7 @@ func (m AddDrgRouteRuleDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 13e38b9260..8af670fcde 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m AddDrgRouteRulesDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 6fcbbb8f63..fe4669cf0f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddDrgRouteRules.go.html to see an example of how to use AddDrgRouteRulesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddDrgRouteRules.go.html to see an example of how to use AddDrgRouteRulesRequest. type AddDrgRouteRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. DrgRouteTableId *string `mandatory:"true" contributesTo:"path" name:"drgRouteTableId"` // Request for one or more route rules to be inserted into the DRG route table. @@ -72,7 +72,7 @@ func (request AddDrgRouteRulesRequest) RetryPolicy() *common.RetryPolicy { func (request AddDrgRouteRulesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 53e8b3c520..2144a2b57d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m AddImageShapeCompatibilityEntryDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 8af166d6a4..8ccf6b9982 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddImageShapeCompatibilityEntry.go.html to see an example of how to use AddImageShapeCompatibilityEntryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddImageShapeCompatibilityEntry.go.html to see an example of how to use AddImageShapeCompatibilityEntryRequest. type AddImageShapeCompatibilityEntryRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // Shape name. @@ -68,7 +68,7 @@ func (request AddImageShapeCompatibilityEntryRequest) RetryPolicy() *common.Retr func (request AddImageShapeCompatibilityEntryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv4_subnet_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv4_subnet_cidr_details.go new file mode 100644 index 0000000000..d1e70fe3df --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv4_subnet_cidr_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddIpv4SubnetCidrDetails Details used when adding an IPv4 prefix to a subnet. +type AddIpv4SubnetCidrDetails struct { + + // The CIDR IP address range of the subnet. The CIDR must maintain the following rules - + // a. The CIDR block is valid and correctly formatted. + // b. The new range is within one of the parent VCN ranges. + // Example: `10.0.1.0/24` + Ipv4CidrBlock *string `mandatory:"true" json:"ipv4CidrBlock"` +} + +func (m AddIpv4SubnetCidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddIpv4SubnetCidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv4_subnet_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv4_subnet_cidr_request_response.go new file mode 100644 index 0000000000..13819d0878 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv4_subnet_cidr_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// AddIpv4SubnetCidrRequest wrapper for the AddIpv4SubnetCidr operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddIpv4SubnetCidr.go.html to see an example of how to use AddIpv4SubnetCidrRequest. +type AddIpv4SubnetCidrRequest struct { + + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` + + // Details object for adding an IPv4 prefix to a subnet. + AddIpv4SubnetCidrDetails `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 AddIpv4SubnetCidrRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request AddIpv4SubnetCidrRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request AddIpv4SubnetCidrRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request AddIpv4SubnetCidrRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddIpv4SubnetCidrRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AddIpv4SubnetCidrResponse wrapper for the AddIpv4SubnetCidr operation +type AddIpv4SubnetCidrResponse 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 AddIpv4SubnetCidrResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response AddIpv4SubnetCidrResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 2b35f36f7e..93d9850c6e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddIpv6SubnetCidr.go.html to see an example of how to use AddIpv6SubnetCidrRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddIpv6SubnetCidr.go.html to see an example of how to use AddIpv6SubnetCidrRequest. type AddIpv6SubnetCidrRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // Specify the OCID (https://docs.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 prefix to a subnet. @@ -77,7 +77,7 @@ func (request AddIpv6SubnetCidrRequest) RetryPolicy() *common.RetryPolicy { func (request AddIpv6SubnetCidrRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -95,8 +95,8 @@ type AddIpv6SubnetCidrResponse 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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_ipv6_vcn_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv6_vcn_cidr_request_response.go index 13142d7b89..da94da3f82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddIpv6VcnCidr.go.html to see an example of how to use AddIpv6VcnCidrRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddIpv6VcnCidr.go.html to see an example of how to use AddIpv6VcnCidrRequest. type AddIpv6VcnCidrRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // Unique identifier for the request. @@ -77,7 +77,7 @@ func (request AddIpv6VcnCidrRequest) RetryPolicy() *common.RetryPolicy { func (request AddIpv6VcnCidrRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,8 +92,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index b834932624..5e690ce93b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -41,7 +41,7 @@ func (m AddNetworkSecurityGroupSecurityRulesDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 4f0e5e8982..15530444c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddNetworkSecurityGroupSecurityRules.go.html to see an example of how to use AddNetworkSecurityGroupSecurityRulesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddNetworkSecurityGroupSecurityRules.go.html to see an example of how to use AddNetworkSecurityGroupSecurityRulesRequest. type AddNetworkSecurityGroupSecurityRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` // Request with one or more security rules to be associated with the network security group. @@ -65,7 +65,7 @@ func (request AddNetworkSecurityGroupSecurityRulesRequest) RetryPolicy() *common func (request AddNetworkSecurityGroupSecurityRulesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6bd44e1e93..b19a758408 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.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. @@ -43,7 +43,7 @@ func (m AddPublicIpPoolCapacityDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 7535686395..d4e253a192 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddPublicIpPoolCapacity.go.html to see an example of how to use AddPublicIpPoolCapacityRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddPublicIpPoolCapacity.go.html to see an example of how to use AddPublicIpPoolCapacityRequest. type AddPublicIpPoolCapacityRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. PublicIpPoolId *string `mandatory:"true" contributesTo:"path" name:"publicIpPoolId"` // Byoip Range prefix and a cidr from it @@ -72,7 +72,7 @@ func (request AddPublicIpPoolCapacityRequest) RetryPolicy() *common.RetryPolicy func (request AddPublicIpPoolCapacityRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d149719f53..5fe7142c03 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,11 +42,11 @@ type AddSecurityRuleDetails struct { // 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). + // IPv6 Addresses (https://docs.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 + // * The OCID (https://docs.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"` @@ -57,7 +57,7 @@ type AddSecurityRuleDetails struct { // * `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 + // * `NETWORK_SECURITY_GROUP`: If the rule's `destination` is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a // NetworkSecurityGroup. DestinationType AddSecurityRuleDetailsDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` @@ -75,11 +75,11 @@ type AddSecurityRuleDetails struct { // 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). + // IPv6 Addresses (https://docs.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 + // * The OCID (https://docs.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"` @@ -89,7 +89,7 @@ type AddSecurityRuleDetails struct { // * `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 + // * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a // NetworkSecurityGroup. SourceType AddSecurityRuleDetailsSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` @@ -118,7 +118,7 @@ func (m AddSecurityRuleDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cd2280f3b1..ea184ccde5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ type AddSubnetIpv6CidrDetails struct { // This field is not required and should only be specified when adding an IPv6 prefix // to a subnet's IPv6 address space. - // SeeIPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // SeeIPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). // Example: `2001:0db8:0123::/64` Ipv6CidrBlock *string `mandatory:"true" json:"ipv6CidrBlock"` } @@ -42,7 +42,7 @@ func (m AddSubnetIpv6CidrDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 78a7f200f8..0c88e97604 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m AddVcnCidrDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_request_response.go index cbca6b6046..3f61e6bf75 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddVcnCidr.go.html to see an example of how to use AddVcnCidrRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddVcnCidr.go.html to see an example of how to use AddVcnCidrRequest. type AddVcnCidrRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // Details object for deleting a VCN CIDR. @@ -77,7 +77,7 @@ func (request AddVcnCidrRequest) RetryPolicy() *common.RetryPolicy { func (request AddVcnCidrRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,8 +92,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 3c729daff1..a11a129cde 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // SeeIPv6 Addresses (https://docs.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"` @@ -46,7 +46,7 @@ func (m AddVcnIpv6CidrDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index de9ab28483..fa5676c41c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m AddedNetworkSecurityGroupSecurityRules) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/address_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/address_type.go index e45a3730be..52f5ac0aae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/address_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/address_type.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/advertise_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/advertise_byoip_range_request_response.go index a1c7010aa3..d3bc370f40 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/advertise_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/advertise_byoip_range_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AdvertiseByoipRange.go.html to see an example of how to use AdvertiseByoipRangeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AdvertiseByoipRange.go.html to see an example of how to use AdvertiseByoipRangeRequest. type AdvertiseByoipRangeRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource containing the BYOIP CIDR block. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request AdvertiseByoipRangeRequest) RetryPolicy() *common.RetryPolicy { func (request AdvertiseByoipRangeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d38c59c39e..2eb6099347 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -43,7 +43,7 @@ func (m AllowedIkeIpSecParameters) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 722f0af772..65a2f1392b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m AllowedPhaseOneParameters) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9daa8dee21..3899475580 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m AllowedPhaseTwoParameters) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_gpu_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_gpu_launch_instance_platform_config.go index 2db37eb889..94bf196fd5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_gpu_launch_instance_platform_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_gpu_launch_instance_platform_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m AmdMilanBmGpuLaunchInstancePlatformConfig) ValidateEnumValue() (bool, er } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -126,6 +126,7 @@ const ( AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1 AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2 AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4 AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" + AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6 AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -133,6 +134,7 @@ var mappingAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map "NPS1": AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "NPS2": AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "NPS4": AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "NPS6": AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } var mappingAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -140,6 +142,7 @@ var mappingAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerC "nps1": AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "nps2": AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "nps4": AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "nps6": AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } // GetAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum @@ -158,6 +161,7 @@ func GetAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringVal "NPS1", "NPS2", "NPS4", + "NPS6", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_gpu_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_gpu_platform_config.go index d2eaff73f6..94671e5254 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_gpu_platform_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_gpu_platform_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m AmdMilanBmGpuPlatformConfig) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -126,6 +126,7 @@ const ( AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps1 AmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS1" AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps2 AmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS2" AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps4 AmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS4" + AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps6 AmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingAmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnum = map[string]AmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnum{ @@ -133,6 +134,7 @@ var mappingAmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnum = map[string]AmdMil "NPS1": AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps1, "NPS2": AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps2, "NPS4": AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps4, + "NPS6": AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps6, } var mappingAmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnum{ @@ -140,6 +142,7 @@ var mappingAmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnumLowerCase = map[stri "nps1": AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps1, "nps2": AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps2, "nps4": AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps4, + "nps6": AmdMilanBmGpuPlatformConfigNumaNodesPerSocketNps6, } // GetAmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnum @@ -158,6 +161,7 @@ func GetAmdMilanBmGpuPlatformConfigNumaNodesPerSocketEnumStringValues() []string "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index 7f22f983fe..43e5150085 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -106,7 +106,7 @@ func (m AmdMilanBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -134,6 +134,7 @@ const ( AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" + AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -141,6 +142,7 @@ var mappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[st "NPS1": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "NPS2": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "NPS4": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "NPS6": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } var mappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -148,6 +150,7 @@ var mappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase "nps1": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "nps2": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "nps4": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "nps6": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } // GetAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum @@ -166,6 +169,7 @@ func GetAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index 52975a8ebe..e7e9ff8942 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -106,7 +106,7 @@ func (m AmdMilanBmPlatformConfig) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -134,6 +134,7 @@ const ( AmdMilanBmPlatformConfigNumaNodesPerSocketNps1 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS1" AmdMilanBmPlatformConfigNumaNodesPerSocketNps2 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS2" AmdMilanBmPlatformConfigNumaNodesPerSocketNps4 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS4" + AmdMilanBmPlatformConfigNumaNodesPerSocketNps6 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnum = map[string]AmdMilanBmPlatformConfigNumaNodesPerSocketEnum{ @@ -141,6 +142,7 @@ var mappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnum = map[string]AmdMilanB "NPS1": AmdMilanBmPlatformConfigNumaNodesPerSocketNps1, "NPS2": AmdMilanBmPlatformConfigNumaNodesPerSocketNps2, "NPS4": AmdMilanBmPlatformConfigNumaNodesPerSocketNps4, + "NPS6": AmdMilanBmPlatformConfigNumaNodesPerSocketNps6, } var mappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdMilanBmPlatformConfigNumaNodesPerSocketEnum{ @@ -148,6 +150,7 @@ var mappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string] "nps1": AmdMilanBmPlatformConfigNumaNodesPerSocketNps1, "nps2": AmdMilanBmPlatformConfigNumaNodesPerSocketNps2, "nps4": AmdMilanBmPlatformConfigNumaNodesPerSocketNps4, + "nps6": AmdMilanBmPlatformConfigNumaNodesPerSocketNps6, } // GetAmdMilanBmPlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdMilanBmPlatformConfigNumaNodesPerSocketEnum @@ -166,6 +169,7 @@ func GetAmdMilanBmPlatformConfigNumaNodesPerSocketEnumStringValues() []string { "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index f43c239a9f..2901346852 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m AmdRomeBmGpuLaunchInstancePlatformConfig) ValidateEnumValue() (bool, err } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -126,6 +126,7 @@ const ( AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1 AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2 AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4 AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" + AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6 AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -133,6 +134,7 @@ var mappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[ "NPS1": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "NPS2": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "NPS4": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "NPS6": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } var mappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -140,6 +142,7 @@ var mappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCa "nps1": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "nps2": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "nps4": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "nps6": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } // GetAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum @@ -158,6 +161,7 @@ func GetAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValu "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index 2978d4dc16..ce3f562160 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m AmdRomeBmGpuPlatformConfig) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -126,6 +126,7 @@ const ( AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps1 AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS1" AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps2 AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS2" AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps4 AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS4" + AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps6 AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = map[string]AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum{ @@ -133,6 +134,7 @@ var mappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = map[string]AmdRome "NPS1": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps1, "NPS2": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps2, "NPS4": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps4, + "NPS6": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps6, } var mappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum{ @@ -140,6 +142,7 @@ var mappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumLowerCase = map[strin "nps1": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps1, "nps2": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps2, "nps4": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps4, + "nps6": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps6, } // GetAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum @@ -158,6 +161,7 @@ func GetAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumStringValues() []string "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index fcd22c070d..b76373c8b2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -106,7 +106,7 @@ func (m AmdRomeBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -134,6 +134,7 @@ const ( AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" + AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6 AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -141,6 +142,7 @@ var mappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[str "NPS1": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "NPS2": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "NPS4": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "NPS6": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } var mappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -148,6 +150,7 @@ var mappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase "nps1": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "nps2": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "nps4": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "nps6": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } // GetAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum @@ -166,6 +169,7 @@ func GetAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues( "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index ae746b4d03..f3320a5420 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -105,7 +105,7 @@ func (m AmdRomeBmPlatformConfig) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -133,6 +133,7 @@ const ( AmdRomeBmPlatformConfigNumaNodesPerSocketNps1 AmdRomeBmPlatformConfigNumaNodesPerSocketEnum = "NPS1" AmdRomeBmPlatformConfigNumaNodesPerSocketNps2 AmdRomeBmPlatformConfigNumaNodesPerSocketEnum = "NPS2" AmdRomeBmPlatformConfigNumaNodesPerSocketNps4 AmdRomeBmPlatformConfigNumaNodesPerSocketEnum = "NPS4" + AmdRomeBmPlatformConfigNumaNodesPerSocketNps6 AmdRomeBmPlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnum = map[string]AmdRomeBmPlatformConfigNumaNodesPerSocketEnum{ @@ -140,6 +141,7 @@ var mappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnum = map[string]AmdRomeBmP "NPS1": AmdRomeBmPlatformConfigNumaNodesPerSocketNps1, "NPS2": AmdRomeBmPlatformConfigNumaNodesPerSocketNps2, "NPS4": AmdRomeBmPlatformConfigNumaNodesPerSocketNps4, + "NPS6": AmdRomeBmPlatformConfigNumaNodesPerSocketNps6, } var mappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdRomeBmPlatformConfigNumaNodesPerSocketEnum{ @@ -147,6 +149,7 @@ var mappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]A "nps1": AmdRomeBmPlatformConfigNumaNodesPerSocketNps1, "nps2": AmdRomeBmPlatformConfigNumaNodesPerSocketNps2, "nps4": AmdRomeBmPlatformConfigNumaNodesPerSocketNps4, + "nps6": AmdRomeBmPlatformConfigNumaNodesPerSocketNps6, } // GetAmdRomeBmPlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdRomeBmPlatformConfigNumaNodesPerSocketEnum @@ -165,6 +168,7 @@ func GetAmdRomeBmPlatformConfigNumaNodesPerSocketEnumStringValues() []string { "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index c9dbdc8ced..083ea3e2e7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -77,7 +77,7 @@ func (m AmdVmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7d3605624f..98c2f6e126 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -77,7 +77,7 @@ func (m AmdVmPlatformConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_update_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_update_instance_platform_config.go index 03c45206fe..f95c1f483b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_update_instance_platform_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_update_instance_platform_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m AmdVmUpdateInstancePlatformConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 06ff7c97eb..80ae772e51 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -62,7 +62,7 @@ func (m AppCatalogListing) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 89f69ec176..4ee58ff2cd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ type AppCatalogListingResourceVersion struct { // 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). + // Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). // Example: `["us-ashburn-1", "us-phoenix-1"]` AvailableRegions []string `mandatory:"false" json:"availableRegions"` @@ -72,7 +72,7 @@ func (m AppCatalogListingResourceVersion) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 28e9724017..2637796183 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -55,7 +55,7 @@ func (m AppCatalogListingResourceVersionAgreements) ValidateEnumValue() (bool, e errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index b3c51778e5..38cbf0befc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -49,7 +49,7 @@ func (m AppCatalogListingResourceVersionSummary) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index b5ac85a93b..874d833a0a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -49,7 +49,7 @@ func (m AppCatalogListingSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 86ff215453..a9984d4165 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -62,7 +62,7 @@ func (m AppCatalogSubscription) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 95468617ff..770262ff37 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -62,7 +62,7 @@ func (m AppCatalogSubscriptionSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index b0335eddfd..8620960c7b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -53,7 +53,7 @@ func (m AttachBootVolumeDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_request_response.go index 98048d6f49..f6e0a71c2f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachBootVolume.go.html to see an example of how to use AttachBootVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachBootVolume.go.html to see an example of how to use AttachBootVolumeRequest. type AttachBootVolumeRequest struct { // Attach boot volume request @@ -69,7 +69,7 @@ func (request AttachBootVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request AttachBootVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_compute_host_group_host_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_compute_host_group_host_details.go new file mode 100644 index 0000000000..fb39043b4c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_compute_host_group_host_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachComputeHostGroupHostDetails Specifies the host group id +type AttachComputeHostGroupHostDetails struct { + + // 'The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group.' + ComputeHostGroupId *string `mandatory:"true" json:"computeHostGroupId"` +} + +func (m AttachComputeHostGroupHostDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachComputeHostGroupHostDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_compute_host_group_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_compute_host_group_host_request_response.go new file mode 100644 index 0000000000..8d046bf0bd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_compute_host_group_host_request_response.go @@ -0,0 +1,117 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// AttachComputeHostGroupHostRequest wrapper for the AttachComputeHostGroupHost operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachComputeHostGroupHost.go.html to see an example of how to use AttachComputeHostGroupHostRequest. +type AttachComputeHostGroupHostRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host. + ComputeHostId *string `mandatory:"true" contributesTo:"path" name:"computeHostId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group. + AttachComputeHostGroupHostDetails `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"` + + // 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 AttachComputeHostGroupHostRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request AttachComputeHostGroupHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request AttachComputeHostGroupHostRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request AttachComputeHostGroupHostRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachComputeHostGroupHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AttachComputeHostGroupHostResponse wrapper for the AttachComputeHostGroupHost operation +type AttachComputeHostGroupHostResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeHost instance + ComputeHost `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Location of the resource. + Location *string `presentIn:"header" name:"location"` + + // Unique Oracle-assigned identifier for the 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 AttachComputeHostGroupHostResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response AttachComputeHostGroupHostResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 691bcf0b26..4f7f709847 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -90,7 +90,7 @@ func (m AttachEmulatedVolumeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a532e36f51..277de77d36 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -103,7 +103,7 @@ func (m AttachIScsiVolumeDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0d59abe219..0e759a2347 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. InstanceId *string `mandatory:"true" json:"instanceId"` } @@ -39,7 +39,7 @@ func (m AttachInstancePoolInstanceDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 2fcb3905aa..b0bc369e36 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachInstancePoolInstance.go.html to see an example of how to use AttachInstancePoolInstanceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachInstancePoolInstance.go.html to see an example of how to use AttachInstancePoolInstanceRequest. type AttachInstancePoolInstanceRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // Attach an instance to a pool @@ -72,7 +72,7 @@ func (request AttachInstancePoolInstanceRequest) RetryPolicy() *common.RetryPoli func (request AttachInstancePoolInstanceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -93,8 +93,8 @@ type AttachInstancePoolInstanceResponse struct { // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` - // 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) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 1525ea6603..0091bb5c7a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.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. @@ -50,7 +50,7 @@ func (m AttachLoadBalancerDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_request_response.go index 400adc9ef9..fee01e102c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachLoadBalancer.go.html to see an example of how to use AttachLoadBalancerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachLoadBalancer.go.html to see an example of how to use AttachLoadBalancerRequest. type AttachLoadBalancerRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // Load balancer being attached @@ -77,7 +77,7 @@ func (request AttachLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { func (request AttachLoadBalancerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 72080ae20b..ea335670bc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -93,7 +93,7 @@ func (m AttachParavirtualizedVolumeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 00f3ebdb29..73947023b1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -90,7 +90,7 @@ func (m AttachServiceDeterminedVolumeDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_id_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_id_request_response.go index 2b19842697..9bdc6be2fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_id_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_id_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachServiceId.go.html to see an example of how to use AttachServiceIdRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachServiceId.go.html to see an example of how to use AttachServiceIdRequest. type AttachServiceIdRequest struct { - // The service gateway's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The service gateway's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). ServiceGatewayId *string `mandatory:"true" contributesTo:"path" name:"serviceGatewayId"` // ServiceId of Service to be attached to a service gateway. @@ -70,7 +70,7 @@ func (request AttachServiceIdRequest) RetryPolicy() *common.RetryPolicy { func (request AttachServiceIdRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1118f8ffdb..5ef568fc66 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -36,7 +36,7 @@ type AttachVnicDetails struct { // 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). + // Virtual Network Interface Cards (VNICs) (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). NicIndex *int `mandatory:"false" json:"nicIndex"` } @@ -51,7 +51,7 @@ func (m AttachVnicDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_request_response.go index 1699f35fad..6cada686c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachVnic.go.html to see an example of how to use AttachVnicRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachVnic.go.html to see an example of how to use AttachVnicRequest. type AttachVnicRequest struct { // Attach VNIC details. @@ -69,7 +69,7 @@ func (request AttachVnicRequest) RetryPolicy() *common.RetryPolicy { func (request AttachVnicRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 434334a903..a4711db0d1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -108,7 +108,7 @@ func (m *attachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (interface{} err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for AttachVolumeDetails: %s.", m.Type) + common.Logf("Received unsupported enum value for AttachVolumeDetails: %s.", m.Type) return *m, nil } } @@ -154,7 +154,7 @@ func (m attachvolumedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_request_response.go index 658e2a9188..d917394e6d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachVolume.go.html to see an example of how to use AttachVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachVolume.go.html to see an example of how to use AttachVolumeRequest. type AttachVolumeRequest struct { // Attach volume request @@ -69,7 +69,7 @@ func (request AttachVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request AttachVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 134bea7170..90ca3ba64f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -65,7 +65,7 @@ func (m *autotunepolicy) UnmarshalPolymorphicJSON(data []byte) (interface{}, err err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for AutotunePolicy: %s.", m.AutotuneType) + common.Logf("Received unsupported enum value for AutotunePolicy: %s.", m.AutotuneType) return *m, nil } } @@ -81,7 +81,7 @@ func (m autotunepolicy) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3c42eac08c..6181107e1c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -99,7 +99,7 @@ func (m BgpSessionInfo) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9f1c4932ff..7112bab928 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,11 +23,11 @@ import ( // 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) +// of Cross-Region Volume Replication (https://docs.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). +// Policies (https://docs.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 { @@ -64,12 +64,12 @@ type BlockVolumeReplica struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -80,8 +80,8 @@ type BlockVolumeReplica struct { VolumeGroupReplicaId *string `mandatory:"false" json:"volumeGroupReplicaId"` // The OCID of the Vault service key to assign as the master encryption key for the block volume replica, 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -99,7 +99,7 @@ func (m BlockVolumeReplica) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 331dd5c8c2..870569f5d0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -34,8 +34,8 @@ type BlockVolumeReplicaDetails struct { // The OCID of the Vault service key which is the master encryption key for the cross region block volume replicas, which will be used in the destination region to encrypt the block volume replica's encryption keys. // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). XrrKmsKeyId *string `mandatory:"false" json:"xrrKmsKeyId"` } @@ -50,7 +50,7 @@ func (m BlockVolumeReplicaDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 7741877e1d..0ff6a6ff54 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -36,8 +36,8 @@ type BlockVolumeReplicaInfo struct { AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` // The OCID of the Vault service key to assign as the master encryption key for the block volume replica, 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -52,7 +52,7 @@ func (m BlockVolumeReplicaInfo) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index c56e0e7acc..57d8f02238 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -50,7 +50,7 @@ func (m BooleanImageCapabilitySchemaDescriptor) ValidateEnumValue() (bool, error 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5445e66b38..68b3448d3b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,10 +23,10 @@ import ( ) // 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). +// Overview of Boot Volumes (https://docs.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). +// Getting Started with Policies (https://docs.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 { @@ -53,7 +53,7 @@ type BootVolume struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -66,7 +66,7 @@ type BootVolume struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -82,7 +82,7 @@ type BootVolume struct { // 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. + // See Block Volume Performance Levels (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. // Allowed values: // * `10`: Represents Balanced option. // * `20`: Represents Higher Performance option. @@ -129,7 +129,7 @@ func (m BootVolume) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f13cea15c0..e1de1febd9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -82,7 +82,7 @@ func (m BootVolumeAttachment) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 485d3bed89..3e4f26f0b3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,11 +23,11 @@ import ( // 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) +// of Boot Volume Backups (https://docs.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). +// Policies (https://docs.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 { @@ -53,7 +53,7 @@ type BootVolumeBackup struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -69,7 +69,7 @@ type BootVolumeBackup struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -78,8 +78,8 @@ type BootVolumeBackup struct { // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` // The size of the boot volume, in GBs. @@ -122,7 +122,7 @@ func (m BootVolumeBackup) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4e1459e13d..0c6948ca00 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m BootVolumeKmsKey) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d8ab97e17f..5321499ee3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,11 +23,11 @@ import ( // 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) +// of Cross-Region Volume Replication (https://docs.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). +// Policies (https://docs.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 { @@ -64,12 +64,12 @@ type BootVolumeReplica struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -83,8 +83,8 @@ type BootVolumeReplica struct { VolumeGroupReplicaId *string `mandatory:"false" json:"volumeGroupReplicaId"` // The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -102,7 +102,7 @@ func (m BootVolumeReplica) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ab139d2d48..ab2cab5cd4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -34,8 +34,8 @@ type BootVolumeReplicaDetails struct { // The OCID of the Vault service key which is the master encryption key for the cross region boot volume replicas, which will be used in the destination region to encrypt the boot volume replica's encryption keys. // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). XrrKmsKeyId *string `mandatory:"false" json:"xrrKmsKeyId"` } @@ -50,7 +50,7 @@ func (m BootVolumeReplicaDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 62874afc2e..c8b3401ba3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -36,8 +36,8 @@ type BootVolumeReplicaInfo struct { AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` // The OCID of the Vault service key to assign as the master encryption key for the block volume replica, 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -52,7 +52,7 @@ func (m BootVolumeReplicaInfo) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d4ac8635e9..06853cabb4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -73,7 +73,7 @@ func (m *bootvolumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interfa err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for BootVolumeSourceDetails: %s.", m.Type) + common.Logf("Received unsupported enum value for BootVolumeSourceDetails: %s.", m.Type) return *m, nil } } @@ -89,7 +89,7 @@ func (m bootvolumesourcedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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_delta_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_backup_delta_details.go index a8b9fc2b1a..a221712016 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_backup_delta_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_backup_delta_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -46,7 +46,7 @@ func (m BootVolumeSourceFromBootVolumeBackupDeltaDetails) ValidateEnumValue() (b errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 1a19444d5c..d743e5411c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m BootVolumeSourceFromBootVolumeBackupDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_details.go index cdaa8a184a..93269c2e7d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m BootVolumeSourceFromBootVolumeDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_replica_details.go index 4c021ea283..2afe1bef37 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m BootVolumeSourceFromBootVolumeReplicaDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 25ddfd70ff..512d9a8db5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m BulkAddVirtualCircuitPublicPrefixesDetails) ValidateEnumValue() (bool, e errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 48b172e7b9..fda076e214 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/BulkAddVirtualCircuitPublicPrefixes.go.html to see an example of how to use BulkAddVirtualCircuitPublicPrefixesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/BulkAddVirtualCircuitPublicPrefixes.go.html to see an example of how to use BulkAddVirtualCircuitPublicPrefixesRequest. type BulkAddVirtualCircuitPublicPrefixesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.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 @@ -65,7 +65,7 @@ func (request BulkAddVirtualCircuitPublicPrefixesRequest) RetryPolicy() *common. func (request BulkAddVirtualCircuitPublicPrefixesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 29e2e89f52..ad25f71730 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m BulkDeleteVirtualCircuitPublicPrefixesDetails) ValidateEnumValue() (bool errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index f390678a98..ced833cec1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/BulkDeleteVirtualCircuitPublicPrefixes.go.html to see an example of how to use BulkDeleteVirtualCircuitPublicPrefixesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/BulkDeleteVirtualCircuitPublicPrefixes.go.html to see an example of how to use BulkDeleteVirtualCircuitPublicPrefixesRequest. type BulkDeleteVirtualCircuitPublicPrefixesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.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. @@ -65,7 +65,7 @@ func (request BulkDeleteVirtualCircuitPublicPrefixesRequest) RetryPolicy() *comm func (request BulkDeleteVirtualCircuitPublicPrefixesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn.go new file mode 100644 index 0000000000..4eaf7496d4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn.go @@ -0,0 +1,143 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Byoasn Oracle offers the ability to Bring Your Own Autonomous System Number (BYOASN), importing AS Numbers you currently own to Oracle Cloud Infrastructure. A `Byoasn` resource is a record of the imported AS Number and also some associated metadata. The process used to Bring Your Own ASN (https://docs.oracle.com/iaas/Content/Network/Concepts/BYOASN.htm) is explained in the documentation. +type Byoasn struct { + + // The `Byoasn` resource's current state. + LifecycleState ByoasnLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Byoasn` resource. + Id *string `mandatory:"true" json:"id"` + + // The Autonomous System Number (ASN) you are importing to the Oracle cloud. + Asn *int64 `mandatory:"true" json:"asn"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the `Byoasn` resource. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn (https://docs.oracle.com/iaas/Content/Network/Concepts/BYOASN.htm) for details. + ValidationToken *string `mandatory:"true" json:"validationToken"` + + // The date and time the `Byoasn` 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"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The date and time the `Byoasn` 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 `Byoasn` resource was last 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 BYOIP Ranges that has the `Byoasn` as origin. + ByoipRanges []ByoasnByoipRange `mandatory:"false" json:"byoipRanges"` +} + +func (m Byoasn) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Byoasn) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingByoasnLifecycleStateEnum(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(GetByoasnLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ByoasnLifecycleStateEnum Enum with underlying type: string +type ByoasnLifecycleStateEnum string + +// Set of constants representing the allowable values for ByoasnLifecycleStateEnum +const ( + ByoasnLifecycleStateUpdating ByoasnLifecycleStateEnum = "UPDATING" + ByoasnLifecycleStateActive ByoasnLifecycleStateEnum = "ACTIVE" + ByoasnLifecycleStateDeleted ByoasnLifecycleStateEnum = "DELETED" + ByoasnLifecycleStateFailed ByoasnLifecycleStateEnum = "FAILED" + ByoasnLifecycleStateCreating ByoasnLifecycleStateEnum = "CREATING" +) + +var mappingByoasnLifecycleStateEnum = map[string]ByoasnLifecycleStateEnum{ + "UPDATING": ByoasnLifecycleStateUpdating, + "ACTIVE": ByoasnLifecycleStateActive, + "DELETED": ByoasnLifecycleStateDeleted, + "FAILED": ByoasnLifecycleStateFailed, + "CREATING": ByoasnLifecycleStateCreating, +} + +var mappingByoasnLifecycleStateEnumLowerCase = map[string]ByoasnLifecycleStateEnum{ + "updating": ByoasnLifecycleStateUpdating, + "active": ByoasnLifecycleStateActive, + "deleted": ByoasnLifecycleStateDeleted, + "failed": ByoasnLifecycleStateFailed, + "creating": ByoasnLifecycleStateCreating, +} + +// GetByoasnLifecycleStateEnumValues Enumerates the set of values for ByoasnLifecycleStateEnum +func GetByoasnLifecycleStateEnumValues() []ByoasnLifecycleStateEnum { + values := make([]ByoasnLifecycleStateEnum, 0) + for _, v := range mappingByoasnLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetByoasnLifecycleStateEnumStringValues Enumerates the set of values in String for ByoasnLifecycleStateEnum +func GetByoasnLifecycleStateEnumStringValues() []string { + return []string{ + "UPDATING", + "ACTIVE", + "DELETED", + "FAILED", + "CREATING", + } +} + +// GetMappingByoasnLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingByoasnLifecycleStateEnum(val string) (ByoasnLifecycleStateEnum, bool) { + enum, ok := mappingByoasnLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_byoip_range.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_byoip_range.go new file mode 100644 index 0000000000..878b9e149e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_byoip_range.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoasnByoipRange Information about 'ByoipRange' that has `byoasn` as origin. +type ByoasnByoipRange struct { + + // The OCID (https://docs.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 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 IPv6 prefix being imported to the Oracle cloud. This prefix 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 as path prepend length. + AsPathPrependLength *int `mandatory:"false" json:"asPathPrependLength"` +} + +func (m ByoasnByoipRange) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoasnByoipRange) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_collection.go new file mode 100644 index 0000000000..eb0e77cd82 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_collection.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoasnCollection The results returned by a `ListByoasn` operation. +type ByoasnCollection struct { + + // A list of `Byoasn` resource summaries. + Items []ByoasnSummary `mandatory:"true" json:"items"` +} + +func (m ByoasnCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoasnCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_summary.go new file mode 100644 index 0000000000..42d6a0602d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoasn_summary.go @@ -0,0 +1,79 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoasnSummary Information about a `Byoasn` resource. +type ByoasnSummary struct { + + // The Autonomous System Number (ASN) you are importing to the Oracle cloud. + Asn *int64 `mandatory:"true" json:"asn"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the `Byoasn` resource. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Byoasn` resource. + Id *string `mandatory:"true" json:"id"` + + // The `Byoasn` resource's current state. + LifecycleState ByoasnLifecycleStateEnum `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.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.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"` + + // The date and time the `Byoasn` 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 ByoasnSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoasnSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingByoasnLifecycleStateEnum(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(GetByoasnLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} 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 index c367b2e42a..a289b66525 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m ByoipAllocatedRangeCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9f68cf7955..d1a2ef854e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -27,7 +27,7 @@ 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IP pool containing the CIDR block. PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` } @@ -42,7 +42,7 @@ func (m ByoipAllocatedRangeSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9b50b2fce8..90b220627d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,13 +22,13 @@ import ( ) // 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. +// The process used to Bring Your Own IP (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource. Id *string `mandatory:"true" json:"id"` // The `ByoipRange` resource's current state. @@ -38,7 +38,7 @@ type ByoipRange struct { // 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. + // The validation token is an internally-generated ASCII string used in the validation process. See Importing a CIDR block (https://docs.oracle.com/iaas/Content/Network/Concepts/BYOIP.htm#import_cidr) for details. ValidationToken *string `mandatory:"true" json:"validationToken"` // A list of `ByoipRangeVcnIpv6AllocationSummary` objects. @@ -48,7 +48,7 @@ type ByoipRange struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -57,10 +57,12 @@ type ByoipRange struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + OriginAsn *ByoipRangeOriginAsn `mandatory:"false" json:"originAsn"` + // The IPv6 prefix being imported to the Oracle cloud. This prefix 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. @@ -99,7 +101,7 @@ func (m ByoipRange) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 40845b0f5a..2a3794a115 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m ByoipRangeCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_origin_asn.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_origin_asn.go new file mode 100644 index 0000000000..64235fc6e9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_origin_asn.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoipRangeOriginAsn Information about the origin asn. +type ByoipRangeOriginAsn struct { + + // The Autonomous System Number (ASN) you are importing to the Oracle cloud. + Asn *int64 `mandatory:"true" json:"asn"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Byoasn` resource. + ByoasnId *string `mandatory:"false" json:"byoasnId"` + + // The as path prepend length. + AsPathPrependLength *int `mandatory:"false" json:"asPathPrependLength"` +} + +func (m ByoipRangeOriginAsn) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoipRangeOriginAsn) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} 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 index bcd6ca04fd..a02503e9c2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -30,11 +30,11 @@ 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -43,11 +43,11 @@ type ByoipRangeSummary struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource. Id *string `mandatory:"false" json:"id"` // The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used @@ -83,7 +83,7 @@ func (m ByoipRangeSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2cb23e9a82..e590647d64 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,17 +24,17 @@ import ( // ByoipRangeVcnIpv6AllocationSummary A summary of IPv6 prefix 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. + // The OCID (https://docs.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`. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the `ByoipRange`. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The BYOIPv6 prefix range or subrange allocated to a VCN. This could be all or part of a BYOIPv6 prefix. // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Vcn` resource to which the ByoipRange belongs. VcnId *string `mandatory:"false" json:"vcnId"` } @@ -49,7 +49,7 @@ func (m ByoipRangeVcnIpv6AllocationSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 938d95b52d..8fc02cf9c0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,7 +28,7 @@ import ( // - The number of prefixes must not exceed the limit of IPv6 prefixes 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. + // The OCID (https://docs.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 prefix required to create a VCN with a BYOIP prefix. It could be the whole prefix identified in `byoipv6RangeId`, or a subrange. @@ -47,7 +47,7 @@ func (m Byoipv6CidrDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_bin.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_bin.go new file mode 100644 index 0000000000..cb15d1d589 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_bin.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityBin Total and remaining CPU and memory capacity for each capacity bucket. +type CapacityBin struct { + + // Zero-based index for the corresponding capacity bucket. + CapacityIndex *int `mandatory:"true" json:"capacityIndex"` + + // The total OCPUs of the capacity bucket. + TotalOcpus *float32 `mandatory:"true" json:"totalOcpus"` + + // The available OCPUs of the capacity bucket. + RemainingOcpus *float32 `mandatory:"true" json:"remainingOcpus"` + + // The total memory of the capacity bucket, in GBs. + TotalMemoryInGBs *float32 `mandatory:"true" json:"totalMemoryInGBs"` + + // The remaining memory of the capacity bucket, in GBs. + RemainingMemoryInGBs *float32 `mandatory:"true" json:"remainingMemoryInGBs"` + + // List of VMI shapes supported on each capacity bucket. + SupportedShapes []string `mandatory:"true" json:"supportedShapes"` +} + +func (m CapacityBin) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityBin) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_bin_preview.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_bin_preview.go new file mode 100644 index 0000000000..36a1a98db6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_bin_preview.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityBinPreview Total CPU and memory capacity for each capacity bucket. +type CapacityBinPreview struct { + + // Zero-based index for the corresponding capacity bucket. + CapacityIndex *int `mandatory:"true" json:"capacityIndex"` + + // The total OCPUs of the capacity bucket. + TotalOcpus *float32 `mandatory:"true" json:"totalOcpus"` + + // The total memory of the capacity bucket, in GBs. + TotalMemoryInGBs *float32 `mandatory:"true" json:"totalMemoryInGBs"` + + // List of VMI shapes supported on each capacity bucket. + SupportedShapes []string `mandatory:"true" json:"supportedShapes"` +} + +func (m CapacityBinPreview) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityBinPreview) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_config.go new file mode 100644 index 0000000000..8fb14ea259 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_config.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityConfig Specifies the capacity configs that the Dedicated Virtual Machine Host (DVMH) Shape could support. +type CapacityConfig struct { + + // The name of each capacity config. + CapacityConfigName *string `mandatory:"false" json:"capacityConfigName"` + + SupportedCapabilities *SupportedCapabilities `mandatory:"false" json:"supportedCapabilities"` + + // Whether this capacity config is the default config. + IsDefault *bool `mandatory:"false" json:"isDefault"` + + // A list of total CPU and memory per capacity bucket. + CapacityBins []CapacityBinPreview `mandatory:"false" json:"capacityBins"` +} + +func (m CapacityConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", 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 index 96a9a75c24..dd00fc8b2a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m CapacityReportInstanceShapeConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index cc69b03b46..075785b5f0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -54,7 +54,7 @@ func (m CapacityReportShapeAvailability) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6a052b46dd..501c8ba57f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -58,7 +58,7 @@ func (m CapacityReservationInstanceSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_source.go index 600d883c8b..e1dd2e6423 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_source.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -61,7 +61,7 @@ func (m *capacitysource) UnmarshalPolymorphicJSON(data []byte) (interface{}, err err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for CapacitySource: %s.", m.CapacityType) + common.Logf("Received unsupported enum value for CapacitySource: %s.", m.CapacityType) return *m, nil } } @@ -77,7 +77,7 @@ func (m capacitysource) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 67f0201296..db84d08617 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,7 +28,7 @@ type CaptureConsoleHistoryDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -37,7 +37,7 @@ type CaptureConsoleHistoryDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -53,7 +53,7 @@ func (m CaptureConsoleHistoryDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_request_response.go index a41c17c0e4..851ec0bba4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CaptureConsoleHistory.go.html to see an example of how to use CaptureConsoleHistoryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CaptureConsoleHistory.go.html to see an example of how to use CaptureConsoleHistoryRequest. type CaptureConsoleHistoryRequest struct { // Console history details @@ -69,7 +69,7 @@ func (request CaptureConsoleHistoryRequest) RetryPolicy() *common.RetryPolicy { func (request CaptureConsoleHistoryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 13dfc0fa57..131b721e1b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,21 +22,21 @@ import ( ) // CaptureFilter A capture filter contains a set of *CaptureFilterRuleDetails* governing what traffic is -// mirrored for a *Vtap* or captured for a *VCN Flow Log (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/vcn-flow-logs.htm)*. +// mirrored for a *Vtap* or captured for a *VCN Flow Log (https://docs.oracle.com/iaas/Content/Network/Concepts/vcn-flow-logs.htm)*. // The capture filter is created with no rules defined, and it must have at least one rule to mirror traffic for the VTAP or collect VCN flow logs. type CaptureFilter struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the capture filter. + // The OCID (https://docs.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)). + // The capture filter's Oracle ID (OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -45,7 +45,7 @@ type CaptureFilter struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -80,7 +80,7 @@ func (m CaptureFilter) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 2f244c7447..4ffb7789cf 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the boot volume backup to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeBootVolumeBackupCompartmentDetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 725b2dd106..3b50724ca1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeBootVolumeBackupCompartment.go.html to see an example of how to use ChangeBootVolumeBackupCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeBootVolumeBackupCompartment.go.html to see an example of how to use ChangeBootVolumeBackupCompartmentRequest. type ChangeBootVolumeBackupCompartmentRequest struct { // The OCID of the boot volume backup. @@ -65,7 +65,7 @@ func (request ChangeBootVolumeBackupCompartmentRequest) RetryPolicy() *common.Re func (request ChangeBootVolumeBackupCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index abe7ea6084..30b510a5ea 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the boot volume to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeBootVolumeCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 321256e9dc..3e724cbf64 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeBootVolumeCompartment.go.html to see an example of how to use ChangeBootVolumeCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeBootVolumeCompartment.go.html to see an example of how to use ChangeBootVolumeCompartmentRequest. type ChangeBootVolumeCompartmentRequest struct { // The OCID of the boot volume. @@ -65,7 +65,7 @@ func (request ChangeBootVolumeCompartmentRequest) RetryPolicy() *common.RetryPol func (request ChangeBootVolumeCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoasn_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoasn_compartment_details.go new file mode 100644 index 0000000000..bef9b2a171 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoasn_compartment_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeByoasnCompartmentDetails The configuration details for the move operation. +type ChangeByoasnCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the BYOASN resource move. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeByoasnCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeByoasnCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoasn_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoasn_compartment_request_response.go new file mode 100644 index 0000000000..cceca09dd3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoasn_compartment_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ChangeByoasnCompartmentRequest wrapper for the ChangeByoasnCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeByoasnCompartment.go.html to see an example of how to use ChangeByoasnCompartmentRequest. +type ChangeByoasnCompartmentRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Byoasn` resource. + ByoasnId *string `mandatory:"true" contributesTo:"path" name:"byoasnId"` + + // Request to change the compartment of a BYOIP CIDR block. + ChangeByoasnCompartmentDetails `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 ChangeByoasnCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeByoasnCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeByoasnCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeByoasnCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeByoasnCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeByoasnCompartmentResponse wrapper for the ChangeByoasnCompartment operation +type ChangeByoasnCompartmentResponse 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 ChangeByoasnCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeByoasnCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 071149492a..e25a7353b2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the BYOIP CIDR block move. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeByoipRangeCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 7070791d7a..013d7ae6a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeByoipRangeCompartment.go.html to see an example of how to use ChangeByoipRangeCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeByoipRangeCompartment.go.html to see an example of how to use ChangeByoipRangeCompartmentRequest. type ChangeByoipRangeCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource containing the BYOIP CIDR block. + // The OCID (https://docs.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"` // Request to change the compartment of a BYOIP CIDR block. @@ -72,7 +72,7 @@ func (request ChangeByoipRangeCompartmentRequest) RetryPolicy() *common.RetryPol func (request ChangeByoipRangeCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 075a2b8866..8321e538ff 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // ChangeCaptureFilterCompartmentDetails These configuration details are used in the move operation when changing the compartment containing a 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the VTAP // capture filter move. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeCaptureFilterCompartmentDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 4b02d96647..e9eeb43311 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCaptureFilterCompartment.go.html to see an example of how to use ChangeCaptureFilterCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCaptureFilterCompartment.go.html to see an example of how to use ChangeCaptureFilterCompartmentRequest. type ChangeCaptureFilterCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capture filter. + // The OCID (https://docs.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. @@ -77,7 +77,7 @@ func (request ChangeCaptureFilterCompartmentRequest) RetryPolicy() *common.Retry func (request ChangeCaptureFilterCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -95,8 +95,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_cluster_network_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cluster_network_compartment_details.go index df926e4e48..bd6ca7ba0f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment // into which the resource should be moved. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeClusterNetworkCompartmentDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 2315d8c55a..c136c6d64d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeClusterNetworkCompartment.go.html to see an example of how to use ChangeClusterNetworkCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeClusterNetworkCompartment.go.html to see an example of how to use ChangeClusterNetworkCompartmentRequest. type ChangeClusterNetworkCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. ClusterNetworkId *string `mandatory:"true" contributesTo:"path" name:"clusterNetworkId"` // Request to change the compartment of given cluster network. @@ -77,7 +77,7 @@ func (request ChangeClusterNetworkCompartmentRequest) RetryPolicy() *common.Retr func (request ChangeClusterNetworkCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index dbbb015928..daa674b9de 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment // to move the compute capacity reservation to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeComputeCapacityReservationCompartmentDetails) ValidateEnumValue() errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index edca32aa41..f5239998af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeCapacityReservationCompartment.go.html to see an example of how to use ChangeComputeCapacityReservationCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeCapacityReservationCompartment.go.html to see an example of how to use ChangeComputeCapacityReservationCompartmentRequest. type ChangeComputeCapacityReservationCompartmentRequest struct { // The OCID of the compute capacity reservation. @@ -77,7 +77,7 @@ func (request ChangeComputeCapacityReservationCompartmentRequest) RetryPolicy() func (request ChangeComputeCapacityReservationCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,8 +92,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_capacity_topology_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_topology_compartment_details.go index eef7a2d7b2..cab867e9f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_topology_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_topology_compartment_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // ChangeComputeCapacityTopologyCompartmentDetails Specifies the compartment to move the compute capacity topology to. type ChangeComputeCapacityTopologyCompartmentDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment // to move the compute capacity topology to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeComputeCapacityTopologyCompartmentDetails) ValidateEnumValue() (bo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_topology_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_topology_compartment_request_response.go index 10579b0b07..65df118052 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_topology_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_topology_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeCapacityTopologyCompartment.go.html to see an example of how to use ChangeComputeCapacityTopologyCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeCapacityTopologyCompartment.go.html to see an example of how to use ChangeComputeCapacityTopologyCompartmentRequest. type ChangeComputeCapacityTopologyCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" contributesTo:"path" name:"computeCapacityTopologyId"` // The configuration details for the move operation. @@ -77,7 +77,7 @@ func (request ChangeComputeCapacityTopologyCompartmentRequest) RetryPolicy() *co func (request ChangeComputeCapacityTopologyCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,8 +92,8 @@ type ChangeComputeCapacityTopologyCompartmentResponse 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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 426b9bc9c7..6949b7c3df 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the compute cluster to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeComputeClusterCompartmentDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 4cf3438c54..4eb703f2a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,11 +15,11 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeClusterCompartment.go.html to see an example of how to use ChangeComputeClusterCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeClusterCompartment.go.html to see an example of how to use ChangeComputeClusterCompartmentRequest. type ChangeComputeClusterCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. - // A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory // access (RDMA) network group. ComputeClusterId *string `mandatory:"true" contributesTo:"path" name:"computeClusterId"` @@ -79,7 +79,7 @@ func (request ChangeComputeClusterCompartmentRequest) RetryPolicy() *common.Retr func (request ChangeComputeClusterCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_cluster_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_cluster_compartment_details.go new file mode 100644 index 0000000000..4516ffe52f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_cluster_compartment_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeComputeGpuMemoryClusterCompartmentDetails Specifies the compartment to move the compute GPU memory cluster to. +type ChangeComputeGpuMemoryClusterCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the compute GPU + // memory cluster to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeComputeGpuMemoryClusterCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeComputeGpuMemoryClusterCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_cluster_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_cluster_compartment_request_response.go new file mode 100644 index 0000000000..f5e755b8ba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_cluster_compartment_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ChangeComputeGpuMemoryClusterCompartmentRequest wrapper for the ChangeComputeGpuMemoryClusterCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeGpuMemoryClusterCompartment.go.html to see an example of how to use ChangeComputeGpuMemoryClusterCompartmentRequest. +type ChangeComputeGpuMemoryClusterCompartmentRequest struct { + + // The OCID of the compute GPU memory cluster. + ComputeGpuMemoryClusterId *string `mandatory:"true" contributesTo:"path" name:"computeGpuMemoryClusterId"` + + // The configuration details for the move operation. + ChangeComputeGpuMemoryClusterCompartmentDetails `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"` + + // 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 ChangeComputeGpuMemoryClusterCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeComputeGpuMemoryClusterCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeComputeGpuMemoryClusterCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeComputeGpuMemoryClusterCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeComputeGpuMemoryClusterCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeComputeGpuMemoryClusterCompartmentResponse wrapper for the ChangeComputeGpuMemoryClusterCompartment operation +type ChangeComputeGpuMemoryClusterCompartmentResponse 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 ChangeComputeGpuMemoryClusterCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeComputeGpuMemoryClusterCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_fabric_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_fabric_compartment_details.go new file mode 100644 index 0000000000..0704aa9999 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_fabric_compartment_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeComputeGpuMemoryFabricCompartmentDetails Specifies the compartment to move the compute GPU memory fabric to. +type ChangeComputeGpuMemoryFabricCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the compute GPU + // memory fabric to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeComputeGpuMemoryFabricCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeComputeGpuMemoryFabricCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_fabric_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_fabric_compartment_request_response.go new file mode 100644 index 0000000000..9454ee0958 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_gpu_memory_fabric_compartment_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ChangeComputeGpuMemoryFabricCompartmentRequest wrapper for the ChangeComputeGpuMemoryFabricCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeGpuMemoryFabricCompartment.go.html to see an example of how to use ChangeComputeGpuMemoryFabricCompartmentRequest. +type ChangeComputeGpuMemoryFabricCompartmentRequest struct { + + // The OCID of the compute GPU memory fabric. + ComputeGpuMemoryFabricId *string `mandatory:"true" contributesTo:"path" name:"computeGpuMemoryFabricId"` + + // The configuration details for the move operation. + ChangeComputeGpuMemoryFabricCompartmentDetails `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"` + + // 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 ChangeComputeGpuMemoryFabricCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeComputeGpuMemoryFabricCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeComputeGpuMemoryFabricCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeComputeGpuMemoryFabricCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeComputeGpuMemoryFabricCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeComputeGpuMemoryFabricCompartmentResponse wrapper for the ChangeComputeGpuMemoryFabricCompartment operation +type ChangeComputeGpuMemoryFabricCompartmentResponse 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 ChangeComputeGpuMemoryFabricCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeComputeGpuMemoryFabricCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_compartment_details.go new file mode 100644 index 0000000000..2232cd9c49 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_compartment_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeComputeHostCompartmentDetails Specifies the compartment to move the compute host to. +type ChangeComputeHostCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // to move the compute host to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeComputeHostCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeComputeHostCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_compartment_request_response.go new file mode 100644 index 0000000000..1066d1ccf5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_compartment_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ChangeComputeHostCompartmentRequest wrapper for the ChangeComputeHostCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeHostCompartment.go.html to see an example of how to use ChangeComputeHostCompartmentRequest. +type ChangeComputeHostCompartmentRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host. + ComputeHostId *string `mandatory:"true" contributesTo:"path" name:"computeHostId"` + + // The configuration details for the move operation. + ChangeComputeHostCompartmentDetails `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"` + + // 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 ChangeComputeHostCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeComputeHostCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeComputeHostCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeComputeHostCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeComputeHostCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeComputeHostCompartmentResponse wrapper for the ChangeComputeHostCompartment operation +type ChangeComputeHostCompartmentResponse 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 ChangeComputeHostCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeComputeHostCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_group_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_group_compartment_details.go new file mode 100644 index 0000000000..aeb05ec8b1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_group_compartment_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeComputeHostGroupCompartmentDetails Specifies the compartment to move the compute host group to. +type ChangeComputeHostGroupCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // to move the compute host group to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeComputeHostGroupCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeComputeHostGroupCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_group_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_group_compartment_request_response.go new file mode 100644 index 0000000000..03711b9453 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_host_group_compartment_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ChangeComputeHostGroupCompartmentRequest wrapper for the ChangeComputeHostGroupCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeHostGroupCompartment.go.html to see an example of how to use ChangeComputeHostGroupCompartmentRequest. +type ChangeComputeHostGroupCompartmentRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group. + ComputeHostGroupId *string `mandatory:"true" contributesTo:"path" name:"computeHostGroupId"` + + // The configuration details for the move operation. + ChangeComputeHostGroupCompartmentDetails `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"` + + // 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 ChangeComputeHostGroupCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeComputeHostGroupCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeComputeHostGroupCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeComputeHostGroupCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeComputeHostGroupCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeComputeHostGroupCompartmentResponse wrapper for the ChangeComputeHostGroupCompartment operation +type ChangeComputeHostGroupCompartmentResponse 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 ChangeComputeHostGroupCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeComputeHostGroupCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index b5cd089107..366c669bf9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to // move the instance configuration to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeComputeImageCapabilitySchemaCompartmentDetails) ValidateEnumValue( errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 722826f167..4e98ccc48f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeImageCapabilitySchemaCompartment.go.html to see an example of how to use ChangeComputeImageCapabilitySchemaCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeImageCapabilitySchemaCompartment.go.html to see an example of how to use ChangeComputeImageCapabilitySchemaCompartmentRequest. type ChangeComputeImageCapabilitySchemaCompartmentRequest struct { // The id of the compute image capability schema or the image ocid @@ -77,7 +77,7 @@ func (request ChangeComputeImageCapabilitySchemaCompartmentRequest) RetryPolicy( func (request ChangeComputeImageCapabilitySchemaCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bc9a27d985..8cba97a4b8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // CPE object to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeCpeCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_request_response.go index ea33502392..1c4dd43cb9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCpeCompartment.go.html to see an example of how to use ChangeCpeCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCpeCompartment.go.html to see an example of how to use ChangeCpeCompartmentRequest. type ChangeCpeCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeCpeCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request ChangeCpeCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3192724543..9d2f888ba7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // cross-connect to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeCrossConnectCompartmentDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 1fc7ce3065..ecebcf2b3f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCrossConnectCompartment.go.html to see an example of how to use ChangeCrossConnectCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCrossConnectCompartment.go.html to see an example of how to use ChangeCrossConnectCompartmentRequest. type ChangeCrossConnectCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeCrossConnectCompartmentRequest) RetryPolicy() *common.RetryP func (request ChangeCrossConnectCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c26962f48c..2c8676bb14 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // cross-connect group to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeCrossConnectGroupCompartmentDetails) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index e884b48bee..c688807e99 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCrossConnectGroupCompartment.go.html to see an example of how to use ChangeCrossConnectGroupCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCrossConnectGroupCompartment.go.html to see an example of how to use ChangeCrossConnectGroupCompartmentRequest. type ChangeCrossConnectGroupCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeCrossConnectGroupCompartmentRequest) RetryPolicy() *common.R func (request ChangeCrossConnectGroupCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4ddbe77aae..90910aebec 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.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"` } @@ -40,7 +40,7 @@ func (m ChangeDedicatedVmHostCompartmentDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 0bb77b9b9e..064be13b9a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDedicatedVmHostCompartment.go.html to see an example of how to use ChangeDedicatedVmHostCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDedicatedVmHostCompartment.go.html to see an example of how to use ChangeDedicatedVmHostCompartmentRequest. type ChangeDedicatedVmHostCompartmentRequest struct { // The OCID of the dedicated VM host. @@ -77,7 +77,7 @@ func (request ChangeDedicatedVmHostCompartmentRequest) RetryPolicy() *common.Ret func (request ChangeDedicatedVmHostCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -95,8 +95,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 5b35a8ede3..253700c7d9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.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"` } @@ -40,7 +40,7 @@ func (m ChangeDhcpOptionsCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 06dcb325b9..8046de6b55 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDhcpOptionsCompartment.go.html to see an example of how to use ChangeDhcpOptionsCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDhcpOptionsCompartment.go.html to see an example of how to use ChangeDhcpOptionsCompartmentRequest. type ChangeDhcpOptionsCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the set of DHCP options. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeDhcpOptionsCompartmentRequest) RetryPolicy() *common.RetryPo func (request ChangeDhcpOptionsCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bf22fb967a..8e727ea902 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // DRG to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeDrgCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_request_response.go index 2e9e977ac3..5e29262393 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDrgCompartment.go.html to see an example of how to use ChangeDrgCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDrgCompartment.go.html to see an example of how to use ChangeDrgCompartmentRequest. type ChangeDrgCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeDrgCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request ChangeDrgCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -90,8 +90,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_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 index e2119938eb..ff0bca37cb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeIPSecConnectionCompartment.go.html to see an example of how to use ChangeIPSecConnectionCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeIPSecConnectionCompartment.go.html to see an example of how to use ChangeIPSecConnectionCompartmentRequest. type ChangeIPSecConnectionCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeIPSecConnectionCompartmentRequest) RetryPolicy() *common.Ret func (request ChangeIPSecConnectionCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7d4476b005..0bc8bda5c5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the image to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeImageCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_request_response.go index 18207d02d2..be2106a01a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeImageCompartment.go.html to see an example of how to use ChangeImageCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeImageCompartment.go.html to see an example of how to use ChangeImageCompartmentRequest. type ChangeImageCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // Request to change the compartment of a given image. @@ -77,7 +77,7 @@ func (request ChangeImageCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request ChangeImageCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b74724496b..9f747c431c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the instance to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeInstanceCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_request_response.go index 8ac374ce61..e7420d9e89 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstanceCompartment.go.html to see an example of how to use ChangeInstanceCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstanceCompartment.go.html to see an example of how to use ChangeInstanceCompartmentRequest. type ChangeInstanceCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` // Request to change the compartment of a given instance. @@ -77,7 +77,7 @@ func (request ChangeInstanceCompartmentRequest) RetryPolicy() *common.RetryPolic func (request ChangeInstanceCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -95,8 +95,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 4c23bc588d..711af07e01 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to // move the instance configuration to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeInstanceConfigurationCompartmentDetails) ValidateEnumValue() (bool errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index b8d88cc446..b801aafd64 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstanceConfigurationCompartment.go.html to see an example of how to use ChangeInstanceConfigurationCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstanceConfigurationCompartment.go.html to see an example of how to use ChangeInstanceConfigurationCompartmentRequest. type ChangeInstanceConfigurationCompartmentRequest struct { // The OCID of the instance configuration. @@ -77,7 +77,7 @@ func (request ChangeInstanceConfigurationCompartmentRequest) RetryPolicy() *comm func (request ChangeInstanceConfigurationCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index fe77bc50f2..e829f31402 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to // move the instance pool to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeInstancePoolCompartmentDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ddfcb855cc..2cc1186d76 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstancePoolCompartment.go.html to see an example of how to use ChangeInstancePoolCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstancePoolCompartment.go.html to see an example of how to use ChangeInstancePoolCompartmentRequest. type ChangeInstancePoolCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // Request to change the compartment of given instance pool. @@ -77,7 +77,7 @@ func (request ChangeInstancePoolCompartmentRequest) RetryPolicy() *common.RetryP func (request ChangeInstancePoolCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7f8ee09c1e..93897623d6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // internet gateway to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeInternetGatewayCompartmentDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c3e29860d8..5fc22fc884 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInternetGatewayCompartment.go.html to see an example of how to use ChangeInternetGatewayCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInternetGatewayCompartment.go.html to see an example of how to use ChangeInternetGatewayCompartmentRequest. type ChangeInternetGatewayCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internet gateway. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeInternetGatewayCompartmentRequest) RetryPolicy() *common.Ret func (request ChangeInternetGatewayCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index caa4091f90..50be37ad2e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // IPSec connection to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeIpSecConnectionCompartmentDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f17b79d93e..e2582cdbee 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // local peering gateway to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeLocalPeeringGatewayCompartmentDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index d4bd68fc18..8094121293 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeLocalPeeringGatewayCompartment.go.html to see an example of how to use ChangeLocalPeeringGatewayCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeLocalPeeringGatewayCompartment.go.html to see an example of how to use ChangeLocalPeeringGatewayCompartmentRequest. type ChangeLocalPeeringGatewayCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering gateway. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeLocalPeeringGatewayCompartmentRequest) RetryPolicy() *common func (request ChangeLocalPeeringGatewayCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 47751019c1..efe4414411 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the NAT gateway to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeNatGatewayCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 4d747eea16..cb5c81d39e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeNatGatewayCompartment.go.html to see an example of how to use ChangeNatGatewayCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeNatGatewayCompartment.go.html to see an example of how to use ChangeNatGatewayCompartmentRequest. type ChangeNatGatewayCompartmentRequest struct { - // The NAT gateway's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The NAT gateway's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). NatGatewayId *string `mandatory:"true" contributesTo:"path" name:"natGatewayId"` // Request to change the compartment of a given NAT Gateway. @@ -72,7 +72,7 @@ func (request ChangeNatGatewayCompartmentRequest) RetryPolicy() *common.RetryPol func (request ChangeNatGatewayCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bc326bf04f..5de2eaaa85 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the network // security group to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeNetworkSecurityGroupCompartmentDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 715958afa4..1cc88c9c13 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeNetworkSecurityGroupCompartment.go.html to see an example of how to use ChangeNetworkSecurityGroupCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeNetworkSecurityGroupCompartment.go.html to see an example of how to use ChangeNetworkSecurityGroupCompartmentRequest. type ChangeNetworkSecurityGroupCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` // Request to change the compartment of a network security group. @@ -72,7 +72,7 @@ func (request ChangeNetworkSecurityGroupCompartmentRequest) RetryPolicy() *commo func (request ChangeNetworkSecurityGroupCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cb8b743352..3cb83d10c4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // public IP to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangePublicIpCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index cd076cd1fa..0423142119 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangePublicIpCompartment.go.html to see an example of how to use ChangePublicIpCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangePublicIpCompartment.go.html to see an example of how to use ChangePublicIpCompartmentRequest. type ChangePublicIpCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangePublicIpCompartmentRequest) RetryPolicy() *common.RetryPolic func (request ChangePublicIpCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index dc142cb6bc..4273e3cc4a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the public IP pool move. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangePublicIpPoolCompartmentDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index e7ac34c8fb..256b86850f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangePublicIpPoolCompartment.go.html to see an example of how to use ChangePublicIpPoolCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangePublicIpPoolCompartment.go.html to see an example of how to use ChangePublicIpPoolCompartmentRequest. type ChangePublicIpPoolCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. PublicIpPoolId *string `mandatory:"true" contributesTo:"path" name:"publicIpPoolId"` // Request to change the compartment of a public IP pool. @@ -72,7 +72,7 @@ func (request ChangePublicIpPoolCompartmentRequest) RetryPolicy() *common.RetryP func (request ChangePublicIpPoolCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d3458bf1c4..f8f03d9739 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // remote peering connection to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeRemotePeeringConnectionCompartmentDetails) ValidateEnumValue() (bo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c6d9e57108..7fae8b8190 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeRemotePeeringConnectionCompartment.go.html to see an example of how to use ChangeRemotePeeringConnectionCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeRemotePeeringConnectionCompartment.go.html to see an example of how to use ChangeRemotePeeringConnectionCompartmentRequest. type ChangeRemotePeeringConnectionCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeRemotePeeringConnectionCompartmentRequest) RetryPolicy() *co func (request ChangeRemotePeeringConnectionCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0e8ebaa93a..0fafab09a1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // route table to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeRouteTableCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 5c07fc5282..686e62b299 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeRouteTableCompartment.go.html to see an example of how to use ChangeRouteTableCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeRouteTableCompartment.go.html to see an example of how to use ChangeRouteTableCompartmentRequest. type ChangeRouteTableCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeRouteTableCompartmentRequest) RetryPolicy() *common.RetryPol func (request ChangeRouteTableCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 847ef43d75..5e116bb2c7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // security list to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeSecurityListCompartmentDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 45334c37c5..8e908f689e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeSecurityListCompartment.go.html to see an example of how to use ChangeSecurityListCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeSecurityListCompartment.go.html to see an example of how to use ChangeSecurityListCompartmentRequest. type ChangeSecurityListCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the security list. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeSecurityListCompartmentRequest) RetryPolicy() *common.RetryP func (request ChangeSecurityListCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f9f5231354..f82f0a72eb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // service gateway to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeServiceGatewayCompartmentDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 491a6715fc..79346ea1d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeServiceGatewayCompartment.go.html to see an example of how to use ChangeServiceGatewayCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeServiceGatewayCompartment.go.html to see an example of how to use ChangeServiceGatewayCompartmentRequest. type ChangeServiceGatewayCompartmentRequest struct { - // The service gateway's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The service gateway's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). ServiceGatewayId *string `mandatory:"true" contributesTo:"path" name:"serviceGatewayId"` // Request to change the compartment of a given Service Gateway. @@ -72,7 +72,7 @@ func (request ChangeServiceGatewayCompartmentRequest) RetryPolicy() *common.Retr func (request ChangeServiceGatewayCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d72e40bb9a..c89a06982a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // subnet to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeSubnetCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_request_response.go index 3a5fc53d33..7127cb28a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeSubnetCompartment.go.html to see an example of how to use ChangeSubnetCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeSubnetCompartment.go.html to see an example of how to use ChangeSubnetCompartmentRequest. type ChangeSubnetCompartmentRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // Specify the OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeSubnetCompartmentRequest) RetryPolicy() *common.RetryPolicy func (request ChangeSubnetCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -90,8 +90,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 176b5a7561..8067e7e86e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // VCN to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeVcnCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_request_response.go index ad574f704f..a20e1a03dc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVcnCompartment.go.html to see an example of how to use ChangeVcnCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVcnCompartment.go.html to see an example of how to use ChangeVcnCompartmentRequest. type ChangeVcnCompartmentRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // Request to change the compartment of a given VCN. @@ -72,7 +72,7 @@ func (request ChangeVcnCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request ChangeVcnCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -90,8 +90,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 6ff7ce8771..fe88401410 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the // virtual circuit to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m ChangeVirtualCircuitCompartmentDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index baa9bc75d3..842ae2ac61 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVirtualCircuitCompartment.go.html to see an example of how to use ChangeVirtualCircuitCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVirtualCircuitCompartment.go.html to see an example of how to use ChangeVirtualCircuitCompartmentRequest. type ChangeVirtualCircuitCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.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. @@ -72,7 +72,7 @@ func (request ChangeVirtualCircuitCompartmentRequest) RetryPolicy() *common.Retr func (request ChangeVirtualCircuitCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4a7cba42b3..ef6a9c7dda 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the VLAN to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeVlanCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_request_response.go index fd27cddda0..7193ce2b94 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVlanCompartment.go.html to see an example of how to use ChangeVlanCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVlanCompartment.go.html to see an example of how to use ChangeVlanCompartmentRequest. type ChangeVlanCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. VlanId *string `mandatory:"true" contributesTo:"path" name:"vlanId"` // Request to change the compartment of a given VLAN. @@ -77,7 +77,7 @@ func (request ChangeVlanCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request ChangeVlanCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,8 +92,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index c79a2e3216..d1391c5145 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume backup to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeVolumeBackupCompartmentDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index b32a2035ee..e9b98e0e93 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeBackupCompartment.go.html to see an example of how to use ChangeVolumeBackupCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeBackupCompartment.go.html to see an example of how to use ChangeVolumeBackupCompartmentRequest. type ChangeVolumeBackupCompartmentRequest struct { // The OCID of the volume backup. @@ -65,7 +65,7 @@ func (request ChangeVolumeBackupCompartmentRequest) RetryPolicy() *common.RetryP func (request ChangeVolumeBackupCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 05e833d55f..ef2a7bff70 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeVolumeCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_request_response.go index 4e7c6d60a6..686a5a0856 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeCompartment.go.html to see an example of how to use ChangeVolumeCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeCompartment.go.html to see an example of how to use ChangeVolumeCompartmentRequest. type ChangeVolumeCompartmentRequest struct { // The OCID of the volume. @@ -65,7 +65,7 @@ func (request ChangeVolumeCompartmentRequest) RetryPolicy() *common.RetryPolicy func (request ChangeVolumeCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8047c40154..1abe58919b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume group backup to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeVolumeGroupBackupCompartmentDetails) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 5a017f3f39..a1752be573 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeGroupBackupCompartment.go.html to see an example of how to use ChangeVolumeGroupBackupCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeGroupBackupCompartment.go.html to see an example of how to use ChangeVolumeGroupBackupCompartmentRequest. type ChangeVolumeGroupBackupCompartmentRequest struct { // The Oracle Cloud ID (OCID) that uniquely identifies the volume group backup. @@ -65,7 +65,7 @@ func (request ChangeVolumeGroupBackupCompartmentRequest) RetryPolicy() *common.R func (request ChangeVolumeGroupBackupCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2dd712c5a7..a18c701b72 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume group to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeVolumeGroupCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index a0ce06669f..188aed9ba3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeGroupCompartment.go.html to see an example of how to use ChangeVolumeGroupCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeGroupCompartment.go.html to see an example of how to use ChangeVolumeGroupCompartmentRequest. type ChangeVolumeGroupCompartmentRequest struct { // The Oracle Cloud ID (OCID) that uniquely identifies the volume group. @@ -65,7 +65,7 @@ func (request ChangeVolumeGroupCompartmentRequest) RetryPolicy() *common.RetryPo func (request ChangeVolumeGroupCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 886670e086..aa71fae2b9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the VTAP move. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -39,7 +39,7 @@ func (m ChangeVtapCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_request_response.go index 7b805a6938..3f0dc71610 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVtapCompartment.go.html to see an example of how to use ChangeVtapCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVtapCompartment.go.html to see an example of how to use ChangeVtapCompartmentRequest. type ChangeVtapCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP. + // The OCID (https://docs.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. @@ -77,7 +77,7 @@ func (request ChangeVtapCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request ChangeVtapCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -95,8 +95,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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/cluster_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_config_details.go index 040adeb357..ea378f200c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_config_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_config_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,7 +28,7 @@ import ( // is returned. type ClusterConfigDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC island. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC island. HpcIslandId *string `mandatory:"true" json:"hpcIslandId"` // The list of OCIDs of the network blocks. @@ -46,7 +46,7 @@ func (m ClusterConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_configuration_details.go index 3b7925ac17..47d0dc14f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_configuration_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,7 +28,7 @@ import ( // not valid, an error is returned. type ClusterConfigurationDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC island. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC island. HpcIslandId *string `mandatory:"true" json:"hpcIslandId"` // The list of network block OCIDs. @@ -46,7 +46,7 @@ func (m ClusterConfigurationDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8505ab4a69..aacd169d93 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( // ClusterNetwork A cluster network is a group of high performance computing (HPC), GPU, or optimized bare metal // instances that are connected with an ultra low-latency remote direct memory access (RDMA) -// network. Cluster networks with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm) +// network. Cluster networks with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm) // use instance pools to manage groups of identical instances. // Use cluster networks with instance pools when you want predictable capacity for a specific number of identical // instances that are managed as a group. @@ -31,10 +31,10 @@ import ( // in the network group, use compute clusters instead. For details, see ComputeCluster. type ClusterNetwork struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -48,14 +48,14 @@ type ClusterNetwork struct { // Example: `2016-08-25T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC island used by the cluster network. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC island used by the cluster network. HpcIslandId *string `mandatory:"false" json:"hpcIslandId"` // The list of network block OCIDs of the HPC island. NetworkBlockIds []string `mandatory:"false" json:"networkBlockIds"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -64,7 +64,7 @@ type ClusterNetwork struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -89,7 +89,7 @@ func (m ClusterNetwork) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f8b0aeee1d..f351dfd6ce 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -31,7 +31,7 @@ type ClusterNetworkPlacementConfigurationDetails struct { // The placement constraint when reserving hosts. PlacementConstraint ClusterNetworkPlacementConfigurationDetailsPlacementConstraintEnum `mandatory:"false" json:"placementConstraint,omitempty"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet to place instances. This field is deprecated. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet to place instances. This field is deprecated. // Use `primaryVnicSubnets` instead to set VNIC data for instances in the pool. PrimarySubnetId *string `mandatory:"false" json:"primarySubnetId"` @@ -55,7 +55,7 @@ func (m ClusterNetworkPlacementConfigurationDetails) ValidateEnumValue() (bool, errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PlacementConstraint: %s. Supported values are: %s.", m.PlacementConstraint, strings.Join(GetClusterNetworkPlacementConfigurationDetailsPlacementConstraintEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e6aab9a8e7..78dbac23d3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,13 +21,13 @@ import ( "strings" ) -// ClusterNetworkSummary Summary information for a cluster network with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). +// ClusterNetworkSummary Summary information for a cluster network with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). type ClusterNetworkSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. + // The OCID (https://docs.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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the // cluster netowrk. CompartmentId *string `mandatory:"true" json:"compartmentId"` @@ -43,7 +43,7 @@ type ClusterNetworkSummary struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -52,7 +52,7 @@ type ClusterNetworkSummary struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -74,7 +74,7 @@ func (m ClusterNetworkSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 95c4b75bef..dd2bfbbc13 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. Id *string `mandatory:"false" json:"id"` } @@ -39,7 +39,7 @@ func (m CompartmentInternal) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host.go index 391ab334fe..bbfe968e0b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,10 +24,10 @@ import ( // ComputeBareMetalHost A compute bare metal host. type ComputeBareMetalHost struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" json:"computeCapacityTopologyId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute bare metal host. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute bare metal host. Id *string `mandatory:"true" json:"id"` // The shape of the compute instance that runs on the compute bare metal host. @@ -44,16 +44,16 @@ type ComputeBareMetalHost struct { // Example: `2016-08-25T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. ComputeHpcIslandId *string `mandatory:"false" json:"computeHpcIslandId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute local block. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute local block. ComputeLocalBlockId *string `mandatory:"false" json:"computeLocalBlockId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. ComputeNetworkBlockId *string `mandatory:"false" json:"computeNetworkBlockId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute instance that runs on the compute bare metal host. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute instance that runs on the compute bare metal host. InstanceId *string `mandatory:"false" json:"instanceId"` // The lifecycle state details of the compute bare metal host. @@ -77,7 +77,7 @@ func (m ComputeBareMetalHost) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleDetails: %s. Supported values are: %s.", m.LifecycleDetails, strings.Join(GetComputeBareMetalHostLifecycleDetailsEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_collection.go index 089634e5ec..cbd7c0477f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_collection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m ComputeBareMetalHostCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_placement_constraint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_placement_constraint_details.go new file mode 100644 index 0000000000..b2fbfffd74 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_placement_constraint_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeBareMetalHostPlacementConstraintDetails The details for providing placement constraints using the compute bare metal host OCID. +// This placement constraint is only applicable during the launch operation. +type ComputeBareMetalHostPlacementConstraintDetails struct { + + // The OCID of the compute bare metal host. This is only available for dedicated capacity customers. + ComputeBareMetalHostId *string `mandatory:"true" json:"computeBareMetalHostId"` +} + +func (m ComputeBareMetalHostPlacementConstraintDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeBareMetalHostPlacementConstraintDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m ComputeBareMetalHostPlacementConstraintDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeComputeBareMetalHostPlacementConstraintDetails ComputeBareMetalHostPlacementConstraintDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeComputeBareMetalHostPlacementConstraintDetails + }{ + "COMPUTE_BARE_METAL_HOST", + (MarshalTypeComputeBareMetalHostPlacementConstraintDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_summary.go index bb089f0dd0..3723215b52 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_bare_metal_host_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,10 +24,10 @@ import ( // ComputeBareMetalHostSummary Summary information for a compute bare metal host. type ComputeBareMetalHostSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" json:"computeCapacityTopologyId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute bare metal host. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute bare metal host. Id *string `mandatory:"true" json:"id"` // The shape of the compute instance that runs on the compute bare metal host. @@ -44,16 +44,16 @@ type ComputeBareMetalHostSummary struct { // Example: `2016-08-25T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. ComputeHpcIslandId *string `mandatory:"false" json:"computeHpcIslandId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. ComputeLocalBlockId *string `mandatory:"false" json:"computeLocalBlockId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute local block. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute local block. ComputeNetworkBlockId *string `mandatory:"false" json:"computeNetworkBlockId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute instance that runs on the compute bare metal host. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute instance that runs on the compute bare metal host. InstanceId *string `mandatory:"false" json:"instanceId"` // The lifecycle state details of the compute bare metal host. @@ -77,7 +77,7 @@ func (m ComputeBareMetalHostSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleDetails: %s. Supported values are: %s.", m.LifecycleDetails, strings.Join(GetComputeBareMetalHostLifecycleDetailsEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a6b29e8394..df608bc8ec 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,7 +28,7 @@ import ( // you create an instance or change the shape of an instance. 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root // compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` @@ -56,7 +56,7 @@ func (m ComputeCapacityReport) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d2283cba17..658b5741b3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,11 +28,11 @@ type ComputeCapacityReservation struct { // 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 + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -43,7 +43,7 @@ type ComputeCapacityReservation struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -52,12 +52,12 @@ type ComputeCapacityReservation struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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). + // For more information, see Capacity Reservations (https://docs.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). IsDefaultReservation *bool `mandatory:"false" json:"isDefaultReservation"` // The capacity configurations for the capacity reservation. @@ -96,7 +96,7 @@ func (m ComputeCapacityReservation) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5929719f6c..e304880eae 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ComputeCapacityReservationInstanceShapeSummary) ValidateEnumValue() (boo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d032b8a320..cbce0fe074 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,12 +42,12 @@ type ComputeCapacityReservationSummary struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -67,7 +67,7 @@ type ComputeCapacityReservationSummary struct { 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). + // For more information, see Capacity Reservations (https://docs.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). IsDefaultReservation *bool `mandatory:"false" json:"isDefaultReservation"` } @@ -85,7 +85,7 @@ func (m ComputeCapacityReservationSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology.go index 9c8fb1a684..acd486c1ee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -31,10 +31,10 @@ type ComputeCapacityTopology struct { CapacitySource CapacitySource `mandatory:"true" json:"capacitySource"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute capacity topology. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. Id *string `mandatory:"true" json:"id"` // The current state of the compute capacity topology. @@ -49,7 +49,7 @@ type ComputeCapacityTopology struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -58,7 +58,7 @@ type ComputeCapacityTopology struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -77,7 +77,7 @@ func (m ComputeCapacityTopology) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology_collection.go index 6e9b43e490..1cf38a8f74 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology_collection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m ComputeCapacityTopologyCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology_summary.go index a9dcb388da..358d31e066 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_topology_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,10 +28,10 @@ type ComputeCapacityTopologySummary struct { // Example: `Uocm:US-CHICAGO-1-AD-2` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute capacity topology. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. Id *string `mandatory:"true" json:"id"` // The current state of the compute capacity topology. @@ -46,7 +46,7 @@ type ComputeCapacityTopologySummary struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -55,7 +55,7 @@ type ComputeCapacityTopologySummary struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -74,7 +74,7 @@ func (m ComputeCapacityTopologySummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 237f55c718..cddece28b2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,7 +22,7 @@ import ( ) // ComputeCluster A remote direct memory access (RDMA) network group. -// A cluster network on a compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a group of +// A cluster network on a compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a group of // high performance computing (HPC), GPU, or optimized instances that are connected with an ultra low-latency network. // Use compute clusters when you want to manage instances in the cluster individually in the RDMA network group. // For details about cluster networks that use instance pools to manage groups of identical instances, @@ -33,10 +33,10 @@ type ComputeCluster struct { // 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 the compute cluster. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute cluster. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. Id *string `mandatory:"true" json:"id"` // The current state of the compute cluster. @@ -52,12 +52,12 @@ type ComputeCluster struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -76,7 +76,7 @@ func (m ComputeCluster) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 65a167d952..cdc3b8c69b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,7 +21,7 @@ import ( "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) +// ComputeClusterCollection A list of compute clusters that match filter criteria, if any. A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) // is a remote direct memory access (RDMA) network group. type ComputeClusterCollection struct { @@ -40,7 +40,7 @@ func (m ComputeClusterCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e78a393e19..d3d5589b97 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,7 +21,7 @@ import ( "strings" ) -// ComputeClusterSummary Summary information for a compute cluster. A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) +// ComputeClusterSummary Summary information for a compute cluster. A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) // is a remote direct memory access (RDMA) network group. type ComputeClusterSummary struct { @@ -29,10 +29,10 @@ type ComputeClusterSummary struct { // 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 the compute cluster. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute cluster. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. Id *string `mandatory:"true" json:"id"` // The current state of the compute cluster. @@ -48,12 +48,12 @@ type ComputeClusterSummary struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -72,7 +72,7 @@ func (m ComputeClusterSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d45328ce21..ce2d746398 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.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. @@ -43,12 +43,12 @@ type ComputeGlobalImageCapabilitySchema struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -64,7 +64,7 @@ func (m ComputeGlobalImageCapabilitySchema) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 1b0a0cb5ce..c95969a921 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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). + // The compute global image capability schema OCID (https://docs.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. @@ -43,12 +43,12 @@ type ComputeGlobalImageCapabilitySchemaSummary struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -64,7 +64,7 @@ func (m ComputeGlobalImageCapabilitySchemaSummary) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index e9b92c9414..d820fc49fa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -55,7 +55,7 @@ func (m ComputeGlobalImageCapabilitySchemaVersion) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 599866a225..fb2aa9dd27 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -50,7 +50,7 @@ func (m ComputeGlobalImageCapabilitySchemaVersionSummary) ValidateEnumValue() (b errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster.go new file mode 100644 index 0000000000..f6162aa082 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster.go @@ -0,0 +1,146 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGpuMemoryCluster The customer facing object includes GPU memory cluster details. +type ComputeGpuMemoryCluster struct { + + // The availability domain of the GPU memory cluster. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster + Id *string `mandatory:"true" json:"id"` + + // The OCID of the Instance Configuration used to source launch details for this instance. + InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU + // memory cluster. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The lifecycle state of the GPU memory cluster + LifecycleState ComputeGpuMemoryClusterLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + ComputeClusterId *string `mandatory:"true" json:"computeClusterId"` + + // The number of instances currently running in the GpuMemoryCluster + Size *int64 `mandatory:"true" json:"size"` + + // The date and time the GPU memory cluster was created. + // Example: `2016-09-15T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the GPU memory fabric. + GpuMemoryFabricId *string `mandatory:"false" json:"gpuMemoryFabricId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // 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"` + + // 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 ComputeGpuMemoryCluster) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGpuMemoryCluster) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeGpuMemoryClusterLifecycleStateEnum(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(GetComputeGpuMemoryClusterLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ComputeGpuMemoryClusterLifecycleStateEnum Enum with underlying type: string +type ComputeGpuMemoryClusterLifecycleStateEnum string + +// Set of constants representing the allowable values for ComputeGpuMemoryClusterLifecycleStateEnum +const ( + ComputeGpuMemoryClusterLifecycleStateCreating ComputeGpuMemoryClusterLifecycleStateEnum = "CREATING" + ComputeGpuMemoryClusterLifecycleStateActive ComputeGpuMemoryClusterLifecycleStateEnum = "ACTIVE" + ComputeGpuMemoryClusterLifecycleStateUpdating ComputeGpuMemoryClusterLifecycleStateEnum = "UPDATING" + ComputeGpuMemoryClusterLifecycleStateDeleting ComputeGpuMemoryClusterLifecycleStateEnum = "DELETING" + ComputeGpuMemoryClusterLifecycleStateDeleted ComputeGpuMemoryClusterLifecycleStateEnum = "DELETED" +) + +var mappingComputeGpuMemoryClusterLifecycleStateEnum = map[string]ComputeGpuMemoryClusterLifecycleStateEnum{ + "CREATING": ComputeGpuMemoryClusterLifecycleStateCreating, + "ACTIVE": ComputeGpuMemoryClusterLifecycleStateActive, + "UPDATING": ComputeGpuMemoryClusterLifecycleStateUpdating, + "DELETING": ComputeGpuMemoryClusterLifecycleStateDeleting, + "DELETED": ComputeGpuMemoryClusterLifecycleStateDeleted, +} + +var mappingComputeGpuMemoryClusterLifecycleStateEnumLowerCase = map[string]ComputeGpuMemoryClusterLifecycleStateEnum{ + "creating": ComputeGpuMemoryClusterLifecycleStateCreating, + "active": ComputeGpuMemoryClusterLifecycleStateActive, + "updating": ComputeGpuMemoryClusterLifecycleStateUpdating, + "deleting": ComputeGpuMemoryClusterLifecycleStateDeleting, + "deleted": ComputeGpuMemoryClusterLifecycleStateDeleted, +} + +// GetComputeGpuMemoryClusterLifecycleStateEnumValues Enumerates the set of values for ComputeGpuMemoryClusterLifecycleStateEnum +func GetComputeGpuMemoryClusterLifecycleStateEnumValues() []ComputeGpuMemoryClusterLifecycleStateEnum { + values := make([]ComputeGpuMemoryClusterLifecycleStateEnum, 0) + for _, v := range mappingComputeGpuMemoryClusterLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetComputeGpuMemoryClusterLifecycleStateEnumStringValues Enumerates the set of values in String for ComputeGpuMemoryClusterLifecycleStateEnum +func GetComputeGpuMemoryClusterLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "DELETED", + } +} + +// GetMappingComputeGpuMemoryClusterLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeGpuMemoryClusterLifecycleStateEnum(val string) (ComputeGpuMemoryClusterLifecycleStateEnum, bool) { + enum, ok := mappingComputeGpuMemoryClusterLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_collection.go new file mode 100644 index 0000000000..bcafd76fca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_collection.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGpuMemoryClusterCollection A list of compute GPU memory clusters. +type ComputeGpuMemoryClusterCollection struct { + + // The list of compute GPU memory clusters. + Items []ComputeGpuMemoryClusterSummary `mandatory:"true" json:"items"` +} + +func (m ComputeGpuMemoryClusterCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGpuMemoryClusterCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_instance_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_instance_collection.go new file mode 100644 index 0000000000..27ca30e01f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_instance_collection.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGpuMemoryClusterInstanceCollection A list of compute GPU memory cluster instances. +type ComputeGpuMemoryClusterInstanceCollection struct { + + // The list of compute GPU memory cluster instances. + Items []ComputeGpuMemoryClusterInstanceSummary `mandatory:"true" json:"items"` +} + +func (m ComputeGpuMemoryClusterInstanceCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGpuMemoryClusterInstanceCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_instance_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_instance_summary.go new file mode 100644 index 0000000000..3ab5d1a336 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_instance_summary.go @@ -0,0 +1,159 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGpuMemoryClusterInstanceSummary The customer facing GPU memory cluster instance object details. +type ComputeGpuMemoryClusterInstanceSummary struct { + + // The availability domain of the GPU memory cluster instance. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster instance + Id *string `mandatory:"false" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the compartment + // compartment. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The fault domain the GPU memory cluster instance is running in. + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + // Configuration to be used for this GPU Memory Cluster instance. + InstanceConfigurationId *string `mandatory:"false" json:"instanceConfigurationId"` + + // The region that contains the availability domain the instance is running in. + Region *string `mandatory:"false" json:"region"` + + // The shape of an instance. The shape determines the number of CPUs, amount of memory, + // and other resources allocated to the instance. 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 ListShapes. + InstanceShape *string `mandatory:"false" json:"instanceShape"` + + // The lifecycle state of the GPU memory cluster instance + LifecycleState ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,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"` + + // The date and time the GPU memory cluster instance was created. + // Example: `2016-09-15T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m ComputeGpuMemoryClusterInstanceSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGpuMemoryClusterInstanceSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum(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(GetComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum Enum with underlying type: string +type ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum +const ( + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateMoving ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "MOVING" + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateProvisioning ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "PROVISIONING" + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateRunning ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "RUNNING" + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateStarting ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "STARTING" + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateStopping ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "STOPPING" + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateStopped ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "STOPPED" + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateSuspending ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "SUSPENDING" + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateSuspended ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "SUSPENDED" + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateCreatingImage ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "CREATING_IMAGE" + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateTerminating ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "TERMINATING" + ComputeGpuMemoryClusterInstanceSummaryLifecycleStateTerminated ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = "TERMINATED" +) + +var mappingComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum = map[string]ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum{ + "MOVING": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateMoving, + "PROVISIONING": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateProvisioning, + "RUNNING": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateRunning, + "STARTING": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateStarting, + "STOPPING": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateStopping, + "STOPPED": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateStopped, + "SUSPENDING": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateSuspending, + "SUSPENDED": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateSuspended, + "CREATING_IMAGE": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateCreatingImage, + "TERMINATING": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateTerminating, + "TERMINATED": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateTerminated, +} + +var mappingComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnumLowerCase = map[string]ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum{ + "moving": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateMoving, + "provisioning": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateProvisioning, + "running": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateRunning, + "starting": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateStarting, + "stopping": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateStopping, + "stopped": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateStopped, + "suspending": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateSuspending, + "suspended": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateSuspended, + "creating_image": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateCreatingImage, + "terminating": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateTerminating, + "terminated": ComputeGpuMemoryClusterInstanceSummaryLifecycleStateTerminated, +} + +// GetComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnumValues Enumerates the set of values for ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum +func GetComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnumValues() []ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum { + values := make([]ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum, 0) + for _, v := range mappingComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum +func GetComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "MOVING", + "PROVISIONING", + "RUNNING", + "STARTING", + "STOPPING", + "STOPPED", + "SUSPENDING", + "SUSPENDED", + "CREATING_IMAGE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum(val string) (ComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnum, bool) { + enum, ok := mappingComputeGpuMemoryClusterInstanceSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_summary.go new file mode 100644 index 0000000000..54cf7f8fe7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_cluster_summary.go @@ -0,0 +1,81 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGpuMemoryClusterSummary Summary model for listing Compute GPU Memory Clusters. +type ComputeGpuMemoryClusterSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory cluster + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU memory cluster. + // compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The availability domain of GPU memory cluster. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The current state of the compute GPU memory cluster. + LifecycleState ComputeGpuMemoryClusterLifecycleStateEnum `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"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // 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"` + + // 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 ComputeGpuMemoryClusterSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGpuMemoryClusterSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeGpuMemoryClusterLifecycleStateEnum(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(GetComputeGpuMemoryClusterLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric.go new file mode 100644 index 0000000000..39bbe52aea --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric.go @@ -0,0 +1,270 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGpuMemoryFabric The customer facing object includes GPU memory fabric details. +type ComputeGpuMemoryFabric struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory fabric + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.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 OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique HPC Island + ComputeHpcIslandId *string `mandatory:"true" json:"computeHpcIslandId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Network Block + ComputeNetworkBlockId *string `mandatory:"true" json:"computeNetworkBlockId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Local Block + ComputeLocalBlockId *string `mandatory:"true" json:"computeLocalBlockId"` + + // The lifecycle state of the GPU memory fabric + LifecycleState ComputeGpuMemoryFabricLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The health state of the GPU memory fabric + FabricHealth ComputeGpuMemoryFabricFabricHealthEnum `mandatory:"true" json:"fabricHealth"` + + // The total number of healthy bare metal hosts located in this compute GPU memory fabric. + HealthyHostCount *int64 `mandatory:"true" json:"healthyHostCount"` + + // The total number of bare metal hosts located in this compute GPU memory fabric. + TotalHostCount *int64 `mandatory:"true" json:"totalHostCount"` + + // The date and time that the compute GPU memory fabric record 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"` + + // Additional data that can be exposed to the customer. Right now it will include the switch tray ids. + AdditionalData map[string]interface{} `mandatory:"false" json:"additionalData"` + + // The total number of available bare metal hosts located in this compute GPU memory fabric. + AvailableHostCount *int64 `mandatory:"false" json:"availableHostCount"` + + // The host platform identifier used for bundle queries + HostPlatformName *string `mandatory:"false" json:"hostPlatformName"` + + // The switch platform identifier used for bundle queries + SwitchPlatformName *string `mandatory:"false" json:"switchPlatformName"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for current firmware bundle + CurrentFirmwareBundleId *string `mandatory:"false" json:"currentFirmwareBundleId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for targeted firmware bundle + TargetFirmwareBundleId *string `mandatory:"false" json:"targetFirmwareBundleId"` + + // The state of Memory Fabric Firmware update + FirmwareUpdateState ComputeGpuMemoryFabricFirmwareUpdateStateEnum `mandatory:"false" json:"firmwareUpdateState,omitempty"` + + // The reason for updating firmware bundle version of the GPU memory fabric. + FirmwareUpdateReason *string `mandatory:"false" json:"firmwareUpdateReason"` + + MemoryFabricPreferences *MemoryFabricPreferencesDescriptor `mandatory:"false" json:"memoryFabricPreferences"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // 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"` + + // 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 ComputeGpuMemoryFabric) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGpuMemoryFabric) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeGpuMemoryFabricLifecycleStateEnum(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(GetComputeGpuMemoryFabricLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingComputeGpuMemoryFabricFabricHealthEnum(string(m.FabricHealth)); !ok && m.FabricHealth != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FabricHealth: %s. Supported values are: %s.", m.FabricHealth, strings.Join(GetComputeGpuMemoryFabricFabricHealthEnumStringValues(), ","))) + } + + if _, ok := GetMappingComputeGpuMemoryFabricFirmwareUpdateStateEnum(string(m.FirmwareUpdateState)); !ok && m.FirmwareUpdateState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FirmwareUpdateState: %s. Supported values are: %s.", m.FirmwareUpdateState, strings.Join(GetComputeGpuMemoryFabricFirmwareUpdateStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ComputeGpuMemoryFabricLifecycleStateEnum Enum with underlying type: string +type ComputeGpuMemoryFabricLifecycleStateEnum string + +// Set of constants representing the allowable values for ComputeGpuMemoryFabricLifecycleStateEnum +const ( + ComputeGpuMemoryFabricLifecycleStateAvailable ComputeGpuMemoryFabricLifecycleStateEnum = "AVAILABLE" + ComputeGpuMemoryFabricLifecycleStateOccupied ComputeGpuMemoryFabricLifecycleStateEnum = "OCCUPIED" + ComputeGpuMemoryFabricLifecycleStateProvisioning ComputeGpuMemoryFabricLifecycleStateEnum = "PROVISIONING" + ComputeGpuMemoryFabricLifecycleStateDegraded ComputeGpuMemoryFabricLifecycleStateEnum = "DEGRADED" + ComputeGpuMemoryFabricLifecycleStateUnavailable ComputeGpuMemoryFabricLifecycleStateEnum = "UNAVAILABLE" +) + +var mappingComputeGpuMemoryFabricLifecycleStateEnum = map[string]ComputeGpuMemoryFabricLifecycleStateEnum{ + "AVAILABLE": ComputeGpuMemoryFabricLifecycleStateAvailable, + "OCCUPIED": ComputeGpuMemoryFabricLifecycleStateOccupied, + "PROVISIONING": ComputeGpuMemoryFabricLifecycleStateProvisioning, + "DEGRADED": ComputeGpuMemoryFabricLifecycleStateDegraded, + "UNAVAILABLE": ComputeGpuMemoryFabricLifecycleStateUnavailable, +} + +var mappingComputeGpuMemoryFabricLifecycleStateEnumLowerCase = map[string]ComputeGpuMemoryFabricLifecycleStateEnum{ + "available": ComputeGpuMemoryFabricLifecycleStateAvailable, + "occupied": ComputeGpuMemoryFabricLifecycleStateOccupied, + "provisioning": ComputeGpuMemoryFabricLifecycleStateProvisioning, + "degraded": ComputeGpuMemoryFabricLifecycleStateDegraded, + "unavailable": ComputeGpuMemoryFabricLifecycleStateUnavailable, +} + +// GetComputeGpuMemoryFabricLifecycleStateEnumValues Enumerates the set of values for ComputeGpuMemoryFabricLifecycleStateEnum +func GetComputeGpuMemoryFabricLifecycleStateEnumValues() []ComputeGpuMemoryFabricLifecycleStateEnum { + values := make([]ComputeGpuMemoryFabricLifecycleStateEnum, 0) + for _, v := range mappingComputeGpuMemoryFabricLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetComputeGpuMemoryFabricLifecycleStateEnumStringValues Enumerates the set of values in String for ComputeGpuMemoryFabricLifecycleStateEnum +func GetComputeGpuMemoryFabricLifecycleStateEnumStringValues() []string { + return []string{ + "AVAILABLE", + "OCCUPIED", + "PROVISIONING", + "DEGRADED", + "UNAVAILABLE", + } +} + +// GetMappingComputeGpuMemoryFabricLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeGpuMemoryFabricLifecycleStateEnum(val string) (ComputeGpuMemoryFabricLifecycleStateEnum, bool) { + enum, ok := mappingComputeGpuMemoryFabricLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ComputeGpuMemoryFabricFabricHealthEnum Enum with underlying type: string +type ComputeGpuMemoryFabricFabricHealthEnum string + +// Set of constants representing the allowable values for ComputeGpuMemoryFabricFabricHealthEnum +const ( + ComputeGpuMemoryFabricFabricHealthHealthy ComputeGpuMemoryFabricFabricHealthEnum = "HEALTHY" + ComputeGpuMemoryFabricFabricHealthUnhealthy ComputeGpuMemoryFabricFabricHealthEnum = "UNHEALTHY" +) + +var mappingComputeGpuMemoryFabricFabricHealthEnum = map[string]ComputeGpuMemoryFabricFabricHealthEnum{ + "HEALTHY": ComputeGpuMemoryFabricFabricHealthHealthy, + "UNHEALTHY": ComputeGpuMemoryFabricFabricHealthUnhealthy, +} + +var mappingComputeGpuMemoryFabricFabricHealthEnumLowerCase = map[string]ComputeGpuMemoryFabricFabricHealthEnum{ + "healthy": ComputeGpuMemoryFabricFabricHealthHealthy, + "unhealthy": ComputeGpuMemoryFabricFabricHealthUnhealthy, +} + +// GetComputeGpuMemoryFabricFabricHealthEnumValues Enumerates the set of values for ComputeGpuMemoryFabricFabricHealthEnum +func GetComputeGpuMemoryFabricFabricHealthEnumValues() []ComputeGpuMemoryFabricFabricHealthEnum { + values := make([]ComputeGpuMemoryFabricFabricHealthEnum, 0) + for _, v := range mappingComputeGpuMemoryFabricFabricHealthEnum { + values = append(values, v) + } + return values +} + +// GetComputeGpuMemoryFabricFabricHealthEnumStringValues Enumerates the set of values in String for ComputeGpuMemoryFabricFabricHealthEnum +func GetComputeGpuMemoryFabricFabricHealthEnumStringValues() []string { + return []string{ + "HEALTHY", + "UNHEALTHY", + } +} + +// GetMappingComputeGpuMemoryFabricFabricHealthEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeGpuMemoryFabricFabricHealthEnum(val string) (ComputeGpuMemoryFabricFabricHealthEnum, bool) { + enum, ok := mappingComputeGpuMemoryFabricFabricHealthEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ComputeGpuMemoryFabricFirmwareUpdateStateEnum Enum with underlying type: string +type ComputeGpuMemoryFabricFirmwareUpdateStateEnum string + +// Set of constants representing the allowable values for ComputeGpuMemoryFabricFirmwareUpdateStateEnum +const ( + ComputeGpuMemoryFabricFirmwareUpdateStateWillUpdate ComputeGpuMemoryFabricFirmwareUpdateStateEnum = "WILL_UPDATE" + ComputeGpuMemoryFabricFirmwareUpdateStateNoUpdate ComputeGpuMemoryFabricFirmwareUpdateStateEnum = "NO_UPDATE" + ComputeGpuMemoryFabricFirmwareUpdateStateSkipRecycleEnabled ComputeGpuMemoryFabricFirmwareUpdateStateEnum = "SKIP_RECYCLE_ENABLED" +) + +var mappingComputeGpuMemoryFabricFirmwareUpdateStateEnum = map[string]ComputeGpuMemoryFabricFirmwareUpdateStateEnum{ + "WILL_UPDATE": ComputeGpuMemoryFabricFirmwareUpdateStateWillUpdate, + "NO_UPDATE": ComputeGpuMemoryFabricFirmwareUpdateStateNoUpdate, + "SKIP_RECYCLE_ENABLED": ComputeGpuMemoryFabricFirmwareUpdateStateSkipRecycleEnabled, +} + +var mappingComputeGpuMemoryFabricFirmwareUpdateStateEnumLowerCase = map[string]ComputeGpuMemoryFabricFirmwareUpdateStateEnum{ + "will_update": ComputeGpuMemoryFabricFirmwareUpdateStateWillUpdate, + "no_update": ComputeGpuMemoryFabricFirmwareUpdateStateNoUpdate, + "skip_recycle_enabled": ComputeGpuMemoryFabricFirmwareUpdateStateSkipRecycleEnabled, +} + +// GetComputeGpuMemoryFabricFirmwareUpdateStateEnumValues Enumerates the set of values for ComputeGpuMemoryFabricFirmwareUpdateStateEnum +func GetComputeGpuMemoryFabricFirmwareUpdateStateEnumValues() []ComputeGpuMemoryFabricFirmwareUpdateStateEnum { + values := make([]ComputeGpuMemoryFabricFirmwareUpdateStateEnum, 0) + for _, v := range mappingComputeGpuMemoryFabricFirmwareUpdateStateEnum { + values = append(values, v) + } + return values +} + +// GetComputeGpuMemoryFabricFirmwareUpdateStateEnumStringValues Enumerates the set of values in String for ComputeGpuMemoryFabricFirmwareUpdateStateEnum +func GetComputeGpuMemoryFabricFirmwareUpdateStateEnumStringValues() []string { + return []string{ + "WILL_UPDATE", + "NO_UPDATE", + "SKIP_RECYCLE_ENABLED", + } +} + +// GetMappingComputeGpuMemoryFabricFirmwareUpdateStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeGpuMemoryFabricFirmwareUpdateStateEnum(val string) (ComputeGpuMemoryFabricFirmwareUpdateStateEnum, bool) { + enum, ok := mappingComputeGpuMemoryFabricFirmwareUpdateStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric_collection.go new file mode 100644 index 0000000000..6f7ce60e88 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric_collection.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGpuMemoryFabricCollection A list of compute GPU memory fabrics. +type ComputeGpuMemoryFabricCollection struct { + + // The list of compute GPU memory fabrics. + Items []ComputeGpuMemoryFabricSummary `mandatory:"true" json:"items"` +} + +func (m ComputeGpuMemoryFabricCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGpuMemoryFabricCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric_summary.go new file mode 100644 index 0000000000..f74c2d6df4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_gpu_memory_fabric_summary.go @@ -0,0 +1,168 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGpuMemoryFabricSummary Summary information for a compute GPU memory fabric. +type ComputeGpuMemoryFabricSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique GPU memory fabric + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.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 OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique HPC Island + ComputeHpcIslandId *string `mandatory:"true" json:"computeHpcIslandId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Network Block + ComputeNetworkBlockId *string `mandatory:"true" json:"computeNetworkBlockId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Local Block + ComputeLocalBlockId *string `mandatory:"true" json:"computeLocalBlockId"` + + // The lifecycle state of the GPU memory fabric + LifecycleState ComputeGpuMemoryFabricLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The health state of the GPU memory fabric + FabricHealth ComputeGpuMemoryFabricFabricHealthEnum `mandatory:"true" json:"fabricHealth"` + + // The total number of bare metal hosts located in this compute GPU memory fabric. + TotalHostCount *int64 `mandatory:"true" json:"totalHostCount"` + + // The date and time that the compute GPU memory fabric record 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 number of available bare metal hosts located in this compute GPU memory fabric. + AvailableHostCount *int64 `mandatory:"false" json:"availableHostCount"` + + // The total number of healthy bare metal hosts located in this compute GPU memory fabric. + HealthyHostCount *int64 `mandatory:"false" json:"healthyHostCount"` + + // The host platform identifier used for bundle queries + HostPlatformName *string `mandatory:"false" json:"hostPlatformName"` + + // The switch platform identifier used for bundle queries + SwitchPlatformName *string `mandatory:"false" json:"switchPlatformName"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for current firmware bundle + CurrentFirmwareBundleId *string `mandatory:"false" json:"currentFirmwareBundleId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for targeted firmware bundle + TargetFirmwareBundleId *string `mandatory:"false" json:"targetFirmwareBundleId"` + + // The state of Memory Fabric Firmware update + FirmwareUpdateState ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum `mandatory:"false" json:"firmwareUpdateState,omitempty"` + + MemoryFabricPreferences *MemoryFabricPreferencesDescriptor `mandatory:"false" json:"memoryFabricPreferences"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // 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"` + + // 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 ComputeGpuMemoryFabricSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGpuMemoryFabricSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeGpuMemoryFabricLifecycleStateEnum(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(GetComputeGpuMemoryFabricLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingComputeGpuMemoryFabricFabricHealthEnum(string(m.FabricHealth)); !ok && m.FabricHealth != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FabricHealth: %s. Supported values are: %s.", m.FabricHealth, strings.Join(GetComputeGpuMemoryFabricFabricHealthEnumStringValues(), ","))) + } + + if _, ok := GetMappingComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum(string(m.FirmwareUpdateState)); !ok && m.FirmwareUpdateState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FirmwareUpdateState: %s. Supported values are: %s.", m.FirmwareUpdateState, strings.Join(GetComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum Enum with underlying type: string +type ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum string + +// Set of constants representing the allowable values for ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum +const ( + ComputeGpuMemoryFabricSummaryFirmwareUpdateStateWillUpdate ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum = "WILL_UPDATE" + ComputeGpuMemoryFabricSummaryFirmwareUpdateStateNoUpdate ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum = "NO_UPDATE" + ComputeGpuMemoryFabricSummaryFirmwareUpdateStateSkipRecycleEnabled ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum = "SKIP_RECYCLE_ENABLED" +) + +var mappingComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum = map[string]ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum{ + "WILL_UPDATE": ComputeGpuMemoryFabricSummaryFirmwareUpdateStateWillUpdate, + "NO_UPDATE": ComputeGpuMemoryFabricSummaryFirmwareUpdateStateNoUpdate, + "SKIP_RECYCLE_ENABLED": ComputeGpuMemoryFabricSummaryFirmwareUpdateStateSkipRecycleEnabled, +} + +var mappingComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnumLowerCase = map[string]ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum{ + "will_update": ComputeGpuMemoryFabricSummaryFirmwareUpdateStateWillUpdate, + "no_update": ComputeGpuMemoryFabricSummaryFirmwareUpdateStateNoUpdate, + "skip_recycle_enabled": ComputeGpuMemoryFabricSummaryFirmwareUpdateStateSkipRecycleEnabled, +} + +// GetComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnumValues Enumerates the set of values for ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum +func GetComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnumValues() []ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum { + values := make([]ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum, 0) + for _, v := range mappingComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum { + values = append(values, v) + } + return values +} + +// GetComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnumStringValues Enumerates the set of values in String for ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum +func GetComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnumStringValues() []string { + return []string{ + "WILL_UPDATE", + "NO_UPDATE", + "SKIP_RECYCLE_ENABLED", + } +} + +// GetMappingComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum(val string) (ComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnum, bool) { + enum, ok := mappingComputeGpuMemoryFabricSummaryFirmwareUpdateStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host.go new file mode 100644 index 0000000000..b05304d8a4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host.go @@ -0,0 +1,240 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeHost The customer facing object includes host details. +type ComputeHost struct { + + // The availability domain of the compute host. + // Example: `Uocm:US-CHICAGO-1-AD-2` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.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 OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host + Id *string `mandatory:"true" json:"id"` + + // 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. + // This field is the Fault domain of the host + FaultDomain *string `mandatory:"true" json:"faultDomain"` + + // The shape of host + Shape *string `mandatory:"true" json:"shape"` + + // The heathy state of the host + Health ComputeHostHealthEnum `mandatory:"true" json:"health"` + + // The lifecycle state of the host + LifecycleState ComputeHostLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time that the compute host record 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 that the compute host record 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"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique HPC Island + HpcIslandId *string `mandatory:"false" json:"hpcIslandId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host group associated with the Compute Bare Metal Host. + ComputeHostGroupId *string `mandatory:"false" json:"computeHostGroupId"` + + // Configuration state of the Compute Bare Metal Host. + ConfigurationState ConfigurationStateEnum `mandatory:"false" json:"configurationState,omitempty"` + + // The date and time that the compute bare metal host configuration check was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeConfigurationCheck *common.SDKTime `mandatory:"false" json:"timeConfigurationCheck"` + + ConfigurationData *ComputeHostConfigurationData `mandatory:"false" json:"configurationData"` + + RecycleDetails *RecycleDetails `mandatory:"false" json:"recycleDetails"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Network Block + NetworkBlockId *string `mandatory:"false" json:"networkBlockId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Local Block + LocalBlockId *string `mandatory:"false" json:"localBlockId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique GPU Memory Fabric + GpuMemoryFabricId *string `mandatory:"false" json:"gpuMemoryFabricId"` + + // The public OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Virtual Machine or Bare Metal instance + InstanceId *string `mandatory:"false" json:"instanceId"` + + // Additional data that can be exposed to the customer. Will include raw fault codes for strategic customers + AdditionalData map[string]interface{} `mandatory:"false" json:"additionalData"` + + // A free-form description detailing why the host is in its current state. + LifecycleDetails map[string]interface{} `mandatory:"false" json:"lifecycleDetails"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Capacity Reserver that is currently on host + CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` + + // A list that contains impacted components related to an unhealthy host. An impacted component will be a + // free-form structure of key values pairs that will provide more or less details based on data tiering + ImpactedComponentDetails map[string]interface{} `mandatory:"false" json:"impactedComponentDetails"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m ComputeHost) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeHost) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeHostHealthEnum(string(m.Health)); !ok && m.Health != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Health: %s. Supported values are: %s.", m.Health, strings.Join(GetComputeHostHealthEnumStringValues(), ","))) + } + if _, ok := GetMappingComputeHostLifecycleStateEnum(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(GetComputeHostLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingConfigurationStateEnum(string(m.ConfigurationState)); !ok && m.ConfigurationState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ConfigurationState: %s. Supported values are: %s.", m.ConfigurationState, strings.Join(GetConfigurationStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ComputeHostHealthEnum Enum with underlying type: string +type ComputeHostHealthEnum string + +// Set of constants representing the allowable values for ComputeHostHealthEnum +const ( + ComputeHostHealthHealthy ComputeHostHealthEnum = "HEALTHY" + ComputeHostHealthUnhealthy ComputeHostHealthEnum = "UNHEALTHY" +) + +var mappingComputeHostHealthEnum = map[string]ComputeHostHealthEnum{ + "HEALTHY": ComputeHostHealthHealthy, + "UNHEALTHY": ComputeHostHealthUnhealthy, +} + +var mappingComputeHostHealthEnumLowerCase = map[string]ComputeHostHealthEnum{ + "healthy": ComputeHostHealthHealthy, + "unhealthy": ComputeHostHealthUnhealthy, +} + +// GetComputeHostHealthEnumValues Enumerates the set of values for ComputeHostHealthEnum +func GetComputeHostHealthEnumValues() []ComputeHostHealthEnum { + values := make([]ComputeHostHealthEnum, 0) + for _, v := range mappingComputeHostHealthEnum { + values = append(values, v) + } + return values +} + +// GetComputeHostHealthEnumStringValues Enumerates the set of values in String for ComputeHostHealthEnum +func GetComputeHostHealthEnumStringValues() []string { + return []string{ + "HEALTHY", + "UNHEALTHY", + } +} + +// GetMappingComputeHostHealthEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeHostHealthEnum(val string) (ComputeHostHealthEnum, bool) { + enum, ok := mappingComputeHostHealthEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ComputeHostLifecycleStateEnum Enum with underlying type: string +type ComputeHostLifecycleStateEnum string + +// Set of constants representing the allowable values for ComputeHostLifecycleStateEnum +const ( + ComputeHostLifecycleStateAvailable ComputeHostLifecycleStateEnum = "AVAILABLE" + ComputeHostLifecycleStateOccupied ComputeHostLifecycleStateEnum = "OCCUPIED" + ComputeHostLifecycleStateProvisioning ComputeHostLifecycleStateEnum = "PROVISIONING" + ComputeHostLifecycleStateRepair ComputeHostLifecycleStateEnum = "REPAIR" + ComputeHostLifecycleStateUnavailable ComputeHostLifecycleStateEnum = "UNAVAILABLE" +) + +var mappingComputeHostLifecycleStateEnum = map[string]ComputeHostLifecycleStateEnum{ + "AVAILABLE": ComputeHostLifecycleStateAvailable, + "OCCUPIED": ComputeHostLifecycleStateOccupied, + "PROVISIONING": ComputeHostLifecycleStateProvisioning, + "REPAIR": ComputeHostLifecycleStateRepair, + "UNAVAILABLE": ComputeHostLifecycleStateUnavailable, +} + +var mappingComputeHostLifecycleStateEnumLowerCase = map[string]ComputeHostLifecycleStateEnum{ + "available": ComputeHostLifecycleStateAvailable, + "occupied": ComputeHostLifecycleStateOccupied, + "provisioning": ComputeHostLifecycleStateProvisioning, + "repair": ComputeHostLifecycleStateRepair, + "unavailable": ComputeHostLifecycleStateUnavailable, +} + +// GetComputeHostLifecycleStateEnumValues Enumerates the set of values for ComputeHostLifecycleStateEnum +func GetComputeHostLifecycleStateEnumValues() []ComputeHostLifecycleStateEnum { + values := make([]ComputeHostLifecycleStateEnum, 0) + for _, v := range mappingComputeHostLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetComputeHostLifecycleStateEnumStringValues Enumerates the set of values in String for ComputeHostLifecycleStateEnum +func GetComputeHostLifecycleStateEnumStringValues() []string { + return []string{ + "AVAILABLE", + "OCCUPIED", + "PROVISIONING", + "REPAIR", + "UNAVAILABLE", + } +} + +// GetMappingComputeHostLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeHostLifecycleStateEnum(val string) (ComputeHostLifecycleStateEnum, bool) { + enum, ok := mappingComputeHostLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_collection.go new file mode 100644 index 0000000000..b42239d89e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_collection.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeHostCollection A list of compute hosts. +type ComputeHostCollection struct { + + // The list of compute hosts. + Items []ComputeHostSummary `mandatory:"true" json:"items"` +} + +func (m ComputeHostCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeHostCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_configuration_check_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_configuration_check_details.go new file mode 100644 index 0000000000..da75622af1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_configuration_check_details.go @@ -0,0 +1,153 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeHostConfigurationCheckDetails Compute Host Group Configuration Details Check +type ComputeHostConfigurationCheckDetails struct { + + // The type of configuration + Type ComputeHostConfigurationCheckDetailsTypeEnum `mandatory:"false" json:"type,omitempty"` + + // The current state of the host configuration. The Host is either | + // CONFORMANT - current state matches the desired configuration + // NON_CONFORMANT - current state does not match the desired configuration + // PRE_APPLYING, APPLYING, CHECKING- transitional states + // UNKNOWN - current state is unknown + ConfigurationState ConfigurationStateEnum `mandatory:"false" json:"configurationState,omitempty"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique firmware bundle associated with the Host Configuration. + FirmwareBundleId *string `mandatory:"false" json:"firmwareBundleId"` + + // Preferred recycle level for hosts associated with the reservation config. + // * `SKIP_RECYCLE` - Skips host wipe. + // * `FULL_RECYCLE` - Does not skip host wipe. This is the default behavior. + RecycleLevel ComputeHostConfigurationCheckDetailsRecycleLevelEnum `mandatory:"false" json:"recycleLevel,omitempty"` +} + +func (m ComputeHostConfigurationCheckDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeHostConfigurationCheckDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingComputeHostConfigurationCheckDetailsTypeEnum(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(GetComputeHostConfigurationCheckDetailsTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingConfigurationStateEnum(string(m.ConfigurationState)); !ok && m.ConfigurationState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ConfigurationState: %s. Supported values are: %s.", m.ConfigurationState, strings.Join(GetConfigurationStateEnumStringValues(), ","))) + } + if _, ok := GetMappingComputeHostConfigurationCheckDetailsRecycleLevelEnum(string(m.RecycleLevel)); !ok && m.RecycleLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecycleLevel: %s. Supported values are: %s.", m.RecycleLevel, strings.Join(GetComputeHostConfigurationCheckDetailsRecycleLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ComputeHostConfigurationCheckDetailsTypeEnum Enum with underlying type: string +type ComputeHostConfigurationCheckDetailsTypeEnum string + +// Set of constants representing the allowable values for ComputeHostConfigurationCheckDetailsTypeEnum +const ( + ComputeHostConfigurationCheckDetailsTypeFirmware ComputeHostConfigurationCheckDetailsTypeEnum = "FIRMWARE" + ComputeHostConfigurationCheckDetailsTypeRecycle ComputeHostConfigurationCheckDetailsTypeEnum = "RECYCLE" +) + +var mappingComputeHostConfigurationCheckDetailsTypeEnum = map[string]ComputeHostConfigurationCheckDetailsTypeEnum{ + "FIRMWARE": ComputeHostConfigurationCheckDetailsTypeFirmware, + "RECYCLE": ComputeHostConfigurationCheckDetailsTypeRecycle, +} + +var mappingComputeHostConfigurationCheckDetailsTypeEnumLowerCase = map[string]ComputeHostConfigurationCheckDetailsTypeEnum{ + "firmware": ComputeHostConfigurationCheckDetailsTypeFirmware, + "recycle": ComputeHostConfigurationCheckDetailsTypeRecycle, +} + +// GetComputeHostConfigurationCheckDetailsTypeEnumValues Enumerates the set of values for ComputeHostConfigurationCheckDetailsTypeEnum +func GetComputeHostConfigurationCheckDetailsTypeEnumValues() []ComputeHostConfigurationCheckDetailsTypeEnum { + values := make([]ComputeHostConfigurationCheckDetailsTypeEnum, 0) + for _, v := range mappingComputeHostConfigurationCheckDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetComputeHostConfigurationCheckDetailsTypeEnumStringValues Enumerates the set of values in String for ComputeHostConfigurationCheckDetailsTypeEnum +func GetComputeHostConfigurationCheckDetailsTypeEnumStringValues() []string { + return []string{ + "FIRMWARE", + "RECYCLE", + } +} + +// GetMappingComputeHostConfigurationCheckDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeHostConfigurationCheckDetailsTypeEnum(val string) (ComputeHostConfigurationCheckDetailsTypeEnum, bool) { + enum, ok := mappingComputeHostConfigurationCheckDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ComputeHostConfigurationCheckDetailsRecycleLevelEnum Enum with underlying type: string +type ComputeHostConfigurationCheckDetailsRecycleLevelEnum string + +// Set of constants representing the allowable values for ComputeHostConfigurationCheckDetailsRecycleLevelEnum +const ( + ComputeHostConfigurationCheckDetailsRecycleLevelSkipRecycle ComputeHostConfigurationCheckDetailsRecycleLevelEnum = "SKIP_RECYCLE" + ComputeHostConfigurationCheckDetailsRecycleLevelFullRecycle ComputeHostConfigurationCheckDetailsRecycleLevelEnum = "FULL_RECYCLE" +) + +var mappingComputeHostConfigurationCheckDetailsRecycleLevelEnum = map[string]ComputeHostConfigurationCheckDetailsRecycleLevelEnum{ + "SKIP_RECYCLE": ComputeHostConfigurationCheckDetailsRecycleLevelSkipRecycle, + "FULL_RECYCLE": ComputeHostConfigurationCheckDetailsRecycleLevelFullRecycle, +} + +var mappingComputeHostConfigurationCheckDetailsRecycleLevelEnumLowerCase = map[string]ComputeHostConfigurationCheckDetailsRecycleLevelEnum{ + "skip_recycle": ComputeHostConfigurationCheckDetailsRecycleLevelSkipRecycle, + "full_recycle": ComputeHostConfigurationCheckDetailsRecycleLevelFullRecycle, +} + +// GetComputeHostConfigurationCheckDetailsRecycleLevelEnumValues Enumerates the set of values for ComputeHostConfigurationCheckDetailsRecycleLevelEnum +func GetComputeHostConfigurationCheckDetailsRecycleLevelEnumValues() []ComputeHostConfigurationCheckDetailsRecycleLevelEnum { + values := make([]ComputeHostConfigurationCheckDetailsRecycleLevelEnum, 0) + for _, v := range mappingComputeHostConfigurationCheckDetailsRecycleLevelEnum { + values = append(values, v) + } + return values +} + +// GetComputeHostConfigurationCheckDetailsRecycleLevelEnumStringValues Enumerates the set of values in String for ComputeHostConfigurationCheckDetailsRecycleLevelEnum +func GetComputeHostConfigurationCheckDetailsRecycleLevelEnumStringValues() []string { + return []string{ + "SKIP_RECYCLE", + "FULL_RECYCLE", + } +} + +// GetMappingComputeHostConfigurationCheckDetailsRecycleLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeHostConfigurationCheckDetailsRecycleLevelEnum(val string) (ComputeHostConfigurationCheckDetailsRecycleLevelEnum, bool) { + enum, ok := mappingComputeHostConfigurationCheckDetailsRecycleLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_configuration_data.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_configuration_data.go new file mode 100644 index 0000000000..0c5b793d51 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_configuration_data.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeHostConfigurationData Compute Host Configuration Data +type ComputeHostConfigurationData struct { + + // The time that was last applied. + TimeLastApply *common.SDKTime `mandatory:"false" json:"timeLastApply"` + + CheckDetails *ComputeHostConfigurationCheckDetails `mandatory:"false" json:"checkDetails"` +} + +func (m ComputeHostConfigurationData) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeHostConfigurationData) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group.go new file mode 100644 index 0000000000..6794c11215 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group.go @@ -0,0 +1,133 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeHostGroup Detail information for a compute host group. +type ComputeHostGroup struct { + + // The availability domain of a host group. + // 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:"true" json:"displayName"` + + // The OCID of the compartment that contains host group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The date and time the host 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 lifecycle state of the host group + LifecycleState ComputeHostGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host group + Id *string `mandatory:"false" json:"id"` + + // A list of HostGroupConfiguration objects + Configurations []HostGroupConfiguration `mandatory:"false" json:"configurations"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The date and time the host group 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"` + + // A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group. + IsTargetedPlacementRequired *bool `mandatory:"false" json:"isTargetedPlacementRequired"` +} + +func (m ComputeHostGroup) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeHostGroup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeHostGroupLifecycleStateEnum(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(GetComputeHostGroupLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ComputeHostGroupLifecycleStateEnum Enum with underlying type: string +type ComputeHostGroupLifecycleStateEnum string + +// Set of constants representing the allowable values for ComputeHostGroupLifecycleStateEnum +const ( + ComputeHostGroupLifecycleStateActive ComputeHostGroupLifecycleStateEnum = "ACTIVE" + ComputeHostGroupLifecycleStateDeleted ComputeHostGroupLifecycleStateEnum = "DELETED" +) + +var mappingComputeHostGroupLifecycleStateEnum = map[string]ComputeHostGroupLifecycleStateEnum{ + "ACTIVE": ComputeHostGroupLifecycleStateActive, + "DELETED": ComputeHostGroupLifecycleStateDeleted, +} + +var mappingComputeHostGroupLifecycleStateEnumLowerCase = map[string]ComputeHostGroupLifecycleStateEnum{ + "active": ComputeHostGroupLifecycleStateActive, + "deleted": ComputeHostGroupLifecycleStateDeleted, +} + +// GetComputeHostGroupLifecycleStateEnumValues Enumerates the set of values for ComputeHostGroupLifecycleStateEnum +func GetComputeHostGroupLifecycleStateEnumValues() []ComputeHostGroupLifecycleStateEnum { + values := make([]ComputeHostGroupLifecycleStateEnum, 0) + for _, v := range mappingComputeHostGroupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetComputeHostGroupLifecycleStateEnumStringValues Enumerates the set of values in String for ComputeHostGroupLifecycleStateEnum +func GetComputeHostGroupLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "DELETED", + } +} + +// GetMappingComputeHostGroupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeHostGroupLifecycleStateEnum(val string) (ComputeHostGroupLifecycleStateEnum, bool) { + enum, ok := mappingComputeHostGroupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group_collection.go new file mode 100644 index 0000000000..0953cfc812 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group_collection.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeHostGroupCollection A list of compute host groups. +type ComputeHostGroupCollection struct { + + // The list of compute host groups. + Items []ComputeHostGroupSummary `mandatory:"true" json:"items"` +} + +func (m ComputeHostGroupCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeHostGroupCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group_summary.go new file mode 100644 index 0000000000..0102b33314 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_group_summary.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeHostGroupSummary Summary information for a compute host group. +type ComputeHostGroupSummary struct { + + // The availability domain of a host group. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host group + 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 of the compartment that contains host group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The date and time the host 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 current state of the compute host group + LifecycleState ComputeHostGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group. + IsTargetedPlacementRequired *bool `mandatory:"true" json:"isTargetedPlacementRequired"` + + // The date and time the host group 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"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.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"` +} + +func (m ComputeHostGroupSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeHostGroupSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeHostGroupLifecycleStateEnum(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(GetComputeHostGroupLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_summary.go new file mode 100644 index 0000000000..d3d07ed51d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_host_summary.go @@ -0,0 +1,127 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeHostSummary Summary information for a compute host. +type ComputeHostSummary struct { + + // The availability domain of the compute host. + // Example: `Uocm:US-CHICAGO-1-AD-2` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.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 OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host + Id *string `mandatory:"true" json:"id"` + + // 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. + // This field is the Fault domain of the host + FaultDomain *string `mandatory:"true" json:"faultDomain"` + + // The shape of host + Shape *string `mandatory:"true" json:"shape"` + + // The heathy state of the host + Health ComputeHostHealthEnum `mandatory:"true" json:"health"` + + // The lifecycle state of the host + LifecycleState ComputeHostLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // While listing a host the user will know if they have an impacted component or not. + // The user will have to issue a get host to see details. + HasImpactedComponents *bool `mandatory:"true" json:"hasImpactedComponents"` + + // The date and time that the compute host record 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 that the compute host record 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"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique HPC Island + HpcIslandId *string `mandatory:"false" json:"hpcIslandId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host group + ComputeHostGroupId *string `mandatory:"false" json:"computeHostGroupId"` + + RecycleDetails *RecycleDetails `mandatory:"false" json:"recycleDetails"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Network Block + NetworkBlockId *string `mandatory:"false" json:"networkBlockId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Local Block + LocalBlockId *string `mandatory:"false" json:"localBlockId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique GPU Memory Fabric + GpuMemoryFabricId *string `mandatory:"false" json:"gpuMemoryFabricId"` + + // The public OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Virtual Machine or Bare Metal instance + InstanceId *string `mandatory:"false" json:"instanceId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Capacity Reserver that is currently on host + 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m ComputeHostSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeHostSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeHostHealthEnum(string(m.Health)); !ok && m.Health != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Health: %s. Supported values are: %s.", m.Health, strings.Join(GetComputeHostHealthEnumStringValues(), ","))) + } + if _, ok := GetMappingComputeHostLifecycleStateEnum(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(GetComputeHostLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island.go index 87406d447a..b33bd5ed2a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,10 +24,10 @@ import ( // ComputeHpcIsland A compute HPC island. type ComputeHpcIsland struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" json:"computeCapacityTopologyId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. Id *string `mandatory:"true" json:"id"` // The current state of the compute HPC island. @@ -59,7 +59,7 @@ func (m ComputeHpcIsland) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island_collection.go index 1f95f3d511..3139ef5c67 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island_collection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m ComputeHpcIslandCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island_summary.go index 1c4af15ed7..2bccd0095d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_hpc_island_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,10 +24,10 @@ import ( // ComputeHpcIslandSummary Summary information for a compute HPC island. type ComputeHpcIslandSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" json:"computeCapacityTopologyId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. Id *string `mandatory:"true" json:"id"` // The current state of the compute HPC island. @@ -59,7 +59,7 @@ func (m ComputeHpcIslandSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema.go index c48dbd3fb8..b68ec1e2d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -53,13 +53,16 @@ type ComputeImageCapabilitySchema struct { // The OCID of the compartment that contains the resource. CompartmentId *string `mandatory:"false" json:"compartmentId"` + // The ComputeImageCapabilitySchema current lifecycle state. + LifecycleState ComputeImageCapabilitySchemaLifecycleStateEnum `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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -74,8 +77,11 @@ func (m ComputeImageCapabilitySchema) String() string { func (m ComputeImageCapabilitySchema) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingComputeImageCapabilitySchemaLifecycleStateEnum(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(GetComputeImageCapabilitySchemaLifecycleStateEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -83,16 +89,17 @@ func (m ComputeImageCapabilitySchema) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *ComputeImageCapabilitySchema) UnmarshalJSON(data []byte) (e error) { model := struct { - CompartmentId *string `json:"compartmentId"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - FreeformTags map[string]string `json:"freeformTags"` - Id *string `json:"id"` - ComputeGlobalImageCapabilitySchemaId *string `json:"computeGlobalImageCapabilitySchemaId"` - ComputeGlobalImageCapabilitySchemaVersionName *string `json:"computeGlobalImageCapabilitySchemaVersionName"` - ImageId *string `json:"imageId"` - DisplayName *string `json:"displayName"` - SchemaData map[string]imagecapabilityschemadescriptor `json:"schemaData"` - TimeCreated *common.SDKTime `json:"timeCreated"` + CompartmentId *string `json:"compartmentId"` + LifecycleState ComputeImageCapabilitySchemaLifecycleStateEnum `json:"lifecycleState"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + FreeformTags map[string]string `json:"freeformTags"` + Id *string `json:"id"` + ComputeGlobalImageCapabilitySchemaId *string `json:"computeGlobalImageCapabilitySchemaId"` + ComputeGlobalImageCapabilitySchemaVersionName *string `json:"computeGlobalImageCapabilitySchemaVersionName"` + ImageId *string `json:"imageId"` + DisplayName *string `json:"displayName"` + SchemaData map[string]imagecapabilityschemadescriptor `json:"schemaData"` + TimeCreated *common.SDKTime `json:"timeCreated"` }{} e = json.Unmarshal(data, &model) @@ -102,6 +109,8 @@ func (m *ComputeImageCapabilitySchema) UnmarshalJSON(data []byte) (e error) { var nn interface{} m.CompartmentId = model.CompartmentId + m.LifecycleState = model.LifecycleState + m.DefinedTags = model.DefinedTags m.FreeformTags = model.FreeformTags @@ -133,3 +142,49 @@ func (m *ComputeImageCapabilitySchema) UnmarshalJSON(data []byte) (e error) { return } + +// ComputeImageCapabilitySchemaLifecycleStateEnum Enum with underlying type: string +type ComputeImageCapabilitySchemaLifecycleStateEnum string + +// Set of constants representing the allowable values for ComputeImageCapabilitySchemaLifecycleStateEnum +const ( + ComputeImageCapabilitySchemaLifecycleStateCreating ComputeImageCapabilitySchemaLifecycleStateEnum = "CREATING" + ComputeImageCapabilitySchemaLifecycleStateActive ComputeImageCapabilitySchemaLifecycleStateEnum = "ACTIVE" + ComputeImageCapabilitySchemaLifecycleStateDeleted ComputeImageCapabilitySchemaLifecycleStateEnum = "DELETED" +) + +var mappingComputeImageCapabilitySchemaLifecycleStateEnum = map[string]ComputeImageCapabilitySchemaLifecycleStateEnum{ + "CREATING": ComputeImageCapabilitySchemaLifecycleStateCreating, + "ACTIVE": ComputeImageCapabilitySchemaLifecycleStateActive, + "DELETED": ComputeImageCapabilitySchemaLifecycleStateDeleted, +} + +var mappingComputeImageCapabilitySchemaLifecycleStateEnumLowerCase = map[string]ComputeImageCapabilitySchemaLifecycleStateEnum{ + "creating": ComputeImageCapabilitySchemaLifecycleStateCreating, + "active": ComputeImageCapabilitySchemaLifecycleStateActive, + "deleted": ComputeImageCapabilitySchemaLifecycleStateDeleted, +} + +// GetComputeImageCapabilitySchemaLifecycleStateEnumValues Enumerates the set of values for ComputeImageCapabilitySchemaLifecycleStateEnum +func GetComputeImageCapabilitySchemaLifecycleStateEnumValues() []ComputeImageCapabilitySchemaLifecycleStateEnum { + values := make([]ComputeImageCapabilitySchemaLifecycleStateEnum, 0) + for _, v := range mappingComputeImageCapabilitySchemaLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetComputeImageCapabilitySchemaLifecycleStateEnumStringValues Enumerates the set of values in String for ComputeImageCapabilitySchemaLifecycleStateEnum +func GetComputeImageCapabilitySchemaLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETED", + } +} + +// GetMappingComputeImageCapabilitySchemaLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeImageCapabilitySchemaLifecycleStateEnum(val string) (ComputeImageCapabilitySchemaLifecycleStateEnum, bool) { + enum, ok := mappingComputeImageCapabilitySchemaLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema_summary.go index e59776f166..9311312b52 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( // ComputeImageCapabilitySchemaSummary Summary information for a compute image capability schema type ComputeImageCapabilitySchemaSummary struct { - // The compute image capability schema OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The compute image capability schema OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Id *string `mandatory:"true" json:"id"` // The name of the compute global image capability schema version @@ -49,12 +49,12 @@ type ComputeImageCapabilitySchemaSummary struct { SchemaData map[string]ImageCapabilitySchemaDescriptor `mandatory:"false" json:"schemaData"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -70,7 +70,7 @@ func (m ComputeImageCapabilitySchemaSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 235ab19632..1a54f06ca0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m ComputeInstanceDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_instance_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_instance_options.go index e85d0e7e74..d6e648c86a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_instance_options.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_instance_options.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m ComputeInstanceOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block.go index a4e140f1fe..aaf6f226e0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,13 +24,13 @@ import ( // ComputeNetworkBlock A compute network block. type ComputeNetworkBlock struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" json:"computeCapacityTopologyId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. ComputeHpcIslandId *string `mandatory:"true" json:"computeHpcIslandId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. Id *string `mandatory:"true" json:"id"` // The current state of the compute network block. @@ -62,7 +62,7 @@ func (m ComputeNetworkBlock) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block_collection.go index 66759df613..d3398a83bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block_collection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m ComputeNetworkBlockCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block_summary.go index 1f0c666062..33498f9e38 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_network_block_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,13 +24,13 @@ import ( // ComputeNetworkBlockSummary Summary information for a compute network block. type ComputeNetworkBlockSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" json:"computeCapacityTopologyId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. ComputeHpcIslandId *string `mandatory:"true" json:"computeHpcIslandId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. Id *string `mandatory:"true" json:"id"` // The current state of the compute network block. @@ -62,7 +62,7 @@ func (m ComputeNetworkBlockSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/configuration_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/configuration_state.go new file mode 100644 index 0000000000..43bc9228f1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/configuration_state.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "strings" +) + +// ConfigurationStateEnum Enum with underlying type: string +type ConfigurationStateEnum string + +// Set of constants representing the allowable values for ConfigurationStateEnum +const ( + ConfigurationStateConformant ConfigurationStateEnum = "CONFORMANT" + ConfigurationStateNonConformant ConfigurationStateEnum = "NON_CONFORMANT" + ConfigurationStateChecking ConfigurationStateEnum = "CHECKING" + ConfigurationStatePreApplying ConfigurationStateEnum = "PRE_APPLYING" + ConfigurationStateApplying ConfigurationStateEnum = "APPLYING" + ConfigurationStateUnknown ConfigurationStateEnum = "UNKNOWN" +) + +var mappingConfigurationStateEnum = map[string]ConfigurationStateEnum{ + "CONFORMANT": ConfigurationStateConformant, + "NON_CONFORMANT": ConfigurationStateNonConformant, + "CHECKING": ConfigurationStateChecking, + "PRE_APPLYING": ConfigurationStatePreApplying, + "APPLYING": ConfigurationStateApplying, + "UNKNOWN": ConfigurationStateUnknown, +} + +var mappingConfigurationStateEnumLowerCase = map[string]ConfigurationStateEnum{ + "conformant": ConfigurationStateConformant, + "non_conformant": ConfigurationStateNonConformant, + "checking": ConfigurationStateChecking, + "pre_applying": ConfigurationStatePreApplying, + "applying": ConfigurationStateApplying, + "unknown": ConfigurationStateUnknown, +} + +// GetConfigurationStateEnumValues Enumerates the set of values for ConfigurationStateEnum +func GetConfigurationStateEnumValues() []ConfigurationStateEnum { + values := make([]ConfigurationStateEnum, 0) + for _, v := range mappingConfigurationStateEnum { + values = append(values, v) + } + return values +} + +// GetConfigurationStateEnumStringValues Enumerates the set of values in String for ConfigurationStateEnum +func GetConfigurationStateEnumStringValues() []string { + return []string{ + "CONFORMANT", + "NON_CONFORMANT", + "CHECKING", + "PRE_APPLYING", + "APPLYING", + "UNKNOWN", + } +} + +// GetMappingConfigurationStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingConfigurationStateEnum(val string) (ConfigurationStateEnum, bool) { + enum, ok := mappingConfigurationStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} 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 index 31488551e3..c7e336ea0a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LPG you want to peer with. PeerId *string `mandatory:"true" json:"peerId"` } @@ -39,7 +39,7 @@ func (m ConnectLocalPeeringGatewaysDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index be2be7f813..cff087759c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ConnectLocalPeeringGateways.go.html to see an example of how to use ConnectLocalPeeringGatewaysRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ConnectLocalPeeringGateways.go.html to see an example of how to use ConnectLocalPeeringGatewaysRequest. type ConnectLocalPeeringGatewaysRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering gateway. + // The OCID (https://docs.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. @@ -65,7 +65,7 @@ func (request ConnectLocalPeeringGatewaysRequest) RetryPolicy() *common.RetryPol func (request ConnectLocalPeeringGatewaysRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8af284cb06..796e03cae1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.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. @@ -43,7 +43,7 @@ func (m ConnectRemotePeeringConnectionsDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 469b910ff7..0e8b3f8f07 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ConnectRemotePeeringConnections.go.html to see an example of how to use ConnectRemotePeeringConnectionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ConnectRemotePeeringConnections.go.html to see an example of how to use ConnectRemotePeeringConnectionsRequest. type ConnectRemotePeeringConnectionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). + // The OCID (https://docs.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 @@ -65,7 +65,7 @@ func (request ConnectRemotePeeringConnectionsRequest) RetryPolicy() *common.Retr func (request ConnectRemotePeeringConnectionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ae57ee8d14..9dfcbc6c20 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -49,7 +49,7 @@ type ConsoleHistory struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -58,7 +58,7 @@ type ConsoleHistory struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -77,7 +77,7 @@ func (m ConsoleHistory) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c4784a4d1c..73556ae910 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -37,8 +37,8 @@ type CopyBootVolumeBackupDetails struct { // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -53,7 +53,7 @@ func (m CopyBootVolumeBackupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 918c25545c..6d272d00ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyBootVolumeBackup.go.html to see an example of how to use CopyBootVolumeBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyBootVolumeBackup.go.html to see an example of how to use CopyBootVolumeBackupRequest. type CopyBootVolumeBackupRequest struct { // The OCID of the boot volume backup. @@ -72,7 +72,7 @@ func (request CopyBootVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { func (request CopyBootVolumeBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -93,8 +93,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index b63be406f2..5a2ee98cd0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -38,8 +38,8 @@ type CopyVolumeBackupDetails struct { // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -54,7 +54,7 @@ func (m CopyVolumeBackupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_request_response.go index 7a44d4dfb9..8a21385a33 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyVolumeBackup.go.html to see an example of how to use CopyVolumeBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyVolumeBackup.go.html to see an example of how to use CopyVolumeBackupRequest. type CopyVolumeBackupRequest struct { // The OCID of the volume backup. @@ -72,7 +72,7 @@ func (request CopyVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { func (request CopyVolumeBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -93,8 +93,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index faa9c4963f..de7b155346 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -38,8 +38,8 @@ type CopyVolumeGroupBackupDetails struct { // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -54,7 +54,7 @@ func (m CopyVolumeGroupBackupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 6348cf2842..80d67e9d09 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyVolumeGroupBackup.go.html to see an example of how to use CopyVolumeGroupBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyVolumeGroupBackup.go.html to see an example of how to use CopyVolumeGroupBackupRequest. type CopyVolumeGroupBackupRequest struct { // The Oracle Cloud ID (OCID) that uniquely identifies the volume group backup. @@ -72,7 +72,7 @@ func (request CopyVolumeGroupBackupRequest) RetryPolicy() *common.RetryPolicy { func (request CopyVolumeGroupBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_blockstorage_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_blockstorage_client.go index 9f09b95021..5276360046 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_blockstorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_blockstorage_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -99,11 +99,11 @@ func (client *BlockstorageClient) ConfigurationProvider() *common.ConfigurationP // ChangeBootVolumeBackupCompartment Moves a boot volume backup 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). +// see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeBootVolumeBackupCompartment.go.html to see an example of how to use ChangeBootVolumeBackupCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeBootVolumeBackupCompartment.go.html to see an example of how to use ChangeBootVolumeBackupCompartment API. func (client BlockstorageClient) ChangeBootVolumeBackupCompartment(ctx context.Context, request ChangeBootVolumeBackupCompartmentRequest) (response ChangeBootVolumeBackupCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -158,11 +158,11 @@ func (client BlockstorageClient) changeBootVolumeBackupCompartment(ctx context.C // ChangeBootVolumeCompartment Moves a boot volume 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). +// see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeBootVolumeCompartment.go.html to see an example of how to use ChangeBootVolumeCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeBootVolumeCompartment.go.html to see an example of how to use ChangeBootVolumeCompartment API. func (client BlockstorageClient) ChangeBootVolumeCompartment(ctx context.Context, request ChangeBootVolumeCompartmentRequest) (response ChangeBootVolumeCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -217,11 +217,11 @@ func (client BlockstorageClient) changeBootVolumeCompartment(ctx context.Context // ChangeVolumeBackupCompartment Moves a volume backup 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). +// see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeBackupCompartment.go.html to see an example of how to use ChangeVolumeBackupCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeBackupCompartment.go.html to see an example of how to use ChangeVolumeBackupCompartment API. func (client BlockstorageClient) ChangeVolumeBackupCompartment(ctx context.Context, request ChangeVolumeBackupCompartmentRequest) (response ChangeVolumeBackupCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -276,11 +276,11 @@ func (client BlockstorageClient) changeVolumeBackupCompartment(ctx context.Conte // ChangeVolumeCompartment Moves a volume 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). +// see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeCompartment.go.html to see an example of how to use ChangeVolumeCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeCompartment.go.html to see an example of how to use ChangeVolumeCompartment API. func (client BlockstorageClient) ChangeVolumeCompartment(ctx context.Context, request ChangeVolumeCompartmentRequest) (response ChangeVolumeCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -335,11 +335,11 @@ func (client BlockstorageClient) changeVolumeCompartment(ctx context.Context, re // ChangeVolumeGroupBackupCompartment Moves a volume group backup 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). +// see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeGroupBackupCompartment.go.html to see an example of how to use ChangeVolumeGroupBackupCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeGroupBackupCompartment.go.html to see an example of how to use ChangeVolumeGroupBackupCompartment API. func (client BlockstorageClient) ChangeVolumeGroupBackupCompartment(ctx context.Context, request ChangeVolumeGroupBackupCompartmentRequest) (response ChangeVolumeGroupBackupCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -394,11 +394,11 @@ func (client BlockstorageClient) changeVolumeGroupBackupCompartment(ctx context. // ChangeVolumeGroupCompartment Moves a volume 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). +// see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeGroupCompartment.go.html to see an example of how to use ChangeVolumeGroupCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVolumeGroupCompartment.go.html to see an example of how to use ChangeVolumeGroupCompartment API. func (client BlockstorageClient) ChangeVolumeGroupCompartment(ctx context.Context, request ChangeVolumeGroupCompartmentRequest) (response ChangeVolumeGroupCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -452,11 +452,11 @@ func (client BlockstorageClient) changeVolumeGroupCompartment(ctx context.Contex } // CopyBootVolumeBackup Creates a boot volume backup copy in specified region. For general information about volume backups, -// see Overview of Boot Volume Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/bootvolumebackups.htm) +// see Overview of Boot Volume Backups (https://docs.oracle.com/iaas/Content/Block/Concepts/bootvolumebackups.htm) // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyBootVolumeBackup.go.html to see an example of how to use CopyBootVolumeBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyBootVolumeBackup.go.html to see an example of how to use CopyBootVolumeBackup API. func (client BlockstorageClient) CopyBootVolumeBackup(ctx context.Context, request CopyBootVolumeBackupRequest) (response CopyBootVolumeBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -515,11 +515,11 @@ func (client BlockstorageClient) copyBootVolumeBackup(ctx context.Context, reque } // CopyVolumeBackup Creates a volume backup copy in specified region. For general information about volume backups, -// see Overview of Block Volume Service Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumebackups.htm) +// see Overview of Block Volume Service Backups (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumebackups.htm) // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyVolumeBackup.go.html to see an example of how to use CopyVolumeBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyVolumeBackup.go.html to see an example of how to use CopyVolumeBackup API. func (client BlockstorageClient) CopyVolumeBackup(ctx context.Context, request CopyVolumeBackupRequest) (response CopyVolumeBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -578,11 +578,11 @@ 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 Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumebackups.htm). +// see Overview of Block Volume Backups (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumebackups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyVolumeGroupBackup.go.html to see an example of how to use CopyVolumeGroupBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CopyVolumeGroupBackup.go.html to see an example of how to use CopyVolumeGroupBackup API. func (client BlockstorageClient) CopyVolumeGroupBackup(ctx context.Context, request CopyVolumeGroupBackupRequest) (response CopyVolumeGroupBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -641,13 +641,13 @@ func (client BlockstorageClient) copyVolumeGroupBackup(ctx context.Context, requ } // CreateBootVolume Creates a new boot volume in the specified compartment from an existing boot volume or a boot volume backup. -// For general information about boot volumes, see Boot Volumes (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/bootvolumes.htm). +// For general information about boot volumes, see Boot Volumes (https://docs.oracle.com/iaas/Content/Block/Concepts/bootvolumes.htm). // You may optionally specify a *display name* for the volume, which is simply a friendly name or // description. It does not have to be unique, and you can change it. Avoid entering confidential information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateBootVolume.go.html to see an example of how to use CreateBootVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateBootVolume.go.html to see an example of how to use CreateBootVolume API. func (client BlockstorageClient) CreateBootVolume(ctx context.Context, request CreateBootVolumeRequest) (response CreateBootVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -706,14 +706,14 @@ func (client BlockstorageClient) createBootVolume(ctx context.Context, request c } // CreateBootVolumeBackup Creates a new boot volume backup of the specified boot volume. For general information about boot volume backups, -// see Overview of Boot Volume Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/bootvolumebackups.htm) +// see Overview of Boot Volume Backups (https://docs.oracle.com/iaas/Content/Block/Concepts/bootvolumebackups.htm) // When the request is received, the backup object is in a REQUEST_RECEIVED state. // When the data is imaged, it goes into a CREATING state. // After the backup is fully uploaded to the cloud, it goes into an AVAILABLE state. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateBootVolumeBackup.go.html to see an example of how to use CreateBootVolumeBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateBootVolumeBackup.go.html to see an example of how to use CreateBootVolumeBackup API. func (client BlockstorageClient) CreateBootVolumeBackup(ctx context.Context, request CreateBootVolumeBackupRequest) (response CreateBootVolumeBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -774,11 +774,11 @@ func (client BlockstorageClient) createBootVolumeBackup(ctx context.Context, req // CreateVolume Creates a new volume in the specified compartment. Volumes can be created in sizes ranging from // 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). +// Overview of Block Volume Service (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm). // 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 -// availability domains, see Regions and Availability Domains (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about +// availability domains, see Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). // To get a list of availability domains, use the `ListAvailabilityDomains` operation // in the Identity and Access Management Service API. // You may optionally specify a *display name* for the volume, which is simply a friendly name or @@ -786,7 +786,7 @@ func (client BlockstorageClient) createBootVolumeBackup(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolume.go.html to see an example of how to use CreateVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolume.go.html to see an example of how to use CreateVolume API. func (client BlockstorageClient) CreateVolume(ctx context.Context, request CreateVolumeRequest) (response CreateVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -845,14 +845,14 @@ func (client BlockstorageClient) createVolume(ctx context.Context, request commo } // CreateVolumeBackup Creates a new backup of the specified volume. For general information about volume backups, -// see Overview of Block Volume Service Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumebackups.htm) +// see Overview of Block Volume Service Backups (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumebackups.htm) // When the request is received, the backup object is in a REQUEST_RECEIVED state. // When the data is imaged, it goes into a CREATING state. // After the backup is fully uploaded to the cloud, it goes into an AVAILABLE state. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackup.go.html to see an example of how to use CreateVolumeBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackup.go.html to see an example of how to use CreateVolumeBackup API. func (client BlockstorageClient) CreateVolumeBackup(ctx context.Context, request CreateVolumeBackupRequest) (response CreateVolumeBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -912,11 +912,11 @@ func (client BlockstorageClient) createVolumeBackup(ctx context.Context, request // CreateVolumeBackupPolicy Creates a new user defined backup policy. // For more information about Oracle defined backup policies and user defined backup policies, -// see Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). +// see Policy-Based Backups (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackupPolicy.go.html to see an example of how to use CreateVolumeBackupPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackupPolicy.go.html to see an example of how to use CreateVolumeBackupPolicy API. func (client BlockstorageClient) CreateVolumeBackupPolicy(ctx context.Context, request CreateVolumeBackupPolicyRequest) (response CreateVolumeBackupPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -980,7 +980,7 @@ func (client BlockstorageClient) createVolumeBackupPolicy(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackupPolicyAssignment.go.html to see an example of how to use CreateVolumeBackupPolicyAssignment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackupPolicyAssignment.go.html to see an example of how to use CreateVolumeBackupPolicyAssignment API. func (client BlockstorageClient) CreateVolumeBackupPolicyAssignment(ctx context.Context, request CreateVolumeBackupPolicyAssignmentRequest) (response CreateVolumeBackupPolicyAssignmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1038,11 +1038,11 @@ func (client BlockstorageClient) createVolumeBackupPolicyAssignment(ctx context. // volume group, or by restoring a volume group backup. // You may optionally specify a *display name* for the volume group, which is simply a friendly name or // description. It does not have to be unique, and you can change it. Avoid entering confidential information. -// For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// For more information, see Volume Groups (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeGroup.go.html to see an example of how to use CreateVolumeGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeGroup.go.html to see an example of how to use CreateVolumeGroup API. func (client BlockstorageClient) CreateVolumeGroup(ctx context.Context, request CreateVolumeGroupRequest) (response CreateVolumeGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1101,11 +1101,11 @@ func (client BlockstorageClient) createVolumeGroup(ctx context.Context, request } // CreateVolumeGroupBackup Creates a new backup volume group of the specified volume group. -// For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// For more information, see Volume Groups (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeGroupBackup.go.html to see an example of how to use CreateVolumeGroupBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeGroupBackup.go.html to see an example of how to use CreateVolumeGroupBackup API. func (client BlockstorageClient) CreateVolumeGroupBackup(ctx context.Context, request CreateVolumeGroupBackupRequest) (response CreateVolumeGroupBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1165,12 +1165,12 @@ func (client BlockstorageClient) createVolumeGroupBackup(ctx context.Context, re // DeleteBootVolume Deletes the specified boot volume. The volume cannot have an active connection to an instance. // To disconnect the boot volume from a connected instance, see -// Disconnecting From a Boot Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/deletingbootvolume.htm). +// Disconnecting From a Boot Volume (https://docs.oracle.com/iaas/Content/Block/Tasks/deletingbootvolume.htm). // **Warning:** All data on the boot volume will be permanently lost when the boot volume is deleted. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolume.go.html to see an example of how to use DeleteBootVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolume.go.html to see an example of how to use DeleteBootVolume API. func (client BlockstorageClient) DeleteBootVolume(ctx context.Context, request DeleteBootVolumeRequest) (response DeleteBootVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1227,7 +1227,7 @@ func (client BlockstorageClient) deleteBootVolume(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolumeBackup.go.html to see an example of how to use DeleteBootVolumeBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolumeBackup.go.html to see an example of how to use DeleteBootVolumeBackup API. func (client BlockstorageClient) DeleteBootVolumeBackup(ctx context.Context, request DeleteBootVolumeBackupRequest) (response DeleteBootVolumeBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1284,7 +1284,7 @@ func (client BlockstorageClient) deleteBootVolumeBackup(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolumeKmsKey.go.html to see an example of how to use DeleteBootVolumeKmsKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolumeKmsKey.go.html to see an example of how to use DeleteBootVolumeKmsKey API. func (client BlockstorageClient) DeleteBootVolumeKmsKey(ctx context.Context, request DeleteBootVolumeKmsKeyRequest) (response DeleteBootVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1339,12 +1339,12 @@ func (client BlockstorageClient) deleteBootVolumeKmsKey(ctx context.Context, req // DeleteVolume Deletes the specified volume. The volume cannot have an active connection to an instance. // To disconnect the volume from a connected instance, see -// Disconnecting From a Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/disconnectingfromavolume.htm). +// Disconnecting From a Volume (https://docs.oracle.com/iaas/Content/Block/Tasks/disconnectingfromavolume.htm). // **Warning:** All data on the volume will be permanently lost when the volume is deleted. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolume.go.html to see an example of how to use DeleteVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolume.go.html to see an example of how to use DeleteVolume API. func (client BlockstorageClient) DeleteVolume(ctx context.Context, request DeleteVolumeRequest) (response DeleteVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1401,7 +1401,7 @@ func (client BlockstorageClient) deleteVolume(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackup.go.html to see an example of how to use DeleteVolumeBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackup.go.html to see an example of how to use DeleteVolumeBackup API. func (client BlockstorageClient) DeleteVolumeBackup(ctx context.Context, request DeleteVolumeBackupRequest) (response DeleteVolumeBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1457,12 +1457,12 @@ func (client BlockstorageClient) deleteVolumeBackup(ctx context.Context, request // DeleteVolumeBackupPolicy Deletes a user defined backup policy. // // For more information about user defined backup policies, -// see Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#UserDefinedBackupPolicies). +// see Policy-Based Backups (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#UserDefinedBackupPolicies). // Avoid entering confidential information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackupPolicy.go.html to see an example of how to use DeleteVolumeBackupPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackupPolicy.go.html to see an example of how to use DeleteVolumeBackupPolicy API. func (client BlockstorageClient) DeleteVolumeBackupPolicy(ctx context.Context, request DeleteVolumeBackupPolicyRequest) (response DeleteVolumeBackupPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1519,7 +1519,7 @@ func (client BlockstorageClient) deleteVolumeBackupPolicy(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackupPolicyAssignment.go.html to see an example of how to use DeleteVolumeBackupPolicyAssignment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackupPolicyAssignment.go.html to see an example of how to use DeleteVolumeBackupPolicyAssignment API. func (client BlockstorageClient) DeleteVolumeBackupPolicyAssignment(ctx context.Context, request DeleteVolumeBackupPolicyAssignmentRequest) (response DeleteVolumeBackupPolicyAssignmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1573,11 +1573,11 @@ func (client BlockstorageClient) deleteVolumeBackupPolicyAssignment(ctx context. } // DeleteVolumeGroup Deletes the specified volume group. Individual volumes are not deleted, only the volume group is deleted. -// For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// For more information, see Volume Groups (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeGroup.go.html to see an example of how to use DeleteVolumeGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeGroup.go.html to see an example of how to use DeleteVolumeGroup API. func (client BlockstorageClient) DeleteVolumeGroup(ctx context.Context, request DeleteVolumeGroupRequest) (response DeleteVolumeGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1631,11 +1631,11 @@ func (client BlockstorageClient) deleteVolumeGroup(ctx context.Context, request } // DeleteVolumeGroupBackup Deletes a volume group backup. This operation deletes all the backups in -// the volume group. For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// the volume group. For more information, see Volume Groups (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeGroupBackup.go.html to see an example of how to use DeleteVolumeGroupBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeGroupBackup.go.html to see an example of how to use DeleteVolumeGroupBackup API. func (client BlockstorageClient) DeleteVolumeGroupBackup(ctx context.Context, request DeleteVolumeGroupBackupRequest) (response DeleteVolumeGroupBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1692,7 +1692,7 @@ func (client BlockstorageClient) deleteVolumeGroupBackup(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeKmsKey.go.html to see an example of how to use DeleteVolumeKmsKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeKmsKey.go.html to see an example of how to use DeleteVolumeKmsKey API. func (client BlockstorageClient) DeleteVolumeKmsKey(ctx context.Context, request DeleteVolumeKmsKeyRequest) (response DeleteVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1749,7 +1749,7 @@ func (client BlockstorageClient) deleteVolumeKmsKey(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBlockVolumeReplica.go.html to see an example of how to use GetBlockVolumeReplica API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBlockVolumeReplica.go.html to see an example of how to use GetBlockVolumeReplica API. func (client BlockstorageClient) GetBlockVolumeReplica(ctx context.Context, request GetBlockVolumeReplicaRequest) (response GetBlockVolumeReplicaResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1806,7 +1806,7 @@ func (client BlockstorageClient) getBlockVolumeReplica(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolume.go.html to see an example of how to use GetBootVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolume.go.html to see an example of how to use GetBootVolume API. func (client BlockstorageClient) GetBootVolume(ctx context.Context, request GetBootVolumeRequest) (response GetBootVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1863,7 +1863,7 @@ func (client BlockstorageClient) getBootVolume(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeBackup.go.html to see an example of how to use GetBootVolumeBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeBackup.go.html to see an example of how to use GetBootVolumeBackup API. func (client BlockstorageClient) GetBootVolumeBackup(ctx context.Context, request GetBootVolumeBackupRequest) (response GetBootVolumeBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1920,7 +1920,7 @@ func (client BlockstorageClient) getBootVolumeBackup(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeKmsKey.go.html to see an example of how to use GetBootVolumeKmsKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeKmsKey.go.html to see an example of how to use GetBootVolumeKmsKey API. func (client BlockstorageClient) GetBootVolumeKmsKey(ctx context.Context, request GetBootVolumeKmsKeyRequest) (response GetBootVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1977,7 +1977,7 @@ func (client BlockstorageClient) getBootVolumeKmsKey(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeReplica.go.html to see an example of how to use GetBootVolumeReplica API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeReplica.go.html to see an example of how to use GetBootVolumeReplica API. func (client BlockstorageClient) GetBootVolumeReplica(ctx context.Context, request GetBootVolumeReplicaRequest) (response GetBootVolumeReplicaResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2034,7 +2034,7 @@ func (client BlockstorageClient) getBootVolumeReplica(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolume.go.html to see an example of how to use GetVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolume.go.html to see an example of how to use GetVolume API. func (client BlockstorageClient) GetVolume(ctx context.Context, request GetVolumeRequest) (response GetVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2091,7 +2091,7 @@ func (client BlockstorageClient) getVolume(ctx context.Context, request common.O // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackup.go.html to see an example of how to use GetVolumeBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackup.go.html to see an example of how to use GetVolumeBackup API. func (client BlockstorageClient) GetVolumeBackup(ctx context.Context, request GetVolumeBackupRequest) (response GetVolumeBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2148,7 +2148,7 @@ func (client BlockstorageClient) getVolumeBackup(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicy.go.html to see an example of how to use GetVolumeBackupPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicy.go.html to see an example of how to use GetVolumeBackupPolicy API. func (client BlockstorageClient) GetVolumeBackupPolicy(ctx context.Context, request GetVolumeBackupPolicyRequest) (response GetVolumeBackupPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2207,7 +2207,7 @@ func (client BlockstorageClient) getVolumeBackupPolicy(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicyAssetAssignment.go.html to see an example of how to use GetVolumeBackupPolicyAssetAssignment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicyAssetAssignment.go.html to see an example of how to use GetVolumeBackupPolicyAssetAssignment API. func (client BlockstorageClient) GetVolumeBackupPolicyAssetAssignment(ctx context.Context, request GetVolumeBackupPolicyAssetAssignmentRequest) (response GetVolumeBackupPolicyAssetAssignmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2264,7 +2264,7 @@ func (client BlockstorageClient) getVolumeBackupPolicyAssetAssignment(ctx contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicyAssignment.go.html to see an example of how to use GetVolumeBackupPolicyAssignment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicyAssignment.go.html to see an example of how to use GetVolumeBackupPolicyAssignment API. func (client BlockstorageClient) GetVolumeBackupPolicyAssignment(ctx context.Context, request GetVolumeBackupPolicyAssignmentRequest) (response GetVolumeBackupPolicyAssignmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2317,11 +2317,11 @@ func (client BlockstorageClient) getVolumeBackupPolicyAssignment(ctx context.Con return response, err } -// GetVolumeGroup Gets information for the specified volume group. For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// GetVolumeGroup Gets information for the specified volume group. For more information, see Volume Groups (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroup.go.html to see an example of how to use GetVolumeGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroup.go.html to see an example of how to use GetVolumeGroup API. func (client BlockstorageClient) GetVolumeGroup(ctx context.Context, request GetVolumeGroupRequest) (response GetVolumeGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2374,11 +2374,11 @@ func (client BlockstorageClient) getVolumeGroup(ctx context.Context, request com return response, err } -// GetVolumeGroupBackup Gets information for the specified volume group backup. For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// GetVolumeGroupBackup Gets information for the specified volume group backup. For more information, see Volume Groups (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroupBackup.go.html to see an example of how to use GetVolumeGroupBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroupBackup.go.html to see an example of how to use GetVolumeGroupBackup API. func (client BlockstorageClient) GetVolumeGroupBackup(ctx context.Context, request GetVolumeGroupBackupRequest) (response GetVolumeGroupBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2435,7 +2435,7 @@ func (client BlockstorageClient) getVolumeGroupBackup(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroupReplica.go.html to see an example of how to use GetVolumeGroupReplica API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroupReplica.go.html to see an example of how to use GetVolumeGroupReplica API. func (client BlockstorageClient) GetVolumeGroupReplica(ctx context.Context, request GetVolumeGroupReplicaRequest) (response GetVolumeGroupReplicaResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2492,7 +2492,7 @@ func (client BlockstorageClient) getVolumeGroupReplica(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeKmsKey.go.html to see an example of how to use GetVolumeKmsKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeKmsKey.go.html to see an example of how to use GetVolumeKmsKey API. func (client BlockstorageClient) GetVolumeKmsKey(ctx context.Context, request GetVolumeKmsKeyRequest) (response GetVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2549,7 +2549,7 @@ func (client BlockstorageClient) getVolumeKmsKey(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBlockVolumeReplicas.go.html to see an example of how to use ListBlockVolumeReplicas API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBlockVolumeReplicas.go.html to see an example of how to use ListBlockVolumeReplicas API. func (client BlockstorageClient) ListBlockVolumeReplicas(ctx context.Context, request ListBlockVolumeReplicasRequest) (response ListBlockVolumeReplicasResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2606,7 +2606,7 @@ func (client BlockstorageClient) listBlockVolumeReplicas(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeBackups.go.html to see an example of how to use ListBootVolumeBackups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeBackups.go.html to see an example of how to use ListBootVolumeBackups API. func (client BlockstorageClient) ListBootVolumeBackups(ctx context.Context, request ListBootVolumeBackupsRequest) (response ListBootVolumeBackupsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2663,7 +2663,7 @@ func (client BlockstorageClient) listBootVolumeBackups(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeReplicas.go.html to see an example of how to use ListBootVolumeReplicas API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeReplicas.go.html to see an example of how to use ListBootVolumeReplicas API. func (client BlockstorageClient) ListBootVolumeReplicas(ctx context.Context, request ListBootVolumeReplicasRequest) (response ListBootVolumeReplicasResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2720,7 +2720,7 @@ func (client BlockstorageClient) listBootVolumeReplicas(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumes.go.html to see an example of how to use ListBootVolumes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumes.go.html to see an example of how to use ListBootVolumes API. func (client BlockstorageClient) ListBootVolumes(ctx context.Context, request ListBootVolumesRequest) (response ListBootVolumesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2775,11 +2775,11 @@ func (client BlockstorageClient) listBootVolumes(ctx context.Context, request co // ListVolumeBackupPolicies Lists all the volume backup policies available in the specified compartment. // For more information about Oracle defined backup policies and user defined backup policies, -// see Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). +// see Policy-Based Backups (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeBackupPolicies.go.html to see an example of how to use ListVolumeBackupPolicies API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeBackupPolicies.go.html to see an example of how to use ListVolumeBackupPolicies API. func (client BlockstorageClient) ListVolumeBackupPolicies(ctx context.Context, request ListVolumeBackupPoliciesRequest) (response ListVolumeBackupPoliciesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2836,7 +2836,7 @@ func (client BlockstorageClient) listVolumeBackupPolicies(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeBackups.go.html to see an example of how to use ListVolumeBackups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeBackups.go.html to see an example of how to use ListVolumeBackups API. func (client BlockstorageClient) ListVolumeBackups(ctx context.Context, request ListVolumeBackupsRequest) (response ListVolumeBackupsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2890,11 +2890,11 @@ func (client BlockstorageClient) listVolumeBackups(ctx context.Context, request } // ListVolumeGroupBackups Lists the volume group backups in the specified compartment. You can filter the results by volume group. -// For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// For more information, see Volume Groups (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroupBackups.go.html to see an example of how to use ListVolumeGroupBackups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroupBackups.go.html to see an example of how to use ListVolumeGroupBackups API. func (client BlockstorageClient) ListVolumeGroupBackups(ctx context.Context, request ListVolumeGroupBackupsRequest) (response ListVolumeGroupBackupsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2948,11 +2948,11 @@ func (client BlockstorageClient) listVolumeGroupBackups(ctx context.Context, req } // ListVolumeGroupReplicas Lists the volume group replicas in the specified compartment. You can filter the results by volume group. -// For more information, see Volume Group Replication (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroupreplication.htm). +// For more information, see Volume Group Replication (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroupreplication.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroupReplicas.go.html to see an example of how to use ListVolumeGroupReplicas API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroupReplicas.go.html to see an example of how to use ListVolumeGroupReplicas API. func (client BlockstorageClient) ListVolumeGroupReplicas(ctx context.Context, request ListVolumeGroupReplicasRequest) (response ListVolumeGroupReplicasResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3006,11 +3006,11 @@ func (client BlockstorageClient) listVolumeGroupReplicas(ctx context.Context, re } // ListVolumeGroups Lists the volume groups in the specified compartment and availability domain. -// For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// For more information, see Volume Groups (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroups.go.html to see an example of how to use ListVolumeGroups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroups.go.html to see an example of how to use ListVolumeGroups API. func (client BlockstorageClient) ListVolumeGroups(ctx context.Context, request ListVolumeGroupsRequest) (response ListVolumeGroupsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3067,7 +3067,7 @@ func (client BlockstorageClient) listVolumeGroups(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumes.go.html to see an example of how to use ListVolumes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumes.go.html to see an example of how to use ListVolumes API. func (client BlockstorageClient) ListVolumes(ctx context.Context, request ListVolumesRequest) (response ListVolumesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3124,7 +3124,7 @@ func (client BlockstorageClient) listVolumes(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolume.go.html to see an example of how to use UpdateBootVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolume.go.html to see an example of how to use UpdateBootVolume API. func (client BlockstorageClient) UpdateBootVolume(ctx context.Context, request UpdateBootVolumeRequest) (response UpdateBootVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3182,7 +3182,7 @@ func (client BlockstorageClient) updateBootVolume(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolumeBackup.go.html to see an example of how to use UpdateBootVolumeBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolumeBackup.go.html to see an example of how to use UpdateBootVolumeBackup API. func (client BlockstorageClient) UpdateBootVolumeBackup(ctx context.Context, request UpdateBootVolumeBackupRequest) (response UpdateBootVolumeBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3234,7 +3234,7 @@ func (client BlockstorageClient) updateBootVolumeBackup(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolumeKmsKey.go.html to see an example of how to use UpdateBootVolumeKmsKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolumeKmsKey.go.html to see an example of how to use UpdateBootVolumeKmsKey API. func (client BlockstorageClient) UpdateBootVolumeKmsKey(ctx context.Context, request UpdateBootVolumeKmsKeyRequest) (response UpdateBootVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3292,7 +3292,7 @@ func (client BlockstorageClient) updateBootVolumeKmsKey(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolume.go.html to see an example of how to use UpdateVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolume.go.html to see an example of how to use UpdateVolume API. func (client BlockstorageClient) UpdateVolume(ctx context.Context, request UpdateVolumeRequest) (response UpdateVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3350,7 +3350,7 @@ func (client BlockstorageClient) updateVolume(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeBackup.go.html to see an example of how to use UpdateVolumeBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeBackup.go.html to see an example of how to use UpdateVolumeBackup API. func (client BlockstorageClient) UpdateVolumeBackup(ctx context.Context, request UpdateVolumeBackupRequest) (response UpdateVolumeBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3401,12 +3401,12 @@ func (client BlockstorageClient) updateVolumeBackup(ctx context.Context, request // UpdateVolumeBackupPolicy Updates a user defined backup policy. // // For more information about user defined backup policies, -// see Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#UserDefinedBackupPolicies). +// see Policy-Based Backups (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#UserDefinedBackupPolicies). // Avoid entering confidential information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeBackupPolicy.go.html to see an example of how to use UpdateVolumeBackupPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeBackupPolicy.go.html to see an example of how to use UpdateVolumeBackupPolicy API. func (client BlockstorageClient) UpdateVolumeBackupPolicy(ctx context.Context, request UpdateVolumeBackupPolicyRequest) (response UpdateVolumeBackupPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3468,11 +3468,11 @@ func (client BlockstorageClient) updateVolumeBackupPolicy(ctx context.Context, r // to add or remove volumes in a volume group. Specify the full list of volume IDs to include in the // volume group. If the volume ID is not specified in the call, it will be removed from the volume group. // Avoid entering confidential information. -// For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// For more information, see Volume Groups (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeGroup.go.html to see an example of how to use UpdateVolumeGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeGroup.go.html to see an example of how to use UpdateVolumeGroup API. func (client BlockstorageClient) UpdateVolumeGroup(ctx context.Context, request UpdateVolumeGroupRequest) (response UpdateVolumeGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3525,11 +3525,11 @@ func (client BlockstorageClient) updateVolumeGroup(ctx context.Context, request return response, err } -// UpdateVolumeGroupBackup Updates the display name for the specified volume group backup. For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// UpdateVolumeGroupBackup Updates the display name for the specified volume group backup. For more information, see Volume Groups (https://docs.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeGroupBackup.go.html to see an example of how to use UpdateVolumeGroupBackup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeGroupBackup.go.html to see an example of how to use UpdateVolumeGroupBackup API. func (client BlockstorageClient) UpdateVolumeGroupBackup(ctx context.Context, request UpdateVolumeGroupBackupRequest) (response UpdateVolumeGroupBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3581,7 +3581,7 @@ func (client BlockstorageClient) updateVolumeGroupBackup(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeKmsKey.go.html to see an example of how to use UpdateVolumeKmsKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeKmsKey.go.html to see an example of how to use UpdateVolumeKmsKey API. func (client BlockstorageClient) UpdateVolumeKmsKey(ctx context.Context, request UpdateVolumeKmsKeyRequest) (response UpdateVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go index f8f5eddec2..95167ee462 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -99,7 +99,7 @@ func (client *ComputeClient) ConfigurationProvider() *common.ConfigurationProvid // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AcceptShieldedIntegrityPolicy.go.html to see an example of how to use AcceptShieldedIntegrityPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AcceptShieldedIntegrityPolicy.go.html to see an example of how to use AcceptShieldedIntegrityPolicy API. func (client ComputeClient) AcceptShieldedIntegrityPolicy(ctx context.Context, request AcceptShieldedIntegrityPolicyRequest) (response AcceptShieldedIntegrityPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -161,7 +161,7 @@ func (client ComputeClient) acceptShieldedIntegrityPolicy(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddImageShapeCompatibilityEntry.go.html to see an example of how to use AddImageShapeCompatibilityEntry API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddImageShapeCompatibilityEntry.go.html to see an example of how to use AddImageShapeCompatibilityEntry API. func (client ComputeClient) AddImageShapeCompatibilityEntry(ctx context.Context, request AddImageShapeCompatibilityEntryRequest) (response AddImageShapeCompatibilityEntryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -218,7 +218,7 @@ func (client ComputeClient) addImageShapeCompatibilityEntry(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachBootVolume.go.html to see an example of how to use AttachBootVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachBootVolume.go.html to see an example of how to use AttachBootVolume API. func (client ComputeClient) AttachBootVolume(ctx context.Context, request AttachBootVolumeRequest) (response AttachBootVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -276,13 +276,76 @@ func (client ComputeClient) attachBootVolume(ctx context.Context, request common return response, err } +// AttachComputeHostGroupHost Attaches the Compute BM Host to a Host group +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachComputeHostGroupHost.go.html to see an example of how to use AttachComputeHostGroupHost API. +// A default retry strategy applies to this operation AttachComputeHostGroupHost() +func (client ComputeClient) AttachComputeHostGroupHost(ctx context.Context, request AttachComputeHostGroupHostRequest) (response AttachComputeHostGroupHostResponse, 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.attachComputeHostGroupHost, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = AttachComputeHostGroupHostResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = AttachComputeHostGroupHostResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(AttachComputeHostGroupHostResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into AttachComputeHostGroupHostResponse") + } + return +} + +// attachComputeHostGroupHost implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) attachComputeHostGroupHost(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeHosts/{computeHostId}/actions/attachToHostGroup", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response AttachComputeHostGroupHostResponse + 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/ComputeHost/AttachComputeHostGroupHost" + err = common.PostProcessServiceError(err, "Compute", "AttachComputeHostGroupHost", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // AttachVnic Creates a secondary VNIC and attaches it to the specified instance. // For more information about secondary VNICs, see -// Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). +// Virtual Network Interface Cards (VNICs) (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachVnic.go.html to see an example of how to use AttachVnic API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachVnic.go.html to see an example of how to use AttachVnic API. func (client ComputeClient) AttachVnic(ctx context.Context, request AttachVnicRequest) (response AttachVnicResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -344,7 +407,7 @@ func (client ComputeClient) attachVnic(ctx context.Context, request common.OCIRe // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachVolume.go.html to see an example of how to use AttachVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachVolume.go.html to see an example of how to use AttachVolume API. func (client ComputeClient) AttachVolume(ctx context.Context, request AttachVolumeRequest) (response AttachVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -420,7 +483,7 @@ func (client ComputeClient) attachVolume(ctx context.Context, request common.OCI // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CaptureConsoleHistory.go.html to see an example of how to use CaptureConsoleHistory API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CaptureConsoleHistory.go.html to see an example of how to use CaptureConsoleHistory API. func (client ComputeClient) CaptureConsoleHistory(ctx context.Context, request CaptureConsoleHistoryRequest) (response CaptureConsoleHistoryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -480,11 +543,11 @@ func (client ComputeClient) captureConsoleHistory(ctx context.Context, request c // ChangeComputeCapacityReservationCompartment Moves a compute capacity reservation into a different compartment. 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeCapacityReservationCompartment.go.html to see an example of how to use ChangeComputeCapacityReservationCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeCapacityReservationCompartment.go.html to see an example of how to use ChangeComputeCapacityReservationCompartment API. func (client ComputeClient) ChangeComputeCapacityReservationCompartment(ctx context.Context, request ChangeComputeCapacityReservationCompartmentRequest) (response ChangeComputeCapacityReservationCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -543,11 +606,11 @@ func (client ComputeClient) changeComputeCapacityReservationCompartment(ctx cont } // ChangeComputeCapacityTopologyCompartment Moves a compute capacity topology into a different compartment. 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). +// compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeCapacityTopologyCompartment.go.html to see an example of how to use ChangeComputeCapacityTopologyCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeCapacityTopologyCompartment.go.html to see an example of how to use ChangeComputeCapacityTopologyCompartment API. // A default retry strategy applies to this operation ChangeComputeCapacityTopologyCompartment() func (client ComputeClient) ChangeComputeCapacityTopologyCompartment(ctx context.Context, request ChangeComputeCapacityTopologyCompartmentRequest) (response ChangeComputeCapacityTopologyCompartmentResponse, err error) { var ociResponse common.OCIResponse @@ -607,13 +670,13 @@ func (client ComputeClient) changeComputeCapacityTopologyCompartment(ctx context } // ChangeComputeClusterCompartment Moves a compute cluster into a different compartment within the same tenancy. -// A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory access (RDMA) network group. +// A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeClusterCompartment.go.html to see an example of how to use ChangeComputeClusterCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeClusterCompartment.go.html to see an example of how to use ChangeComputeClusterCompartment API. func (client ComputeClient) ChangeComputeClusterCompartment(ctx context.Context, request ChangeComputeClusterCompartmentRequest) (response ChangeComputeClusterCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -671,14 +734,270 @@ func (client ComputeClient) changeComputeClusterCompartment(ctx context.Context, return response, err } +// ChangeComputeGpuMemoryClusterCompartment Moves a compute GPU memory cluster into a different compartment. For information about moving resources between +// compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeGpuMemoryClusterCompartment.go.html to see an example of how to use ChangeComputeGpuMemoryClusterCompartment API. +// A default retry strategy applies to this operation ChangeComputeGpuMemoryClusterCompartment() +func (client ComputeClient) ChangeComputeGpuMemoryClusterCompartment(ctx context.Context, request ChangeComputeGpuMemoryClusterCompartmentRequest) (response ChangeComputeGpuMemoryClusterCompartmentResponse, 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.changeComputeGpuMemoryClusterCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeComputeGpuMemoryClusterCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeComputeGpuMemoryClusterCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeComputeGpuMemoryClusterCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeComputeGpuMemoryClusterCompartmentResponse") + } + return +} + +// changeComputeGpuMemoryClusterCompartment implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) changeComputeGpuMemoryClusterCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeGpuMemoryClusters/{computeGpuMemoryClusterId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeComputeGpuMemoryClusterCompartmentResponse + 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/ComputeGpuMemoryCluster/ChangeComputeGpuMemoryClusterCompartment" + err = common.PostProcessServiceError(err, "Compute", "ChangeComputeGpuMemoryClusterCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeComputeGpuMemoryFabricCompartment Moves a compute GPU memory fabric into a different compartment. For information about moving resources between +// compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeGpuMemoryFabricCompartment.go.html to see an example of how to use ChangeComputeGpuMemoryFabricCompartment API. +// A default retry strategy applies to this operation ChangeComputeGpuMemoryFabricCompartment() +func (client ComputeClient) ChangeComputeGpuMemoryFabricCompartment(ctx context.Context, request ChangeComputeGpuMemoryFabricCompartmentRequest) (response ChangeComputeGpuMemoryFabricCompartmentResponse, 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.changeComputeGpuMemoryFabricCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeComputeGpuMemoryFabricCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeComputeGpuMemoryFabricCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeComputeGpuMemoryFabricCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeComputeGpuMemoryFabricCompartmentResponse") + } + return +} + +// changeComputeGpuMemoryFabricCompartment implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) changeComputeGpuMemoryFabricCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeGpuMemoryFabrics/{computeGpuMemoryFabricId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeComputeGpuMemoryFabricCompartmentResponse + 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/ComputeGpuMemoryFabric/ChangeComputeGpuMemoryFabricCompartment" + err = common.PostProcessServiceError(err, "Compute", "ChangeComputeGpuMemoryFabricCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeComputeHostCompartment Moves a compute host into a different compartment. For information about moving resources between +// compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeHostCompartment.go.html to see an example of how to use ChangeComputeHostCompartment API. +// A default retry strategy applies to this operation ChangeComputeHostCompartment() +func (client ComputeClient) ChangeComputeHostCompartment(ctx context.Context, request ChangeComputeHostCompartmentRequest) (response ChangeComputeHostCompartmentResponse, 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.changeComputeHostCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeComputeHostCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeComputeHostCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeComputeHostCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeComputeHostCompartmentResponse") + } + return +} + +// changeComputeHostCompartment implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) changeComputeHostCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeHosts/{computeHostId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeComputeHostCompartmentResponse + 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/ComputeHost/ChangeComputeHostCompartment" + err = common.PostProcessServiceError(err, "Compute", "ChangeComputeHostCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeComputeHostGroupCompartment Moves a compute host group into a different compartment. For information about moving resources between +// compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeHostGroupCompartment.go.html to see an example of how to use ChangeComputeHostGroupCompartment API. +// A default retry strategy applies to this operation ChangeComputeHostGroupCompartment() +func (client ComputeClient) ChangeComputeHostGroupCompartment(ctx context.Context, request ChangeComputeHostGroupCompartmentRequest) (response ChangeComputeHostGroupCompartmentResponse, 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.changeComputeHostGroupCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeComputeHostGroupCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeComputeHostGroupCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeComputeHostGroupCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeComputeHostGroupCompartmentResponse") + } + return +} + +// changeComputeHostGroupCompartment implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) changeComputeHostGroupCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeHostGroups/{computeHostGroupId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeComputeHostGroupCompartmentResponse + 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/ComputeHostGroup/ChangeComputeHostGroupCompartment" + err = common.PostProcessServiceError(err, "Compute", "ChangeComputeHostGroupCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ChangeComputeImageCapabilitySchemaCompartment Moves a compute image capability schema 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeImageCapabilitySchemaCompartment.go.html to see an example of how to use ChangeComputeImageCapabilitySchemaCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeComputeImageCapabilitySchemaCompartment.go.html to see an example of how to use ChangeComputeImageCapabilitySchemaCompartment API. // A default retry strategy applies to this operation ChangeComputeImageCapabilitySchemaCompartment() func (client ComputeClient) ChangeComputeImageCapabilitySchemaCompartment(ctx context.Context, request ChangeComputeImageCapabilitySchemaCompartmentRequest) (response ChangeComputeImageCapabilitySchemaCompartmentResponse, err error) { var ociResponse common.OCIResponse @@ -741,7 +1060,7 @@ func (client ComputeClient) changeComputeImageCapabilitySchemaCompartment(ctx co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDedicatedVmHostCompartment.go.html to see an example of how to use ChangeDedicatedVmHostCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDedicatedVmHostCompartment.go.html to see an example of how to use ChangeDedicatedVmHostCompartment API. func (client ComputeClient) ChangeDedicatedVmHostCompartment(ctx context.Context, request ChangeDedicatedVmHostCompartmentRequest) (response ChangeDedicatedVmHostCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -801,11 +1120,11 @@ func (client ComputeClient) changeDedicatedVmHostCompartment(ctx context.Context // ChangeImageCompartment Moves an image 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeImageCompartment.go.html to see an example of how to use ChangeImageCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeImageCompartment.go.html to see an example of how to use ChangeImageCompartment API. // A default retry strategy applies to this operation ChangeImageCompartment() func (client ComputeClient) ChangeImageCompartment(ctx context.Context, request ChangeImageCompartmentRequest) (response ChangeImageCompartmentResponse, err error) { var ociResponse common.OCIResponse @@ -866,13 +1185,13 @@ func (client ComputeClient) changeImageCompartment(ctx context.Context, request // ChangeInstanceCompartment Moves an instance 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // When you move an instance to a different compartment, associated resources such as boot volumes and VNICs // are not moved. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstanceCompartment.go.html to see an example of how to use ChangeInstanceCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstanceCompartment.go.html to see an example of how to use ChangeInstanceCompartment API. func (client ComputeClient) ChangeInstanceCompartment(ctx context.Context, request ChangeInstanceCompartmentRequest) (response ChangeInstanceCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -934,7 +1253,7 @@ func (client ComputeClient) changeInstanceCompartment(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateAppCatalogSubscription.go.html to see an example of how to use CreateAppCatalogSubscription API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateAppCatalogSubscription.go.html to see an example of how to use CreateAppCatalogSubscription API. // A default retry strategy applies to this operation CreateAppCatalogSubscription() func (client ComputeClient) CreateAppCatalogSubscription(ctx context.Context, request CreateAppCatalogSubscriptionRequest) (response CreateAppCatalogSubscriptionResponse, err error) { var ociResponse common.OCIResponse @@ -1001,7 +1320,7 @@ func (client ComputeClient) createAppCatalogSubscription(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityReport.go.html to see an example of how to use CreateComputeCapacityReport API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityReport.go.html to see an example of how to use CreateComputeCapacityReport API. // 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 @@ -1064,11 +1383,11 @@ func (client ComputeClient) createComputeCapacityReport(ctx context.Context, req // Compute capacity reservations let you reserve instances in a compartment. // When you launch an instance using this reservation, you are assured that you have enough space for your instance, // and you won't get out of capacity errors. -// For more information, see Reserved Capacity (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm). +// For more information, see Reserved Capacity (https://docs.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityReservation.go.html to see an example of how to use CreateComputeCapacityReservation API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityReservation.go.html to see an example of how to use CreateComputeCapacityReservation API. func (client ComputeClient) CreateComputeCapacityReservation(ctx context.Context, request CreateComputeCapacityReservationRequest) (response CreateComputeCapacityReservationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1133,7 +1452,7 @@ func (client ComputeClient) createComputeCapacityReservation(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityTopology.go.html to see an example of how to use CreateComputeCapacityTopology API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityTopology.go.html to see an example of how to use CreateComputeCapacityTopology API. // A default retry strategy applies to this operation CreateComputeCapacityTopology() func (client ComputeClient) CreateComputeCapacityTopology(ctx context.Context, request CreateComputeCapacityTopologyRequest) (response CreateComputeCapacityTopologyResponse, err error) { var ociResponse common.OCIResponse @@ -1192,7 +1511,7 @@ func (client ComputeClient) createComputeCapacityTopology(ctx context.Context, r return response, err } -// CreateComputeCluster Creates an empty compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute cluster +// CreateComputeCluster Creates an empty compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute cluster // 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. @@ -1204,7 +1523,7 @@ func (client ComputeClient) createComputeCapacityTopology(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCluster.go.html to see an example of how to use CreateComputeCluster API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCluster.go.html to see an example of how to use CreateComputeCluster API. func (client ComputeClient) CreateComputeCluster(ctx context.Context, request CreateComputeClusterRequest) (response CreateComputeClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1262,13 +1581,13 @@ func (client ComputeClient) createComputeCluster(ctx context.Context, request co return response, err } -// CreateComputeImageCapabilitySchema Creates compute image capability schema. +// CreateComputeGpuMemoryCluster Create a compute GPU memory cluster instance on a specific compute GPU memory fabric // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeImageCapabilitySchema.go.html to see an example of how to use CreateComputeImageCapabilitySchema API. -// A default retry strategy applies to this operation CreateComputeImageCapabilitySchema() -func (client ComputeClient) CreateComputeImageCapabilitySchema(ctx context.Context, request CreateComputeImageCapabilitySchemaRequest) (response CreateComputeImageCapabilitySchemaResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeGpuMemoryCluster.go.html to see an example of how to use CreateComputeGpuMemoryCluster API. +// A default retry strategy applies to this operation CreateComputeGpuMemoryCluster() +func (client ComputeClient) CreateComputeGpuMemoryCluster(ctx context.Context, request CreateComputeGpuMemoryClusterRequest) (response CreateComputeGpuMemoryClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -1282,42 +1601,42 @@ func (client ComputeClient) CreateComputeImageCapabilitySchema(ctx context.Conte request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createComputeImageCapabilitySchema, policy) + ociResponse, err = common.Retry(ctx, request, client.createComputeGpuMemoryCluster, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateComputeImageCapabilitySchemaResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateComputeGpuMemoryClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateComputeImageCapabilitySchemaResponse{} + response = CreateComputeGpuMemoryClusterResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateComputeImageCapabilitySchemaResponse); ok { + if convertedResponse, ok := ociResponse.(CreateComputeGpuMemoryClusterResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateComputeImageCapabilitySchemaResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateComputeGpuMemoryClusterResponse") } return } -// createComputeImageCapabilitySchema implements the OCIOperation interface (enables retrying operations) -func (client ComputeClient) createComputeImageCapabilitySchema(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createComputeGpuMemoryCluster implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) createComputeGpuMemoryCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeImageCapabilitySchemas", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeGpuMemoryClusters", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateComputeImageCapabilitySchemaResponse + var response CreateComputeGpuMemoryClusterResponse 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/ComputeImageCapabilitySchema/CreateComputeImageCapabilitySchema" - err = common.PostProcessServiceError(err, "Compute", "CreateComputeImageCapabilitySchema", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryCluster/CreateComputeGpuMemoryCluster" + err = common.PostProcessServiceError(err, "Compute", "CreateComputeGpuMemoryCluster", apiReferenceLink) return response, err } @@ -1325,14 +1644,140 @@ func (client ComputeClient) createComputeImageCapabilitySchema(ctx context.Conte return response, err } -// CreateDedicatedVmHost Creates a new dedicated virtual machine host in the specified compartment and the specified availability domain. -// Dedicated virtual machine hosts enable you to run your Compute virtual machine (VM) instances on dedicated servers +// CreateComputeHostGroup Creates a new compute host group in the specified compartment and availability domain. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeHostGroup.go.html to see an example of how to use CreateComputeHostGroup API. +// A default retry strategy applies to this operation CreateComputeHostGroup() +func (client ComputeClient) CreateComputeHostGroup(ctx context.Context, request CreateComputeHostGroupRequest) (response CreateComputeHostGroupResponse, 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.createComputeHostGroup, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateComputeHostGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateComputeHostGroupResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateComputeHostGroupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateComputeHostGroupResponse") + } + return +} + +// createComputeHostGroup implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) createComputeHostGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeHostGroups", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateComputeHostGroupResponse + 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/ComputeHostGroup/CreateComputeHostGroup" + err = common.PostProcessServiceError(err, "Compute", "CreateComputeHostGroup", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateComputeImageCapabilitySchema Creates compute image capability schema. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeImageCapabilitySchema.go.html to see an example of how to use CreateComputeImageCapabilitySchema API. +// A default retry strategy applies to this operation CreateComputeImageCapabilitySchema() +func (client ComputeClient) CreateComputeImageCapabilitySchema(ctx context.Context, request CreateComputeImageCapabilitySchemaRequest) (response CreateComputeImageCapabilitySchemaResponse, 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.createComputeImageCapabilitySchema, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateComputeImageCapabilitySchemaResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateComputeImageCapabilitySchemaResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateComputeImageCapabilitySchemaResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateComputeImageCapabilitySchemaResponse") + } + return +} + +// createComputeImageCapabilitySchema implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) createComputeImageCapabilitySchema(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeImageCapabilitySchemas", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateComputeImageCapabilitySchemaResponse + 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/ComputeImageCapabilitySchema/CreateComputeImageCapabilitySchema" + err = common.PostProcessServiceError(err, "Compute", "CreateComputeImageCapabilitySchema", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateDedicatedVmHost Creates a new dedicated virtual machine host in the specified compartment and the specified availability domain. +// Dedicated virtual machine hosts enable you to run your Compute virtual machine (VM) instances on dedicated servers // that are a single tenant and not shared with other customers. -// For more information, see Dedicated Virtual Machine Hosts (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/dedicatedvmhosts.htm). +// For more information, see Dedicated Virtual Machine Hosts (https://docs.oracle.com/iaas/Content/Compute/Concepts/dedicatedvmhosts.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDedicatedVmHost.go.html to see an example of how to use CreateDedicatedVmHost API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDedicatedVmHost.go.html to see an example of how to use CreateDedicatedVmHost API. func (client ComputeClient) CreateDedicatedVmHost(ctx context.Context, request CreateDedicatedVmHostRequest) (response CreateDedicatedVmHostResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1393,24 +1838,24 @@ func (client ComputeClient) createDedicatedVmHost(ctx context.Context, request c // CreateImage Creates a boot disk image for the specified instance or imports an exported image from the Oracle Cloud Infrastructure Object Storage service. // When creating a new image, you must provide the OCID of the instance you want to use as the basis for the image, and // the OCID of the compartment containing that instance. For more information about images, -// see Managing Custom Images (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingcustomimages.htm). +// see Managing Custom Images (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingcustomimages.htm). // When importing an exported image from Object Storage, you specify the source information // in ImageSourceDetails. // When importing an image based on the namespace, bucket name, and object name, // use ImageSourceViaObjectStorageTupleDetails. // When importing an image based on the Object Storage URL, use // ImageSourceViaObjectStorageUriDetails. -// 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) +// See Object Storage URLs (https://docs.oracle.com/iaas/Content/Compute/Tasks/imageimportexport.htm#URLs) and Using Pre-Authenticated Requests (https://docs.oracle.com/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm) // for constructing URLs for image import/export. // For more information about importing exported images, see -// Image Import/Export (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/imageimportexport.htm). +// Image Import/Export (https://docs.oracle.com/iaas/Content/Compute/Tasks/imageimportexport.htm). // You may optionally specify a *display name* for the image, which is simply a friendly name or description. // It does not have to be unique, and you can change it. See UpdateImage. // Avoid entering confidential information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateImage.go.html to see an example of how to use CreateImage API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateImage.go.html to see an example of how to use CreateImage API. // A default retry strategy applies to this operation CreateImage() func (client ComputeClient) CreateImage(ctx context.Context, request CreateImageRequest) (response CreateImageResponse, err error) { var ociResponse common.OCIResponse @@ -1472,11 +1917,11 @@ func (client ComputeClient) createImage(ctx context.Context, request common.OCIR // CreateInstanceConsoleConnection Creates a new console connection to the specified instance. // After the console connection has been created and is available, // you connect to the console using SSH. -// 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). +// For more information about instance console connections, see Troubleshooting Instances Using Instance Console Connections (https://docs.oracle.com/iaas/Content/Compute/References/serialconsole.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstanceConsoleConnection.go.html to see an example of how to use CreateInstanceConsoleConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstanceConsoleConnection.go.html to see an example of how to use CreateInstanceConsoleConnection API. func (client ComputeClient) CreateInstanceConsoleConnection(ctx context.Context, request CreateInstanceConsoleConnectionRequest) (response CreateInstanceConsoleConnectionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1538,7 +1983,7 @@ func (client ComputeClient) createInstanceConsoleConnection(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteAppCatalogSubscription.go.html to see an example of how to use DeleteAppCatalogSubscription API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteAppCatalogSubscription.go.html to see an example of how to use DeleteAppCatalogSubscription API. func (client ComputeClient) DeleteAppCatalogSubscription(ctx context.Context, request DeleteAppCatalogSubscriptionRequest) (response DeleteAppCatalogSubscriptionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1595,7 +2040,7 @@ func (client ComputeClient) deleteAppCatalogSubscription(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCapacityReservation.go.html to see an example of how to use DeleteComputeCapacityReservation API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCapacityReservation.go.html to see an example of how to use DeleteComputeCapacityReservation API. func (client ComputeClient) DeleteComputeCapacityReservation(ctx context.Context, request DeleteComputeCapacityReservationRequest) (response DeleteComputeCapacityReservationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1652,7 +2097,7 @@ func (client ComputeClient) deleteComputeCapacityReservation(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCapacityTopology.go.html to see an example of how to use DeleteComputeCapacityTopology API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCapacityTopology.go.html to see an example of how to use DeleteComputeCapacityTopology API. // A default retry strategy applies to this operation DeleteComputeCapacityTopology() func (client ComputeClient) DeleteComputeCapacityTopology(ctx context.Context, request DeleteComputeCapacityTopologyRequest) (response DeleteComputeCapacityTopologyResponse, err error) { var ociResponse common.OCIResponse @@ -1706,14 +2151,14 @@ func (client ComputeClient) deleteComputeCapacityTopology(ctx context.Context, r return response, err } -// DeleteComputeCluster Deletes a compute cluster. A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a +// DeleteComputeCluster Deletes a compute cluster. A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a // remote direct memory access (RDMA) network group. // Before you delete a compute cluster, first delete all instances in the cluster by using // the TerminateInstance operation. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCluster.go.html to see an example of how to use DeleteComputeCluster API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCluster.go.html to see an example of how to use DeleteComputeCluster API. func (client ComputeClient) DeleteComputeCluster(ctx context.Context, request DeleteComputeClusterRequest) (response DeleteComputeClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1766,11 +2211,126 @@ func (client ComputeClient) deleteComputeCluster(ctx context.Context, request co return response, err } +// DeleteComputeGpuMemoryCluster Terminates and deletes the specified compute GPU memory cluster and underlying instances. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeGpuMemoryCluster.go.html to see an example of how to use DeleteComputeGpuMemoryCluster API. +// A default retry strategy applies to this operation DeleteComputeGpuMemoryCluster() +func (client ComputeClient) DeleteComputeGpuMemoryCluster(ctx context.Context, request DeleteComputeGpuMemoryClusterRequest) (response DeleteComputeGpuMemoryClusterResponse, 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.deleteComputeGpuMemoryCluster, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteComputeGpuMemoryClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteComputeGpuMemoryClusterResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteComputeGpuMemoryClusterResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteComputeGpuMemoryClusterResponse") + } + return +} + +// deleteComputeGpuMemoryCluster implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) deleteComputeGpuMemoryCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/computeGpuMemoryClusters/{computeGpuMemoryClusterId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteComputeGpuMemoryClusterResponse + 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/ComputeGpuMemoryCluster/DeleteComputeGpuMemoryCluster" + err = common.PostProcessServiceError(err, "Compute", "DeleteComputeGpuMemoryCluster", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteComputeHostGroup Deletes the specified compute host group +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeHostGroup.go.html to see an example of how to use DeleteComputeHostGroup API. +func (client ComputeClient) DeleteComputeHostGroup(ctx context.Context, request DeleteComputeHostGroupRequest) (response DeleteComputeHostGroupResponse, 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.deleteComputeHostGroup, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteComputeHostGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteComputeHostGroupResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteComputeHostGroupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteComputeHostGroupResponse") + } + return +} + +// deleteComputeHostGroup implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) deleteComputeHostGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/computeHostGroups/{computeHostGroupId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteComputeHostGroupResponse + 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/ComputeHostGroup/DeleteComputeHostGroup" + err = common.PostProcessServiceError(err, "Compute", "DeleteComputeHostGroup", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeleteComputeImageCapabilitySchema Deletes the specified Compute Image Capability Schema // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeImageCapabilitySchema.go.html to see an example of how to use DeleteComputeImageCapabilitySchema API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeImageCapabilitySchema.go.html to see an example of how to use DeleteComputeImageCapabilitySchema API. func (client ComputeClient) DeleteComputeImageCapabilitySchema(ctx context.Context, request DeleteComputeImageCapabilitySchemaRequest) (response DeleteComputeImageCapabilitySchemaResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1827,7 +2387,7 @@ func (client ComputeClient) deleteComputeImageCapabilitySchema(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteConsoleHistory.go.html to see an example of how to use DeleteConsoleHistory API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteConsoleHistory.go.html to see an example of how to use DeleteConsoleHistory API. func (client ComputeClient) DeleteConsoleHistory(ctx context.Context, request DeleteConsoleHistoryRequest) (response DeleteConsoleHistoryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1886,7 +2446,7 @@ func (client ComputeClient) deleteConsoleHistory(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDedicatedVmHost.go.html to see an example of how to use DeleteDedicatedVmHost API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDedicatedVmHost.go.html to see an example of how to use DeleteDedicatedVmHost API. func (client ComputeClient) DeleteDedicatedVmHost(ctx context.Context, request DeleteDedicatedVmHostRequest) (response DeleteDedicatedVmHostResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1943,7 +2503,7 @@ func (client ComputeClient) deleteDedicatedVmHost(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteImage.go.html to see an example of how to use DeleteImage API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteImage.go.html to see an example of how to use DeleteImage API. func (client ComputeClient) DeleteImage(ctx context.Context, request DeleteImageRequest) (response DeleteImageResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2000,7 +2560,7 @@ func (client ComputeClient) deleteImage(ctx context.Context, request common.OCIR // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInstanceConsoleConnection.go.html to see an example of how to use DeleteInstanceConsoleConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInstanceConsoleConnection.go.html to see an example of how to use DeleteInstanceConsoleConnection API. func (client ComputeClient) DeleteInstanceConsoleConnection(ctx context.Context, request DeleteInstanceConsoleConnectionRequest) (response DeleteInstanceConsoleConnectionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2059,7 +2619,7 @@ func (client ComputeClient) deleteInstanceConsoleConnection(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachBootVolume.go.html to see an example of how to use DetachBootVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachBootVolume.go.html to see an example of how to use DetachBootVolume API. func (client ComputeClient) DetachBootVolume(ctx context.Context, request DetachBootVolumeRequest) (response DetachBootVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2112,19 +2672,82 @@ func (client ComputeClient) detachBootVolume(ctx context.Context, request common return response, err } +// DetachComputeHostGroupHost Detaches the specified bare metal host from the compute host group +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachComputeHostGroupHost.go.html to see an example of how to use DetachComputeHostGroupHost API. +// A default retry strategy applies to this operation DetachComputeHostGroupHost() +func (client ComputeClient) DetachComputeHostGroupHost(ctx context.Context, request DetachComputeHostGroupHostRequest) (response DetachComputeHostGroupHostResponse, 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.detachComputeHostGroupHost, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DetachComputeHostGroupHostResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DetachComputeHostGroupHostResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DetachComputeHostGroupHostResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DetachComputeHostGroupHostResponse") + } + return +} + +// detachComputeHostGroupHost implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) detachComputeHostGroupHost(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeHosts/{computeHostId}/actions/detachFromHostGroup", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DetachComputeHostGroupHostResponse + 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/ComputeHost/DetachComputeHostGroupHost" + err = common.PostProcessServiceError(err, "Compute", "DetachComputeHostGroupHost", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DetachVnic Detaches and deletes the specified secondary VNIC. // This operation cannot be used on the instance's primary VNIC. // When you terminate an instance, all attached VNICs (primary // and secondary) are automatically detached and deleted. // **Important:** If the VNIC has a // PrivateIp that is the -// target of a route rule (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip), +// target of a route rule (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip), // deleting the VNIC causes that route rule to blackhole and the traffic // will be dropped. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachVnic.go.html to see an example of how to use DetachVnic API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachVnic.go.html to see an example of how to use DetachVnic API. func (client ComputeClient) DetachVnic(ctx context.Context, request DetachVnicRequest) (response DetachVnicResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2183,7 +2806,7 @@ func (client ComputeClient) detachVnic(ctx context.Context, request common.OCIRe // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachVolume.go.html to see an example of how to use DetachVolume API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachVolume.go.html to see an example of how to use DetachVolume API. func (client ComputeClient) DetachVolume(ctx context.Context, request DetachVolumeRequest) (response DetachVolumeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2238,15 +2861,15 @@ func (client ComputeClient) detachVolume(ctx context.Context, request common.OCI // ExportImage Exports the specified image to the Oracle Cloud Infrastructure Object Storage service. You can use the Object Storage URL, // or the namespace, bucket name, and object name when specifying the location to export to. -// For more information about exporting images, see Image Import/Export (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/imageimportexport.htm). +// For more information about exporting images, see Image Import/Export (https://docs.oracle.com/iaas/Content/Compute/Tasks/imageimportexport.htm). // To perform an image export, you need write access to the Object Storage bucket for the image, -// see Let Users Write Objects to Object Storage Buckets (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/commonpolicies.htm#Let4). -// 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) +// see Let Users Write Objects to Object Storage Buckets (https://docs.oracle.com/iaas/Content/Identity/Concepts/commonpolicies.htm#Let4). +// See Object Storage URLs (https://docs.oracle.com/iaas/Content/Compute/Tasks/imageimportexport.htm#URLs) and Using Pre-Authenticated Requests (https://docs.oracle.com/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm) // for constructing URLs for image import/export. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ExportImage.go.html to see an example of how to use ExportImage API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ExportImage.go.html to see an example of how to use ExportImage API. // A default retry strategy applies to this operation ExportImage() func (client ComputeClient) ExportImage(ctx context.Context, request ExportImageRequest) (response ExportImageResponse, err error) { var ociResponse common.OCIResponse @@ -2309,7 +2932,7 @@ func (client ComputeClient) exportImage(ctx context.Context, request common.OCIR // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListing.go.html to see an example of how to use GetAppCatalogListing API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListing.go.html to see an example of how to use GetAppCatalogListing API. // A default retry strategy applies to this operation GetAppCatalogListing() func (client ComputeClient) GetAppCatalogListing(ctx context.Context, request GetAppCatalogListingRequest) (response GetAppCatalogListingResponse, err error) { var ociResponse common.OCIResponse @@ -2367,7 +2990,7 @@ func (client ComputeClient) getAppCatalogListing(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListingAgreements.go.html to see an example of how to use GetAppCatalogListingAgreements API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListingAgreements.go.html to see an example of how to use GetAppCatalogListingAgreements API. // A default retry strategy applies to this operation GetAppCatalogListingAgreements() func (client ComputeClient) GetAppCatalogListingAgreements(ctx context.Context, request GetAppCatalogListingAgreementsRequest) (response GetAppCatalogListingAgreementsResponse, err error) { var ociResponse common.OCIResponse @@ -2425,7 +3048,7 @@ func (client ComputeClient) getAppCatalogListingAgreements(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListingResourceVersion.go.html to see an example of how to use GetAppCatalogListingResourceVersion API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListingResourceVersion.go.html to see an example of how to use GetAppCatalogListingResourceVersion API. // A default retry strategy applies to this operation GetAppCatalogListingResourceVersion() func (client ComputeClient) GetAppCatalogListingResourceVersion(ctx context.Context, request GetAppCatalogListingResourceVersionRequest) (response GetAppCatalogListingResourceVersionResponse, err error) { var ociResponse common.OCIResponse @@ -2483,7 +3106,7 @@ func (client ComputeClient) getAppCatalogListingResourceVersion(ctx context.Cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeAttachment.go.html to see an example of how to use GetBootVolumeAttachment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeAttachment.go.html to see an example of how to use GetBootVolumeAttachment API. func (client ComputeClient) GetBootVolumeAttachment(ctx context.Context, request GetBootVolumeAttachmentRequest) (response GetBootVolumeAttachmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2540,7 +3163,7 @@ func (client ComputeClient) getBootVolumeAttachment(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCapacityReservation.go.html to see an example of how to use GetComputeCapacityReservation API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCapacityReservation.go.html to see an example of how to use GetComputeCapacityReservation API. func (client ComputeClient) GetComputeCapacityReservation(ctx context.Context, request GetComputeCapacityReservationRequest) (response GetComputeCapacityReservationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2597,7 +3220,7 @@ func (client ComputeClient) getComputeCapacityReservation(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCapacityTopology.go.html to see an example of how to use GetComputeCapacityTopology API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCapacityTopology.go.html to see an example of how to use GetComputeCapacityTopology API. // A default retry strategy applies to this operation GetComputeCapacityTopology() func (client ComputeClient) GetComputeCapacityTopology(ctx context.Context, request GetComputeCapacityTopologyRequest) (response GetComputeCapacityTopologyResponse, err error) { var ociResponse common.OCIResponse @@ -2651,12 +3274,12 @@ func (client ComputeClient) getComputeCapacityTopology(ctx context.Context, requ return response, err } -// GetComputeCluster Gets information about a compute cluster. A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) +// GetComputeCluster Gets information about a compute cluster. A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) // is a remote direct memory access (RDMA) network group. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCluster.go.html to see an example of how to use GetComputeCluster API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCluster.go.html to see an example of how to use GetComputeCluster API. func (client ComputeClient) GetComputeCluster(ctx context.Context, request GetComputeClusterRequest) (response GetComputeClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2713,7 +3336,7 @@ func (client ComputeClient) getComputeCluster(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGlobalImageCapabilitySchema.go.html to see an example of how to use GetComputeGlobalImageCapabilitySchema API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGlobalImageCapabilitySchema.go.html to see an example of how to use GetComputeGlobalImageCapabilitySchema API. // A default retry strategy applies to this operation GetComputeGlobalImageCapabilitySchema() func (client ComputeClient) GetComputeGlobalImageCapabilitySchema(ctx context.Context, request GetComputeGlobalImageCapabilitySchemaRequest) (response GetComputeGlobalImageCapabilitySchemaResponse, err error) { var ociResponse common.OCIResponse @@ -2771,7 +3394,7 @@ func (client ComputeClient) getComputeGlobalImageCapabilitySchema(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGlobalImageCapabilitySchemaVersion.go.html to see an example of how to use GetComputeGlobalImageCapabilitySchemaVersion API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGlobalImageCapabilitySchemaVersion.go.html to see an example of how to use GetComputeGlobalImageCapabilitySchemaVersion API. // A default retry strategy applies to this operation GetComputeGlobalImageCapabilitySchemaVersion() func (client ComputeClient) GetComputeGlobalImageCapabilitySchemaVersion(ctx context.Context, request GetComputeGlobalImageCapabilitySchemaVersionRequest) (response GetComputeGlobalImageCapabilitySchemaVersionResponse, err error) { var ociResponse common.OCIResponse @@ -2825,37 +3448,268 @@ func (client ComputeClient) getComputeGlobalImageCapabilitySchemaVersion(ctx con return response, err } -// GetComputeImageCapabilitySchema Gets the specified Compute Image Capability Schema +// GetComputeGpuMemoryCluster Gets information about the specified compute GPU memory cluster // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeImageCapabilitySchema.go.html to see an example of how to use GetComputeImageCapabilitySchema API. -// A default retry strategy applies to this operation GetComputeImageCapabilitySchema() -func (client ComputeClient) GetComputeImageCapabilitySchema(ctx context.Context, request GetComputeImageCapabilitySchemaRequest) (response GetComputeImageCapabilitySchemaResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGpuMemoryCluster.go.html to see an example of how to use GetComputeGpuMemoryCluster API. +func (client ComputeClient) GetComputeGpuMemoryCluster(ctx context.Context, request GetComputeGpuMemoryClusterRequest) (response GetComputeGpuMemoryClusterResponse, err error) { var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() + policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getComputeImageCapabilitySchema, policy) + ociResponse, err = common.Retry(ctx, request, client.getComputeGpuMemoryCluster, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetComputeImageCapabilitySchemaResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetComputeGpuMemoryClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetComputeImageCapabilitySchemaResponse{} + response = GetComputeGpuMemoryClusterResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetComputeImageCapabilitySchemaResponse); ok { + if convertedResponse, ok := ociResponse.(GetComputeGpuMemoryClusterResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetComputeImageCapabilitySchemaResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetComputeGpuMemoryClusterResponse") + } + return +} + +// getComputeGpuMemoryCluster implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) getComputeGpuMemoryCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGpuMemoryClusters/{computeGpuMemoryClusterId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetComputeGpuMemoryClusterResponse + 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/ComputeGpuMemoryCluster/GetComputeGpuMemoryCluster" + err = common.PostProcessServiceError(err, "Compute", "GetComputeGpuMemoryCluster", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetComputeGpuMemoryFabric Gets information about the specified compute GPU memory fabric +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGpuMemoryFabric.go.html to see an example of how to use GetComputeGpuMemoryFabric API. +// A default retry strategy applies to this operation GetComputeGpuMemoryFabric() +func (client ComputeClient) GetComputeGpuMemoryFabric(ctx context.Context, request GetComputeGpuMemoryFabricRequest) (response GetComputeGpuMemoryFabricResponse, 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.getComputeGpuMemoryFabric, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetComputeGpuMemoryFabricResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetComputeGpuMemoryFabricResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetComputeGpuMemoryFabricResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetComputeGpuMemoryFabricResponse") + } + return +} + +// getComputeGpuMemoryFabric implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) getComputeGpuMemoryFabric(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGpuMemoryFabrics/{computeGpuMemoryFabricId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetComputeGpuMemoryFabricResponse + 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/ComputeGpuMemoryFabric/GetComputeGpuMemoryFabric" + err = common.PostProcessServiceError(err, "Compute", "GetComputeGpuMemoryFabric", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetComputeHost Gets information about the specified compute host +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeHost.go.html to see an example of how to use GetComputeHost API. +// A default retry strategy applies to this operation GetComputeHost() +func (client ComputeClient) GetComputeHost(ctx context.Context, request GetComputeHostRequest) (response GetComputeHostResponse, 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.getComputeHost, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetComputeHostResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetComputeHostResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetComputeHostResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetComputeHostResponse") + } + return +} + +// getComputeHost implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) getComputeHost(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeHosts/{computeHostId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetComputeHostResponse + 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/ComputeHost/GetComputeHost" + err = common.PostProcessServiceError(err, "Compute", "GetComputeHost", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetComputeHostGroup Gets information about the specified compute host group +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeHostGroup.go.html to see an example of how to use GetComputeHostGroup API. +// A default retry strategy applies to this operation GetComputeHostGroup() +func (client ComputeClient) GetComputeHostGroup(ctx context.Context, request GetComputeHostGroupRequest) (response GetComputeHostGroupResponse, 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.getComputeHostGroup, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetComputeHostGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetComputeHostGroupResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetComputeHostGroupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetComputeHostGroupResponse") + } + return +} + +// getComputeHostGroup implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) getComputeHostGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeHostGroups/{computeHostGroupId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetComputeHostGroupResponse + 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/ComputeHostGroup/GetComputeHostGroup" + err = common.PostProcessServiceError(err, "Compute", "GetComputeHostGroup", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetComputeImageCapabilitySchema Gets the specified Compute Image Capability Schema +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeImageCapabilitySchema.go.html to see an example of how to use GetComputeImageCapabilitySchema API. +// A default retry strategy applies to this operation GetComputeImageCapabilitySchema() +func (client ComputeClient) GetComputeImageCapabilitySchema(ctx context.Context, request GetComputeImageCapabilitySchemaRequest) (response GetComputeImageCapabilitySchemaResponse, 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.getComputeImageCapabilitySchema, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetComputeImageCapabilitySchemaResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetComputeImageCapabilitySchemaResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetComputeImageCapabilitySchemaResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetComputeImageCapabilitySchemaResponse") } return } @@ -2889,7 +3743,7 @@ func (client ComputeClient) getComputeImageCapabilitySchema(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetConsoleHistory.go.html to see an example of how to use GetConsoleHistory API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetConsoleHistory.go.html to see an example of how to use GetConsoleHistory API. func (client ComputeClient) GetConsoleHistory(ctx context.Context, request GetConsoleHistoryRequest) (response GetConsoleHistoryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2948,7 +3802,7 @@ func (client ComputeClient) getConsoleHistory(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetConsoleHistoryContent.go.html to see an example of how to use GetConsoleHistoryContent API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetConsoleHistoryContent.go.html to see an example of how to use GetConsoleHistoryContent API. func (client ComputeClient) GetConsoleHistoryContent(ctx context.Context, request GetConsoleHistoryContentRequest) (response GetConsoleHistoryContentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3005,7 +3859,7 @@ func (client ComputeClient) getConsoleHistoryContent(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDedicatedVmHost.go.html to see an example of how to use GetDedicatedVmHost API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDedicatedVmHost.go.html to see an example of how to use GetDedicatedVmHost API. func (client ComputeClient) GetDedicatedVmHost(ctx context.Context, request GetDedicatedVmHostRequest) (response GetDedicatedVmHostResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3062,7 +3916,7 @@ func (client ComputeClient) getDedicatedVmHost(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetImage.go.html to see an example of how to use GetImage API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetImage.go.html to see an example of how to use GetImage API. // A default retry strategy applies to this operation GetImage() func (client ComputeClient) GetImage(ctx context.Context, request GetImageRequest) (response GetImageResponse, err error) { var ociResponse common.OCIResponse @@ -3120,7 +3974,7 @@ func (client ComputeClient) getImage(ctx context.Context, request common.OCIRequ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetImageShapeCompatibilityEntry.go.html to see an example of how to use GetImageShapeCompatibilityEntry API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetImageShapeCompatibilityEntry.go.html to see an example of how to use GetImageShapeCompatibilityEntry API. // A default retry strategy applies to this operation GetImageShapeCompatibilityEntry() func (client ComputeClient) GetImageShapeCompatibilityEntry(ctx context.Context, request GetImageShapeCompatibilityEntryRequest) (response GetImageShapeCompatibilityEntryResponse, err error) { var ociResponse common.OCIResponse @@ -3180,7 +4034,7 @@ func (client ComputeClient) getImageShapeCompatibilityEntry(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstance.go.html to see an example of how to use GetInstance API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstance.go.html to see an example of how to use GetInstance API. func (client ComputeClient) GetInstance(ctx context.Context, request GetInstanceRequest) (response GetInstanceResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3237,7 +4091,7 @@ func (client ComputeClient) getInstance(ctx context.Context, request common.OCIR // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceConsoleConnection.go.html to see an example of how to use GetInstanceConsoleConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceConsoleConnection.go.html to see an example of how to use GetInstanceConsoleConnection API. func (client ComputeClient) GetInstanceConsoleConnection(ctx context.Context, request GetInstanceConsoleConnectionRequest) (response GetInstanceConsoleConnectionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3294,7 +4148,7 @@ func (client ComputeClient) getInstanceConsoleConnection(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceMaintenanceEvent.go.html to see an example of how to use GetInstanceMaintenanceEvent API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceMaintenanceEvent.go.html to see an example of how to use GetInstanceMaintenanceEvent API. func (client ComputeClient) GetInstanceMaintenanceEvent(ctx context.Context, request GetInstanceMaintenanceEventRequest) (response GetInstanceMaintenanceEventResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3348,11 +4202,11 @@ func (client ComputeClient) getInstanceMaintenanceEvent(ctx context.Context, req } // 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). +// Infrastructure Maintenance (https://docs.oracle.com/iaas/Content/Compute/References/infrastructure-maintenance.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceMaintenanceReboot.go.html to see an example of how to use GetInstanceMaintenanceReboot API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceMaintenanceReboot.go.html to see an example of how to use GetInstanceMaintenanceReboot API. func (client ComputeClient) GetInstanceMaintenanceReboot(ctx context.Context, request GetInstanceMaintenanceRebootRequest) (response GetInstanceMaintenanceRebootResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3409,7 +4263,7 @@ func (client ComputeClient) getInstanceMaintenanceReboot(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetMeasuredBootReport.go.html to see an example of how to use GetMeasuredBootReport API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetMeasuredBootReport.go.html to see an example of how to use GetMeasuredBootReport API. func (client ComputeClient) GetMeasuredBootReport(ctx context.Context, request GetMeasuredBootReportRequest) (response GetMeasuredBootReportResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3466,7 +4320,7 @@ func (client ComputeClient) getMeasuredBootReport(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVnicAttachment.go.html to see an example of how to use GetVnicAttachment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVnicAttachment.go.html to see an example of how to use GetVnicAttachment API. func (client ComputeClient) GetVnicAttachment(ctx context.Context, request GetVnicAttachmentRequest) (response GetVnicAttachmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3523,7 +4377,7 @@ func (client ComputeClient) getVnicAttachment(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeAttachment.go.html to see an example of how to use GetVolumeAttachment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeAttachment.go.html to see an example of how to use GetVolumeAttachment API. func (client ComputeClient) GetVolumeAttachment(ctx context.Context, request GetVolumeAttachmentRequest) (response GetVolumeAttachmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3581,7 +4435,7 @@ func (client ComputeClient) getVolumeAttachment(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetWindowsInstanceInitialCredentials.go.html to see an example of how to use GetWindowsInstanceInitialCredentials API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetWindowsInstanceInitialCredentials.go.html to see an example of how to use GetWindowsInstanceInitialCredentials API. func (client ComputeClient) GetWindowsInstanceInitialCredentials(ctx context.Context, request GetWindowsInstanceInitialCredentialsRequest) (response GetWindowsInstanceInitialCredentialsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3652,23 +4506,23 @@ func (client ComputeClient) getWindowsInstanceInitialCredentials(ctx context.Con // 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 // the crash. After the OS restarts, you can analyze the crash dump to diagnose the issue. For more information, see -// Sending a Diagnostic Interrupt (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/sendingdiagnosticinterrupt.htm). +// Sending a Diagnostic Interrupt (https://docs.oracle.com/iaas/Content/Compute/Tasks/sendingdiagnosticinterrupt.htm). // // - **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). +// correctly, and try other troubleshooting steps (https://docs.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). +// For more information, see Performing a Diagnostic Reboot (https://docs.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). +// Infrastructure Maintenance (https://docs.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). +// Stopping and Starting an Instance (https://docs.oracle.com/iaas/Content/Compute/Tasks/restartinginstance.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/InstanceAction.go.html to see an example of how to use InstanceAction API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/InstanceAction.go.html to see an example of how to use InstanceAction API. func (client ComputeClient) InstanceAction(ctx context.Context, request InstanceActionRequest) (response InstanceActionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3728,11 +4582,11 @@ func (client ComputeClient) instanceAction(ctx context.Context, request common.O // LaunchInstance Creates a new instance in the specified compartment and the specified availability domain. // For general information about instances, see -// Overview of the Compute Service (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm). +// Overview of the Compute Service (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm). // For information about access control and compartments, see -// Overview of the IAM Service (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). // For information about availability domains, see -// Regions and Availability Domains (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm). +// Regions and Availability Domains (https://docs.oracle.com/iaas/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 instances, get an Oracle-assigned, @@ -3750,7 +4604,7 @@ func (client ComputeClient) instanceAction(ctx context.Context, request common.O // operation to get the VNIC ID for the instance, and then call // GetVnic with the VNIC ID. // You can later add secondary VNICs to an instance. For more information, see -// Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). +// Virtual Network Interface Cards (VNICs) (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). // To launch an instance from a Marketplace image listing, you must provide the image ID of the // listing resource version that you want, but you also must subscribe to the listing before you try // to launch the instance. To subscribe to the listing, use the GetAppCatalogListingAgreements @@ -3769,7 +4623,7 @@ func (client ComputeClient) instanceAction(ctx context.Context, request common.O // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/LaunchInstance.go.html to see an example of how to use LaunchInstance API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/LaunchInstance.go.html to see an example of how to use LaunchInstance API. func (client ComputeClient) LaunchInstance(ctx context.Context, request LaunchInstanceRequest) (response LaunchInstanceResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3831,7 +4685,7 @@ func (client ComputeClient) launchInstance(ctx context.Context, request common.O // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogListingResourceVersions.go.html to see an example of how to use ListAppCatalogListingResourceVersions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogListingResourceVersions.go.html to see an example of how to use ListAppCatalogListingResourceVersions API. // A default retry strategy applies to this operation ListAppCatalogListingResourceVersions() func (client ComputeClient) ListAppCatalogListingResourceVersions(ctx context.Context, request ListAppCatalogListingResourceVersionsRequest) (response ListAppCatalogListingResourceVersionsResponse, err error) { var ociResponse common.OCIResponse @@ -3889,7 +4743,7 @@ func (client ComputeClient) listAppCatalogListingResourceVersions(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogListings.go.html to see an example of how to use ListAppCatalogListings API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogListings.go.html to see an example of how to use ListAppCatalogListings API. // A default retry strategy applies to this operation ListAppCatalogListings() func (client ComputeClient) ListAppCatalogListings(ctx context.Context, request ListAppCatalogListingsRequest) (response ListAppCatalogListingsResponse, err error) { var ociResponse common.OCIResponse @@ -3947,7 +4801,7 @@ func (client ComputeClient) listAppCatalogListings(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogSubscriptions.go.html to see an example of how to use ListAppCatalogSubscriptions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogSubscriptions.go.html to see an example of how to use ListAppCatalogSubscriptions API. // A default retry strategy applies to this operation ListAppCatalogSubscriptions() func (client ComputeClient) ListAppCatalogSubscriptions(ctx context.Context, request ListAppCatalogSubscriptionsRequest) (response ListAppCatalogSubscriptionsResponse, err error) { var ociResponse common.OCIResponse @@ -4006,7 +4860,7 @@ func (client ComputeClient) listAppCatalogSubscriptions(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeAttachments.go.html to see an example of how to use ListBootVolumeAttachments API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeAttachments.go.html to see an example of how to use ListBootVolumeAttachments API. func (client ComputeClient) ListBootVolumeAttachments(ctx context.Context, request ListBootVolumeAttachmentsRequest) (response ListBootVolumeAttachmentsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4063,7 +4917,7 @@ func (client ComputeClient) listBootVolumeAttachments(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservationInstanceShapes.go.html to see an example of how to use ListComputeCapacityReservationInstanceShapes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservationInstanceShapes.go.html to see an example of how to use ListComputeCapacityReservationInstanceShapes API. func (client ComputeClient) ListComputeCapacityReservationInstanceShapes(ctx context.Context, request ListComputeCapacityReservationInstanceShapesRequest) (response ListComputeCapacityReservationInstanceShapesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4120,7 +4974,7 @@ func (client ComputeClient) listComputeCapacityReservationInstanceShapes(ctx con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservationInstances.go.html to see an example of how to use ListComputeCapacityReservationInstances API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservationInstances.go.html to see an example of how to use ListComputeCapacityReservationInstances API. func (client ComputeClient) ListComputeCapacityReservationInstances(ctx context.Context, request ListComputeCapacityReservationInstancesRequest) (response ListComputeCapacityReservationInstancesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4179,7 +5033,7 @@ func (client ComputeClient) listComputeCapacityReservationInstances(ctx context. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservations.go.html to see an example of how to use ListComputeCapacityReservations API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservations.go.html to see an example of how to use ListComputeCapacityReservations API. func (client ComputeClient) ListComputeCapacityReservations(ctx context.Context, request ListComputeCapacityReservationsRequest) (response ListComputeCapacityReservationsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4237,7 +5091,7 @@ func (client ComputeClient) listComputeCapacityReservations(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologies.go.html to see an example of how to use ListComputeCapacityTopologies API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologies.go.html to see an example of how to use ListComputeCapacityTopologies API. // A default retry strategy applies to this operation ListComputeCapacityTopologies() func (client ComputeClient) ListComputeCapacityTopologies(ctx context.Context, request ListComputeCapacityTopologiesRequest) (response ListComputeCapacityTopologiesResponse, err error) { var ociResponse common.OCIResponse @@ -4295,7 +5149,7 @@ func (client ComputeClient) listComputeCapacityTopologies(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeBareMetalHosts.go.html to see an example of how to use ListComputeCapacityTopologyComputeBareMetalHosts API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeBareMetalHosts.go.html to see an example of how to use ListComputeCapacityTopologyComputeBareMetalHosts API. // A default retry strategy applies to this operation ListComputeCapacityTopologyComputeBareMetalHosts() func (client ComputeClient) ListComputeCapacityTopologyComputeBareMetalHosts(ctx context.Context, request ListComputeCapacityTopologyComputeBareMetalHostsRequest) (response ListComputeCapacityTopologyComputeBareMetalHostsResponse, err error) { var ociResponse common.OCIResponse @@ -4353,7 +5207,7 @@ func (client ComputeClient) listComputeCapacityTopologyComputeBareMetalHosts(ctx // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeHpcIslands.go.html to see an example of how to use ListComputeCapacityTopologyComputeHpcIslands API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeHpcIslands.go.html to see an example of how to use ListComputeCapacityTopologyComputeHpcIslands API. // A default retry strategy applies to this operation ListComputeCapacityTopologyComputeHpcIslands() func (client ComputeClient) ListComputeCapacityTopologyComputeHpcIslands(ctx context.Context, request ListComputeCapacityTopologyComputeHpcIslandsRequest) (response ListComputeCapacityTopologyComputeHpcIslandsResponse, err error) { var ociResponse common.OCIResponse @@ -4379,27 +5233,317 @@ func (client ComputeClient) ListComputeCapacityTopologyComputeHpcIslands(ctx con if convertedResponse, ok := ociResponse.(ListComputeCapacityTopologyComputeHpcIslandsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListComputeCapacityTopologyComputeHpcIslandsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListComputeCapacityTopologyComputeHpcIslandsResponse") + } + return +} + +// listComputeCapacityTopologyComputeHpcIslands implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listComputeCapacityTopologyComputeHpcIslands(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeCapacityTopologies/{computeCapacityTopologyId}/computeHpcIslands", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListComputeCapacityTopologyComputeHpcIslandsResponse + 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/ComputeHpcIsland/ListComputeCapacityTopologyComputeHpcIslands" + err = common.PostProcessServiceError(err, "Compute", "ListComputeCapacityTopologyComputeHpcIslands", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListComputeCapacityTopologyComputeNetworkBlocks Lists compute network blocks in the specified compute capacity topology. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeNetworkBlocks.go.html to see an example of how to use ListComputeCapacityTopologyComputeNetworkBlocks API. +// A default retry strategy applies to this operation ListComputeCapacityTopologyComputeNetworkBlocks() +func (client ComputeClient) ListComputeCapacityTopologyComputeNetworkBlocks(ctx context.Context, request ListComputeCapacityTopologyComputeNetworkBlocksRequest) (response ListComputeCapacityTopologyComputeNetworkBlocksResponse, 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.listComputeCapacityTopologyComputeNetworkBlocks, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListComputeCapacityTopologyComputeNetworkBlocksResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListComputeCapacityTopologyComputeNetworkBlocksResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListComputeCapacityTopologyComputeNetworkBlocksResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListComputeCapacityTopologyComputeNetworkBlocksResponse") + } + return +} + +// listComputeCapacityTopologyComputeNetworkBlocks implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listComputeCapacityTopologyComputeNetworkBlocks(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeCapacityTopologies/{computeCapacityTopologyId}/computeNetworkBlocks", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListComputeCapacityTopologyComputeNetworkBlocksResponse + 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/ComputeNetworkBlock/ListComputeCapacityTopologyComputeNetworkBlocks" + err = common.PostProcessServiceError(err, "Compute", "ListComputeCapacityTopologyComputeNetworkBlocks", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListComputeClusters Lists the compute clusters in the specified compartment. +// A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory access (RDMA) network group. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeClusters.go.html to see an example of how to use ListComputeClusters API. +func (client ComputeClient) ListComputeClusters(ctx context.Context, request ListComputeClustersRequest) (response ListComputeClustersResponse, 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.listComputeClusters, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListComputeClustersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListComputeClustersResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListComputeClustersResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListComputeClustersResponse") + } + return +} + +// listComputeClusters implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listComputeClusters(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeClusters", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListComputeClustersResponse + 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/ComputeCluster/ListComputeClusters" + err = common.PostProcessServiceError(err, "Compute", "ListComputeClusters", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListComputeGlobalImageCapabilitySchemaVersions Lists Compute Global Image Capability Schema versions in the specified compartment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGlobalImageCapabilitySchemaVersions.go.html to see an example of how to use ListComputeGlobalImageCapabilitySchemaVersions API. +// A default retry strategy applies to this operation ListComputeGlobalImageCapabilitySchemaVersions() +func (client ComputeClient) ListComputeGlobalImageCapabilitySchemaVersions(ctx context.Context, request ListComputeGlobalImageCapabilitySchemaVersionsRequest) (response ListComputeGlobalImageCapabilitySchemaVersionsResponse, 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.listComputeGlobalImageCapabilitySchemaVersions, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListComputeGlobalImageCapabilitySchemaVersionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListComputeGlobalImageCapabilitySchemaVersionsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListComputeGlobalImageCapabilitySchemaVersionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListComputeGlobalImageCapabilitySchemaVersionsResponse") + } + return +} + +// listComputeGlobalImageCapabilitySchemaVersions implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listComputeGlobalImageCapabilitySchemaVersions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGlobalImageCapabilitySchemas/{computeGlobalImageCapabilitySchemaId}/versions", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListComputeGlobalImageCapabilitySchemaVersionsResponse + 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/ComputeGlobalImageCapabilitySchemaVersionSummary/ListComputeGlobalImageCapabilitySchemaVersions" + err = common.PostProcessServiceError(err, "Compute", "ListComputeGlobalImageCapabilitySchemaVersions", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListComputeGlobalImageCapabilitySchemas Lists Compute Global Image Capability Schema in the specified compartment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGlobalImageCapabilitySchemas.go.html to see an example of how to use ListComputeGlobalImageCapabilitySchemas API. +// A default retry strategy applies to this operation ListComputeGlobalImageCapabilitySchemas() +func (client ComputeClient) ListComputeGlobalImageCapabilitySchemas(ctx context.Context, request ListComputeGlobalImageCapabilitySchemasRequest) (response ListComputeGlobalImageCapabilitySchemasResponse, 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.listComputeGlobalImageCapabilitySchemas, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListComputeGlobalImageCapabilitySchemasResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListComputeGlobalImageCapabilitySchemasResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListComputeGlobalImageCapabilitySchemasResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListComputeGlobalImageCapabilitySchemasResponse") + } + return +} + +// listComputeGlobalImageCapabilitySchemas implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listComputeGlobalImageCapabilitySchemas(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGlobalImageCapabilitySchemas", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListComputeGlobalImageCapabilitySchemasResponse + 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/ComputeGlobalImageCapabilitySchemaSummary/ListComputeGlobalImageCapabilitySchemas" + err = common.PostProcessServiceError(err, "Compute", "ListComputeGlobalImageCapabilitySchemas", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListComputeGpuMemoryClusterInstances List all of the GPU memory cluster instances. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGpuMemoryClusterInstances.go.html to see an example of how to use ListComputeGpuMemoryClusterInstances API. +// A default retry strategy applies to this operation ListComputeGpuMemoryClusterInstances() +func (client ComputeClient) ListComputeGpuMemoryClusterInstances(ctx context.Context, request ListComputeGpuMemoryClusterInstancesRequest) (response ListComputeGpuMemoryClusterInstancesResponse, 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.listComputeGpuMemoryClusterInstances, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListComputeGpuMemoryClusterInstancesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListComputeGpuMemoryClusterInstancesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListComputeGpuMemoryClusterInstancesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListComputeGpuMemoryClusterInstancesResponse") } return } -// listComputeCapacityTopologyComputeHpcIslands implements the OCIOperation interface (enables retrying operations) -func (client ComputeClient) listComputeCapacityTopologyComputeHpcIslands(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listComputeGpuMemoryClusterInstances implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listComputeGpuMemoryClusterInstances(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeCapacityTopologies/{computeCapacityTopologyId}/computeHpcIslands", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGpuMemoryClusters/{computeGpuMemoryClusterId}/instances", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListComputeCapacityTopologyComputeHpcIslandsResponse + var response ListComputeGpuMemoryClusterInstancesResponse 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/ComputeHpcIsland/ListComputeCapacityTopologyComputeHpcIslands" - err = common.PostProcessServiceError(err, "Compute", "ListComputeCapacityTopologyComputeHpcIslands", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryClusterInstanceSummary/ListComputeGpuMemoryClusterInstances" + err = common.PostProcessServiceError(err, "Compute", "ListComputeGpuMemoryClusterInstances", apiReferenceLink) return response, err } @@ -4407,13 +5551,13 @@ func (client ComputeClient) listComputeCapacityTopologyComputeHpcIslands(ctx con return response, err } -// ListComputeCapacityTopologyComputeNetworkBlocks Lists compute network blocks in the specified compute capacity topology. +// ListComputeGpuMemoryClusters List all of the compute GPU memory clusters. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeNetworkBlocks.go.html to see an example of how to use ListComputeCapacityTopologyComputeNetworkBlocks API. -// A default retry strategy applies to this operation ListComputeCapacityTopologyComputeNetworkBlocks() -func (client ComputeClient) ListComputeCapacityTopologyComputeNetworkBlocks(ctx context.Context, request ListComputeCapacityTopologyComputeNetworkBlocksRequest) (response ListComputeCapacityTopologyComputeNetworkBlocksResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGpuMemoryClusters.go.html to see an example of how to use ListComputeGpuMemoryClusters API. +// A default retry strategy applies to this operation ListComputeGpuMemoryClusters() +func (client ComputeClient) ListComputeGpuMemoryClusters(ctx context.Context, request ListComputeGpuMemoryClustersRequest) (response ListComputeGpuMemoryClustersResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4422,42 +5566,42 @@ func (client ComputeClient) ListComputeCapacityTopologyComputeNetworkBlocks(ctx if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listComputeCapacityTopologyComputeNetworkBlocks, policy) + ociResponse, err = common.Retry(ctx, request, client.listComputeGpuMemoryClusters, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListComputeCapacityTopologyComputeNetworkBlocksResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListComputeGpuMemoryClustersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListComputeCapacityTopologyComputeNetworkBlocksResponse{} + response = ListComputeGpuMemoryClustersResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListComputeCapacityTopologyComputeNetworkBlocksResponse); ok { + if convertedResponse, ok := ociResponse.(ListComputeGpuMemoryClustersResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListComputeCapacityTopologyComputeNetworkBlocksResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListComputeGpuMemoryClustersResponse") } return } -// listComputeCapacityTopologyComputeNetworkBlocks implements the OCIOperation interface (enables retrying operations) -func (client ComputeClient) listComputeCapacityTopologyComputeNetworkBlocks(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listComputeGpuMemoryClusters implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listComputeGpuMemoryClusters(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeCapacityTopologies/{computeCapacityTopologyId}/computeNetworkBlocks", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGpuMemoryClusters", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListComputeCapacityTopologyComputeNetworkBlocksResponse + var response ListComputeGpuMemoryClustersResponse 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/ComputeNetworkBlock/ListComputeCapacityTopologyComputeNetworkBlocks" - err = common.PostProcessServiceError(err, "Compute", "ListComputeCapacityTopologyComputeNetworkBlocks", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryCluster/ListComputeGpuMemoryClusters" + err = common.PostProcessServiceError(err, "Compute", "ListComputeGpuMemoryClusters", apiReferenceLink) return response, err } @@ -4465,57 +5609,57 @@ func (client ComputeClient) listComputeCapacityTopologyComputeNetworkBlocks(ctx return response, err } -// 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. +// ListComputeGpuMemoryFabrics Lists the compute GPU memory fabrics that match the specified criteria and compartmentId. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeClusters.go.html to see an example of how to use ListComputeClusters API. -func (client ComputeClient) ListComputeClusters(ctx context.Context, request ListComputeClustersRequest) (response ListComputeClustersResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGpuMemoryFabrics.go.html to see an example of how to use ListComputeGpuMemoryFabrics API. +// A default retry strategy applies to this operation ListComputeGpuMemoryFabrics() +func (client ComputeClient) ListComputeGpuMemoryFabrics(ctx context.Context, request ListComputeGpuMemoryFabricsRequest) (response ListComputeGpuMemoryFabricsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listComputeClusters, policy) + ociResponse, err = common.Retry(ctx, request, client.listComputeGpuMemoryFabrics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListComputeClustersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListComputeGpuMemoryFabricsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListComputeClustersResponse{} + response = ListComputeGpuMemoryFabricsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListComputeClustersResponse); ok { + if convertedResponse, ok := ociResponse.(ListComputeGpuMemoryFabricsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListComputeClustersResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListComputeGpuMemoryFabricsResponse") } return } -// listComputeClusters implements the OCIOperation interface (enables retrying operations) -func (client ComputeClient) listComputeClusters(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listComputeGpuMemoryFabrics implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listComputeGpuMemoryFabrics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeClusters", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGpuMemoryFabrics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListComputeClustersResponse + var response ListComputeGpuMemoryFabricsResponse 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/ComputeCluster/ListComputeClusters" - err = common.PostProcessServiceError(err, "Compute", "ListComputeClusters", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryFabric/ListComputeGpuMemoryFabrics" + err = common.PostProcessServiceError(err, "Compute", "ListComputeGpuMemoryFabrics", apiReferenceLink) return response, err } @@ -4523,13 +5667,13 @@ func (client ComputeClient) listComputeClusters(ctx context.Context, request com return response, err } -// ListComputeGlobalImageCapabilitySchemaVersions Lists Compute Global Image Capability Schema versions in the specified compartment. +// ListComputeHostGroups Lists the compute host groups that match the specified criteria and compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGlobalImageCapabilitySchemaVersions.go.html to see an example of how to use ListComputeGlobalImageCapabilitySchemaVersions API. -// A default retry strategy applies to this operation ListComputeGlobalImageCapabilitySchemaVersions() -func (client ComputeClient) ListComputeGlobalImageCapabilitySchemaVersions(ctx context.Context, request ListComputeGlobalImageCapabilitySchemaVersionsRequest) (response ListComputeGlobalImageCapabilitySchemaVersionsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeHostGroups.go.html to see an example of how to use ListComputeHostGroups API. +// A default retry strategy applies to this operation ListComputeHostGroups() +func (client ComputeClient) ListComputeHostGroups(ctx context.Context, request ListComputeHostGroupsRequest) (response ListComputeHostGroupsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4538,42 +5682,42 @@ func (client ComputeClient) ListComputeGlobalImageCapabilitySchemaVersions(ctx c if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listComputeGlobalImageCapabilitySchemaVersions, policy) + ociResponse, err = common.Retry(ctx, request, client.listComputeHostGroups, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListComputeGlobalImageCapabilitySchemaVersionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListComputeHostGroupsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListComputeGlobalImageCapabilitySchemaVersionsResponse{} + response = ListComputeHostGroupsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListComputeGlobalImageCapabilitySchemaVersionsResponse); ok { + if convertedResponse, ok := ociResponse.(ListComputeHostGroupsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListComputeGlobalImageCapabilitySchemaVersionsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListComputeHostGroupsResponse") } return } -// listComputeGlobalImageCapabilitySchemaVersions implements the OCIOperation interface (enables retrying operations) -func (client ComputeClient) listComputeGlobalImageCapabilitySchemaVersions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listComputeHostGroups implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listComputeHostGroups(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGlobalImageCapabilitySchemas/{computeGlobalImageCapabilitySchemaId}/versions", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeHostGroups", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListComputeGlobalImageCapabilitySchemaVersionsResponse + var response ListComputeHostGroupsResponse 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/ComputeGlobalImageCapabilitySchemaVersionSummary/ListComputeGlobalImageCapabilitySchemaVersions" - err = common.PostProcessServiceError(err, "Compute", "ListComputeGlobalImageCapabilitySchemaVersions", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHostGroup/ListComputeHostGroups" + err = common.PostProcessServiceError(err, "Compute", "ListComputeHostGroups", apiReferenceLink) return response, err } @@ -4581,13 +5725,13 @@ func (client ComputeClient) listComputeGlobalImageCapabilitySchemaVersions(ctx c return response, err } -// ListComputeGlobalImageCapabilitySchemas Lists Compute Global Image Capability Schema in the specified compartment. +// ListComputeHosts Generates a list of summary host details // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGlobalImageCapabilitySchemas.go.html to see an example of how to use ListComputeGlobalImageCapabilitySchemas API. -// A default retry strategy applies to this operation ListComputeGlobalImageCapabilitySchemas() -func (client ComputeClient) ListComputeGlobalImageCapabilitySchemas(ctx context.Context, request ListComputeGlobalImageCapabilitySchemasRequest) (response ListComputeGlobalImageCapabilitySchemasResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeHosts.go.html to see an example of how to use ListComputeHosts API. +// A default retry strategy applies to this operation ListComputeHosts() +func (client ComputeClient) ListComputeHosts(ctx context.Context, request ListComputeHostsRequest) (response ListComputeHostsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4596,42 +5740,42 @@ func (client ComputeClient) ListComputeGlobalImageCapabilitySchemas(ctx context. if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listComputeGlobalImageCapabilitySchemas, policy) + ociResponse, err = common.Retry(ctx, request, client.listComputeHosts, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListComputeGlobalImageCapabilitySchemasResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListComputeHostsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListComputeGlobalImageCapabilitySchemasResponse{} + response = ListComputeHostsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListComputeGlobalImageCapabilitySchemasResponse); ok { + if convertedResponse, ok := ociResponse.(ListComputeHostsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListComputeGlobalImageCapabilitySchemasResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListComputeHostsResponse") } return } -// listComputeGlobalImageCapabilitySchemas implements the OCIOperation interface (enables retrying operations) -func (client ComputeClient) listComputeGlobalImageCapabilitySchemas(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listComputeHosts implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listComputeHosts(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGlobalImageCapabilitySchemas", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeHosts", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListComputeGlobalImageCapabilitySchemasResponse + var response ListComputeHostsResponse 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/ComputeGlobalImageCapabilitySchemaSummary/ListComputeGlobalImageCapabilitySchemas" - err = common.PostProcessServiceError(err, "Compute", "ListComputeGlobalImageCapabilitySchemas", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/ListComputeHosts" + err = common.PostProcessServiceError(err, "Compute", "ListComputeHosts", apiReferenceLink) return response, err } @@ -4643,7 +5787,7 @@ func (client ComputeClient) listComputeGlobalImageCapabilitySchemas(ctx context. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeImageCapabilitySchemas.go.html to see an example of how to use ListComputeImageCapabilitySchemas API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeImageCapabilitySchemas.go.html to see an example of how to use ListComputeImageCapabilitySchemas API. // A default retry strategy applies to this operation ListComputeImageCapabilitySchemas() func (client ComputeClient) ListComputeImageCapabilitySchemas(ctx context.Context, request ListComputeImageCapabilitySchemasRequest) (response ListComputeImageCapabilitySchemasResponse, err error) { var ociResponse common.OCIResponse @@ -4701,7 +5845,7 @@ func (client ComputeClient) listComputeImageCapabilitySchemas(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListConsoleHistories.go.html to see an example of how to use ListConsoleHistories API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListConsoleHistories.go.html to see an example of how to use ListConsoleHistories API. func (client ComputeClient) ListConsoleHistories(ctx context.Context, request ListConsoleHistoriesRequest) (response ListConsoleHistoriesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4759,7 +5903,7 @@ func (client ComputeClient) listConsoleHistories(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostInstanceShapes.go.html to see an example of how to use ListDedicatedVmHostInstanceShapes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostInstanceShapes.go.html to see an example of how to use ListDedicatedVmHostInstanceShapes API. func (client ComputeClient) ListDedicatedVmHostInstanceShapes(ctx context.Context, request ListDedicatedVmHostInstanceShapesRequest) (response ListDedicatedVmHostInstanceShapesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4816,7 +5960,7 @@ func (client ComputeClient) listDedicatedVmHostInstanceShapes(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostInstances.go.html to see an example of how to use ListDedicatedVmHostInstances API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostInstances.go.html to see an example of how to use ListDedicatedVmHostInstances API. func (client ComputeClient) ListDedicatedVmHostInstances(ctx context.Context, request ListDedicatedVmHostInstancesRequest) (response ListDedicatedVmHostInstancesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4873,7 +6017,7 @@ func (client ComputeClient) listDedicatedVmHostInstances(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostShapes.go.html to see an example of how to use ListDedicatedVmHostShapes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostShapes.go.html to see an example of how to use ListDedicatedVmHostShapes API. func (client ComputeClient) ListDedicatedVmHostShapes(ctx context.Context, request ListDedicatedVmHostShapesRequest) (response ListDedicatedVmHostShapesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4932,7 +6076,7 @@ func (client ComputeClient) listDedicatedVmHostShapes(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHosts.go.html to see an example of how to use ListDedicatedVmHosts API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHosts.go.html to see an example of how to use ListDedicatedVmHosts API. func (client ComputeClient) ListDedicatedVmHosts(ctx context.Context, request ListDedicatedVmHostsRequest) (response ListDedicatedVmHostsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4989,7 +6133,7 @@ func (client ComputeClient) listDedicatedVmHosts(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListImageShapeCompatibilityEntries.go.html to see an example of how to use ListImageShapeCompatibilityEntries API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListImageShapeCompatibilityEntries.go.html to see an example of how to use ListImageShapeCompatibilityEntries API. // A default retry strategy applies to this operation ListImageShapeCompatibilityEntries() func (client ComputeClient) ListImageShapeCompatibilityEntries(ctx context.Context, request ListImageShapeCompatibilityEntriesRequest) (response ListImageShapeCompatibilityEntriesResponse, err error) { var ociResponse common.OCIResponse @@ -5044,8 +6188,8 @@ func (client ComputeClient) listImageShapeCompatibilityEntries(ctx context.Conte } // ListImages Lists a subset of images available in the specified compartment, including -// 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). +// platform images (https://docs.oracle.com/iaas/Content/Compute/References/images.htm) and +// custom images (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingcustomimages.htm). // The list of platform images includes the three most recently published versions // 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, @@ -5055,7 +6199,7 @@ func (client ComputeClient) listImageShapeCompatibilityEntries(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListImages.go.html to see an example of how to use ListImages API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListImages.go.html to see an example of how to use ListImages API. // A default retry strategy applies to this operation ListImages() func (client ComputeClient) ListImages(ctx context.Context, request ListImagesRequest) (response ListImagesResponse, err error) { var ociResponse common.OCIResponse @@ -5110,11 +6254,11 @@ func (client ComputeClient) listImages(ctx context.Context, request common.OCIRe } // ListInstanceConsoleConnections Lists the console connections for the specified compartment or instance. -// 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). +// For more information about instance console connections, see Troubleshooting Instances Using Instance Console Connections (https://docs.oracle.com/iaas/Content/Compute/References/serialconsole.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceConsoleConnections.go.html to see an example of how to use ListInstanceConsoleConnections API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceConsoleConnections.go.html to see an example of how to use ListInstanceConsoleConnections API. func (client ComputeClient) ListInstanceConsoleConnections(ctx context.Context, request ListInstanceConsoleConnectionsRequest) (response ListInstanceConsoleConnectionsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5171,7 +6315,7 @@ func (client ComputeClient) listInstanceConsoleConnections(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceDevices.go.html to see an example of how to use ListInstanceDevices API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceDevices.go.html to see an example of how to use ListInstanceDevices API. func (client ComputeClient) ListInstanceDevices(ctx context.Context, request ListInstanceDevicesRequest) (response ListInstanceDevicesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5224,11 +6368,11 @@ func (client ComputeClient) listInstanceDevices(ctx context.Context, request com return response, err } -// ListInstanceMaintenanceEvents Gets a list of all the maintenance events for the given instance. +// ListInstanceMaintenanceEvents Gets a list of all the maintenance events for the given compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceMaintenanceEvents.go.html to see an example of how to use ListInstanceMaintenanceEvents API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceMaintenanceEvents.go.html to see an example of how to use ListInstanceMaintenanceEvents API. func (client ComputeClient) ListInstanceMaintenanceEvents(ctx context.Context, request ListInstanceMaintenanceEventsRequest) (response ListInstanceMaintenanceEventsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5289,7 +6433,7 @@ func (client ComputeClient) listInstanceMaintenanceEvents(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstances.go.html to see an example of how to use ListInstances API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstances.go.html to see an example of how to use ListInstances API. func (client ComputeClient) ListInstances(ctx context.Context, request ListInstancesRequest) (response ListInstancesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5347,7 +6491,7 @@ func (client ComputeClient) listInstances(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListShapes.go.html to see an example of how to use ListShapes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListShapes.go.html to see an example of how to use ListShapes API. func (client ComputeClient) ListShapes(ctx context.Context, request ListShapesRequest) (response ListShapesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5406,7 +6550,7 @@ func (client ComputeClient) listShapes(ctx context.Context, request common.OCIRe // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVnicAttachments.go.html to see an example of how to use ListVnicAttachments API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVnicAttachments.go.html to see an example of how to use ListVnicAttachments API. func (client ComputeClient) ListVnicAttachments(ctx context.Context, request ListVnicAttachmentsRequest) (response ListVnicAttachmentsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5482,7 +6626,7 @@ func (m *listvolumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeAttachments.go.html to see an example of how to use ListVolumeAttachments API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeAttachments.go.html to see an example of how to use ListVolumeAttachments API. func (client ComputeClient) ListVolumeAttachments(ctx context.Context, request ListVolumeAttachmentsRequest) (response ListVolumeAttachmentsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5539,7 +6683,7 @@ func (client ComputeClient) listVolumeAttachments(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveImageShapeCompatibilityEntry.go.html to see an example of how to use RemoveImageShapeCompatibilityEntry API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveImageShapeCompatibilityEntry.go.html to see an example of how to use RemoveImageShapeCompatibilityEntry API. func (client ComputeClient) RemoveImageShapeCompatibilityEntry(ctx context.Context, request RemoveImageShapeCompatibilityEntryRequest) (response RemoveImageShapeCompatibilityEntryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5604,7 +6748,7 @@ func (client ComputeClient) removeImageShapeCompatibilityEntry(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateInstance.go.html to see an example of how to use TerminateInstance API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateInstance.go.html to see an example of how to use TerminateInstance API. func (client ComputeClient) TerminateInstance(ctx context.Context, request TerminateInstanceRequest) (response TerminateInstanceResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5663,7 +6807,7 @@ func (client ComputeClient) terminateInstance(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCapacityReservation.go.html to see an example of how to use UpdateComputeCapacityReservation API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCapacityReservation.go.html to see an example of how to use UpdateComputeCapacityReservation API. func (client ComputeClient) UpdateComputeCapacityReservation(ctx context.Context, request UpdateComputeCapacityReservationRequest) (response UpdateComputeCapacityReservationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5720,7 +6864,7 @@ func (client ComputeClient) updateComputeCapacityReservation(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCapacityTopology.go.html to see an example of how to use UpdateComputeCapacityTopology API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCapacityTopology.go.html to see an example of how to use UpdateComputeCapacityTopology API. // A default retry strategy applies to this operation UpdateComputeCapacityTopology() func (client ComputeClient) UpdateComputeCapacityTopology(ctx context.Context, request UpdateComputeCapacityTopologyRequest) (response UpdateComputeCapacityTopologyResponse, err error) { var ociResponse common.OCIResponse @@ -5774,7 +6918,7 @@ func (client ComputeClient) updateComputeCapacityTopology(ctx context.Context, r return response, err } -// UpdateComputeCluster Updates a compute cluster. A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a +// UpdateComputeCluster Updates a compute cluster. A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a // remote direct memory access (RDMA) network group. // To create instances within a compute cluster, use the LaunchInstance // operation. @@ -5783,7 +6927,7 @@ func (client ComputeClient) updateComputeCapacityTopology(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCluster.go.html to see an example of how to use UpdateComputeCluster API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCluster.go.html to see an example of how to use UpdateComputeCluster API. func (client ComputeClient) UpdateComputeCluster(ctx context.Context, request UpdateComputeClusterRequest) (response UpdateComputeClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5841,11 +6985,264 @@ func (client ComputeClient) updateComputeCluster(ctx context.Context, request co return response, err } +// UpdateComputeGpuMemoryCluster Updates a compute gpu memory cluster resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeGpuMemoryCluster.go.html to see an example of how to use UpdateComputeGpuMemoryCluster API. +// A default retry strategy applies to this operation UpdateComputeGpuMemoryCluster() +func (client ComputeClient) UpdateComputeGpuMemoryCluster(ctx context.Context, request UpdateComputeGpuMemoryClusterRequest) (response UpdateComputeGpuMemoryClusterResponse, 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.updateComputeGpuMemoryCluster, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateComputeGpuMemoryClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateComputeGpuMemoryClusterResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateComputeGpuMemoryClusterResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateComputeGpuMemoryClusterResponse") + } + return +} + +// updateComputeGpuMemoryCluster implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) updateComputeGpuMemoryCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/computeGpuMemoryClusters/{computeGpuMemoryClusterId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateComputeGpuMemoryClusterResponse + 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/ComputeGpuMemoryCluster/UpdateComputeGpuMemoryCluster" + err = common.PostProcessServiceError(err, "Compute", "UpdateComputeGpuMemoryCluster", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateComputeGpuMemoryFabric Customer can update displayName, tags and desired firmware bundle, recycle level for +// compute GPU memory fabric record +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeGpuMemoryFabric.go.html to see an example of how to use UpdateComputeGpuMemoryFabric API. +// A default retry strategy applies to this operation UpdateComputeGpuMemoryFabric() +func (client ComputeClient) UpdateComputeGpuMemoryFabric(ctx context.Context, request UpdateComputeGpuMemoryFabricRequest) (response UpdateComputeGpuMemoryFabricResponse, 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.updateComputeGpuMemoryFabric, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateComputeGpuMemoryFabricResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateComputeGpuMemoryFabricResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateComputeGpuMemoryFabricResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateComputeGpuMemoryFabricResponse") + } + return +} + +// updateComputeGpuMemoryFabric implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) updateComputeGpuMemoryFabric(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/computeGpuMemoryFabrics/{computeGpuMemoryFabricId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateComputeGpuMemoryFabricResponse + 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/ComputeGpuMemoryFabric/UpdateComputeGpuMemoryFabric" + err = common.PostProcessServiceError(err, "Compute", "UpdateComputeGpuMemoryFabric", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateComputeHost Customer can update the some fields for ComputeHost record +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeHost.go.html to see an example of how to use UpdateComputeHost API. +// A default retry strategy applies to this operation UpdateComputeHost() +func (client ComputeClient) UpdateComputeHost(ctx context.Context, request UpdateComputeHostRequest) (response UpdateComputeHostResponse, 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.updateComputeHost, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateComputeHostResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateComputeHostResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateComputeHostResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateComputeHostResponse") + } + return +} + +// updateComputeHost implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) updateComputeHost(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/computeHosts/{computeHostId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateComputeHostResponse + 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/ComputeHost/UpdateComputeHost" + err = common.PostProcessServiceError(err, "Compute", "UpdateComputeHost", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateComputeHostGroup Updates the specified compute host group details. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeHostGroup.go.html to see an example of how to use UpdateComputeHostGroup API. +// A default retry strategy applies to this operation UpdateComputeHostGroup() +func (client ComputeClient) UpdateComputeHostGroup(ctx context.Context, request UpdateComputeHostGroupRequest) (response UpdateComputeHostGroupResponse, 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.updateComputeHostGroup, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateComputeHostGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateComputeHostGroupResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateComputeHostGroupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateComputeHostGroupResponse") + } + return +} + +// updateComputeHostGroup implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) updateComputeHostGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/computeHostGroups/{computeHostGroupId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateComputeHostGroupResponse + 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/ComputeHostGroup/UpdateComputeHostGroup" + err = common.PostProcessServiceError(err, "Compute", "UpdateComputeHostGroup", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateComputeImageCapabilitySchema Updates the specified Compute Image Capability Schema // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeImageCapabilitySchema.go.html to see an example of how to use UpdateComputeImageCapabilitySchema API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeImageCapabilitySchema.go.html to see an example of how to use UpdateComputeImageCapabilitySchema API. func (client ComputeClient) UpdateComputeImageCapabilitySchema(ctx context.Context, request UpdateComputeImageCapabilitySchemaRequest) (response UpdateComputeImageCapabilitySchemaResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5902,7 +7299,7 @@ func (client ComputeClient) updateComputeImageCapabilitySchema(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateConsoleHistory.go.html to see an example of how to use UpdateConsoleHistory API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateConsoleHistory.go.html to see an example of how to use UpdateConsoleHistory API. func (client ComputeClient) UpdateConsoleHistory(ctx context.Context, request UpdateConsoleHistoryRequest) (response UpdateConsoleHistoryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5960,7 +7357,7 @@ func (client ComputeClient) updateConsoleHistory(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDedicatedVmHost.go.html to see an example of how to use UpdateDedicatedVmHost API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDedicatedVmHost.go.html to see an example of how to use UpdateDedicatedVmHost API. func (client ComputeClient) UpdateDedicatedVmHost(ctx context.Context, request UpdateDedicatedVmHostRequest) (response UpdateDedicatedVmHostResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6022,7 +7419,7 @@ func (client ComputeClient) updateDedicatedVmHost(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateImage.go.html to see an example of how to use UpdateImage API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateImage.go.html to see an example of how to use UpdateImage API. func (client ComputeClient) UpdateImage(ctx context.Context, request UpdateImageRequest) (response UpdateImageResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6088,7 +7485,7 @@ func (client ComputeClient) updateImage(ctx context.Context, request common.OCIR // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstance.go.html to see an example of how to use UpdateInstance API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstance.go.html to see an example of how to use UpdateInstance API. func (client ComputeClient) UpdateInstance(ctx context.Context, request UpdateInstanceRequest) (response UpdateInstanceResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6150,7 +7547,7 @@ func (client ComputeClient) updateInstance(ctx context.Context, request common.O // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceConsoleConnection.go.html to see an example of how to use UpdateInstanceConsoleConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceConsoleConnection.go.html to see an example of how to use UpdateInstanceConsoleConnection API. func (client ComputeClient) UpdateInstanceConsoleConnection(ctx context.Context, request UpdateInstanceConsoleConnectionRequest) (response UpdateInstanceConsoleConnectionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6207,7 +7604,7 @@ func (client ComputeClient) updateInstanceConsoleConnection(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceMaintenanceEvent.go.html to see an example of how to use UpdateInstanceMaintenanceEvent API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceMaintenanceEvent.go.html to see an example of how to use UpdateInstanceMaintenanceEvent API. // A default retry strategy applies to this operation UpdateInstanceMaintenanceEvent() func (client ComputeClient) UpdateInstanceMaintenanceEvent(ctx context.Context, request UpdateInstanceMaintenanceEventRequest) (response UpdateInstanceMaintenanceEventResponse, err error) { var ociResponse common.OCIResponse @@ -6270,7 +7667,7 @@ func (client ComputeClient) updateInstanceMaintenanceEvent(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeAttachment.go.html to see an example of how to use UpdateVolumeAttachment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeAttachment.go.html to see an example of how to use UpdateVolumeAttachment API. func (client ComputeClient) UpdateVolumeAttachment(ctx context.Context, request UpdateVolumeAttachmentRequest) (response UpdateVolumeAttachmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_computemanagement_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_computemanagement_client.go index d7a1108418..97313964a1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_computemanagement_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_computemanagement_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -99,11 +99,11 @@ func (client *ComputeManagementClient) ConfigurationProvider() *common.Configura // AttachInstancePoolInstance Attaches an instance to an instance pool. For information about the prerequisites // that an instance must meet before you can attach it to a pool, see -// Attaching an Instance to an Instance Pool (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/updatinginstancepool.htm#attach-instance). +// Attaching an Instance to an Instance Pool (https://docs.oracle.com/iaas/Content/Compute/Tasks/updatinginstancepool.htm#attach-instance). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachInstancePoolInstance.go.html to see an example of how to use AttachInstancePoolInstance API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachInstancePoolInstance.go.html to see an example of how to use AttachInstancePoolInstance API. func (client ComputeManagementClient) AttachInstancePoolInstance(ctx context.Context, request AttachInstancePoolInstanceRequest) (response AttachInstancePoolInstanceResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -165,7 +165,7 @@ func (client ComputeManagementClient) attachInstancePoolInstance(ctx context.Con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachLoadBalancer.go.html to see an example of how to use AttachLoadBalancer API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachLoadBalancer.go.html to see an example of how to use AttachLoadBalancer API. func (client ComputeManagementClient) AttachLoadBalancer(ctx context.Context, request AttachLoadBalancerRequest) (response AttachLoadBalancerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -223,16 +223,16 @@ func (client ComputeManagementClient) attachLoadBalancer(ctx context.Context, re return response, err } -// ChangeClusterNetworkCompartment Moves a cluster network with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm) +// ChangeClusterNetworkCompartment Moves a cluster network with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm) // 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // When you move a cluster network to a different compartment, associated resources such as the instances // in the cluster network, boot volumes, and VNICs are not moved. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeClusterNetworkCompartment.go.html to see an example of how to use ChangeClusterNetworkCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeClusterNetworkCompartment.go.html to see an example of how to use ChangeClusterNetworkCompartment API. func (client ComputeManagementClient) ChangeClusterNetworkCompartment(ctx context.Context, request ChangeClusterNetworkCompartmentRequest) (response ChangeClusterNetworkCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -292,7 +292,7 @@ func (client ComputeManagementClient) changeClusterNetworkCompartment(ctx contex // ChangeInstanceConfigurationCompartment Moves an instance configuration 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // When you move an instance configuration to a different compartment, associated resources such as // instance pools are not moved. // **Important:** Most of the properties for an existing instance configuration, including the compartment, @@ -300,11 +300,11 @@ func (client ComputeManagementClient) changeClusterNetworkCompartment(ctx contex // to a different compartment, you will not be able to use the instance configuration to manage instance pools // in the new compartment. If you want to update an instance configuration to point to a different compartment, // you should instead create a new instance configuration in the target compartment using -// CreateInstanceConfiguration (https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConfiguration/CreateInstanceConfiguration). +// CreateInstanceConfiguration (https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConfiguration/CreateInstanceConfiguration). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstanceConfigurationCompartment.go.html to see an example of how to use ChangeInstanceConfigurationCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstanceConfigurationCompartment.go.html to see an example of how to use ChangeInstanceConfigurationCompartment API. func (client ComputeManagementClient) ChangeInstanceConfigurationCompartment(ctx context.Context, request ChangeInstanceConfigurationCompartmentRequest) (response ChangeInstanceConfigurationCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -364,13 +364,13 @@ func (client ComputeManagementClient) changeInstanceConfigurationCompartment(ctx // ChangeInstancePoolCompartment Moves an instance pool 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // When you move an instance pool to a different compartment, associated resources such as the instances in // the pool, boot volumes, VNICs, and autoscaling configurations are not moved. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstancePoolCompartment.go.html to see an example of how to use ChangeInstancePoolCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInstancePoolCompartment.go.html to see an example of how to use ChangeInstancePoolCompartment API. func (client ComputeManagementClient) ChangeInstancePoolCompartment(ctx context.Context, request ChangeInstancePoolCompartmentRequest) (response ChangeInstancePoolCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -428,7 +428,7 @@ func (client ComputeManagementClient) changeInstancePoolCompartment(ctx context. return response, err } -// CreateClusterNetwork Creates a cluster network with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). +// CreateClusterNetwork Creates a cluster network with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). // A cluster network is a group of high performance computing (HPC), GPU, or optimized bare metal // instances that are connected with an ultra low-latency remote direct memory access (RDMA) network. // Cluster networks with instance pools use instance pools to manage groups of identical instances. @@ -443,7 +443,7 @@ func (client ComputeManagementClient) changeInstancePoolCompartment(ctx context. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateClusterNetwork.go.html to see an example of how to use CreateClusterNetwork API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateClusterNetwork.go.html to see an example of how to use CreateClusterNetwork API. func (client ComputeManagementClient) CreateClusterNetwork(ctx context.Context, request CreateClusterNetworkRequest) (response CreateClusterNetworkResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -506,7 +506,7 @@ func (client ComputeManagementClient) createClusterNetwork(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstanceConfiguration.go.html to see an example of how to use CreateInstanceConfiguration API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstanceConfiguration.go.html to see an example of how to use CreateInstanceConfiguration API. func (client ComputeManagementClient) CreateInstanceConfiguration(ctx context.Context, request CreateInstanceConfigurationRequest) (response CreateInstanceConfigurationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -571,7 +571,7 @@ func (client ComputeManagementClient) createInstanceConfiguration(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstancePool.go.html to see an example of how to use CreateInstancePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstancePool.go.html to see an example of how to use CreateInstancePool API. func (client ComputeManagementClient) CreateInstancePool(ctx context.Context, request CreateInstancePoolRequest) (response CreateInstancePoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -633,7 +633,7 @@ func (client ComputeManagementClient) createInstancePool(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInstanceConfiguration.go.html to see an example of how to use DeleteInstanceConfiguration API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInstanceConfiguration.go.html to see an example of how to use DeleteInstanceConfiguration API. func (client ComputeManagementClient) DeleteInstanceConfiguration(ctx context.Context, request DeleteInstanceConfigurationRequest) (response DeleteInstanceConfigurationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -690,7 +690,7 @@ func (client ComputeManagementClient) deleteInstanceConfiguration(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachInstancePoolInstance.go.html to see an example of how to use DetachInstancePoolInstance API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachInstancePoolInstance.go.html to see an example of how to use DetachInstancePoolInstance API. func (client ComputeManagementClient) DetachInstancePoolInstance(ctx context.Context, request DetachInstancePoolInstanceRequest) (response DetachInstancePoolInstanceResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -752,7 +752,7 @@ func (client ComputeManagementClient) detachInstancePoolInstance(ctx context.Con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachLoadBalancer.go.html to see an example of how to use DetachLoadBalancer API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachLoadBalancer.go.html to see an example of how to use DetachLoadBalancer API. func (client ComputeManagementClient) DetachLoadBalancer(ctx context.Context, request DetachLoadBalancerRequest) (response DetachLoadBalancerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -810,11 +810,11 @@ func (client ComputeManagementClient) detachLoadBalancer(ctx context.Context, re return response, err } -// GetClusterNetwork Gets information about a cluster network with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). +// GetClusterNetwork Gets information about a cluster network with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetClusterNetwork.go.html to see an example of how to use GetClusterNetwork API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetClusterNetwork.go.html to see an example of how to use GetClusterNetwork API. func (client ComputeManagementClient) GetClusterNetwork(ctx context.Context, request GetClusterNetworkRequest) (response GetClusterNetworkResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -871,7 +871,7 @@ func (client ComputeManagementClient) getClusterNetwork(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceConfiguration.go.html to see an example of how to use GetInstanceConfiguration API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceConfiguration.go.html to see an example of how to use GetInstanceConfiguration API. func (client ComputeManagementClient) GetInstanceConfiguration(ctx context.Context, request GetInstanceConfigurationRequest) (response GetInstanceConfigurationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -928,7 +928,7 @@ func (client ComputeManagementClient) getInstanceConfiguration(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePool.go.html to see an example of how to use GetInstancePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePool.go.html to see an example of how to use GetInstancePool API. func (client ComputeManagementClient) GetInstancePool(ctx context.Context, request GetInstancePoolRequest) (response GetInstancePoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -985,7 +985,7 @@ func (client ComputeManagementClient) getInstancePool(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePoolInstance.go.html to see an example of how to use GetInstancePoolInstance API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePoolInstance.go.html to see an example of how to use GetInstancePoolInstance API. func (client ComputeManagementClient) GetInstancePoolInstance(ctx context.Context, request GetInstancePoolInstanceRequest) (response GetInstancePoolInstanceResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1042,7 +1042,7 @@ func (client ComputeManagementClient) getInstancePoolInstance(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePoolLoadBalancerAttachment.go.html to see an example of how to use GetInstancePoolLoadBalancerAttachment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePoolLoadBalancerAttachment.go.html to see an example of how to use GetInstancePoolLoadBalancerAttachment API. func (client ComputeManagementClient) GetInstancePoolLoadBalancerAttachment(ctx context.Context, request GetInstancePoolLoadBalancerAttachmentRequest) (response GetInstancePoolLoadBalancerAttachmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1107,7 +1107,7 @@ func (client ComputeManagementClient) getInstancePoolLoadBalancerAttachment(ctx // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/LaunchInstanceConfiguration.go.html to see an example of how to use LaunchInstanceConfiguration API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/LaunchInstanceConfiguration.go.html to see an example of how to use LaunchInstanceConfiguration API. func (client ComputeManagementClient) LaunchInstanceConfiguration(ctx context.Context, request LaunchInstanceConfigurationRequest) (response LaunchInstanceConfigurationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1165,11 +1165,11 @@ func (client ComputeManagementClient) launchInstanceConfiguration(ctx context.Co return response, err } -// ListClusterNetworkInstances Lists the instances in a cluster network with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). +// ListClusterNetworkInstances Lists the instances in a cluster network with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListClusterNetworkInstances.go.html to see an example of how to use ListClusterNetworkInstances API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListClusterNetworkInstances.go.html to see an example of how to use ListClusterNetworkInstances API. func (client ComputeManagementClient) ListClusterNetworkInstances(ctx context.Context, request ListClusterNetworkInstancesRequest) (response ListClusterNetworkInstancesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1222,12 +1222,12 @@ func (client ComputeManagementClient) listClusterNetworkInstances(ctx context.Co return response, err } -// ListClusterNetworks Lists the cluster networks with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm) +// ListClusterNetworks Lists the cluster networks with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm) // in the specified compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListClusterNetworks.go.html to see an example of how to use ListClusterNetworks API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListClusterNetworks.go.html to see an example of how to use ListClusterNetworks API. func (client ComputeManagementClient) ListClusterNetworks(ctx context.Context, request ListClusterNetworksRequest) (response ListClusterNetworksResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1284,7 +1284,7 @@ func (client ComputeManagementClient) listClusterNetworks(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceConfigurations.go.html to see an example of how to use ListInstanceConfigurations API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceConfigurations.go.html to see an example of how to use ListInstanceConfigurations API. func (client ComputeManagementClient) ListInstanceConfigurations(ctx context.Context, request ListInstanceConfigurationsRequest) (response ListInstanceConfigurationsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1341,7 +1341,7 @@ func (client ComputeManagementClient) listInstanceConfigurations(ctx context.Con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstancePoolInstances.go.html to see an example of how to use ListInstancePoolInstances API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstancePoolInstances.go.html to see an example of how to use ListInstancePoolInstances API. func (client ComputeManagementClient) ListInstancePoolInstances(ctx context.Context, request ListInstancePoolInstancesRequest) (response ListInstancePoolInstancesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1398,7 +1398,7 @@ func (client ComputeManagementClient) listInstancePoolInstances(ctx context.Cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstancePools.go.html to see an example of how to use ListInstancePools API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstancePools.go.html to see an example of how to use ListInstancePools API. func (client ComputeManagementClient) ListInstancePools(ctx context.Context, request ListInstancePoolsRequest) (response ListInstancePoolsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1456,7 +1456,7 @@ func (client ComputeManagementClient) listInstancePools(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ResetInstancePool.go.html to see an example of how to use ResetInstancePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ResetInstancePool.go.html to see an example of how to use ResetInstancePool API. func (client ComputeManagementClient) ResetInstancePool(ctx context.Context, request ResetInstancePoolRequest) (response ResetInstancePoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1521,7 +1521,7 @@ func (client ComputeManagementClient) resetInstancePool(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SoftresetInstancePool.go.html to see an example of how to use SoftresetInstancePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SoftresetInstancePool.go.html to see an example of how to use SoftresetInstancePool API. func (client ComputeManagementClient) SoftresetInstancePool(ctx context.Context, request SoftresetInstancePoolRequest) (response SoftresetInstancePoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1586,7 +1586,7 @@ func (client ComputeManagementClient) softresetInstancePool(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SoftstopInstancePool.go.html to see an example of how to use SoftstopInstancePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SoftstopInstancePool.go.html to see an example of how to use SoftstopInstancePool API. func (client ComputeManagementClient) SoftstopInstancePool(ctx context.Context, request SoftstopInstancePoolRequest) (response SoftstopInstancePoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1649,7 +1649,7 @@ func (client ComputeManagementClient) softstopInstancePool(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/StartInstancePool.go.html to see an example of how to use StartInstancePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/StartInstancePool.go.html to see an example of how to use StartInstancePool API. func (client ComputeManagementClient) StartInstancePool(ctx context.Context, request StartInstancePoolRequest) (response StartInstancePoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1712,7 +1712,7 @@ func (client ComputeManagementClient) startInstancePool(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/StopInstancePool.go.html to see an example of how to use StopInstancePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/StopInstancePool.go.html to see an example of how to use StopInstancePool API. func (client ComputeManagementClient) StopInstancePool(ctx context.Context, request StopInstancePoolRequest) (response StopInstancePoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1770,13 +1770,13 @@ func (client ComputeManagementClient) stopInstancePool(ctx context.Context, requ return response, err } -// TerminateClusterNetwork Deletes (terminates) a cluster network with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). +// TerminateClusterNetwork Deletes (terminates) a cluster network with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). // When you delete a cluster network, all of its resources are permanently deleted, // including associated instances and instance pools. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateClusterNetwork.go.html to see an example of how to use TerminateClusterNetwork API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateClusterNetwork.go.html to see an example of how to use TerminateClusterNetwork API. func (client ComputeManagementClient) TerminateClusterNetwork(ctx context.Context, request TerminateClusterNetworkRequest) (response TerminateClusterNetworkResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1838,7 +1838,7 @@ func (client ComputeManagementClient) terminateClusterNetwork(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateInstancePool.go.html to see an example of how to use TerminateInstancePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateInstancePool.go.html to see an example of how to use TerminateInstancePool API. func (client ComputeManagementClient) TerminateInstancePool(ctx context.Context, request TerminateInstancePoolRequest) (response TerminateInstancePoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1891,12 +1891,74 @@ func (client ComputeManagementClient) terminateInstancePool(ctx context.Context, return response, err } -// UpdateClusterNetwork Updates a cluster network with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). +// TerminationProceedInstancePoolInstance Marks an instance in an instance pool to be ready for termination. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminationProceedInstancePoolInstance.go.html to see an example of how to use TerminationProceedInstancePoolInstance API. +func (client ComputeManagementClient) TerminationProceedInstancePoolInstance(ctx context.Context, request TerminationProceedInstancePoolInstanceRequest) (response TerminationProceedInstancePoolInstanceResponse, 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.terminationProceedInstancePoolInstance, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = TerminationProceedInstancePoolInstanceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = TerminationProceedInstancePoolInstanceResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(TerminationProceedInstancePoolInstanceResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into TerminationProceedInstancePoolInstanceResponse") + } + return +} + +// terminationProceedInstancePoolInstance implements the OCIOperation interface (enables retrying operations) +func (client ComputeManagementClient) terminationProceedInstancePoolInstance(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/instancePools/{instancePoolId}/actions/terminationProceed", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response TerminationProceedInstancePoolInstanceResponse + 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/InstancePoolInstance/TerminationProceedInstancePoolInstance" + err = common.PostProcessServiceError(err, "ComputeManagement", "TerminationProceedInstancePoolInstance", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateClusterNetwork Updates a cluster network with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). // The OCID of the cluster network remains the same. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateClusterNetwork.go.html to see an example of how to use UpdateClusterNetwork API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateClusterNetwork.go.html to see an example of how to use UpdateClusterNetwork API. func (client ComputeManagementClient) UpdateClusterNetwork(ctx context.Context, request UpdateClusterNetworkRequest) (response UpdateClusterNetworkResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1958,7 +2020,7 @@ func (client ComputeManagementClient) updateClusterNetwork(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceConfiguration.go.html to see an example of how to use UpdateInstanceConfiguration API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceConfiguration.go.html to see an example of how to use UpdateInstanceConfiguration API. func (client ComputeManagementClient) UpdateInstanceConfiguration(ctx context.Context, request UpdateInstanceConfigurationRequest) (response UpdateInstanceConfigurationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2021,7 +2083,7 @@ func (client ComputeManagementClient) updateInstanceConfiguration(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstancePool.go.html to see an example of how to use UpdateInstancePool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstancePool.go.html to see an example of how to use UpdateInstancePool API. func (client ComputeManagementClient) UpdateInstancePool(ctx context.Context, request UpdateInstancePoolRequest) (response UpdateInstancePoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_virtualnetwork_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_virtualnetwork_client.go index c8a277c014..edc0c5466d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_virtualnetwork_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_virtualnetwork_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -101,7 +101,7 @@ func (client *VirtualNetworkClient) ConfigurationProvider() *common.Configuratio // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddDrgRouteDistributionStatements.go.html to see an example of how to use AddDrgRouteDistributionStatements API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddDrgRouteDistributionStatements.go.html to see an example of how to use AddDrgRouteDistributionStatements API. func (client VirtualNetworkClient) AddDrgRouteDistributionStatements(ctx context.Context, request AddDrgRouteDistributionStatementsRequest) (response AddDrgRouteDistributionStatementsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -158,7 +158,7 @@ func (client VirtualNetworkClient) addDrgRouteDistributionStatements(ctx context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddDrgRouteRules.go.html to see an example of how to use AddDrgRouteRules API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddDrgRouteRules.go.html to see an example of how to use AddDrgRouteRules API. func (client VirtualNetworkClient) AddDrgRouteRules(ctx context.Context, request AddDrgRouteRulesRequest) (response AddDrgRouteRulesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -216,11 +216,74 @@ func (client VirtualNetworkClient) addDrgRouteRules(ctx context.Context, request return response, err } +// AddIpv4SubnetCidr Add an IPv4 prefix to a subnet. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddIpv4SubnetCidr.go.html to see an example of how to use AddIpv4SubnetCidr API. +// A default retry strategy applies to this operation AddIpv4SubnetCidr() +func (client VirtualNetworkClient) AddIpv4SubnetCidr(ctx context.Context, request AddIpv4SubnetCidrRequest) (response AddIpv4SubnetCidrResponse, 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.addIpv4SubnetCidr, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = AddIpv4SubnetCidrResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = AddIpv4SubnetCidrResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(AddIpv4SubnetCidrResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into AddIpv4SubnetCidrResponse") + } + return +} + +// addIpv4SubnetCidr implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) addIpv4SubnetCidr(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/addIpv4Cidr", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response AddIpv4SubnetCidrResponse + 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/AddIpv4SubnetCidr" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AddIpv4SubnetCidr", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // AddIpv6SubnetCidr Add an IPv6 prefix to a subnet. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddIpv6SubnetCidr.go.html to see an example of how to use AddIpv6SubnetCidr API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddIpv6SubnetCidr.go.html to see an example of how to use AddIpv6SubnetCidr API. func (client VirtualNetworkClient) AddIpv6SubnetCidr(ctx context.Context, request AddIpv6SubnetCidrRequest) (response AddIpv6SubnetCidrResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -283,7 +346,7 @@ func (client VirtualNetworkClient) addIpv6SubnetCidr(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddIpv6VcnCidr.go.html to see an example of how to use AddIpv6VcnCidr API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddIpv6VcnCidr.go.html to see an example of how to use AddIpv6VcnCidr API. func (client VirtualNetworkClient) AddIpv6VcnCidr(ctx context.Context, request AddIpv6VcnCidrRequest) (response AddIpv6VcnCidrResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -345,7 +408,7 @@ func (client VirtualNetworkClient) addIpv6VcnCidr(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddNetworkSecurityGroupSecurityRules.go.html to see an example of how to use AddNetworkSecurityGroupSecurityRules API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddNetworkSecurityGroupSecurityRules.go.html to see an example of how to use AddNetworkSecurityGroupSecurityRules API. func (client VirtualNetworkClient) AddNetworkSecurityGroupSecurityRules(ctx context.Context, request AddNetworkSecurityGroupSecurityRulesRequest) (response AddNetworkSecurityGroupSecurityRulesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -403,7 +466,7 @@ func (client VirtualNetworkClient) addNetworkSecurityGroupSecurityRules(ctx cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddPublicIpPoolCapacity.go.html to see an example of how to use AddPublicIpPoolCapacity API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddPublicIpPoolCapacity.go.html to see an example of how to use AddPublicIpPoolCapacity API. func (client VirtualNetworkClient) AddPublicIpPoolCapacity(ctx context.Context, request AddPublicIpPoolCapacityRequest) (response AddPublicIpPoolCapacityResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -469,7 +532,7 @@ func (client VirtualNetworkClient) addPublicIpPoolCapacity(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddVcnCidr.go.html to see an example of how to use AddVcnCidr API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AddVcnCidr.go.html to see an example of how to use AddVcnCidr API. func (client VirtualNetworkClient) AddVcnCidr(ctx context.Context, request AddVcnCidrRequest) (response AddVcnCidrResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -532,7 +595,7 @@ func (client VirtualNetworkClient) addVcnCidr(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AdvertiseByoipRange.go.html to see an example of how to use AdvertiseByoipRange API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AdvertiseByoipRange.go.html to see an example of how to use AdvertiseByoipRange API. func (client VirtualNetworkClient) AdvertiseByoipRange(ctx context.Context, request AdvertiseByoipRangeRequest) (response AdvertiseByoipRangeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -597,7 +660,7 @@ func (client VirtualNetworkClient) advertiseByoipRange(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachServiceId.go.html to see an example of how to use AttachServiceId API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/AttachServiceId.go.html to see an example of how to use AttachServiceId API. func (client VirtualNetworkClient) AttachServiceId(ctx context.Context, request AttachServiceIdRequest) (response AttachServiceIdResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -657,7 +720,7 @@ func (client VirtualNetworkClient) attachServiceId(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/BulkAddVirtualCircuitPublicPrefixes.go.html to see an example of how to use BulkAddVirtualCircuitPublicPrefixes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/BulkAddVirtualCircuitPublicPrefixes.go.html to see an example of how to use BulkAddVirtualCircuitPublicPrefixes API. // 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 @@ -713,7 +776,7 @@ func (client VirtualNetworkClient) bulkAddVirtualCircuitPublicPrefixes(ctx conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/BulkDeleteVirtualCircuitPublicPrefixes.go.html to see an example of how to use BulkDeleteVirtualCircuitPublicPrefixes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/BulkDeleteVirtualCircuitPublicPrefixes.go.html to see an example of how to use BulkDeleteVirtualCircuitPublicPrefixes API. // 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 @@ -762,13 +825,78 @@ func (client VirtualNetworkClient) bulkDeleteVirtualCircuitPublicPrefixes(ctx co return response, err } +// ChangeByoasnCompartment Moves a BYOASN Resource to a different compartment. For information +// about moving resources between compartments, see +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeByoasnCompartment.go.html to see an example of how to use ChangeByoasnCompartment API. +// A default retry strategy applies to this operation ChangeByoasnCompartment() +func (client VirtualNetworkClient) ChangeByoasnCompartment(ctx context.Context, request ChangeByoasnCompartmentRequest) (response ChangeByoasnCompartmentResponse, 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.changeByoasnCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeByoasnCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeByoasnCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeByoasnCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeByoasnCompartmentResponse") + } + return +} + +// changeByoasnCompartment implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) changeByoasnCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/byoasns/{byoasnId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeByoasnCompartmentResponse + 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/Byoasn/ChangeByoasnCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeByoasnCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ChangeByoipRangeCompartment Moves a BYOIP CIDR block to a different compartment. 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeByoipRangeCompartment.go.html to see an example of how to use ChangeByoipRangeCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeByoipRangeCompartment.go.html to see an example of how to use ChangeByoipRangeCompartment API. func (client VirtualNetworkClient) ChangeByoipRangeCompartment(ctx context.Context, request ChangeByoipRangeCompartmentRequest) (response ChangeByoipRangeCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -828,11 +956,11 @@ func (client VirtualNetworkClient) changeByoipRangeCompartment(ctx context.Conte // ChangeCaptureFilterCompartment Moves a capture filter to a new compartment in 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCaptureFilterCompartment.go.html to see an example of how to use ChangeCaptureFilterCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCaptureFilterCompartment.go.html to see an example of how to use ChangeCaptureFilterCompartment API. func (client VirtualNetworkClient) ChangeCaptureFilterCompartment(ctx context.Context, request ChangeCaptureFilterCompartmentRequest) (response ChangeCaptureFilterCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -892,11 +1020,11 @@ func (client VirtualNetworkClient) changeCaptureFilterCompartment(ctx context.Co // 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCpeCompartment.go.html to see an example of how to use ChangeCpeCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCpeCompartment.go.html to see an example of how to use ChangeCpeCompartment API. // 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 @@ -957,11 +1085,11 @@ 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCrossConnectCompartment.go.html to see an example of how to use ChangeCrossConnectCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCrossConnectCompartment.go.html to see an example of how to use ChangeCrossConnectCompartment API. // 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 @@ -1022,11 +1150,11 @@ 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCrossConnectGroupCompartment.go.html to see an example of how to use ChangeCrossConnectGroupCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeCrossConnectGroupCompartment.go.html to see an example of how to use ChangeCrossConnectGroupCompartment API. // 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 @@ -1087,11 +1215,11 @@ func (client VirtualNetworkClient) changeCrossConnectGroupCompartment(ctx contex // ChangeDhcpOptionsCompartment Moves a set of DHCP options 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDhcpOptionsCompartment.go.html to see an example of how to use ChangeDhcpOptionsCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDhcpOptionsCompartment.go.html to see an example of how to use ChangeDhcpOptionsCompartment API. func (client VirtualNetworkClient) ChangeDhcpOptionsCompartment(ctx context.Context, request ChangeDhcpOptionsCompartmentRequest) (response ChangeDhcpOptionsCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1151,11 +1279,11 @@ func (client VirtualNetworkClient) changeDhcpOptionsCompartment(ctx context.Cont // ChangeDrgCompartment Moves a DRG 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDrgCompartment.go.html to see an example of how to use ChangeDrgCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeDrgCompartment.go.html to see an example of how to use ChangeDrgCompartment API. func (client VirtualNetworkClient) ChangeDrgCompartment(ctx context.Context, request ChangeDrgCompartmentRequest) (response ChangeDrgCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1215,11 +1343,11 @@ 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeIPSecConnectionCompartment.go.html to see an example of how to use ChangeIPSecConnectionCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeIPSecConnectionCompartment.go.html to see an example of how to use ChangeIPSecConnectionCompartment API. // 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 @@ -1280,11 +1408,11 @@ func (client VirtualNetworkClient) changeIPSecConnectionCompartment(ctx context. // ChangeInternetGatewayCompartment Moves an internet gateway 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInternetGatewayCompartment.go.html to see an example of how to use ChangeInternetGatewayCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeInternetGatewayCompartment.go.html to see an example of how to use ChangeInternetGatewayCompartment API. func (client VirtualNetworkClient) ChangeInternetGatewayCompartment(ctx context.Context, request ChangeInternetGatewayCompartmentRequest) (response ChangeInternetGatewayCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1344,11 +1472,11 @@ func (client VirtualNetworkClient) changeInternetGatewayCompartment(ctx context. // ChangeLocalPeeringGatewayCompartment Moves a local peering gateway 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeLocalPeeringGatewayCompartment.go.html to see an example of how to use ChangeLocalPeeringGatewayCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeLocalPeeringGatewayCompartment.go.html to see an example of how to use ChangeLocalPeeringGatewayCompartment API. func (client VirtualNetworkClient) ChangeLocalPeeringGatewayCompartment(ctx context.Context, request ChangeLocalPeeringGatewayCompartmentRequest) (response ChangeLocalPeeringGatewayCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1408,11 +1536,11 @@ func (client VirtualNetworkClient) changeLocalPeeringGatewayCompartment(ctx cont // ChangeNatGatewayCompartment Moves a NAT gateway 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeNatGatewayCompartment.go.html to see an example of how to use ChangeNatGatewayCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeNatGatewayCompartment.go.html to see an example of how to use ChangeNatGatewayCompartment API. func (client VirtualNetworkClient) ChangeNatGatewayCompartment(ctx context.Context, request ChangeNatGatewayCompartmentRequest) (response ChangeNatGatewayCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1471,11 +1599,11 @@ func (client VirtualNetworkClient) changeNatGatewayCompartment(ctx context.Conte } // ChangeNetworkSecurityGroupCompartment Moves a network security 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). +// information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeNetworkSecurityGroupCompartment.go.html to see an example of how to use ChangeNetworkSecurityGroupCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeNetworkSecurityGroupCompartment.go.html to see an example of how to use ChangeNetworkSecurityGroupCompartment API. func (client VirtualNetworkClient) ChangeNetworkSecurityGroupCompartment(ctx context.Context, request ChangeNetworkSecurityGroupCompartmentRequest) (response ChangeNetworkSecurityGroupCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1535,13 +1663,13 @@ func (client VirtualNetworkClient) changeNetworkSecurityGroupCompartment(ctx con // ChangePublicIpCompartment Moves a public IP 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // This operation applies only to reserved public IPs. Ephemeral public IPs always belong to the // same compartment as their VNIC and move accordingly. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangePublicIpCompartment.go.html to see an example of how to use ChangePublicIpCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangePublicIpCompartment.go.html to see an example of how to use ChangePublicIpCompartment API. func (client VirtualNetworkClient) ChangePublicIpCompartment(ctx context.Context, request ChangePublicIpCompartmentRequest) (response ChangePublicIpCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1601,11 +1729,11 @@ func (client VirtualNetworkClient) changePublicIpCompartment(ctx context.Context // ChangePublicIpPoolCompartment Moves a public IP pool to a different compartment. 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangePublicIpPoolCompartment.go.html to see an example of how to use ChangePublicIpPoolCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangePublicIpPoolCompartment.go.html to see an example of how to use ChangePublicIpPoolCompartment API. func (client VirtualNetworkClient) ChangePublicIpPoolCompartment(ctx context.Context, request ChangePublicIpPoolCompartmentRequest) (response ChangePublicIpPoolCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1665,11 +1793,11 @@ 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeRemotePeeringConnectionCompartment.go.html to see an example of how to use ChangeRemotePeeringConnectionCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeRemotePeeringConnectionCompartment.go.html to see an example of how to use ChangeRemotePeeringConnectionCompartment API. // 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 @@ -1730,11 +1858,11 @@ func (client VirtualNetworkClient) changeRemotePeeringConnectionCompartment(ctx // ChangeRouteTableCompartment Moves a route table 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeRouteTableCompartment.go.html to see an example of how to use ChangeRouteTableCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeRouteTableCompartment.go.html to see an example of how to use ChangeRouteTableCompartment API. func (client VirtualNetworkClient) ChangeRouteTableCompartment(ctx context.Context, request ChangeRouteTableCompartmentRequest) (response ChangeRouteTableCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1794,11 +1922,11 @@ func (client VirtualNetworkClient) changeRouteTableCompartment(ctx context.Conte // ChangeSecurityListCompartment Moves a security list 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeSecurityListCompartment.go.html to see an example of how to use ChangeSecurityListCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeSecurityListCompartment.go.html to see an example of how to use ChangeSecurityListCompartment API. func (client VirtualNetworkClient) ChangeSecurityListCompartment(ctx context.Context, request ChangeSecurityListCompartmentRequest) (response ChangeSecurityListCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1858,11 +1986,11 @@ func (client VirtualNetworkClient) changeSecurityListCompartment(ctx context.Con // ChangeServiceGatewayCompartment Moves a service gateway 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeServiceGatewayCompartment.go.html to see an example of how to use ChangeServiceGatewayCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeServiceGatewayCompartment.go.html to see an example of how to use ChangeServiceGatewayCompartment API. func (client VirtualNetworkClient) ChangeServiceGatewayCompartment(ctx context.Context, request ChangeServiceGatewayCompartmentRequest) (response ChangeServiceGatewayCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1922,11 +2050,11 @@ func (client VirtualNetworkClient) changeServiceGatewayCompartment(ctx context.C // ChangeSubnetCompartment Moves a subnet 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeSubnetCompartment.go.html to see an example of how to use ChangeSubnetCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeSubnetCompartment.go.html to see an example of how to use ChangeSubnetCompartment API. func (client VirtualNetworkClient) ChangeSubnetCompartment(ctx context.Context, request ChangeSubnetCompartmentRequest) (response ChangeSubnetCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1986,11 +2114,11 @@ func (client VirtualNetworkClient) changeSubnetCompartment(ctx context.Context, // ChangeVcnCompartment Moves a VCN 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVcnCompartment.go.html to see an example of how to use ChangeVcnCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVcnCompartment.go.html to see an example of how to use ChangeVcnCompartment API. func (client VirtualNetworkClient) ChangeVcnCompartment(ctx context.Context, request ChangeVcnCompartmentRequest) (response ChangeVcnCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2050,11 +2178,11 @@ func (client VirtualNetworkClient) changeVcnCompartment(ctx context.Context, req // 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVirtualCircuitCompartment.go.html to see an example of how to use ChangeVirtualCircuitCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVirtualCircuitCompartment.go.html to see an example of how to use ChangeVirtualCircuitCompartment API. // 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 @@ -2115,11 +2243,11 @@ func (client VirtualNetworkClient) changeVirtualCircuitCompartment(ctx context.C // ChangeVlanCompartment Moves a VLAN 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVlanCompartment.go.html to see an example of how to use ChangeVlanCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVlanCompartment.go.html to see an example of how to use ChangeVlanCompartment API. func (client VirtualNetworkClient) ChangeVlanCompartment(ctx context.Context, request ChangeVlanCompartmentRequest) (response ChangeVlanCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2179,11 +2307,11 @@ func (client VirtualNetworkClient) changeVlanCompartment(ctx context.Context, re // ChangeVtapCompartment Moves a VTAP to a new 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). +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVtapCompartment.go.html to see an example of how to use ChangeVtapCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ChangeVtapCompartment.go.html to see an example of how to use ChangeVtapCompartment API. func (client VirtualNetworkClient) ChangeVtapCompartment(ctx context.Context, request ChangeVtapCompartmentRequest) (response ChangeVtapCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2247,11 +2375,11 @@ func (client VirtualNetworkClient) changeVtapCompartment(ctx context.Context, re // an Identity and Access Management (IAM) policy that gives the requestor permission // to connect to LPGs 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). +// VCN Peering (https://docs.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ConnectLocalPeeringGateways.go.html to see an example of how to use ConnectLocalPeeringGateways API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ConnectLocalPeeringGateways.go.html to see an example of how to use ConnectLocalPeeringGateways API. func (client VirtualNetworkClient) ConnectLocalPeeringGateways(ctx context.Context, request ConnectLocalPeeringGatewaysRequest) (response ConnectLocalPeeringGatewaysResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2310,11 +2438,11 @@ func (client VirtualNetworkClient) connectLocalPeeringGateways(ctx context.Conte // an Identity and Access Management (IAM) policy that gives the requestor permission // 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). +// VCN Peering (https://docs.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ConnectRemotePeeringConnections.go.html to see an example of how to use ConnectRemotePeeringConnections API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ConnectRemotePeeringConnections.go.html to see an example of how to use ConnectRemotePeeringConnections API. // 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 @@ -2368,11 +2496,74 @@ func (client VirtualNetworkClient) connectRemotePeeringConnections(ctx context.C return response, err } +// CreateByoasn Creates a BYOASN Resource +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateByoasn.go.html to see an example of how to use CreateByoasn API. +// A default retry strategy applies to this operation CreateByoasn() +func (client VirtualNetworkClient) CreateByoasn(ctx context.Context, request CreateByoasnRequest) (response CreateByoasnResponse, 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.createByoasn, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateByoasnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateByoasnResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateByoasnResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateByoasnResponse") + } + return +} + +// createByoasn implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) createByoasn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/byoasns", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateByoasnResponse + 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/Byoasn/CreateByoasn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateByoasn", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateByoipRange Creates a subrange of the BYOIP CIDR block. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateByoipRange.go.html to see an example of how to use CreateByoipRange API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateByoipRange.go.html to see an example of how to use CreateByoipRange API. func (client VirtualNetworkClient) CreateByoipRange(ctx context.Context, request CreateByoipRangeRequest) (response CreateByoipRangeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2431,16 +2622,16 @@ func (client VirtualNetworkClient) createByoipRange(ctx context.Context, request } // CreateCaptureFilter Creates a virtual test access point (VTAP) capture filter in the specified compartment. -// 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 +// For the purposes of access control, you must provide the OCID (https://docs.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). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the VTAP, otherwise a default is provided. // It does not have to be unique, and you can change it. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCaptureFilter.go.html to see an example of how to use CreateCaptureFilter API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCaptureFilter.go.html to see an example of how to use CreateCaptureFilter API. func (client VirtualNetworkClient) CreateCaptureFilter(ctx context.Context, request CreateCaptureFilterRequest) (response CreateCaptureFilterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2499,21 +2690,21 @@ func (client VirtualNetworkClient) createCaptureFilter(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/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want +// more information, see Site-to-Site VPN Overview (https://docs.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm). +// For the purposes of access control, you must provide the OCID (https://docs.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 -// 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). +// compartments and access control, see Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You must provide the public IP address of your on-premises router. See -// CPE Configuration (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/configuringCPE.htm). +// CPE Configuration (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCpe.go.html to see an example of how to use CreateCpe API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCpe.go.html to see an example of how to use CreateCpe API. // 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 @@ -2577,21 +2768,21 @@ func (client VirtualNetworkClient) createCpe(ctx context.Context, request common // with the connection. // 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/iaas/Content/General/Concepts/identifiers.htm) of the +// FastConnect Overview (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// For the purposes of access control, you must provide the OCID (https://docs.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 // compartments and access control, see -// Overview of the IAM Service (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +// Overview of the IAM Service (https://docs.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). +// Resource Identifiers (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCrossConnect.go.html to see an example of how to use CreateCrossConnect API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCrossConnect.go.html to see an example of how to use CreateCrossConnect API. // 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 @@ -2652,21 +2843,21 @@ 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/iaas/Content/General/Concepts/identifiers.htm) of the +// FastConnect Overview (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// For the purposes of access control, you must provide the OCID (https://docs.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 // compartments and access control, see -// Overview of the IAM Service (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +// Overview of the IAM Service (https://docs.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). +// Resource Identifiers (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCrossConnectGroup.go.html to see an example of how to use CreateCrossConnectGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCrossConnectGroup.go.html to see an example of how to use CreateCrossConnectGroup API. // 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 @@ -2727,18 +2918,18 @@ func (client VirtualNetworkClient) createCrossConnectGroup(ctx context.Context, // 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/iaas/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.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 -// 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). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about OCIDs, see +// Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the set of DHCP options, otherwise a default is provided. // It does not have to be unique, and you can change it. Avoid entering confidential information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDhcpOptions.go.html to see an example of how to use CreateDhcpOptions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDhcpOptions.go.html to see an example of how to use CreateDhcpOptions API. func (client VirtualNetworkClient) CreateDhcpOptions(ctx context.Context, request CreateDhcpOptionsRequest) (response CreateDhcpOptionsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2797,19 +2988,19 @@ func (client VirtualNetworkClient) createDhcpOptions(ctx context.Context, reques } // CreateDrg 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/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want +// see Dynamic Routing Gateways (DRGs) (https://docs.oracle.com/iaas/Content/Network/Tasks/managingDRGs.htm). +// For the purposes of access control, you must provide the OCID (https://docs.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 -// 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). +// and access control, see Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the DRG, otherwise a default is provided. // It does not have to be unique, and you can change it. Avoid entering confidential information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrg.go.html to see an example of how to use CreateDrg API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrg.go.html to see an example of how to use CreateDrg API. func (client VirtualNetworkClient) CreateDrg(ctx context.Context, request CreateDrgRequest) (response CreateDrgResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2869,17 +3060,17 @@ 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/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). +// object with its own OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). For more information about DRGs, see +// Dynamic Routing Gateways (DRGs) (https://docs.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. // For the purposes of access control, the DRG attachment is automatically placed into the currently selected compartment. // 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). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgAttachment.go.html to see an example of how to use CreateDrgAttachment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgAttachment.go.html to see an example of how to use CreateDrgAttachment API. func (client VirtualNetworkClient) CreateDrgAttachment(ctx context.Context, request CreateDrgAttachmentRequest) (response CreateDrgAttachmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2944,7 +3135,7 @@ func (client VirtualNetworkClient) createDrgAttachment(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgRouteDistribution.go.html to see an example of how to use CreateDrgRouteDistribution API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgRouteDistribution.go.html to see an example of how to use CreateDrgRouteDistribution API. func (client VirtualNetworkClient) CreateDrgRouteDistribution(ctx context.Context, request CreateDrgRouteDistributionRequest) (response CreateDrgRouteDistributionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3007,7 +3198,7 @@ func (client VirtualNetworkClient) createDrgRouteDistribution(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgRouteTable.go.html to see an example of how to use CreateDrgRouteTable API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgRouteTable.go.html to see an example of how to use CreateDrgRouteTable API. func (client VirtualNetworkClient) CreateDrgRouteTable(ctx context.Context, request CreateDrgRouteTableRequest) (response CreateDrgRouteTableResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3066,18 +3257,18 @@ func (client VirtualNetworkClient) createDrgRouteTable(ctx context.Context, requ } // CreateIPSecConnection Creates a new IPSec connection between the specified DRG and CPE. For more information, see -// Site-to-Site VPN Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm). +// Site-to-Site VPN Overview (https://docs.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm). // If you configure at least one tunnel to use static routing, then in the request you must provide // at least one valid static route (you're allowed a maximum of 10). For example: 10.0.0.0/16. // 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/iaas/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.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 // compartments and access control, see -// Overview of the IAM Service (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). // You may optionally specify a *display name* for the IPSec connection, otherwise a default is provided. // It does not have to be unique, and you can change it. Avoid entering confidential information. // After creating the IPSec connection, you need to configure your on-premises router @@ -3087,11 +3278,11 @@ func (client VirtualNetworkClient) createDrgRouteTable(ctx context.Context, requ // // 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). +// CPE Configuration (https://docs.oracle.com/iaas/Content/Network/Tasks/configuringCPE.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateIPSecConnection.go.html to see an example of how to use CreateIPSecConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateIPSecConnection.go.html to see an example of how to use CreateIPSecConnection API. // 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 @@ -3151,12 +3342,12 @@ func (client VirtualNetworkClient) createIPSecConnection(ctx context.Context, re } // 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/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the Internet +// Access to the Internet (https://docs.oracle.com/iaas/Content/Network/Tasks/managingIGs.htm). +// For the purposes of access control, you must provide the OCID (https://docs.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 -// Overview of the IAM Service (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). // You may optionally specify a *display name* for the internet gateway, otherwise a default is provided. It // does not have to be unique, and you can change it. Avoid entering confidential information. // For traffic to flow between a subnet and an internet gateway, you must create a route rule accordingly in @@ -3169,7 +3360,7 @@ func (client VirtualNetworkClient) createIPSecConnection(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInternetGateway.go.html to see an example of how to use CreateInternetGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInternetGateway.go.html to see an example of how to use CreateInternetGateway API. func (client VirtualNetworkClient) CreateInternetGateway(ctx context.Context, request CreateInternetGatewayRequest) (response CreateInternetGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3231,7 +3422,7 @@ func (client VirtualNetworkClient) createInternetGateway(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateIpv6.go.html to see an example of how to use CreateIpv6 API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateIpv6.go.html to see an example of how to use CreateIpv6 API. func (client VirtualNetworkClient) CreateIpv6(ctx context.Context, request CreateIpv6Request) (response CreateIpv6Response, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3293,7 +3484,7 @@ func (client VirtualNetworkClient) createIpv6(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateLocalPeeringGateway.go.html to see an example of how to use CreateLocalPeeringGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateLocalPeeringGateway.go.html to see an example of how to use CreateLocalPeeringGateway API. func (client VirtualNetworkClient) CreateLocalPeeringGateway(ctx context.Context, request CreateLocalPeeringGatewayRequest) (response CreateLocalPeeringGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3356,7 +3547,7 @@ func (client VirtualNetworkClient) createLocalPeeringGateway(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateNatGateway.go.html to see an example of how to use CreateNatGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateNatGateway.go.html to see an example of how to use CreateNatGateway API. func (client VirtualNetworkClient) CreateNatGateway(ctx context.Context, request CreateNatGatewayRequest) (response CreateNatGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3418,7 +3609,7 @@ func (client VirtualNetworkClient) createNatGateway(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateNetworkSecurityGroup.go.html to see an example of how to use CreateNetworkSecurityGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateNetworkSecurityGroup.go.html to see an example of how to use CreateNetworkSecurityGroup API. func (client VirtualNetworkClient) CreateNetworkSecurityGroup(ctx context.Context, request CreateNetworkSecurityGroupRequest) (response CreateNetworkSecurityGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3476,13 +3667,13 @@ func (client VirtualNetworkClient) createNetworkSecurityGroup(ctx context.Contex return response, err } -// CreatePrivateIp Creates a secondary private IP for the specified VNIC. -// For more information about secondary private IPs, see -// IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingIPaddresses.htm). +// CreatePrivateIp Creates a private IP. +// For more information about private IPs, see +// IP Addresses (https://docs.oracle.com/iaas/Content/Network/Tasks/managingIPaddresses.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePrivateIp.go.html to see an example of how to use CreatePrivateIp API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePrivateIp.go.html to see an example of how to use CreatePrivateIp API. func (client VirtualNetworkClient) CreatePrivateIp(ctx context.Context, request CreatePrivateIpRequest) (response CreatePrivateIpResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3542,9 +3733,9 @@ func (client VirtualNetworkClient) createPrivateIp(ctx context.Context, request // CreatePublicIp Creates a public IP. Use the `lifetime` property to specify whether it's an ephemeral or // reserved public IP. For information about limits on how many you can create, see -// Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). +// Public IP Addresses (https://docs.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). // * **For an ephemeral public IP assigned to a private IP:** You must also specify a `privateIpId` -// with the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary private IP you want to assign the public IP to. The public IP is +// with the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary private IP you want to assign the public IP to. The public IP is // created in the same availability domain as the private IP. An ephemeral public IP must always be // assigned to a private IP, and only to the *primary* private IP on a VNIC, not a secondary // private IP. Exception: If you create a NatGateway, Oracle @@ -3560,7 +3751,7 @@ func (client VirtualNetworkClient) createPrivateIp(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePublicIp.go.html to see an example of how to use CreatePublicIp API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePublicIp.go.html to see an example of how to use CreatePublicIp API. func (client VirtualNetworkClient) CreatePublicIp(ctx context.Context, request CreatePublicIpRequest) (response CreatePublicIpResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3622,7 +3813,7 @@ func (client VirtualNetworkClient) createPublicIp(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePublicIpPool.go.html to see an example of how to use CreatePublicIpPool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePublicIpPool.go.html to see an example of how to use CreatePublicIpPool API. func (client VirtualNetworkClient) CreatePublicIpPool(ctx context.Context, request CreatePublicIpPoolRequest) (response CreatePublicIpPoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3684,7 +3875,7 @@ func (client VirtualNetworkClient) createPublicIpPool(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateRemotePeeringConnection.go.html to see an example of how to use CreateRemotePeeringConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateRemotePeeringConnection.go.html to see an example of how to use CreateRemotePeeringConnection API. // 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 @@ -3745,21 +3936,21 @@ func (client VirtualNetworkClient) createRemotePeeringConnection(ctx context.Con // CreateRouteTable Creates a new route table for the specified VCN. In the request you must also include at least one route // rule for the new route table. For information on the number of rules you can have in a route table, see -// Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For general information about route +// Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For general information about route // tables in your VCN and the types of targets you can use in route rules, -// see Route Tables (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). -// 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 route +// see Route Tables (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). +// For the purposes of access control, you must provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the route // table to reside. Notice that the route table 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 route // table in the same compartment as the VCN. 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). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about OCIDs, see +// Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the route table, otherwise a default is provided. // It does not have to be unique, and you can change it. Avoid entering confidential information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateRouteTable.go.html to see an example of how to use CreateRouteTable API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateRouteTable.go.html to see an example of how to use CreateRouteTable API. func (client VirtualNetworkClient) CreateRouteTable(ctx context.Context, request CreateRouteTableRequest) (response CreateRouteTableResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3818,21 +4009,21 @@ func (client VirtualNetworkClient) createRouteTable(ctx context.Context, request } // CreateSecurityList Creates a new security list for the specified VCN. For more information -// about security lists, see Security Lists (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securitylists.htm). +// about security lists, see Security Lists (https://docs.oracle.com/iaas/Content/Network/Concepts/securitylists.htm). // For information on the number of rules you can have in a security list, see -// Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). -// 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 security +// Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). +// For the purposes of access control, you must provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the security // list to reside. Notice that the security list 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 security // list in the same compartment as the VCN. 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). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about OCIDs, see +// Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the security list, otherwise a default is provided. // It does not have to be unique, and you can change it. Avoid entering confidential information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateSecurityList.go.html to see an example of how to use CreateSecurityList API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateSecurityList.go.html to see an example of how to use CreateSecurityList API. func (client VirtualNetworkClient) CreateSecurityList(ctx context.Context, request CreateSecurityListRequest) (response CreateSecurityListResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3891,10 +4082,10 @@ func (client VirtualNetworkClient) createSecurityList(ctx context.Context, reque } // CreateServiceGateway Creates a new service gateway in the specified compartment. -// 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 +// For the purposes of access control, you must provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want // the service gateway to reside. 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). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the service gateway, otherwise a default is provided. // It does not have to be unique, and you can change it. Avoid entering confidential information. // Use the ListServices operation to find service CIDR labels @@ -3902,7 +4093,7 @@ func (client VirtualNetworkClient) createSecurityList(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateServiceGateway.go.html to see an example of how to use CreateServiceGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateServiceGateway.go.html to see an example of how to use CreateServiceGateway API. func (client VirtualNetworkClient) CreateServiceGateway(ctx context.Context, request CreateServiceGatewayRequest) (response CreateServiceGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3962,33 +4153,33 @@ func (client VirtualNetworkClient) createServiceGateway(ctx context.Context, req // CreateSubnet Creates a new subnet in the specified VCN. You can't change the size of the subnet after creation, // so it's important to think about the size of subnets you need before creating them. -// For more information, see VCNs and Subnets (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVCNs.htm). +// For more information, see VCNs and Subnets (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVCNs.htm). // For information on the number of subnets you can have in a VCN, see -// Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). -// 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 subnet +// Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). +// For the purposes of access control, you must provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the subnet // to reside. Notice that the subnet doesn't have to be in the same compartment as the VCN, route tables, or // other Networking Service components. If you're not sure which compartment to use, put the subnet in // the same compartment as the VCN. 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). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about OCIDs, +// see Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally associate a route table with the subnet. If you don't, the subnet will use the // VCN's default route table. For more information about route tables, see -// Route Tables (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). +// Route Tables (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). // You may optionally associate a security list with the subnet. If you don't, the subnet will use the // VCN's default security list. For more information about security lists, see -// Security Lists (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securitylists.htm). +// Security Lists (https://docs.oracle.com/iaas/Content/Network/Concepts/securitylists.htm). // You may optionally associate a set of DHCP options with the subnet. If you don't, the subnet will use the // VCN's default set. For more information about DHCP options, see -// DHCP Options (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDHCP.htm). +// DHCP Options (https://docs.oracle.com/iaas/Content/Network/Tasks/managingDHCP.htm). // You may optionally specify a *display name* for the subnet, otherwise a default is provided. // It does not have to be unique, and you can change it. Avoid entering confidential information. // You can also add a DNS label for the subnet, which is required if you want the Internet and // VCN Resolver to resolve hostnames for instances in the subnet. For more information, see -// DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). +// DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateSubnet.go.html to see an example of how to use CreateSubnet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateSubnet.go.html to see an example of how to use CreateSubnet API. func (client VirtualNetworkClient) CreateSubnet(ctx context.Context, request CreateSubnetRequest) (response CreateSubnetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4047,34 +4238,34 @@ func (client VirtualNetworkClient) createSubnet(ctx context.Context, request com } // CreateVcn Creates a new virtual cloud network (VCN). For more information, see -// VCNs and Subnets (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVCNs.htm). +// VCNs and Subnets (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVCNs.htm). // For the VCN, you specify a list of one or more IPv4 CIDR blocks 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 does not exceed the limit of CIDR blocks allowed per VCN. // For a CIDR block, Oracle recommends that you use one of the private IP address ranges specified in RFC 1918 (https://tools.ietf.org/html/rfc1918) (10.0.0.0/8, 172.16/12, and 192.168/16). Example: // 172.16.0.0/16. The CIDR blocks can range from /16 to /30. -// 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 VCN to +// For the purposes of access control, you must provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the VCN to // reside. Consult an Oracle Cloud Infrastructure administrator in your organization if you're not sure which // compartment to use. Notice that the VCN doesn't have to be in the same compartment as the subnets or other // Networking Service components. 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). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about OCIDs, see +// Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the VCN, otherwise a default is provided. It does not have to // be unique, and you can change it. Avoid entering confidential information. // You can also add a DNS label for the VCN, which is required if you want the instances to use the // Interent and VCN Resolver option for DNS in the VCN. For more information, see -// DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). +// DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // The VCN automatically comes with a default route table, default security list, and default set of DHCP options. -// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for each is returned in the response. You can't delete these default objects, but you can change their +// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for each is returned in the response. You can't delete these default objects, but you can change their // contents (that is, change the route rules, security list rules, and so on). // The VCN and subnets you create are not accessible until you attach an internet gateway or set up a Site-to-Site VPN // or FastConnect. For more information, see -// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). +// Overview of the Networking Service (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVcn.go.html to see an example of how to use CreateVcn API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVcn.go.html to see an example of how to use CreateVcn API. func (client VirtualNetworkClient) CreateVcn(ctx context.Context, request CreateVcnRequest) (response CreateVcnResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4134,26 +4325,26 @@ func (client VirtualNetworkClient) createVcn(ctx context.Context, request common // CreateVirtualCircuit Creates a new virtual circuit 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/iaas/Content/General/Concepts/identifiers.htm) of the +// FastConnect Overview (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// For the purposes of access control, you must provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the // compartment where you want the virtual circuit to reside. If you're // not sure which compartment to use, put the virtual circuit in the // same compartment with the DRG it's using. 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). +// Overview of the IAM Service (https://docs.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). +// Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the virtual circuit. // It does not have to be unique, and you can change it. Avoid entering confidential information. // **Important:** When creating a virtual circuit, you specify a DRG for // the traffic to flow through. Make sure you attach the DRG to your // 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). +// Route Tables (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVirtualCircuit.go.html to see an example of how to use CreateVirtualCircuit API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVirtualCircuit.go.html to see an example of how to use CreateVirtualCircuit API. // 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 @@ -4216,7 +4407,7 @@ func (client VirtualNetworkClient) createVirtualCircuit(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVlan.go.html to see an example of how to use CreateVlan API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVlan.go.html to see an example of how to use CreateVlan API. func (client VirtualNetworkClient) CreateVlan(ctx context.Context, request CreateVlanRequest) (response CreateVlanResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4275,16 +4466,16 @@ func (client VirtualNetworkClient) createVlan(ctx context.Context, request commo } // 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/iaas/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.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). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the VTAP, otherwise a default is provided. // It does not have to be unique, and you can change it. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVtap.go.html to see an example of how to use CreateVtap API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVtap.go.html to see an example of how to use CreateVtap API. func (client VirtualNetworkClient) CreateVtap(ctx context.Context, request CreateVtapRequest) (response CreateVtapResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4342,15 +4533,75 @@ func (client VirtualNetworkClient) createVtap(ctx context.Context, request commo return response, err } +// DeleteByoasn Deletes the specified `Byoasn` resource. +// The resource must be in one of the following states: CREATING, ACTIVE or FAILED. +// It must not be in use by any of the byoipRanges or deletion will fail. +// You must specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteByoasn.go.html to see an example of how to use DeleteByoasn API. +func (client VirtualNetworkClient) DeleteByoasn(ctx context.Context, request DeleteByoasnRequest) (response DeleteByoasnResponse, 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.deleteByoasn, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteByoasnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteByoasnResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteByoasnResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteByoasnResponse") + } + return +} + +// deleteByoasn implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) deleteByoasn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/byoasns/{byoasnId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteByoasnResponse + 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/Byoasn/DeleteByoasn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteByoasn", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeleteByoipRange Deletes the specified `ByoipRange` resource. // The resource must be in one of the following states: CREATING, PROVISIONED, ACTIVE, or FAILED. // It must not have any subranges currently allocated to a PublicIpPool object or the deletion will fail. -// You must specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// You must specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // If the `ByoipRange` resource is currently in the PROVISIONED or ACTIVE state, it will be de-provisioned and then deleted. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteByoipRange.go.html to see an example of how to use DeleteByoipRange API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteByoipRange.go.html to see an example of how to use DeleteByoipRange API. func (client VirtualNetworkClient) DeleteByoipRange(ctx context.Context, request DeleteByoipRangeRequest) (response DeleteByoipRangeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4408,7 +4659,7 @@ func (client VirtualNetworkClient) deleteByoipRange(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCaptureFilter.go.html to see an example of how to use DeleteCaptureFilter API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCaptureFilter.go.html to see an example of how to use DeleteCaptureFilter API. func (client VirtualNetworkClient) DeleteCaptureFilter(ctx context.Context, request DeleteCaptureFilterRequest) (response DeleteCaptureFilterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4467,7 +4718,7 @@ func (client VirtualNetworkClient) deleteCaptureFilter(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCpe.go.html to see an example of how to use DeleteCpe API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCpe.go.html to see an example of how to use DeleteCpe API. // 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 @@ -4526,7 +4777,7 @@ func (client VirtualNetworkClient) deleteCpe(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCrossConnect.go.html to see an example of how to use DeleteCrossConnect API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCrossConnect.go.html to see an example of how to use DeleteCrossConnect API. // 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 @@ -4586,7 +4837,7 @@ func (client VirtualNetworkClient) deleteCrossConnect(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCrossConnectGroup.go.html to see an example of how to use DeleteCrossConnectGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCrossConnectGroup.go.html to see an example of how to use DeleteCrossConnectGroup API. // 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 @@ -4647,7 +4898,7 @@ func (client VirtualNetworkClient) deleteCrossConnectGroup(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDhcpOptions.go.html to see an example of how to use DeleteDhcpOptions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDhcpOptions.go.html to see an example of how to use DeleteDhcpOptions API. func (client VirtualNetworkClient) DeleteDhcpOptions(ctx context.Context, request DeleteDhcpOptionsRequest) (response DeleteDhcpOptionsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4707,7 +4958,7 @@ func (client VirtualNetworkClient) deleteDhcpOptions(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrg.go.html to see an example of how to use DeleteDrg API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrg.go.html to see an example of how to use DeleteDrg API. func (client VirtualNetworkClient) DeleteDrg(ctx context.Context, request DeleteDrgRequest) (response DeleteDrgResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4766,7 +5017,7 @@ func (client VirtualNetworkClient) deleteDrg(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgAttachment.go.html to see an example of how to use DeleteDrgAttachment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgAttachment.go.html to see an example of how to use DeleteDrgAttachment API. func (client VirtualNetworkClient) DeleteDrgAttachment(ctx context.Context, request DeleteDrgAttachmentRequest) (response DeleteDrgAttachmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4824,7 +5075,7 @@ func (client VirtualNetworkClient) deleteDrgAttachment(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgRouteDistribution.go.html to see an example of how to use DeleteDrgRouteDistribution API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgRouteDistribution.go.html to see an example of how to use DeleteDrgRouteDistribution API. func (client VirtualNetworkClient) DeleteDrgRouteDistribution(ctx context.Context, request DeleteDrgRouteDistributionRequest) (response DeleteDrgRouteDistributionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4881,7 +5132,7 @@ func (client VirtualNetworkClient) deleteDrgRouteDistribution(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgRouteTable.go.html to see an example of how to use DeleteDrgRouteTable API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgRouteTable.go.html to see an example of how to use DeleteDrgRouteTable API. func (client VirtualNetworkClient) DeleteDrgRouteTable(ctx context.Context, request DeleteDrgRouteTableRequest) (response DeleteDrgRouteTableResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4944,7 +5195,7 @@ func (client VirtualNetworkClient) deleteDrgRouteTable(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteIPSecConnection.go.html to see an example of how to use DeleteIPSecConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteIPSecConnection.go.html to see an example of how to use DeleteIPSecConnection API. // 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 @@ -5005,7 +5256,7 @@ func (client VirtualNetworkClient) deleteIPSecConnection(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInternetGateway.go.html to see an example of how to use DeleteInternetGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInternetGateway.go.html to see an example of how to use DeleteInternetGateway API. func (client VirtualNetworkClient) DeleteInternetGateway(ctx context.Context, request DeleteInternetGatewayRequest) (response DeleteInternetGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5058,12 +5309,12 @@ 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/iaas/Content/General/Concepts/identifiers.htm). +// DeleteIpv6 Unassigns and deletes the specified IPv6. You must specify the object's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // The IPv6 address is returned to the subnet's pool of available addresses. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteIpv6.go.html to see an example of how to use DeleteIpv6 API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteIpv6.go.html to see an example of how to use DeleteIpv6 API. func (client VirtualNetworkClient) DeleteIpv6(ctx context.Context, request DeleteIpv6Request) (response DeleteIpv6Response, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5122,7 +5373,7 @@ func (client VirtualNetworkClient) deleteIpv6(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteLocalPeeringGateway.go.html to see an example of how to use DeleteLocalPeeringGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteLocalPeeringGateway.go.html to see an example of how to use DeleteLocalPeeringGateway API. func (client VirtualNetworkClient) DeleteLocalPeeringGateway(ctx context.Context, request DeleteLocalPeeringGatewayRequest) (response DeleteLocalPeeringGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5182,7 +5433,7 @@ func (client VirtualNetworkClient) deleteLocalPeeringGateway(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteNatGateway.go.html to see an example of how to use DeleteNatGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteNatGateway.go.html to see an example of how to use DeleteNatGateway API. func (client VirtualNetworkClient) DeleteNatGateway(ctx context.Context, request DeleteNatGatewayRequest) (response DeleteNatGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5239,12 +5490,12 @@ func (client VirtualNetworkClient) deleteNatGateway(ctx context.Context, request // To get a list of the VNICs in a network security group, use // ListNetworkSecurityGroupVnics. // Each returned NetworkSecurityGroupVnic object -// contains both the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC and the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC's parent resource (for example, +// contains both the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC and the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC's parent resource (for example, // the Compute instance that the VNIC is attached to). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteNetworkSecurityGroup.go.html to see an example of how to use DeleteNetworkSecurityGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteNetworkSecurityGroup.go.html to see an example of how to use DeleteNetworkSecurityGroup API. func (client VirtualNetworkClient) DeleteNetworkSecurityGroup(ctx context.Context, request DeleteNetworkSecurityGroupRequest) (response DeleteNetworkSecurityGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5298,18 +5549,18 @@ func (client VirtualNetworkClient) deleteNetworkSecurityGroup(ctx context.Contex } // DeletePrivateIp Unassigns and deletes the specified private IP. You must -// specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). The private IP address is returned to +// specify the object's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). The private IP address is returned to // the subnet's pool of available addresses. // This operation cannot be used with primary private IPs, which are // automatically unassigned and deleted when the VNIC is terminated. // **Important:** If a secondary private IP is the -// target of a route rule (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip), +// target of a route rule (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip), // unassigning it from the VNIC causes that route rule to blackhole and the traffic // will be dropped. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePrivateIp.go.html to see an example of how to use DeletePrivateIp API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePrivateIp.go.html to see an example of how to use DeletePrivateIp API. func (client VirtualNetworkClient) DeletePrivateIp(ctx context.Context, request DeletePrivateIpRequest) (response DeletePrivateIpResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5363,7 +5614,7 @@ func (client VirtualNetworkClient) deletePrivateIp(ctx context.Context, request } // DeletePublicIp Unassigns and deletes the specified public IP (either ephemeral or reserved). -// You must specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). The public IP address is returned to the +// You must specify the object's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). The public IP address is returned to the // Oracle Cloud Infrastructure public IP pool. // **Note:** You cannot update, unassign, or delete the public IP that Oracle automatically // assigned to an entity for you (such as a load balancer or NAT gateway). The public IP is @@ -5377,7 +5628,7 @@ func (client VirtualNetworkClient) deletePrivateIp(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePublicIp.go.html to see an example of how to use DeletePublicIp API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePublicIp.go.html to see an example of how to use DeletePublicIp API. func (client VirtualNetworkClient) DeletePublicIp(ctx context.Context, request DeletePublicIpRequest) (response DeletePublicIpResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5432,11 +5683,11 @@ func (client VirtualNetworkClient) deletePublicIp(ctx context.Context, request c // DeletePublicIpPool Deletes the specified public IP pool. // To delete a public IP pool it must not have any active IP address allocations. -// You must specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) when deleting an IP pool. +// You must specify the object's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) when deleting an IP pool. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePublicIpPool.go.html to see an example of how to use DeletePublicIpPool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePublicIpPool.go.html to see an example of how to use DeletePublicIpPool API. func (client VirtualNetworkClient) DeletePublicIpPool(ctx context.Context, request DeletePublicIpPoolRequest) (response DeletePublicIpPoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5495,7 +5746,7 @@ func (client VirtualNetworkClient) deletePublicIpPool(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteRemotePeeringConnection.go.html to see an example of how to use DeleteRemotePeeringConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteRemotePeeringConnection.go.html to see an example of how to use DeleteRemotePeeringConnection API. // 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 @@ -5556,7 +5807,7 @@ func (client VirtualNetworkClient) deleteRemotePeeringConnection(ctx context.Con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteRouteTable.go.html to see an example of how to use DeleteRouteTable API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteRouteTable.go.html to see an example of how to use DeleteRouteTable API. func (client VirtualNetworkClient) DeleteRouteTable(ctx context.Context, request DeleteRouteTableRequest) (response DeleteRouteTableResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5616,7 +5867,7 @@ func (client VirtualNetworkClient) deleteRouteTable(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteSecurityList.go.html to see an example of how to use DeleteSecurityList API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteSecurityList.go.html to see an example of how to use DeleteSecurityList API. func (client VirtualNetworkClient) DeleteSecurityList(ctx context.Context, request DeleteSecurityListRequest) (response DeleteSecurityListResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5674,7 +5925,7 @@ func (client VirtualNetworkClient) deleteSecurityList(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteServiceGateway.go.html to see an example of how to use DeleteServiceGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteServiceGateway.go.html to see an example of how to use DeleteServiceGateway API. func (client VirtualNetworkClient) DeleteServiceGateway(ctx context.Context, request DeleteServiceGatewayRequest) (response DeleteServiceGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5733,7 +5984,7 @@ func (client VirtualNetworkClient) deleteServiceGateway(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteSubnet.go.html to see an example of how to use DeleteSubnet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteSubnet.go.html to see an example of how to use DeleteSubnet API. func (client VirtualNetworkClient) DeleteSubnet(ctx context.Context, request DeleteSubnetRequest) (response DeleteSubnetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5794,7 +6045,7 @@ func (client VirtualNetworkClient) deleteSubnet(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVcn.go.html to see an example of how to use DeleteVcn API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVcn.go.html to see an example of how to use DeleteVcn API. func (client VirtualNetworkClient) DeleteVcn(ctx context.Context, request DeleteVcnRequest) (response DeleteVcnResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5854,7 +6105,7 @@ func (client VirtualNetworkClient) deleteVcn(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVirtualCircuit.go.html to see an example of how to use DeleteVirtualCircuit API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVirtualCircuit.go.html to see an example of how to use DeleteVirtualCircuit API. // 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 @@ -5912,7 +6163,7 @@ func (client VirtualNetworkClient) deleteVirtualCircuit(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVlan.go.html to see an example of how to use DeleteVlan API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVlan.go.html to see an example of how to use DeleteVlan API. func (client VirtualNetworkClient) DeleteVlan(ctx context.Context, request DeleteVlanRequest) (response DeleteVlanResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5970,7 +6221,7 @@ func (client VirtualNetworkClient) deleteVlan(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVtap.go.html to see an example of how to use DeleteVtap API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVtap.go.html to see an example of how to use DeleteVtap API. func (client VirtualNetworkClient) DeleteVtap(ctx context.Context, request DeleteVtapRequest) (response DeleteVtapResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6037,7 +6288,7 @@ func (client VirtualNetworkClient) deleteVtap(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachServiceId.go.html to see an example of how to use DetachServiceId API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachServiceId.go.html to see an example of how to use DetachServiceId API. func (client VirtualNetworkClient) DetachServiceId(ctx context.Context, request DetachServiceIdRequest) (response DetachServiceIdResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6094,7 +6345,7 @@ func (client VirtualNetworkClient) detachServiceId(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAllDrgAttachments.go.html to see an example of how to use GetAllDrgAttachments API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAllDrgAttachments.go.html to see an example of how to use GetAllDrgAttachments API. func (client VirtualNetworkClient) GetAllDrgAttachments(ctx context.Context, request GetAllDrgAttachmentsRequest) (response GetAllDrgAttachmentsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6151,7 +6402,7 @@ func (client VirtualNetworkClient) getAllDrgAttachments(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAllowedIkeIPSecParameters.go.html to see an example of how to use GetAllowedIkeIPSecParameters API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAllowedIkeIPSecParameters.go.html to see an example of how to use GetAllowedIkeIPSecParameters API. // 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 @@ -6205,11 +6456,69 @@ func (client VirtualNetworkClient) getAllowedIkeIPSecParameters(ctx context.Cont return response, err } -// GetByoipRange Gets the `ByoipRange` resource. You must specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// GetByoasn Gets the `Byoasn` resource. You must specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetByoasn.go.html to see an example of how to use GetByoasn API. +// A default retry strategy applies to this operation GetByoasn() +func (client VirtualNetworkClient) GetByoasn(ctx context.Context, request GetByoasnRequest) (response GetByoasnResponse, 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.getByoasn, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetByoasnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetByoasnResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetByoasnResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetByoasnResponse") + } + return +} + +// getByoasn implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) getByoasn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/byoasns/{byoasnId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetByoasnResponse + 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/Byoasn/GetByoasn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetByoasn", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetByoipRange Gets the `ByoipRange` resource. You must specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetByoipRange.go.html to see an example of how to use GetByoipRange API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetByoipRange.go.html to see an example of how to use GetByoipRange API. func (client VirtualNetworkClient) GetByoipRange(ctx context.Context, request GetByoipRangeRequest) (response GetByoipRangeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6266,7 +6575,7 @@ func (client VirtualNetworkClient) getByoipRange(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCaptureFilter.go.html to see an example of how to use GetCaptureFilter API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCaptureFilter.go.html to see an example of how to use GetCaptureFilter API. func (client VirtualNetworkClient) GetCaptureFilter(ctx context.Context, request GetCaptureFilterRequest) (response GetCaptureFilterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6323,7 +6632,7 @@ func (client VirtualNetworkClient) getCaptureFilter(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpe.go.html to see an example of how to use GetCpe API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpe.go.html to see an example of how to use GetCpe API. // 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 @@ -6395,7 +6704,7 @@ func (client VirtualNetworkClient) getCpe(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpeDeviceConfigContent.go.html to see an example of how to use GetCpeDeviceConfigContent API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpeDeviceConfigContent.go.html to see an example of how to use GetCpeDeviceConfigContent API. // 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 @@ -6459,7 +6768,7 @@ func (client VirtualNetworkClient) getCpeDeviceConfigContent(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpeDeviceShape.go.html to see an example of how to use GetCpeDeviceShape API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpeDeviceShape.go.html to see an example of how to use GetCpeDeviceShape API. // 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 @@ -6517,7 +6826,7 @@ func (client VirtualNetworkClient) getCpeDeviceShape(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnect.go.html to see an example of how to use GetCrossConnect API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnect.go.html to see an example of how to use GetCrossConnect API. // 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 @@ -6575,7 +6884,7 @@ func (client VirtualNetworkClient) getCrossConnect(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectGroup.go.html to see an example of how to use GetCrossConnectGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectGroup.go.html to see an example of how to use GetCrossConnectGroup API. // 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 @@ -6633,7 +6942,7 @@ func (client VirtualNetworkClient) getCrossConnectGroup(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectLetterOfAuthority.go.html to see an example of how to use GetCrossConnectLetterOfAuthority API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectLetterOfAuthority.go.html to see an example of how to use GetCrossConnectLetterOfAuthority API. // 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 @@ -6691,7 +7000,7 @@ func (client VirtualNetworkClient) getCrossConnectLetterOfAuthority(ctx context. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectStatus.go.html to see an example of how to use GetCrossConnectStatus API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectStatus.go.html to see an example of how to use GetCrossConnectStatus API. // 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 @@ -6749,7 +7058,7 @@ func (client VirtualNetworkClient) getCrossConnectStatus(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDhcpOptions.go.html to see an example of how to use GetDhcpOptions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDhcpOptions.go.html to see an example of how to use GetDhcpOptions API. func (client VirtualNetworkClient) GetDhcpOptions(ctx context.Context, request GetDhcpOptionsRequest) (response GetDhcpOptionsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6806,7 +7115,7 @@ func (client VirtualNetworkClient) getDhcpOptions(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrg.go.html to see an example of how to use GetDrg API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrg.go.html to see an example of how to use GetDrg API. func (client VirtualNetworkClient) GetDrg(ctx context.Context, request GetDrgRequest) (response GetDrgResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6863,7 +7172,7 @@ func (client VirtualNetworkClient) getDrg(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgAttachment.go.html to see an example of how to use GetDrgAttachment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgAttachment.go.html to see an example of how to use GetDrgAttachment API. func (client VirtualNetworkClient) GetDrgAttachment(ctx context.Context, request GetDrgAttachmentRequest) (response GetDrgAttachmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -6917,11 +7226,11 @@ func (client VirtualNetworkClient) getDrgAttachment(ctx context.Context, request } // 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). +// Redundancy Remedies (https://docs.oracle.com/iaas/Content/Network/Troubleshoot/drgredundancy.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRedundancyStatus.go.html to see an example of how to use GetDrgRedundancyStatus API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRedundancyStatus.go.html to see an example of how to use GetDrgRedundancyStatus API. // 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 @@ -6979,7 +7288,7 @@ func (client VirtualNetworkClient) getDrgRedundancyStatus(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRouteDistribution.go.html to see an example of how to use GetDrgRouteDistribution API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRouteDistribution.go.html to see an example of how to use GetDrgRouteDistribution API. func (client VirtualNetworkClient) GetDrgRouteDistribution(ctx context.Context, request GetDrgRouteDistributionRequest) (response GetDrgRouteDistributionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -7036,7 +7345,7 @@ func (client VirtualNetworkClient) getDrgRouteDistribution(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRouteTable.go.html to see an example of how to use GetDrgRouteTable API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRouteTable.go.html to see an example of how to use GetDrgRouteTable API. func (client VirtualNetworkClient) GetDrgRouteTable(ctx context.Context, request GetDrgRouteTableRequest) (response GetDrgRouteTableResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -7090,11 +7399,11 @@ func (client VirtualNetworkClient) getDrgRouteTable(ctx context.Context, request } // GetFastConnectProviderService Gets the specified provider service. -// For more information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// For more information, see FastConnect Overview (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetFastConnectProviderService.go.html to see an example of how to use GetFastConnectProviderService API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetFastConnectProviderService.go.html to see an example of how to use GetFastConnectProviderService API. // 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 @@ -7153,7 +7462,7 @@ func (client VirtualNetworkClient) getFastConnectProviderService(ctx context.Con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetFastConnectProviderServiceKey.go.html to see an example of how to use GetFastConnectProviderServiceKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetFastConnectProviderServiceKey.go.html to see an example of how to use GetFastConnectProviderServiceKey API. // 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 @@ -7213,7 +7522,7 @@ func (client VirtualNetworkClient) getFastConnectProviderServiceKey(ctx context. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnection.go.html to see an example of how to use GetIPSecConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnection.go.html to see an example of how to use GetIPSecConnection API. // 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 @@ -7273,7 +7582,7 @@ func (client VirtualNetworkClient) getIPSecConnection(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionDeviceConfig.go.html to see an example of how to use GetIPSecConnectionDeviceConfig API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionDeviceConfig.go.html to see an example of how to use GetIPSecConnectionDeviceConfig API. // 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 @@ -7332,7 +7641,7 @@ func (client VirtualNetworkClient) getIPSecConnectionDeviceConfig(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionDeviceStatus.go.html to see an example of how to use GetIPSecConnectionDeviceStatus API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionDeviceStatus.go.html to see an example of how to use GetIPSecConnectionDeviceStatus API. // 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 @@ -7392,7 +7701,7 @@ func (client VirtualNetworkClient) getIPSecConnectionDeviceStatus(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnel.go.html to see an example of how to use GetIPSecConnectionTunnel API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnel.go.html to see an example of how to use GetIPSecConnectionTunnel API. // 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 @@ -7450,7 +7759,7 @@ func (client VirtualNetworkClient) getIPSecConnectionTunnel(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnelError.go.html to see an example of how to use GetIPSecConnectionTunnelError API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnelError.go.html to see an example of how to use GetIPSecConnectionTunnelError API. // 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 @@ -7509,7 +7818,7 @@ func (client VirtualNetworkClient) getIPSecConnectionTunnelError(ctx context.Con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnelSharedSecret.go.html to see an example of how to use GetIPSecConnectionTunnelSharedSecret API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnelSharedSecret.go.html to see an example of how to use GetIPSecConnectionTunnelSharedSecret API. // 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 @@ -7567,7 +7876,7 @@ func (client VirtualNetworkClient) getIPSecConnectionTunnelSharedSecret(ctx cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInternetGateway.go.html to see an example of how to use GetInternetGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInternetGateway.go.html to see an example of how to use GetInternetGateway API. func (client VirtualNetworkClient) GetInternetGateway(ctx context.Context, request GetInternetGatewayRequest) (response GetInternetGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -7639,7 +7948,7 @@ func (client VirtualNetworkClient) getInternetGateway(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIpsecCpeDeviceConfigContent.go.html to see an example of how to use GetIpsecCpeDeviceConfigContent API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIpsecCpeDeviceConfigContent.go.html to see an example of how to use GetIpsecCpeDeviceConfigContent API. // 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 @@ -7692,14 +8001,14 @@ 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/iaas/Content/General/Concepts/identifiers.htm). +// GetIpv6 Gets the specified IPv6. You must specify the object's OCID (https://docs.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). +// with the IPv6 address (for example, 2001:0db8:0123:1111:98fe:dcba:9876:4321) and subnet OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIpv6.go.html to see an example of how to use GetIpv6 API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIpv6.go.html to see an example of how to use GetIpv6 API. func (client VirtualNetworkClient) GetIpv6(ctx context.Context, request GetIpv6Request) (response GetIpv6Response, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -7756,7 +8065,7 @@ func (client VirtualNetworkClient) getIpv6(ctx context.Context, request common.O // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetLocalPeeringGateway.go.html to see an example of how to use GetLocalPeeringGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetLocalPeeringGateway.go.html to see an example of how to use GetLocalPeeringGateway API. func (client VirtualNetworkClient) GetLocalPeeringGateway(ctx context.Context, request GetLocalPeeringGatewayRequest) (response GetLocalPeeringGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -7813,7 +8122,7 @@ func (client VirtualNetworkClient) getLocalPeeringGateway(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNatGateway.go.html to see an example of how to use GetNatGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNatGateway.go.html to see an example of how to use GetNatGateway API. func (client VirtualNetworkClient) GetNatGateway(ctx context.Context, request GetNatGatewayRequest) (response GetNatGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -7874,7 +8183,7 @@ func (client VirtualNetworkClient) getNatGateway(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNetworkSecurityGroup.go.html to see an example of how to use GetNetworkSecurityGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNetworkSecurityGroup.go.html to see an example of how to use GetNetworkSecurityGroup API. func (client VirtualNetworkClient) GetNetworkSecurityGroup(ctx context.Context, request GetNetworkSecurityGroupRequest) (response GetNetworkSecurityGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -7931,7 +8240,7 @@ func (client VirtualNetworkClient) getNetworkSecurityGroup(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNetworkingTopology.go.html to see an example of how to use GetNetworkingTopology API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNetworkingTopology.go.html to see an example of how to use GetNetworkingTopology API. func (client VirtualNetworkClient) GetNetworkingTopology(ctx context.Context, request GetNetworkingTopologyRequest) (response GetNetworkingTopologyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -7984,14 +8293,14 @@ func (client VirtualNetworkClient) getNetworkingTopology(ctx context.Context, re return response, err } -// GetPrivateIp Gets the specified private IP. You must specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// GetPrivateIp Gets the specified private IP. You must specify the object's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // Alternatively, you can get the object by using // ListPrivateIps -// with the private IP address (for example, 10.0.3.3) and subnet OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// with the private IP address (for example, 10.0.3.3) and subnet OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPrivateIp.go.html to see an example of how to use GetPrivateIp API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPrivateIp.go.html to see an example of how to use GetPrivateIp API. func (client VirtualNetworkClient) GetPrivateIp(ctx context.Context, request GetPrivateIpRequest) (response GetPrivateIpResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8044,18 +8353,18 @@ func (client VirtualNetworkClient) getPrivateIp(ctx context.Context, request com return response, err } -// GetPublicIp Gets the specified public IP. You must specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// GetPublicIp Gets the specified public IP. You must specify the object's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // Alternatively, you can get the object by using GetPublicIpByIpAddress // with the public IP address (for example, 203.0.113.2). // Or you can use GetPublicIpByPrivateIpId -// with the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP that the public IP is assigned to. +// with the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP that the public IP is assigned to. // **Note:** If you're fetching a reserved public IP that is in the process of being // moved to a different private IP, the service returns the public IP object with -// `lifecycleState` = ASSIGNING and `assignedEntityId` = OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target private IP. +// `lifecycleState` = ASSIGNING and `assignedEntityId` = OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target private IP. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIp.go.html to see an example of how to use GetPublicIp API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIp.go.html to see an example of how to use GetPublicIp API. func (client VirtualNetworkClient) GetPublicIp(ctx context.Context, request GetPublicIpRequest) (response GetPublicIpResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8111,11 +8420,11 @@ func (client VirtualNetworkClient) getPublicIp(ctx context.Context, request comm // GetPublicIpByIpAddress Gets the public IP based on the public IP address (for example, 203.0.113.2). // **Note:** If you're fetching a reserved public IP that is in the process of being // moved to a different private IP, the service returns the public IP object with -// `lifecycleState` = ASSIGNING and `assignedEntityId` = OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target private IP. +// `lifecycleState` = ASSIGNING and `assignedEntityId` = OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target private IP. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpByIpAddress.go.html to see an example of how to use GetPublicIpByIpAddress API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpByIpAddress.go.html to see an example of how to use GetPublicIpByIpAddress API. func (client VirtualNetworkClient) GetPublicIpByIpAddress(ctx context.Context, request GetPublicIpByIpAddressRequest) (response GetPublicIpByIpAddressResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8171,17 +8480,17 @@ func (client VirtualNetworkClient) getPublicIpByIpAddress(ctx context.Context, r // GetPublicIpByPrivateIpId Gets the public IP assigned to the specified private IP. You must specify the OCID // of the private IP. If no public IP is assigned, a 404 is returned. // **Note:** If you're fetching a reserved public IP that is in the process of being -// moved to a different private IP, and you provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the original private -// IP, this operation returns a 404. If you instead provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target +// moved to a different private IP, and you provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the original private +// IP, this operation returns a 404. If you instead provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target // private IP, or if you instead call // GetPublicIp or // GetPublicIpByIpAddress, the // service returns the public IP object with `lifecycleState` = ASSIGNING and -// `assignedEntityId` = OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target private IP. +// `assignedEntityId` = OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target private IP. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpByPrivateIpId.go.html to see an example of how to use GetPublicIpByPrivateIpId API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpByPrivateIpId.go.html to see an example of how to use GetPublicIpByPrivateIpId API. func (client VirtualNetworkClient) GetPublicIpByPrivateIpId(ctx context.Context, request GetPublicIpByPrivateIpIdRequest) (response GetPublicIpByPrivateIpIdResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8234,11 +8543,11 @@ func (client VirtualNetworkClient) getPublicIpByPrivateIpId(ctx context.Context, return response, err } -// GetPublicIpPool Gets the specified `PublicIpPool` object. You must specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// GetPublicIpPool Gets the specified `PublicIpPool` object. You must specify the object's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpPool.go.html to see an example of how to use GetPublicIpPool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpPool.go.html to see an example of how to use GetPublicIpPool API. func (client VirtualNetworkClient) GetPublicIpPool(ctx context.Context, request GetPublicIpPoolRequest) (response GetPublicIpPoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8295,7 +8604,7 @@ func (client VirtualNetworkClient) getPublicIpPool(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetRemotePeeringConnection.go.html to see an example of how to use GetRemotePeeringConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetRemotePeeringConnection.go.html to see an example of how to use GetRemotePeeringConnection API. // 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 @@ -8353,7 +8662,7 @@ func (client VirtualNetworkClient) getRemotePeeringConnection(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetResourceIpInventory.go.html to see an example of how to use GetResourceIpInventory API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetResourceIpInventory.go.html to see an example of how to use GetResourceIpInventory API. func (client VirtualNetworkClient) GetResourceIpInventory(ctx context.Context, request GetResourceIpInventoryRequest) (response GetResourceIpInventoryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8410,7 +8719,7 @@ func (client VirtualNetworkClient) getResourceIpInventory(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetRouteTable.go.html to see an example of how to use GetRouteTable API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetRouteTable.go.html to see an example of how to use GetRouteTable API. func (client VirtualNetworkClient) GetRouteTable(ctx context.Context, request GetRouteTableRequest) (response GetRouteTableResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8467,7 +8776,7 @@ func (client VirtualNetworkClient) getRouteTable(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSecurityList.go.html to see an example of how to use GetSecurityList API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSecurityList.go.html to see an example of how to use GetSecurityList API. func (client VirtualNetworkClient) GetSecurityList(ctx context.Context, request GetSecurityListRequest) (response GetSecurityListResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8524,7 +8833,7 @@ func (client VirtualNetworkClient) getSecurityList(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetService.go.html to see an example of how to use GetService API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetService.go.html to see an example of how to use GetService API. func (client VirtualNetworkClient) GetService(ctx context.Context, request GetServiceRequest) (response GetServiceResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8581,7 +8890,7 @@ func (client VirtualNetworkClient) getService(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetServiceGateway.go.html to see an example of how to use GetServiceGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetServiceGateway.go.html to see an example of how to use GetServiceGateway API. func (client VirtualNetworkClient) GetServiceGateway(ctx context.Context, request GetServiceGatewayRequest) (response GetServiceGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8638,7 +8947,7 @@ func (client VirtualNetworkClient) getServiceGateway(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnet.go.html to see an example of how to use GetSubnet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnet.go.html to see an example of how to use GetSubnet API. func (client VirtualNetworkClient) GetSubnet(ctx context.Context, request GetSubnetRequest) (response GetSubnetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8691,11 +9000,11 @@ func (client VirtualNetworkClient) getSubnet(ctx context.Context, request common return response, err } -// GetSubnetCidrUtilization Gets the CIDR utilization data of the specified subnet. Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// GetSubnetCidrUtilization Gets the CIDR utilization data of the specified subnet. Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetCidrUtilization.go.html to see an example of how to use GetSubnetCidrUtilization API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetCidrUtilization.go.html to see an example of how to use GetSubnetCidrUtilization API. func (client VirtualNetworkClient) GetSubnetCidrUtilization(ctx context.Context, request GetSubnetCidrUtilizationRequest) (response GetSubnetCidrUtilizationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8748,11 +9057,11 @@ func (client VirtualNetworkClient) getSubnetCidrUtilization(ctx context.Context, return response, err } -// GetSubnetIpInventory Gets the IP Inventory data of the specified subnet. Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// GetSubnetIpInventory Gets the IP Inventory data of the specified subnet. Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetIpInventory.go.html to see an example of how to use GetSubnetIpInventory API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetIpInventory.go.html to see an example of how to use GetSubnetIpInventory API. func (client VirtualNetworkClient) GetSubnetIpInventory(ctx context.Context, request GetSubnetIpInventoryRequest) (response GetSubnetIpInventoryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8809,7 +9118,7 @@ func (client VirtualNetworkClient) getSubnetIpInventory(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetTopology.go.html to see an example of how to use GetSubnetTopology API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetTopology.go.html to see an example of how to use GetSubnetTopology API. func (client VirtualNetworkClient) GetSubnetTopology(ctx context.Context, request GetSubnetTopologyRequest) (response GetSubnetTopologyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8870,7 +9179,7 @@ func (client VirtualNetworkClient) getSubnetTopology(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetTunnelCpeDeviceConfig.go.html to see an example of how to use GetTunnelCpeDeviceConfig API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetTunnelCpeDeviceConfig.go.html to see an example of how to use GetTunnelCpeDeviceConfig API. // 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 @@ -8942,7 +9251,7 @@ func (client VirtualNetworkClient) getTunnelCpeDeviceConfig(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetTunnelCpeDeviceConfigContent.go.html to see an example of how to use GetTunnelCpeDeviceConfigContent API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetTunnelCpeDeviceConfigContent.go.html to see an example of how to use GetTunnelCpeDeviceConfigContent API. // 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 @@ -8999,7 +9308,7 @@ func (client VirtualNetworkClient) getTunnelCpeDeviceConfigContent(ctx context.C // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetUpgradeStatus.go.html to see an example of how to use GetUpgradeStatus API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetUpgradeStatus.go.html to see an example of how to use GetUpgradeStatus API. func (client VirtualNetworkClient) GetUpgradeStatus(ctx context.Context, request GetUpgradeStatusRequest) (response GetUpgradeStatusResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -9056,7 +9365,7 @@ func (client VirtualNetworkClient) getUpgradeStatus(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcn.go.html to see an example of how to use GetVcn API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcn.go.html to see an example of how to use GetVcn API. func (client VirtualNetworkClient) GetVcn(ctx context.Context, request GetVcnRequest) (response GetVcnResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -9113,7 +9422,7 @@ func (client VirtualNetworkClient) getVcn(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnDnsResolverAssociation.go.html to see an example of how to use GetVcnDnsResolverAssociation API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnDnsResolverAssociation.go.html to see an example of how to use GetVcnDnsResolverAssociation API. func (client VirtualNetworkClient) GetVcnDnsResolverAssociation(ctx context.Context, request GetVcnDnsResolverAssociationRequest) (response GetVcnDnsResolverAssociationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -9166,11 +9475,11 @@ func (client VirtualNetworkClient) getVcnDnsResolverAssociation(ctx context.Cont return response, err } -// GetVcnOverlap Gets the CIDR overlap information of the specified VCN in selected compartments. Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// GetVcnOverlap Gets the CIDR overlap information of the specified VCN in selected compartments. Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnOverlap.go.html to see an example of how to use GetVcnOverlap API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnOverlap.go.html to see an example of how to use GetVcnOverlap API. func (client VirtualNetworkClient) GetVcnOverlap(ctx context.Context, request GetVcnOverlapRequest) (response GetVcnOverlapResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -9232,7 +9541,7 @@ func (client VirtualNetworkClient) getVcnOverlap(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnTopology.go.html to see an example of how to use GetVcnTopology API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnTopology.go.html to see an example of how to use GetVcnTopology API. func (client VirtualNetworkClient) GetVcnTopology(ctx context.Context, request GetVcnTopologyRequest) (response GetVcnTopologyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -9289,7 +9598,7 @@ func (client VirtualNetworkClient) getVcnTopology(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVirtualCircuit.go.html to see an example of how to use GetVirtualCircuit API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVirtualCircuit.go.html to see an example of how to use GetVirtualCircuit API. // 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 @@ -9347,7 +9656,7 @@ func (client VirtualNetworkClient) getVirtualCircuit(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVlan.go.html to see an example of how to use GetVlan API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVlan.go.html to see an example of how to use GetVlan API. func (client VirtualNetworkClient) GetVlan(ctx context.Context, request GetVlanRequest) (response GetVlanResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -9401,13 +9710,13 @@ func (client VirtualNetworkClient) getVlan(ctx context.Context, request common.O } // GetVnic Gets the information for the specified virtual network interface card (VNIC). -// You can get the VNIC OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from the +// You can get the VNIC OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from the // ListVnicAttachments // operation. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVnic.go.html to see an example of how to use GetVnic API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVnic.go.html to see an example of how to use GetVnic API. func (client VirtualNetworkClient) GetVnic(ctx context.Context, request GetVnicRequest) (response GetVnicResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -9464,7 +9773,7 @@ func (client VirtualNetworkClient) getVnic(ctx context.Context, request common.O // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVtap.go.html to see an example of how to use GetVtap API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVtap.go.html to see an example of how to use GetVtap API. func (client VirtualNetworkClient) GetVtap(ctx context.Context, request GetVtapRequest) (response GetVtapResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -9517,58 +9826,61 @@ func (client VirtualNetworkClient) getVtap(ctx context.Context, request common.O return response, err } -// 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). +// Ipv6VnicDetach Unassign the specified IPv6 address from Virtual Network Interface Card (VNIC). You must specify the IPv6 OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAllowedPeerRegionsForRemotePeering.go.html to see an example of how to use ListAllowedPeerRegionsForRemotePeering API. -// A default retry strategy applies to this operation ListAllowedPeerRegionsForRemotePeering() -func (client VirtualNetworkClient) ListAllowedPeerRegionsForRemotePeering(ctx context.Context, request ListAllowedPeerRegionsForRemotePeeringRequest) (response ListAllowedPeerRegionsForRemotePeeringResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/Ipv6VnicDetach.go.html to see an example of how to use Ipv6VnicDetach API. +func (client VirtualNetworkClient) Ipv6VnicDetach(ctx context.Context, request Ipv6VnicDetachRequest) (response Ipv6VnicDetachResponse, err error) { var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() + policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAllowedPeerRegionsForRemotePeering, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.ipv6VnicDetach, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAllowedPeerRegionsForRemotePeeringResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = Ipv6VnicDetachResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAllowedPeerRegionsForRemotePeeringResponse{} + response = Ipv6VnicDetachResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAllowedPeerRegionsForRemotePeeringResponse); ok { + if convertedResponse, ok := ociResponse.(Ipv6VnicDetachResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAllowedPeerRegionsForRemotePeeringResponse") + err = fmt.Errorf("failed to convert OCIResponse into Ipv6VnicDetachResponse") } return } -// listAllowedPeerRegionsForRemotePeering implements the OCIOperation interface (enables retrying operations) -func (client VirtualNetworkClient) listAllowedPeerRegionsForRemotePeering(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// ipv6VnicDetach implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) ipv6VnicDetach(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/allowedPeerRegionsForRemotePeering", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/ipv6/{ipv6Id}/actions/detach", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAllowedPeerRegionsForRemotePeeringResponse + var response Ipv6VnicDetachResponse 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/PeerRegionForRemotePeering/ListAllowedPeerRegionsForRemotePeering" - err = common.PostProcessServiceError(err, "VirtualNetwork", "ListAllowedPeerRegionsForRemotePeering", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Ipv6/Ipv6VnicDetach" + err = common.PostProcessServiceError(err, "VirtualNetwork", "Ipv6VnicDetach", apiReferenceLink) return response, err } @@ -9576,13 +9888,131 @@ func (client VirtualNetworkClient) listAllowedPeerRegionsForRemotePeering(ctx co return response, err } -// ListByoipAllocatedRanges Lists the subranges of a BYOIP CIDR block currently allocated to an IP pool. -// Each `ByoipAllocatedRange` object also lists the IP pool where it is allocated. +// ListAllowedPeerRegionsForRemotePeering Lists the regions that support remote VCN peering (which is peering across regions). +// For more information, see VCN Peering (https://docs.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListByoipAllocatedRanges.go.html to see an example of how to use ListByoipAllocatedRanges API. -func (client VirtualNetworkClient) ListByoipAllocatedRanges(ctx context.Context, request ListByoipAllocatedRangesRequest) (response ListByoipAllocatedRangesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAllowedPeerRegionsForRemotePeering.go.html to see an example of how to use ListAllowedPeerRegionsForRemotePeering API. +// 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.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listAllowedPeerRegionsForRemotePeering, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAllowedPeerRegionsForRemotePeeringResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAllowedPeerRegionsForRemotePeeringResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAllowedPeerRegionsForRemotePeeringResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAllowedPeerRegionsForRemotePeeringResponse") + } + return +} + +// listAllowedPeerRegionsForRemotePeering implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) listAllowedPeerRegionsForRemotePeering(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/allowedPeerRegionsForRemotePeering", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAllowedPeerRegionsForRemotePeeringResponse + 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/PeerRegionForRemotePeering/ListAllowedPeerRegionsForRemotePeering" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListAllowedPeerRegionsForRemotePeering", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListByoasns Lists the `Byoasn` resources in the specified compartment. +// You can filter the list using query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListByoasns.go.html to see an example of how to use ListByoasns API. +// A default retry strategy applies to this operation ListByoasns() +func (client VirtualNetworkClient) ListByoasns(ctx context.Context, request ListByoasnsRequest) (response ListByoasnsResponse, 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.listByoasns, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListByoasnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListByoasnsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListByoasnsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListByoasnsResponse") + } + return +} + +// listByoasns implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) listByoasns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/byoasns", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListByoasnsResponse + 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/Byoasn/ListByoasns" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListByoasns", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListByoipAllocatedRanges Lists the subranges of a BYOIP CIDR block currently allocated to an IP pool. +// Each `ByoipAllocatedRange` object also lists the IP pool where it is allocated. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListByoipAllocatedRanges.go.html to see an example of how to use ListByoipAllocatedRanges API. +func (client VirtualNetworkClient) ListByoipAllocatedRanges(ctx context.Context, request ListByoipAllocatedRangesRequest) (response ListByoipAllocatedRangesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -9639,7 +10069,7 @@ func (client VirtualNetworkClient) listByoipAllocatedRanges(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListByoipRanges.go.html to see an example of how to use ListByoipRanges API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListByoipRanges.go.html to see an example of how to use ListByoipRanges API. func (client VirtualNetworkClient) ListByoipRanges(ctx context.Context, request ListByoipRangesRequest) (response ListByoipRangesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -9696,7 +10126,7 @@ func (client VirtualNetworkClient) listByoipRanges(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCaptureFilters.go.html to see an example of how to use ListCaptureFilters API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCaptureFilters.go.html to see an example of how to use ListCaptureFilters API. func (client VirtualNetworkClient) ListCaptureFilters(ctx context.Context, request ListCaptureFiltersRequest) (response ListCaptureFiltersResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -9754,7 +10184,7 @@ func (client VirtualNetworkClient) listCaptureFilters(ctx context.Context, reque // 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/iaas/Content/General/Concepts/identifiers.htm) (returned by this operation). +// to the CPE device type's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (returned by this operation). // For information about generating CPE configuration content, see these operations: // - GetCpeDeviceConfigContent // - GetIpsecCpeDeviceConfigContent @@ -9762,7 +10192,7 @@ func (client VirtualNetworkClient) listCaptureFilters(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCpeDeviceShapes.go.html to see an example of how to use ListCpeDeviceShapes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCpeDeviceShapes.go.html to see an example of how to use ListCpeDeviceShapes API. // 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 @@ -9820,7 +10250,7 @@ func (client VirtualNetworkClient) listCpeDeviceShapes(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCpes.go.html to see an example of how to use ListCpes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCpes.go.html to see an example of how to use ListCpes API. // 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 @@ -9878,7 +10308,7 @@ func (client VirtualNetworkClient) listCpes(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectGroups.go.html to see an example of how to use ListCrossConnectGroups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectGroups.go.html to see an example of how to use ListCrossConnectGroups API. // 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 @@ -9937,7 +10367,7 @@ func (client VirtualNetworkClient) listCrossConnectGroups(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectLocations.go.html to see an example of how to use ListCrossConnectLocations API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectLocations.go.html to see an example of how to use ListCrossConnectLocations API. // 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 @@ -9996,7 +10426,7 @@ func (client VirtualNetworkClient) listCrossConnectLocations(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectMappings.go.html to see an example of how to use ListCrossConnectMappings API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectMappings.go.html to see an example of how to use ListCrossConnectMappings API. // 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 @@ -10051,11 +10481,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/iaas/Content/General/Concepts/identifiers.htm) of a cross-connect group. +// by specifying the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a cross-connect group. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnects.go.html to see an example of how to use ListCrossConnects API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnects.go.html to see an example of how to use ListCrossConnects API. // 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 @@ -10115,7 +10545,7 @@ func (client VirtualNetworkClient) listCrossConnects(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossconnectPortSpeedShapes.go.html to see an example of how to use ListCrossconnectPortSpeedShapes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossconnectPortSpeedShapes.go.html to see an example of how to use ListCrossconnectPortSpeedShapes API. // 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 @@ -10176,7 +10606,7 @@ func (client VirtualNetworkClient) listCrossconnectPortSpeedShapes(ctx context.C // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDhcpOptions.go.html to see an example of how to use ListDhcpOptions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDhcpOptions.go.html to see an example of how to use ListDhcpOptions API. func (client VirtualNetworkClient) ListDhcpOptions(ctx context.Context, request ListDhcpOptionsRequest) (response ListDhcpOptionsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -10237,7 +10667,7 @@ func (client VirtualNetworkClient) listDhcpOptions(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgAttachments.go.html to see an example of how to use ListDrgAttachments API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgAttachments.go.html to see an example of how to use ListDrgAttachments API. func (client VirtualNetworkClient) ListDrgAttachments(ctx context.Context, request ListDrgAttachmentsRequest) (response ListDrgAttachmentsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -10294,7 +10724,7 @@ func (client VirtualNetworkClient) listDrgAttachments(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteDistributionStatements.go.html to see an example of how to use ListDrgRouteDistributionStatements API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteDistributionStatements.go.html to see an example of how to use ListDrgRouteDistributionStatements API. func (client VirtualNetworkClient) ListDrgRouteDistributionStatements(ctx context.Context, request ListDrgRouteDistributionStatementsRequest) (response ListDrgRouteDistributionStatementsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -10353,7 +10783,7 @@ func (client VirtualNetworkClient) listDrgRouteDistributionStatements(ctx contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteDistributions.go.html to see an example of how to use ListDrgRouteDistributions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteDistributions.go.html to see an example of how to use ListDrgRouteDistributions API. func (client VirtualNetworkClient) ListDrgRouteDistributions(ctx context.Context, request ListDrgRouteDistributionsRequest) (response ListDrgRouteDistributionsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -10410,7 +10840,7 @@ func (client VirtualNetworkClient) listDrgRouteDistributions(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteRules.go.html to see an example of how to use ListDrgRouteRules API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteRules.go.html to see an example of how to use ListDrgRouteRules API. func (client VirtualNetworkClient) ListDrgRouteRules(ctx context.Context, request ListDrgRouteRulesRequest) (response ListDrgRouteRulesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -10468,7 +10898,7 @@ func (client VirtualNetworkClient) listDrgRouteRules(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteTables.go.html to see an example of how to use ListDrgRouteTables API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteTables.go.html to see an example of how to use ListDrgRouteTables API. func (client VirtualNetworkClient) ListDrgRouteTables(ctx context.Context, request ListDrgRouteTablesRequest) (response ListDrgRouteTablesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -10525,7 +10955,7 @@ func (client VirtualNetworkClient) listDrgRouteTables(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgs.go.html to see an example of how to use ListDrgs API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgs.go.html to see an example of how to use ListDrgs API. func (client VirtualNetworkClient) ListDrgs(ctx context.Context, request ListDrgsRequest) (response ListDrgsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -10581,12 +11011,12 @@ func (client VirtualNetworkClient) listDrgs(ctx context.Context, request common. // 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/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). +// For the compartment ID, provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of your tenancy (the root compartment). +// For more information, see FastConnect Overview (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListFastConnectProviderServices.go.html to see an example of how to use ListFastConnectProviderServices API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListFastConnectProviderServices.go.html to see an example of how to use ListFastConnectProviderServices API. // 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 @@ -10642,11 +11072,11 @@ 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). +// For more information about virtual circuits, see FastConnect Overview (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListFastConnectProviderVirtualCircuitBandwidthShapes.go.html to see an example of how to use ListFastConnectProviderVirtualCircuitBandwidthShapes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListFastConnectProviderVirtualCircuitBandwidthShapes.go.html to see an example of how to use ListFastConnectProviderVirtualCircuitBandwidthShapes API. // 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 @@ -10704,7 +11134,7 @@ func (client VirtualNetworkClient) listFastConnectProviderVirtualCircuitBandwidt // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnelRoutes.go.html to see an example of how to use ListIPSecConnectionTunnelRoutes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnelRoutes.go.html to see an example of how to use ListIPSecConnectionTunnelRoutes API. // 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 @@ -10762,7 +11192,7 @@ func (client VirtualNetworkClient) listIPSecConnectionTunnelRoutes(ctx context.C // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnelSecurityAssociations.go.html to see an example of how to use ListIPSecConnectionTunnelSecurityAssociations API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnelSecurityAssociations.go.html to see an example of how to use ListIPSecConnectionTunnelSecurityAssociations API. // 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 @@ -10820,7 +11250,7 @@ func (client VirtualNetworkClient) listIPSecConnectionTunnelSecurityAssociations // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnels.go.html to see an example of how to use ListIPSecConnectionTunnels API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnels.go.html to see an example of how to use ListIPSecConnectionTunnels API. // 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 @@ -10879,7 +11309,7 @@ func (client VirtualNetworkClient) listIPSecConnectionTunnels(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnections.go.html to see an example of how to use ListIPSecConnections API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnections.go.html to see an example of how to use ListIPSecConnections API. // 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 @@ -10938,7 +11368,7 @@ func (client VirtualNetworkClient) listIPSecConnections(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInternetGateways.go.html to see an example of how to use ListInternetGateways API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInternetGateways.go.html to see an example of how to use ListInternetGateways API. func (client VirtualNetworkClient) ListInternetGateways(ctx context.Context, request ListInternetGatewaysRequest) (response ListInternetGatewaysResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -10995,7 +11425,7 @@ func (client VirtualNetworkClient) listInternetGateways(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIpInventory.go.html to see an example of how to use ListIpInventory API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIpInventory.go.html to see an example of how to use ListIpInventory API. func (client VirtualNetworkClient) ListIpInventory(ctx context.Context, request ListIpInventoryRequest) (response ListIpInventoryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11050,15 +11480,15 @@ func (client VirtualNetworkClient) listIpInventory(ctx context.Context, request // ListIpv6s Lists the Ipv6 objects based // on one of these filters: -// - Subnet OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). -// - VNIC OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// - Subnet OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// - VNIC OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // - Both IPv6 address and subnet OCID: This lets you get an `Ipv6` object based on its private -// IPv6 address (for example, 2001:0db8:0123:1111:abcd:ef01:2345:6789) and not its OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). For comparison, -// GetIpv6 requires the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// IPv6 address (for example, 2001:0db8:0123:1111:abcd:ef01:2345:6789) and not its OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). For comparison, +// GetIpv6 requires the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIpv6s.go.html to see an example of how to use ListIpv6s API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIpv6s.go.html to see an example of how to use ListIpv6s API. func (client VirtualNetworkClient) ListIpv6s(ctx context.Context, request ListIpv6sRequest) (response ListIpv6sResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11116,7 +11546,7 @@ func (client VirtualNetworkClient) listIpv6s(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListLocalPeeringGateways.go.html to see an example of how to use ListLocalPeeringGateways API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListLocalPeeringGateways.go.html to see an example of how to use ListLocalPeeringGateways API. func (client VirtualNetworkClient) ListLocalPeeringGateways(ctx context.Context, request ListLocalPeeringGatewaysRequest) (response ListLocalPeeringGatewaysResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11174,7 +11604,7 @@ func (client VirtualNetworkClient) listLocalPeeringGateways(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNatGateways.go.html to see an example of how to use ListNatGateways API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNatGateways.go.html to see an example of how to use ListNatGateways API. func (client VirtualNetworkClient) ListNatGateways(ctx context.Context, request ListNatGatewaysRequest) (response ListNatGatewaysResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11231,7 +11661,7 @@ func (client VirtualNetworkClient) listNatGateways(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroupSecurityRules.go.html to see an example of how to use ListNetworkSecurityGroupSecurityRules API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroupSecurityRules.go.html to see an example of how to use ListNetworkSecurityGroupSecurityRules API. func (client VirtualNetworkClient) ListNetworkSecurityGroupSecurityRules(ctx context.Context, request ListNetworkSecurityGroupSecurityRulesRequest) (response ListNetworkSecurityGroupSecurityRulesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11288,7 +11718,7 @@ func (client VirtualNetworkClient) listNetworkSecurityGroupSecurityRules(ctx con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroupVnics.go.html to see an example of how to use ListNetworkSecurityGroupVnics API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroupVnics.go.html to see an example of how to use ListNetworkSecurityGroupVnics API. func (client VirtualNetworkClient) ListNetworkSecurityGroupVnics(ctx context.Context, request ListNetworkSecurityGroupVnicsRequest) (response ListNetworkSecurityGroupVnicsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11346,7 +11776,7 @@ func (client VirtualNetworkClient) listNetworkSecurityGroupVnics(ctx context.Con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroups.go.html to see an example of how to use ListNetworkSecurityGroups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroups.go.html to see an example of how to use ListNetworkSecurityGroups API. func (client VirtualNetworkClient) ListNetworkSecurityGroups(ctx context.Context, request ListNetworkSecurityGroupsRequest) (response ListNetworkSecurityGroupsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11401,22 +11831,22 @@ func (client VirtualNetworkClient) listNetworkSecurityGroups(ctx context.Context // ListPrivateIps Lists the PrivateIp objects based // on one of these filters: -// - Subnet OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). -// - VNIC OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// - Subnet OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// - VNIC OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // - Both private IP address and subnet OCID: This lets // you get a `privateIP` object based on its private IP -// address (for example, 10.0.3.3) and not its OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). For comparison, +// address (for example, 10.0.3.3) and not its OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). For comparison, // GetPrivateIp -// requires the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// requires the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // // If you're listing all the private IPs associated with a given subnet // or VNIC, the response includes both primary and secondary private IPs. // If you are an Oracle Cloud VMware Solution customer and have VLANs -// in your VCN, you can filter the list by VLAN OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). See Vlan. +// in your VCN, you can filter the list by VLAN OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). See Vlan. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPrivateIps.go.html to see an example of how to use ListPrivateIps API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPrivateIps.go.html to see an example of how to use ListPrivateIps API. func (client VirtualNetworkClient) ListPrivateIps(ctx context.Context, request ListPrivateIpsRequest) (response ListPrivateIpsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11474,7 +11904,7 @@ func (client VirtualNetworkClient) listPrivateIps(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPublicIpPools.go.html to see an example of how to use ListPublicIpPools API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPublicIpPools.go.html to see an example of how to use ListPublicIpPools API. func (client VirtualNetworkClient) ListPublicIpPools(ctx context.Context, request ListPublicIpPoolsRequest) (response ListPublicIpPoolsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11549,7 +11979,7 @@ func (client VirtualNetworkClient) listPublicIpPools(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPublicIps.go.html to see an example of how to use ListPublicIps API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPublicIps.go.html to see an example of how to use ListPublicIps API. func (client VirtualNetworkClient) ListPublicIps(ctx context.Context, request ListPublicIpsRequest) (response ListPublicIpsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11607,7 +12037,7 @@ func (client VirtualNetworkClient) listPublicIps(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListRemotePeeringConnections.go.html to see an example of how to use ListRemotePeeringConnections API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListRemotePeeringConnections.go.html to see an example of how to use ListRemotePeeringConnections API. // 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 @@ -11668,7 +12098,7 @@ func (client VirtualNetworkClient) listRemotePeeringConnections(ctx context.Cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListRouteTables.go.html to see an example of how to use ListRouteTables API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListRouteTables.go.html to see an example of how to use ListRouteTables API. func (client VirtualNetworkClient) ListRouteTables(ctx context.Context, request ListRouteTablesRequest) (response ListRouteTablesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11726,7 +12156,7 @@ func (client VirtualNetworkClient) listRouteTables(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListSecurityLists.go.html to see an example of how to use ListSecurityLists API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListSecurityLists.go.html to see an example of how to use ListSecurityLists API. func (client VirtualNetworkClient) ListSecurityLists(ctx context.Context, request ListSecurityListsRequest) (response ListSecurityListsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11784,7 +12214,7 @@ func (client VirtualNetworkClient) listSecurityLists(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListServiceGateways.go.html to see an example of how to use ListServiceGateways API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListServiceGateways.go.html to see an example of how to use ListServiceGateways API. func (client VirtualNetworkClient) ListServiceGateways(ctx context.Context, request ListServiceGatewaysRequest) (response ListServiceGatewaysResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11842,7 +12272,7 @@ func (client VirtualNetworkClient) listServiceGateways(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListServices.go.html to see an example of how to use ListServices API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListServices.go.html to see an example of how to use ListServices API. func (client VirtualNetworkClient) ListServices(ctx context.Context, request ListServicesRequest) (response ListServicesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11900,7 +12330,7 @@ func (client VirtualNetworkClient) listServices(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListSubnets.go.html to see an example of how to use ListSubnets API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListSubnets.go.html to see an example of how to use ListSubnets API. func (client VirtualNetworkClient) ListSubnets(ctx context.Context, request ListSubnetsRequest) (response ListSubnetsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -11957,7 +12387,7 @@ func (client VirtualNetworkClient) listSubnets(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVcns.go.html to see an example of how to use ListVcns API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVcns.go.html to see an example of how to use ListVcns API. func (client VirtualNetworkClient) ListVcns(ctx context.Context, request ListVcnsRequest) (response ListVcnsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12014,7 +12444,7 @@ func (client VirtualNetworkClient) listVcns(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitAssociatedTunnels.go.html to see an example of how to use ListVirtualCircuitAssociatedTunnels API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitAssociatedTunnels.go.html to see an example of how to use ListVirtualCircuitAssociatedTunnels API. // A default retry strategy applies to this operation ListVirtualCircuitAssociatedTunnels() func (client VirtualNetworkClient) ListVirtualCircuitAssociatedTunnels(ctx context.Context, request ListVirtualCircuitAssociatedTunnelsRequest) (response ListVirtualCircuitAssociatedTunnelsResponse, err error) { var ociResponse common.OCIResponse @@ -12068,11 +12498,11 @@ func (client VirtualNetworkClient) listVirtualCircuitAssociatedTunnels(ctx conte return response, err } -// ListVirtualCircuitBandwidthShapes The 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). +// ListVirtualCircuitBandwidthShapes The operation lists available bandwidth levels for virtual circuits. For the compartment ID, provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of your tenancy (the root compartment). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitBandwidthShapes.go.html to see an example of how to use ListVirtualCircuitBandwidthShapes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitBandwidthShapes.go.html to see an example of how to use ListVirtualCircuitBandwidthShapes API. // 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 @@ -12131,7 +12561,7 @@ func (client VirtualNetworkClient) listVirtualCircuitBandwidthShapes(ctx context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitPublicPrefixes.go.html to see an example of how to use ListVirtualCircuitPublicPrefixes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitPublicPrefixes.go.html to see an example of how to use ListVirtualCircuitPublicPrefixes API. // 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 @@ -12189,7 +12619,7 @@ func (client VirtualNetworkClient) listVirtualCircuitPublicPrefixes(ctx context. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuits.go.html to see an example of how to use ListVirtualCircuits API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuits.go.html to see an example of how to use ListVirtualCircuits API. // 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 @@ -12247,7 +12677,7 @@ func (client VirtualNetworkClient) listVirtualCircuits(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVlans.go.html to see an example of how to use ListVlans API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVlans.go.html to see an example of how to use ListVlans API. func (client VirtualNetworkClient) ListVlans(ctx context.Context, request ListVlansRequest) (response ListVlansResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12304,7 +12734,7 @@ func (client VirtualNetworkClient) listVlans(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVtaps.go.html to see an example of how to use ListVtaps API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVtaps.go.html to see an example of how to use ListVtaps API. func (client VirtualNetworkClient) ListVtaps(ctx context.Context, request ListVtapsRequest) (response ListVtapsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12357,6 +12787,74 @@ func (client VirtualNetworkClient) listVtaps(ctx context.Context, request common return response, err } +// ModifyIpv4SubnetCidr Updates the specified Ipv4 CIDR block of a Subnet. The new Ipv4 CIDR IP range must meet the following criteria: +// - Must be valid. +// - Must not overlap with another Ipv4 CIDR block in the Subnet or the on-premises network CIDR block. +// - Must not exceed the limit of Ipv4 CIDR blocks allowed per Subnet. +// - Must include IP addresses from the original CIDR block that are used in the VCN's existing route rules. +// - No IP address in an existing subnet should be outside of the new CIDR block range. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ModifyIpv4SubnetCidr.go.html to see an example of how to use ModifyIpv4SubnetCidr API. +// A default retry strategy applies to this operation ModifyIpv4SubnetCidr() +func (client VirtualNetworkClient) ModifyIpv4SubnetCidr(ctx context.Context, request ModifyIpv4SubnetCidrRequest) (response ModifyIpv4SubnetCidrResponse, 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.modifyIpv4SubnetCidr, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ModifyIpv4SubnetCidrResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ModifyIpv4SubnetCidrResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ModifyIpv4SubnetCidrResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ModifyIpv4SubnetCidrResponse") + } + return +} + +// modifyIpv4SubnetCidr implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) modifyIpv4SubnetCidr(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/modifyIpv4Cidr", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ModifyIpv4SubnetCidrResponse + 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/ModifyIpv4SubnetCidr" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ModifyIpv4SubnetCidr", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ModifyVcnCidr Updates the specified CIDR block of a VCN. The new CIDR IP range must meet the following criteria: // - Must be valid. // - Must not overlap with another CIDR block in the VCN, a CIDR block of a peered VCN, or the on-premises network CIDR block. @@ -12367,7 +12865,7 @@ func (client VirtualNetworkClient) listVtaps(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ModifyVcnCidr.go.html to see an example of how to use ModifyVcnCidr API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ModifyVcnCidr.go.html to see an example of how to use ModifyVcnCidr API. func (client VirtualNetworkClient) ModifyVcnCidr(ctx context.Context, request ModifyVcnCidrRequest) (response ModifyVcnCidrResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12425,11 +12923,73 @@ func (client VirtualNetworkClient) modifyVcnCidr(ctx context.Context, request co return response, err } +// PrivateIpVnicDetach Unassign the specified PrivateIP address from Virtual Network Interface Card (VNIC). You must specify the PrivateIP OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/PrivateIpVnicDetach.go.html to see an example of how to use PrivateIpVnicDetach API. +func (client VirtualNetworkClient) PrivateIpVnicDetach(ctx context.Context, request PrivateIpVnicDetachRequest) (response PrivateIpVnicDetachResponse, 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.privateIpVnicDetach, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = PrivateIpVnicDetachResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = PrivateIpVnicDetachResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(PrivateIpVnicDetachResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into PrivateIpVnicDetachResponse") + } + return +} + +// privateIpVnicDetach implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) privateIpVnicDetach(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/privateIps/{privateIpId}/actions/detach", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response PrivateIpVnicDetachResponse + 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/PrivateIp/PrivateIpVnicDetach" + err = common.PostProcessServiceError(err, "VirtualNetwork", "PrivateIpVnicDetach", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // RemoveDrgRouteDistributionStatements Removes one or more route distribution statements from the specified route distribution's map. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveDrgRouteDistributionStatements.go.html to see an example of how to use RemoveDrgRouteDistributionStatements API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveDrgRouteDistributionStatements.go.html to see an example of how to use RemoveDrgRouteDistributionStatements API. func (client VirtualNetworkClient) RemoveDrgRouteDistributionStatements(ctx context.Context, request RemoveDrgRouteDistributionStatementsRequest) (response RemoveDrgRouteDistributionStatementsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12486,7 +13046,7 @@ func (client VirtualNetworkClient) removeDrgRouteDistributionStatements(ctx cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveDrgRouteRules.go.html to see an example of how to use RemoveDrgRouteRules API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveDrgRouteRules.go.html to see an example of how to use RemoveDrgRouteRules API. func (client VirtualNetworkClient) RemoveDrgRouteRules(ctx context.Context, request RemoveDrgRouteRulesRequest) (response RemoveDrgRouteRulesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12543,7 +13103,7 @@ func (client VirtualNetworkClient) removeDrgRouteRules(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveExportDrgRouteDistribution.go.html to see an example of how to use RemoveExportDrgRouteDistribution API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveExportDrgRouteDistribution.go.html to see an example of how to use RemoveExportDrgRouteDistribution API. func (client VirtualNetworkClient) RemoveExportDrgRouteDistribution(ctx context.Context, request RemoveExportDrgRouteDistributionRequest) (response RemoveExportDrgRouteDistributionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12601,7 +13161,7 @@ func (client VirtualNetworkClient) removeExportDrgRouteDistribution(ctx context. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveImportDrgRouteDistribution.go.html to see an example of how to use RemoveImportDrgRouteDistribution API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveImportDrgRouteDistribution.go.html to see an example of how to use RemoveImportDrgRouteDistribution API. func (client VirtualNetworkClient) RemoveImportDrgRouteDistribution(ctx context.Context, request RemoveImportDrgRouteDistributionRequest) (response RemoveImportDrgRouteDistributionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12654,11 +13214,74 @@ func (client VirtualNetworkClient) removeImportDrgRouteDistribution(ctx context. return response, err } +// RemoveIpv4SubnetCidr Remove an IPv4 prefix from a subnet +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveIpv4SubnetCidr.go.html to see an example of how to use RemoveIpv4SubnetCidr API. +// A default retry strategy applies to this operation RemoveIpv4SubnetCidr() +func (client VirtualNetworkClient) RemoveIpv4SubnetCidr(ctx context.Context, request RemoveIpv4SubnetCidrRequest) (response RemoveIpv4SubnetCidrResponse, 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.removeIpv4SubnetCidr, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RemoveIpv4SubnetCidrResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RemoveIpv4SubnetCidrResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RemoveIpv4SubnetCidrResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RemoveIpv4SubnetCidrResponse") + } + return +} + +// removeIpv4SubnetCidr implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) removeIpv4SubnetCidr(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/removeIpv4Cidr", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RemoveIpv4SubnetCidrResponse + 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/RemoveIpv4SubnetCidr" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveIpv4SubnetCidr", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // RemoveIpv6SubnetCidr Remove an IPv6 prefix from a subnet. At least one IPv6 CIDR should remain. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveIpv6SubnetCidr.go.html to see an example of how to use RemoveIpv6SubnetCidr API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveIpv6SubnetCidr.go.html to see an example of how to use RemoveIpv6SubnetCidr API. func (client VirtualNetworkClient) RemoveIpv6SubnetCidr(ctx context.Context, request RemoveIpv6SubnetCidrRequest) (response RemoveIpv6SubnetCidrResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12720,7 +13343,7 @@ func (client VirtualNetworkClient) removeIpv6SubnetCidr(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveIpv6VcnCidr.go.html to see an example of how to use RemoveIpv6VcnCidr API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveIpv6VcnCidr.go.html to see an example of how to use RemoveIpv6VcnCidr API. func (client VirtualNetworkClient) RemoveIpv6VcnCidr(ctx context.Context, request RemoveIpv6VcnCidrRequest) (response RemoveIpv6VcnCidrResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12782,7 +13405,7 @@ func (client VirtualNetworkClient) removeIpv6VcnCidr(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveNetworkSecurityGroupSecurityRules.go.html to see an example of how to use RemoveNetworkSecurityGroupSecurityRules API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveNetworkSecurityGroupSecurityRules.go.html to see an example of how to use RemoveNetworkSecurityGroupSecurityRules API. func (client VirtualNetworkClient) RemoveNetworkSecurityGroupSecurityRules(ctx context.Context, request RemoveNetworkSecurityGroupSecurityRulesRequest) (response RemoveNetworkSecurityGroupSecurityRulesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12839,7 +13462,7 @@ func (client VirtualNetworkClient) removeNetworkSecurityGroupSecurityRules(ctx c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemovePublicIpPoolCapacity.go.html to see an example of how to use RemovePublicIpPoolCapacity API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemovePublicIpPoolCapacity.go.html to see an example of how to use RemovePublicIpPoolCapacity API. func (client VirtualNetworkClient) RemovePublicIpPoolCapacity(ctx context.Context, request RemovePublicIpPoolCapacityRequest) (response RemovePublicIpPoolCapacityResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12904,7 +13527,7 @@ func (client VirtualNetworkClient) removePublicIpPoolCapacity(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveVcnCidr.go.html to see an example of how to use RemoveVcnCidr API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveVcnCidr.go.html to see an example of how to use RemoveVcnCidr API. func (client VirtualNetworkClient) RemoveVcnCidr(ctx context.Context, request RemoveVcnCidrRequest) (response RemoveVcnCidrResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12962,11 +13585,188 @@ func (client VirtualNetworkClient) removeVcnCidr(ctx context.Context, request co return response, err } +// SetOriginAsn Update BYOIP's origin ASN to byoasn. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SetOriginAsn.go.html to see an example of how to use SetOriginAsn API. +// A default retry strategy applies to this operation SetOriginAsn() +func (client VirtualNetworkClient) SetOriginAsn(ctx context.Context, request SetOriginAsnRequest) (response SetOriginAsnResponse, 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.setOriginAsn, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = SetOriginAsnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = SetOriginAsnResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(SetOriginAsnResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into SetOriginAsnResponse") + } + return +} + +// setOriginAsn implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) setOriginAsn(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/setOrigin/byoasn", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response SetOriginAsnResponse + 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/ByoipRange/SetOriginAsn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "SetOriginAsn", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// SetOriginAsnToOracle Update prefix's origin ASN to OCI +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SetOriginAsnToOracle.go.html to see an example of how to use SetOriginAsnToOracle API. +func (client VirtualNetworkClient) SetOriginAsnToOracle(ctx context.Context, request SetOriginAsnToOracleRequest) (response SetOriginAsnToOracleResponse, 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.setOriginAsnToOracle, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = SetOriginAsnToOracleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = SetOriginAsnToOracleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(SetOriginAsnToOracleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into SetOriginAsnToOracleResponse") + } + return +} + +// setOriginAsnToOracle implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) setOriginAsnToOracle(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/setOrigin/oracleAsn", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response SetOriginAsnToOracleResponse + 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/ByoipRange/SetOriginAsnToOracle" + err = common.PostProcessServiceError(err, "VirtualNetwork", "SetOriginAsnToOracle", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateByoasn Updates the tags or display name associated with the specified BYOASN Resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateByoasn.go.html to see an example of how to use UpdateByoasn API. +func (client VirtualNetworkClient) UpdateByoasn(ctx context.Context, request UpdateByoasnRequest) (response UpdateByoasnResponse, 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.updateByoasn, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateByoasnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateByoasnResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateByoasnResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateByoasnResponse") + } + return +} + +// updateByoasn implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) updateByoasn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/byoasns/{byoasnId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateByoasnResponse + 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/Byoasn/UpdateByoasn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateByoasn", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateByoipRange Updates the tags or display name associated to the specified BYOIP CIDR block. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateByoipRange.go.html to see an example of how to use UpdateByoipRange API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateByoipRange.go.html to see an example of how to use UpdateByoipRange API. func (client VirtualNetworkClient) UpdateByoipRange(ctx context.Context, request UpdateByoipRangeRequest) (response UpdateByoipRangeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13023,7 +13823,7 @@ func (client VirtualNetworkClient) updateByoipRange(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCaptureFilter.go.html to see an example of how to use UpdateCaptureFilter API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCaptureFilter.go.html to see an example of how to use UpdateCaptureFilter API. func (client VirtualNetworkClient) UpdateCaptureFilter(ctx context.Context, request UpdateCaptureFilterRequest) (response UpdateCaptureFilterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13081,7 +13881,7 @@ func (client VirtualNetworkClient) updateCaptureFilter(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCpe.go.html to see an example of how to use UpdateCpe API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCpe.go.html to see an example of how to use UpdateCpe API. // 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 @@ -13139,7 +13939,7 @@ func (client VirtualNetworkClient) updateCpe(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCrossConnect.go.html to see an example of how to use UpdateCrossConnect API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCrossConnect.go.html to see an example of how to use UpdateCrossConnect API. // 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 @@ -13198,7 +13998,7 @@ func (client VirtualNetworkClient) updateCrossConnect(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCrossConnectGroup.go.html to see an example of how to use UpdateCrossConnectGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCrossConnectGroup.go.html to see an example of how to use UpdateCrossConnectGroup API. // 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 @@ -13258,7 +14058,7 @@ func (client VirtualNetworkClient) updateCrossConnectGroup(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDhcpOptions.go.html to see an example of how to use UpdateDhcpOptions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDhcpOptions.go.html to see an example of how to use UpdateDhcpOptions API. func (client VirtualNetworkClient) UpdateDhcpOptions(ctx context.Context, request UpdateDhcpOptionsRequest) (response UpdateDhcpOptionsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13315,7 +14115,7 @@ func (client VirtualNetworkClient) updateDhcpOptions(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrg.go.html to see an example of how to use UpdateDrg API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrg.go.html to see an example of how to use UpdateDrg API. func (client VirtualNetworkClient) UpdateDrg(ctx context.Context, request UpdateDrgRequest) (response UpdateDrgResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13373,7 +14173,7 @@ func (client VirtualNetworkClient) updateDrg(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgAttachment.go.html to see an example of how to use UpdateDrgAttachment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgAttachment.go.html to see an example of how to use UpdateDrgAttachment API. func (client VirtualNetworkClient) UpdateDrgAttachment(ctx context.Context, request UpdateDrgAttachmentRequest) (response UpdateDrgAttachmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13430,7 +14230,7 @@ func (client VirtualNetworkClient) updateDrgAttachment(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteDistribution.go.html to see an example of how to use UpdateDrgRouteDistribution API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteDistribution.go.html to see an example of how to use UpdateDrgRouteDistribution API. func (client VirtualNetworkClient) UpdateDrgRouteDistribution(ctx context.Context, request UpdateDrgRouteDistributionRequest) (response UpdateDrgRouteDistributionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13487,7 +14287,7 @@ func (client VirtualNetworkClient) updateDrgRouteDistribution(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteDistributionStatements.go.html to see an example of how to use UpdateDrgRouteDistributionStatements API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteDistributionStatements.go.html to see an example of how to use UpdateDrgRouteDistributionStatements API. func (client VirtualNetworkClient) UpdateDrgRouteDistributionStatements(ctx context.Context, request UpdateDrgRouteDistributionStatementsRequest) (response UpdateDrgRouteDistributionStatementsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13544,7 +14344,7 @@ func (client VirtualNetworkClient) updateDrgRouteDistributionStatements(ctx cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteRules.go.html to see an example of how to use UpdateDrgRouteRules API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteRules.go.html to see an example of how to use UpdateDrgRouteRules API. func (client VirtualNetworkClient) UpdateDrgRouteRules(ctx context.Context, request UpdateDrgRouteRulesRequest) (response UpdateDrgRouteRulesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13601,7 +14401,7 @@ func (client VirtualNetworkClient) updateDrgRouteRules(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteTable.go.html to see an example of how to use UpdateDrgRouteTable API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteTable.go.html to see an example of how to use UpdateDrgRouteTable API. func (client VirtualNetworkClient) UpdateDrgRouteTable(ctx context.Context, request UpdateDrgRouteTableRequest) (response UpdateDrgRouteTableResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13660,7 +14460,7 @@ func (client VirtualNetworkClient) updateDrgRouteTable(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnection.go.html to see an example of how to use UpdateIPSecConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnection.go.html to see an example of how to use UpdateIPSecConnection API. // 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 @@ -13726,7 +14526,7 @@ func (client VirtualNetworkClient) updateIPSecConnection(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnectionTunnel.go.html to see an example of how to use UpdateIPSecConnectionTunnel API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnectionTunnel.go.html to see an example of how to use UpdateIPSecConnectionTunnel API. // 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 @@ -13785,7 +14585,7 @@ func (client VirtualNetworkClient) updateIPSecConnectionTunnel(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnectionTunnelSharedSecret.go.html to see an example of how to use UpdateIPSecConnectionTunnelSharedSecret API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnectionTunnelSharedSecret.go.html to see an example of how to use UpdateIPSecConnectionTunnelSharedSecret API. // 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 @@ -13846,7 +14646,7 @@ func (client VirtualNetworkClient) updateIPSecConnectionTunnelSharedSecret(ctx c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInternetGateway.go.html to see an example of how to use UpdateInternetGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInternetGateway.go.html to see an example of how to use UpdateInternetGateway API. func (client VirtualNetworkClient) UpdateInternetGateway(ctx context.Context, request UpdateInternetGatewayRequest) (response UpdateInternetGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13899,7 +14699,7 @@ func (client VirtualNetworkClient) updateInternetGateway(ctx context.Context, re return response, err } -// UpdateIpv6 Updates the specified IPv6. You must specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// UpdateIpv6 Updates the specified IPv6. You must specify the object's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // Use this operation if you want to: // - Move an IPv6 to a different VNIC in the same subnet. // - Enable/disable internet access for an IPv6. @@ -13908,7 +14708,7 @@ func (client VirtualNetworkClient) updateInternetGateway(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIpv6.go.html to see an example of how to use UpdateIpv6 API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIpv6.go.html to see an example of how to use UpdateIpv6 API. func (client VirtualNetworkClient) UpdateIpv6(ctx context.Context, request UpdateIpv6Request) (response UpdateIpv6Response, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13965,7 +14765,7 @@ func (client VirtualNetworkClient) updateIpv6(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateLocalPeeringGateway.go.html to see an example of how to use UpdateLocalPeeringGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateLocalPeeringGateway.go.html to see an example of how to use UpdateLocalPeeringGateway API. func (client VirtualNetworkClient) UpdateLocalPeeringGateway(ctx context.Context, request UpdateLocalPeeringGatewayRequest) (response UpdateLocalPeeringGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14022,7 +14822,7 @@ func (client VirtualNetworkClient) updateLocalPeeringGateway(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNatGateway.go.html to see an example of how to use UpdateNatGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNatGateway.go.html to see an example of how to use UpdateNatGateway API. func (client VirtualNetworkClient) UpdateNatGateway(ctx context.Context, request UpdateNatGatewayRequest) (response UpdateNatGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14078,7 +14878,7 @@ func (client VirtualNetworkClient) updateNatGateway(ctx context.Context, request // UpdateNetworkSecurityGroup Updates the specified network security group. // To add or remove an existing VNIC from the group, use // UpdateVnic. -// To add a VNIC to the group *when you create the VNIC*, specify the NSG's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) during creation. +// To add a VNIC to the group *when you create the VNIC*, specify the NSG's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) during creation. // For example, see the `nsgIds` attribute in CreateVnicDetails. // To add or remove security rules from the group, use // AddNetworkSecurityGroupSecurityRules @@ -14089,7 +14889,7 @@ func (client VirtualNetworkClient) updateNatGateway(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNetworkSecurityGroup.go.html to see an example of how to use UpdateNetworkSecurityGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNetworkSecurityGroup.go.html to see an example of how to use UpdateNetworkSecurityGroup API. func (client VirtualNetworkClient) UpdateNetworkSecurityGroup(ctx context.Context, request UpdateNetworkSecurityGroupRequest) (response UpdateNetworkSecurityGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14146,7 +14946,7 @@ func (client VirtualNetworkClient) updateNetworkSecurityGroup(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNetworkSecurityGroupSecurityRules.go.html to see an example of how to use UpdateNetworkSecurityGroupSecurityRules API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNetworkSecurityGroupSecurityRules.go.html to see an example of how to use UpdateNetworkSecurityGroupSecurityRules API. func (client VirtualNetworkClient) UpdateNetworkSecurityGroupSecurityRules(ctx context.Context, request UpdateNetworkSecurityGroupSecurityRulesRequest) (response UpdateNetworkSecurityGroupSecurityRulesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14199,7 +14999,7 @@ func (client VirtualNetworkClient) updateNetworkSecurityGroupSecurityRules(ctx c return response, err } -// UpdatePrivateIp Updates the specified private IP. You must specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +// UpdatePrivateIp Updates the specified private IP. You must specify the object's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // Use this operation if you want to: // - Move a secondary private IP to a different VNIC in the same subnet. // - Change the display name for a secondary private IP. @@ -14211,7 +15011,7 @@ func (client VirtualNetworkClient) updateNetworkSecurityGroupSecurityRules(ctx c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePrivateIp.go.html to see an example of how to use UpdatePrivateIp API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePrivateIp.go.html to see an example of how to use UpdatePrivateIp API. func (client VirtualNetworkClient) UpdatePrivateIp(ctx context.Context, request UpdatePrivateIpRequest) (response UpdatePrivateIpResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14264,7 +15064,7 @@ func (client VirtualNetworkClient) updatePrivateIp(ctx context.Context, request return response, err } -// UpdatePublicIp Updates the specified public IP. You must specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Use this operation if you want to: +// UpdatePublicIp Updates the specified public IP. You must specify the object's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Use this operation if you want to: // * Assign a reserved public IP in your pool to a private IP. // * Move a reserved public IP to a different private IP. // * Unassign a reserved public IP from a private IP (which returns it to your pool @@ -14295,11 +15095,11 @@ func (client VirtualNetworkClient) updatePrivateIp(ctx context.Context, request // a VNIC or instance can have. If you try to move a reserved public IP // to a VNIC or 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). +// Public IP Addresses (https://docs.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePublicIp.go.html to see an example of how to use UpdatePublicIp API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePublicIp.go.html to see an example of how to use UpdatePublicIp API. func (client VirtualNetworkClient) UpdatePublicIp(ctx context.Context, request UpdatePublicIpRequest) (response UpdatePublicIpResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14356,7 +15156,7 @@ func (client VirtualNetworkClient) updatePublicIp(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePublicIpPool.go.html to see an example of how to use UpdatePublicIpPool API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePublicIpPool.go.html to see an example of how to use UpdatePublicIpPool API. func (client VirtualNetworkClient) UpdatePublicIpPool(ctx context.Context, request UpdatePublicIpPoolRequest) (response UpdatePublicIpPoolResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14413,7 +15213,7 @@ func (client VirtualNetworkClient) updatePublicIpPool(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateRemotePeeringConnection.go.html to see an example of how to use UpdateRemotePeeringConnection API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateRemotePeeringConnection.go.html to see an example of how to use UpdateRemotePeeringConnection API. // 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 @@ -14473,7 +15273,7 @@ func (client VirtualNetworkClient) updateRemotePeeringConnection(ctx context.Con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateRouteTable.go.html to see an example of how to use UpdateRouteTable API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateRouteTable.go.html to see an example of how to use UpdateRouteTable API. func (client VirtualNetworkClient) UpdateRouteTable(ctx context.Context, request UpdateRouteTableRequest) (response UpdateRouteTableResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14533,7 +15333,7 @@ func (client VirtualNetworkClient) updateRouteTable(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateSecurityList.go.html to see an example of how to use UpdateSecurityList API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateSecurityList.go.html to see an example of how to use UpdateSecurityList API. func (client VirtualNetworkClient) UpdateSecurityList(ctx context.Context, request UpdateSecurityListRequest) (response UpdateSecurityListResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14591,7 +15391,7 @@ func (client VirtualNetworkClient) updateSecurityList(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateServiceGateway.go.html to see an example of how to use UpdateServiceGateway API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateServiceGateway.go.html to see an example of how to use UpdateServiceGateway API. func (client VirtualNetworkClient) UpdateServiceGateway(ctx context.Context, request UpdateServiceGatewayRequest) (response UpdateServiceGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14648,7 +15448,7 @@ func (client VirtualNetworkClient) updateServiceGateway(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateSubnet.go.html to see an example of how to use UpdateSubnet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateSubnet.go.html to see an example of how to use UpdateSubnet API. func (client VirtualNetworkClient) UpdateSubnet(ctx context.Context, request UpdateSubnetRequest) (response UpdateSubnetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14707,7 +15507,7 @@ func (client VirtualNetworkClient) updateSubnet(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateTunnelCpeDeviceConfig.go.html to see an example of how to use UpdateTunnelCpeDeviceConfig API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateTunnelCpeDeviceConfig.go.html to see an example of how to use UpdateTunnelCpeDeviceConfig API. // 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 @@ -14770,7 +15570,7 @@ func (client VirtualNetworkClient) updateTunnelCpeDeviceConfig(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVcn.go.html to see an example of how to use UpdateVcn API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVcn.go.html to see an example of how to use UpdateVcn API. func (client VirtualNetworkClient) UpdateVcn(ctx context.Context, request UpdateVcnRequest) (response UpdateVcnResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14837,7 +15637,7 @@ func (client VirtualNetworkClient) updateVcn(ctx context.Context, request common // its state will return to PROVISIONED. Make sure you confirm that // the associated BGP session is back up. For more information // about the various states and how to test connectivity, see -// FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// FastConnect Overview (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). // To change the list of public IP prefixes for a public virtual circuit, // use BulkAddVirtualCircuitPublicPrefixes // and @@ -14848,7 +15648,7 @@ func (client VirtualNetworkClient) updateVcn(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVirtualCircuit.go.html to see an example of how to use UpdateVirtualCircuit API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVirtualCircuit.go.html to see an example of how to use UpdateVirtualCircuit API. // 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 @@ -14907,7 +15707,7 @@ func (client VirtualNetworkClient) updateVirtualCircuit(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVlan.go.html to see an example of how to use UpdateVlan API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVlan.go.html to see an example of how to use UpdateVlan API. func (client VirtualNetworkClient) UpdateVlan(ctx context.Context, request UpdateVlanRequest) (response UpdateVlanResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -14964,7 +15764,7 @@ func (client VirtualNetworkClient) updateVlan(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVnic.go.html to see an example of how to use UpdateVnic API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVnic.go.html to see an example of how to use UpdateVnic API. func (client VirtualNetworkClient) UpdateVnic(ctx context.Context, request UpdateVnicRequest) (response UpdateVnicResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -15021,7 +15821,7 @@ func (client VirtualNetworkClient) updateVnic(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVtap.go.html to see an example of how to use UpdateVtap API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVtap.go.html to see an example of how to use UpdateVtap API. func (client VirtualNetworkClient) UpdateVtap(ctx context.Context, request UpdateVtapRequest) (response UpdateVtapResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -15079,7 +15879,7 @@ func (client VirtualNetworkClient) updateVtap(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpgradeDrg.go.html to see an example of how to use UpgradeDrg API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpgradeDrg.go.html to see an example of how to use UpgradeDrg API. func (client VirtualNetworkClient) UpgradeDrg(ctx context.Context, request UpgradeDrgRequest) (response UpgradeDrgResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -15137,12 +15937,76 @@ func (client VirtualNetworkClient) upgradeDrg(ctx context.Context, request commo return response, err } +// ValidateByoasn Submits the BYOASN for validation. Please do not submit to Oracle for validation if the information for the BYOASN is not already modified in the Regional Internet Registry. +// See To import a BYOASN (https://docs.oracle.com/iaas/Content/Network/Concepts/BYOASN.htm) for details. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ValidateByoasn.go.html to see an example of how to use ValidateByoasn API. +// A default retry strategy applies to this operation ValidateByoasn() +func (client VirtualNetworkClient) ValidateByoasn(ctx context.Context, request ValidateByoasnRequest) (response ValidateByoasnResponse, 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.validateByoasn, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ValidateByoasnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ValidateByoasnResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ValidateByoasnResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ValidateByoasnResponse") + } + return +} + +// validateByoasn implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) validateByoasn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/byoasns/{byoasnId}/actions/validate", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ValidateByoasnResponse + 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/Byoasn/ValidateByoasn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ValidateByoasn", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ValidateByoipRange Submits the BYOIP CIDR block you are importing for validation. Do not submit to Oracle for validation if you have not already -// modified the information for the BYOIP CIDR block with your Regional Internet Registry. See To import a CIDR block (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/BYOIP.htm#import_cidr) for details. +// modified the information for the BYOIP CIDR block with your Regional Internet Registry. See To import a CIDR block (https://docs.oracle.com/iaas/Content/Network/Concepts/BYOIP.htm#import_cidr) for details. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ValidateByoipRange.go.html to see an example of how to use ValidateByoipRange API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ValidateByoipRange.go.html to see an example of how to use ValidateByoipRange API. func (client VirtualNetworkClient) ValidateByoipRange(ctx context.Context, request ValidateByoipRangeRequest) (response ValidateByoipRangeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -15199,7 +16063,7 @@ func (client VirtualNetworkClient) validateByoipRange(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/WithdrawByoipRange.go.html to see an example of how to use WithdrawByoipRange API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/WithdrawByoipRange.go.html to see an example of how to use WithdrawByoipRange API. func (client VirtualNetworkClient) WithdrawByoipRange(ctx context.Context, request WithdrawByoipRangeRequest) (response WithdrawByoipRangeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe.go index f8556fe01e..d3af6c3755 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,13 +25,13 @@ import ( // and VCN. The `Cpe` is a virtual representation of your customer-premises equipment, // which is the actual router on-premises at your site at your end of the Site-to-Site VPN IPSec connection. // For more information, -// see Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). +// see Overview of the Networking Service (https://docs.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). +// Getting Started with Policies (https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). type Cpe struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the CPE. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the CPE. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The CPE's Oracle ID (OCID). @@ -41,7 +41,7 @@ type Cpe struct { IpAddress *string `mandatory:"true" json:"ipAddress"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -50,14 +50,14 @@ type Cpe struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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's device type. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE's device type. // The Networking service maintains a general list of CPE device types (for example, // Cisco ASA). For each type, Oracle provides CPE configuration content that can help - // a network engineer configure the CPE. The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) uniquely identifies the type of + // a network engineer configure the CPE. The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) uniquely identifies the type of // device. To get the OCIDs for the device types on the list, see // ListCpeDeviceShapes. // For information about how to generate CPE configuration content for a @@ -87,7 +87,7 @@ func (m Cpe) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index bb6afd5603..0f07425429 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m CpeDeviceConfigAnswer) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d6727409ab..28d4b2ae75 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -48,7 +48,7 @@ func (m CpeDeviceConfigQuestion) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 60b3f51f26..1eb3afe5d9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m CpeDeviceInfo) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e16c30faaf..14fa475cf2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( // CpeDeviceShapeSummary. type CpeDeviceShapeDetail struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device shape. + // The OCID (https://docs.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"` @@ -58,7 +58,7 @@ func (m CpeDeviceShapeDetail) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 42592e8c67..eaf659016b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( // CpeDeviceShapeDetail. type CpeDeviceShapeSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device shape. + // The OCID (https://docs.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"` @@ -43,7 +43,7 @@ func (m CpeDeviceShapeSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index c3efa59d07..f97414e3a5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -58,7 +58,7 @@ func (m CreateAppCatalogSubscriptionDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 24beed6f86..369581bc98 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateAppCatalogSubscription.go.html to see an example of how to use CreateAppCatalogSubscriptionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateAppCatalogSubscription.go.html to see an example of how to use CreateAppCatalogSubscriptionRequest. type CreateAppCatalogSubscriptionRequest struct { // Request for the creation of a subscription for listing resource version for a compartment. @@ -69,7 +69,7 @@ func (request CreateAppCatalogSubscriptionRequest) RetryPolicy() *common.RetryPo func (request CreateAppCatalogSubscriptionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6429e5ed7f..f335302b4f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,7 +28,7 @@ type CreateBootVolumeBackupDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -37,7 +37,7 @@ type CreateBootVolumeBackupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -46,8 +46,8 @@ type CreateBootVolumeBackupDetails struct { // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -65,7 +65,7 @@ func (m CreateBootVolumeBackupDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 0b0686f837..468e57ab5a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateBootVolumeBackup.go.html to see an example of how to use CreateBootVolumeBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateBootVolumeBackup.go.html to see an example of how to use CreateBootVolumeBackupRequest. type CreateBootVolumeBackupRequest struct { // Request to create a new backup of given boot volume. @@ -69,7 +69,7 @@ func (request CreateBootVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { func (request CreateBootVolumeBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e29f505e14..ba4e26b87a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ type CreateBootVolumeDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -48,7 +48,7 @@ type CreateBootVolumeDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -64,7 +64,7 @@ type CreateBootVolumeDetails struct { // 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. + // See Block Volume Performance Levels (https://docs.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. @@ -85,8 +85,8 @@ type CreateBootVolumeDetails struct { // The OCID of the Vault service key which is the master encryption key for the boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). XrcKmsKeyId *string `mandatory:"false" json:"xrcKmsKeyId"` } @@ -101,7 +101,7 @@ func (m CreateBootVolumeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_request_response.go index c3cea6378c..2db246a217 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateBootVolume.go.html to see an example of how to use CreateBootVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateBootVolume.go.html to see an example of how to use CreateBootVolumeRequest. type CreateBootVolumeRequest struct { // Request to create a new boot volume. @@ -69,7 +69,7 @@ func (request CreateBootVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request CreateBootVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoasn_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoasn_details.go new file mode 100644 index 0000000000..13c83b0b9c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoasn_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateByoasnDetails The information used to create a `Byoasn` resource. +type CreateByoasnDetails struct { + + // The Autonomous System Number (ASN) you are importing to the Oracle cloud. + Asn *int64 `mandatory:"true" json:"asn"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the BYOASN Resource. + 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"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateByoasnDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateByoasnDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoasn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoasn_request_response.go new file mode 100644 index 0000000000..3d4b433bff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoasn_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// CreateByoasnRequest wrapper for the CreateByoasn operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateByoasn.go.html to see an example of how to use CreateByoasnRequest. +type CreateByoasnRequest struct { + + // Details needed to create a BYOASN Resource. + CreateByoasnDetails `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 CreateByoasnRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateByoasnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateByoasnRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateByoasnRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateByoasnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateByoasnResponse wrapper for the CreateByoasn operation +type CreateByoasnResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Byoasn instance + Byoasn `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 CreateByoasnResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateByoasnResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 3169ebaedb..81f5b5b2a7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.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. @@ -35,7 +35,7 @@ type CreateByoipRangeDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -44,7 +44,7 @@ type CreateByoipRangeDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -60,7 +60,7 @@ func (m CreateByoipRangeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_request_response.go index b28466d4cf..0ad1633280 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateByoipRange.go.html to see an example of how to use CreateByoipRangeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateByoipRange.go.html to see an example of how to use CreateByoipRangeRequest. type CreateByoipRangeRequest struct { // Details needed to create a BYOIP CIDR block subrange. @@ -69,7 +69,7 @@ func (request CreateByoipRangeRequest) RetryPolicy() *common.RetryPolicy { func (request CreateByoipRangeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c9c719baa9..0391a897ac 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -46,7 +46,7 @@ func (m CreateCapacityReportShapeAvailabilityDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capacity_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capacity_source_details.go index bd79c75d25..635cd888a3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capacity_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capacity_source_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -61,7 +61,7 @@ func (m *createcapacitysourcedetails) UnmarshalPolymorphicJSON(data []byte) (int err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for CreateCapacitySourceDetails: %s.", m.CapacityType) + common.Logf("Received unsupported enum value for CreateCapacitySourceDetails: %s.", m.CapacityType) return *m, nil } } @@ -77,7 +77,7 @@ func (m createcapacitysourcedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index c74e91c5ff..359641bef6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,14 +24,14 @@ import ( // CreateCaptureFilterDetails A capture filter contains a set of rules governing what traffic a VTAP mirrors or a VCN flow log collects. type CreateCaptureFilterDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the capture filter. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -40,7 +40,7 @@ type CreateCaptureFilterDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -65,7 +65,7 @@ func (m CreateCaptureFilterDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_request_response.go index ee390ede25..e918eb7ba0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCaptureFilter.go.html to see an example of how to use CreateCaptureFilterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCaptureFilter.go.html to see an example of how to use CreateCaptureFilterRequest. type CreateCaptureFilterRequest struct { // Details for creating a capture filter. @@ -69,7 +69,7 @@ func (request CreateCaptureFilterRequest) RetryPolicy() *common.RetryPolicy { func (request CreateCaptureFilterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ba91bc8f8a..e118e6b33a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,7 +21,7 @@ import ( "strings" ) -// CreateClusterNetworkDetails The data to create a cluster network with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). +// CreateClusterNetworkDetails The data to create a cluster network with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). // Use cluster networks with instance pools when you want predictable capacity for a specific number of identical // instances that are managed as a group. // For details about creating compute clusters, which let you manage instances in the RDMA network independently @@ -29,7 +29,7 @@ import ( // see CreateComputeClusterDetails. type CreateClusterNetworkDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment // containing the cluster network. CompartmentId *string `mandatory:"true" json:"compartmentId"` @@ -40,7 +40,7 @@ type CreateClusterNetworkDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -49,7 +49,7 @@ type CreateClusterNetworkDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -67,7 +67,7 @@ func (m CreateClusterNetworkDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d0d2490806..23cf163a08 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration // associated with the instance pool. InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` @@ -32,7 +32,7 @@ type CreateClusterNetworkInstancePoolDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -41,7 +41,7 @@ type CreateClusterNetworkInstancePoolDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -57,7 +57,7 @@ func (m CreateClusterNetworkInstancePoolDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_request_response.go index 0213116508..52c8872739 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateClusterNetwork.go.html to see an example of how to use CreateClusterNetworkRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateClusterNetwork.go.html to see an example of how to use CreateClusterNetworkRequest. type CreateClusterNetworkRequest struct { // Cluster network creation details @@ -69,7 +69,7 @@ func (request CreateClusterNetworkRequest) RetryPolicy() *common.RetryPolicy { func (request CreateClusterNetworkRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -90,8 +90,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index dd3cbdb0b2..5647593446 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // CreateComputeCapacityReportDetails The data to create a report of available Compute capacity. 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root // compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` @@ -47,7 +47,7 @@ func (m CreateComputeCapacityReportDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index b13566ec73..a31a5c206a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityReport.go.html to see an example of how to use CreateComputeCapacityReportRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityReport.go.html to see an example of how to use CreateComputeCapacityReportRequest. type CreateComputeCapacityReportRequest struct { // Details for creating a new compute capacity report. @@ -69,7 +69,7 @@ func (request CreateComputeCapacityReportRequest) RetryPolicy() *common.RetryPol func (request CreateComputeCapacityReportRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_reservation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_reservation_details.go index 7209d2adf6..4e7664e690 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_reservation_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_reservation_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // CreateComputeCapacityReservationDetails The details for creating a new compute capacity reservation. type CreateComputeCapacityReservationDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the capacity reservation. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the capacity reservation. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The availability domain of this compute capacity reservation. @@ -32,7 +32,7 @@ type CreateComputeCapacityReservationDetails struct { AvailabilityDomain *string `mandatory:"true" 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -41,12 +41,12 @@ type CreateComputeCapacityReservationDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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). + // For more information, see Capacity Reservations (https://docs.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). IsDefaultReservation *bool `mandatory:"false" json:"isDefaultReservation"` // The capacity configurations for the capacity reservation. @@ -66,7 +66,7 @@ func (m CreateComputeCapacityReservationDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index f237806536..d80caf5a96 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityReservation.go.html to see an example of how to use CreateComputeCapacityReservationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityReservation.go.html to see an example of how to use CreateComputeCapacityReservationRequest. type CreateComputeCapacityReservationRequest struct { // Details for creating a new compute capacity reservation. @@ -70,7 +70,7 @@ func (request CreateComputeCapacityReservationRequest) RetryPolicy() *common.Ret func (request CreateComputeCapacityReservationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -91,8 +91,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_topology_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_topology_details.go index 1106c39d14..b1ef770acc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_topology_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_topology_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -31,11 +31,11 @@ type CreateComputeCapacityTopologyDetails struct { CapacitySource CreateCapacitySourceDetails `mandatory:"true" json:"capacitySource"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains this compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains this compute capacity topology. 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -44,7 +44,7 @@ type CreateComputeCapacityTopologyDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -60,7 +60,7 @@ func (m CreateComputeCapacityTopologyDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_topology_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_topology_request_response.go index a4ac9aa070..9827abdf23 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_topology_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_topology_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityTopology.go.html to see an example of how to use CreateComputeCapacityTopologyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCapacityTopology.go.html to see an example of how to use CreateComputeCapacityTopologyRequest. type CreateComputeCapacityTopologyRequest struct { // Details for creating a new compute capacity topology. @@ -69,7 +69,7 @@ func (request CreateComputeCapacityTopologyRequest) RetryPolicy() *common.RetryP func (request CreateComputeCapacityTopologyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -93,8 +93,8 @@ type CreateComputeCapacityTopologyResponse 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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index b7b6024f4c..ef12322639 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,7 +21,7 @@ import ( "strings" ) -// CreateComputeClusterDetails The data for creating a compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute cluster +// CreateComputeClusterDetails The data for creating a compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute cluster // 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. @@ -35,7 +35,7 @@ type CreateComputeClusterDetails struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // A user-friendly name. Does not have to be unique, and it's changeable. @@ -43,12 +43,12 @@ type CreateComputeClusterDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -64,7 +64,7 @@ func (m CreateComputeClusterDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 29eeaba50e..643ca8f4b8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCluster.go.html to see an example of how to use CreateComputeClusterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeCluster.go.html to see an example of how to use CreateComputeClusterRequest. type CreateComputeClusterRequest struct { - // The data for creating a compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute cluster + // The data for creating a compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute cluster // 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. @@ -76,7 +76,7 @@ func (request CreateComputeClusterRequest) RetryPolicy() *common.RetryPolicy { func (request CreateComputeClusterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_gpu_memory_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_gpu_memory_cluster_details.go new file mode 100644 index 0000000000..6a66dfccf0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_gpu_memory_cluster_details.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateComputeGpuMemoryClusterDetails The customer facing object includes GPU memory cluster details. +type CreateComputeGpuMemoryClusterDetails struct { + + // The availability domain of the GPU memory cluster. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the compute GPU memory cluster. + // compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + ComputeClusterId *string `mandatory:"true" json:"computeClusterId"` + + // Instance Configuration to be used for this GPU Memory Cluster + InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the GPU memory fabric. + GpuMemoryFabricId *string `mandatory:"false" json:"gpuMemoryFabricId"` + + // The number of instances currently running in the GpuMemoryCluster + Size *int64 `mandatory:"false" json:"size"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // 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 CreateComputeGpuMemoryClusterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateComputeGpuMemoryClusterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_gpu_memory_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_gpu_memory_cluster_request_response.go new file mode 100644 index 0000000000..da1b8ed1d3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_gpu_memory_cluster_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// CreateComputeGpuMemoryClusterRequest wrapper for the CreateComputeGpuMemoryCluster operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeGpuMemoryCluster.go.html to see an example of how to use CreateComputeGpuMemoryClusterRequest. +type CreateComputeGpuMemoryClusterRequest struct { + + // The configuration details of a GPU memory cluster + CreateComputeGpuMemoryClusterDetails `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 CreateComputeGpuMemoryClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateComputeGpuMemoryClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateComputeGpuMemoryClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateComputeGpuMemoryClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateComputeGpuMemoryClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateComputeGpuMemoryClusterResponse wrapper for the CreateComputeGpuMemoryCluster operation +type CreateComputeGpuMemoryClusterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeGpuMemoryCluster instance + ComputeGpuMemoryCluster `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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 CreateComputeGpuMemoryClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateComputeGpuMemoryClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_host_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_host_group_details.go new file mode 100644 index 0000000000..357bc6eeb0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_host_group_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateComputeHostGroupDetails Detail information for a compute host group. +type CreateComputeHostGroupDetails struct { + + // The availability domain of a host group. + // 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:"true" json:"displayName"` + + // The OCID of the compartment that contains host group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group. + IsTargetedPlacementRequired *bool `mandatory:"true" json:"isTargetedPlacementRequired"` + + // A list of HostGroupConfiguration objects + Configurations []HostGroupConfiguration `mandatory:"false" json:"configurations"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateComputeHostGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateComputeHostGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_host_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_host_group_request_response.go new file mode 100644 index 0000000000..589dbb7fba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_host_group_request_response.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// CreateComputeHostGroupRequest wrapper for the CreateComputeHostGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeHostGroup.go.html to see an example of how to use CreateComputeHostGroupRequest. +type CreateComputeHostGroupRequest struct { + + // Details for creating a new host group. + CreateComputeHostGroupDetails `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 CreateComputeHostGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateComputeHostGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateComputeHostGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateComputeHostGroupRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateComputeHostGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateComputeHostGroupResponse wrapper for the CreateComputeHostGroup operation +type CreateComputeHostGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeHostGroup instance + ComputeHostGroup `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Location of the resource. + Location *string `presentIn:"header" name:"location"` + + // Unique Oracle-assigned identifier for the 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 CreateComputeHostGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateComputeHostGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 77a1735cda..29c24cce97 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -38,7 +38,7 @@ type CreateComputeImageCapabilitySchemaDetails struct { SchemaData map[string]ImageCapabilitySchemaDescriptor `mandatory:"true" json:"schemaData"` // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -47,7 +47,7 @@ type CreateComputeImageCapabilitySchemaDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -63,7 +63,7 @@ func (m CreateComputeImageCapabilitySchemaDetails) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index b7237064cc..c1afbae20b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeImageCapabilitySchema.go.html to see an example of how to use CreateComputeImageCapabilitySchemaRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateComputeImageCapabilitySchema.go.html to see an example of how to use CreateComputeImageCapabilitySchemaRequest. type CreateComputeImageCapabilitySchemaRequest struct { // Compute Image Capability Schema creation details @@ -69,7 +69,7 @@ func (request CreateComputeImageCapabilitySchemaRequest) RetryPolicy() *common.R func (request CreateComputeImageCapabilitySchemaRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_details.go index 473f0904ab..597f44bff9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // CreateCpeDetails The representation of CreateCpeDetails type CreateCpeDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the CPE. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the CPE. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The public IP address of the on-premises router. @@ -32,7 +32,7 @@ type CreateCpeDetails struct { IpAddress *string `mandatory:"true" json:"ipAddress"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -41,11 +41,11 @@ type CreateCpeDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device type. You can provide // a value if you want to later generate CPE device configuration content for IPSec connections // that use this CPE. You can also call UpdateCpe later to // provide a value. For a list of possible values, see @@ -72,7 +72,7 @@ func (m CreateCpeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_request_response.go index 76410fde64..10d791398b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCpe.go.html to see an example of how to use CreateCpeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCpe.go.html to see an example of how to use CreateCpeRequest. type CreateCpeRequest struct { // Details for creating a CPE. @@ -69,7 +69,7 @@ func (request CreateCpeRequest) RetryPolicy() *common.RetryPolicy { func (request CreateCpeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_details.go index 3da87deba5..8bd00969ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // CreateCrossConnectDetails The representation of CreateCrossConnectDetails type CreateCrossConnectDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the cross-connect. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the cross-connect. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The name of the FastConnect location where this cross-connect will be installed. @@ -38,11 +38,11 @@ type CreateCrossConnectDetails struct { // Example: `10 Gbps` PortSpeedShapeName *string `mandatory:"true" json:"portSpeedShapeName"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group to put this cross-connect in. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group to put this cross-connect in. 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -52,18 +52,18 @@ type CreateCrossConnectDetails struct { // If you already have an existing cross-connect or cross-connect group at this FastConnect // location, and you want this new cross-connect to be on a different router (for the - // purposes of redundancy), provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of that existing cross-connect or + // purposes of redundancy), provide the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of that existing cross-connect or // cross-connect group. FarCrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"farCrossConnectOrCrossConnectGroupId"` // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // If you already have an existing cross-connect or cross-connect group at this FastConnect // location, and you want this new cross-connect to be on the same router, provide the - // OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of that existing cross-connect or cross-connect group. + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of that existing cross-connect or cross-connect group. NearCrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"nearCrossConnectOrCrossConnectGroupId"` // A reference name or identifier for the physical fiber connection that this cross-connect @@ -84,7 +84,7 @@ func (m CreateCrossConnectDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 6716da2a8e..ee5bb99270 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,11 +24,11 @@ import ( // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -41,7 +41,7 @@ type CreateCrossConnectGroupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -59,7 +59,7 @@ func (m CreateCrossConnectGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index f1c64e0dbc..4b27e17b69 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCrossConnectGroup.go.html to see an example of how to use CreateCrossConnectGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCrossConnectGroup.go.html to see an example of how to use CreateCrossConnectGroupRequest. type CreateCrossConnectGroupRequest struct { // Details to create a CrossConnectGroup @@ -69,7 +69,7 @@ func (request CreateCrossConnectGroupRequest) RetryPolicy() *common.RetryPolicy func (request CreateCrossConnectGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_request_response.go index 8fd215d52b..4fd2f00432 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCrossConnect.go.html to see an example of how to use CreateCrossConnectRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateCrossConnect.go.html to see an example of how to use CreateCrossConnectRequest. type CreateCrossConnectRequest struct { // Details to create a CrossConnect @@ -69,7 +69,7 @@ func (request CreateCrossConnectRequest) RetryPolicy() *common.RetryPolicy { func (request CreateCrossConnectRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_capacity_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_capacity_source_details.go index 00debc0e91..8f33198602 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_capacity_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_capacity_source_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( // CreateDedicatedCapacitySourceDetails A capacity source of bare metal hosts that is dedicated to a customer. type CreateDedicatedCapacitySourceDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment of this capacity source. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment of this capacity source. CompartmentId *string `mandatory:"false" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m CreateDedicatedCapacitySourceDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_vm_host_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_vm_host_details.go index c84a403c59..c60d6fc83b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_vm_host_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_vm_host_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,16 +6,17 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core import ( + "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -36,7 +37,7 @@ type CreateDedicatedVmHostDetails struct { DedicatedVmHostShape *string `mandatory:"true" json:"dedicatedVmHostShape"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -45,18 +46,27 @@ type CreateDedicatedVmHostDetails struct { DisplayName *string `mandatory:"false" json:"displayName"` // 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). + // For more information, see Fault Domains (https://docs.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 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/). + // the Identity and Access Management Service API (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + PlacementConstraintDetails PlacementConstraintDetails `mandatory:"false" json:"placementConstraintDetails"` + + // The capacity configuration selected to be configured for the Dedicated Virtual Machine host. + // Run ListDedicatedVmHostShapes API first to see the capacity configuration options. + CapacityConfig *string `mandatory:"false" json:"capacityConfig"` + + // Specifies if the Dedicated Virtual Machine Host (DVMH) is restricted to running only Confidential VMs. If `true`, only Confidential VMs can be launched. If `false`, Confidential VMs cannot be launched. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` } func (m CreateDedicatedVmHostDetails) String() string { @@ -70,7 +80,58 @@ func (m CreateDedicatedVmHostDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } + +// UnmarshalJSON unmarshals from json +func (m *CreateDedicatedVmHostDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FaultDomain *string `json:"faultDomain"` + FreeformTags map[string]string `json:"freeformTags"` + PlacementConstraintDetails placementconstraintdetails `json:"placementConstraintDetails"` + CapacityConfig *string `json:"capacityConfig"` + IsMemoryEncryptionEnabled *bool `json:"isMemoryEncryptionEnabled"` + AvailabilityDomain *string `json:"availabilityDomain"` + CompartmentId *string `json:"compartmentId"` + DedicatedVmHostShape *string `json:"dedicatedVmHostShape"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FaultDomain = model.FaultDomain + + m.FreeformTags = model.FreeformTags + + nn, e = model.PlacementConstraintDetails.UnmarshalPolymorphicJSON(model.PlacementConstraintDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.PlacementConstraintDetails = nn.(PlacementConstraintDetails) + } else { + m.PlacementConstraintDetails = nil + } + + m.CapacityConfig = model.CapacityConfig + + m.IsMemoryEncryptionEnabled = model.IsMemoryEncryptionEnabled + + m.AvailabilityDomain = model.AvailabilityDomain + + m.CompartmentId = model.CompartmentId + + m.DedicatedVmHostShape = model.DedicatedVmHostShape + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 5fcb8c005d..29e8b697c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDedicatedVmHost.go.html to see an example of how to use CreateDedicatedVmHostRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDedicatedVmHost.go.html to see an example of how to use CreateDedicatedVmHostRequest. type CreateDedicatedVmHostRequest struct { // The details for creating a new dedicated virtual machine host. @@ -69,7 +69,7 @@ func (request CreateDedicatedVmHostRequest) RetryPolicy() *common.RetryPolicy { func (request CreateDedicatedVmHostRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -90,8 +90,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index bcc92fb4f1..2f757d90d5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,17 +25,17 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -44,7 +44,7 @@ type CreateDhcpDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -66,7 +66,7 @@ func (m CreateDhcpDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_options_request_response.go index ad50c102c9..ffb7d01241 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_options_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDhcpOptions.go.html to see an example of how to use CreateDhcpOptionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDhcpOptions.go.html to see an example of how to use CreateDhcpOptionsRequest. type CreateDhcpOptionsRequest struct { // Request object for creating a new set of DHCP options. @@ -69,7 +69,7 @@ func (request CreateDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { func (request CreateDhcpOptionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7040e15c61..98e70488ef 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,41 +25,41 @@ import ( // CreateDrgAttachmentDetails The representation of CreateDrgAttachmentDetails type CreateDrgAttachmentDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.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 OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.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) + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.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. + // The OCID (https://docs.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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the attached resource. VcnId *string `mandatory:"false" json:"vcnId"` } @@ -74,7 +74,7 @@ func (m CreateDrgAttachmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_request_response.go index 6261fe37a0..0bde209d28 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgAttachment.go.html to see an example of how to use CreateDrgAttachmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgAttachment.go.html to see an example of how to use CreateDrgAttachmentRequest. type CreateDrgAttachmentRequest struct { // Details for creating a `DrgAttachment`. @@ -69,7 +69,7 @@ func (request CreateDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { func (request CreateDrgAttachmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3d6072e81c..ab1974069c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,11 +24,11 @@ import ( // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -37,7 +37,7 @@ type CreateDrgDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -53,7 +53,7 @@ func (m CreateDrgDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_request_response.go index 2aee942a01..c3040d512c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrg.go.html to see an example of how to use CreateDrgRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrg.go.html to see an example of how to use CreateDrgRequest. type CreateDrgRequest struct { // Details for creating a DRG. @@ -69,7 +69,7 @@ func (request CreateDrgRequest) RetryPolicy() *common.RetryPolicy { func (request CreateDrgRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1b3ea57bc6..40feaa2855 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,17 +21,17 @@ import ( "strings" ) -// CreateDrgRouteDistributionDetails Details used to create a route distribution. +// CreateDrgRouteDistributionDetails Details used to create an import route distribution. You can't create a new export 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. + // The OCID (https://docs.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. + // States that this distribution defines how routes get imported into route tables. 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -40,7 +40,7 @@ type CreateDrgRouteDistributionDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -59,7 +59,7 @@ func (m CreateDrgRouteDistributionDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 6963f2fd49..723aa3b7ff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgRouteDistribution.go.html to see an example of how to use CreateDrgRouteDistributionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgRouteDistribution.go.html to see an example of how to use CreateDrgRouteDistributionRequest. type CreateDrgRouteDistributionRequest struct { // Details for creating a route distribution. @@ -69,7 +69,7 @@ func (request CreateDrgRouteDistributionRequest) RetryPolicy() *common.RetryPoli func (request CreateDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c0d8956775..e6417d93a4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,11 +24,11 @@ import ( // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -37,11 +37,11 @@ type CreateDrgRouteTableDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 + // The OCID (https://docs.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"` @@ -61,7 +61,7 @@ func (m CreateDrgRouteTableDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 61be18319d..ee341d13b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgRouteTable.go.html to see an example of how to use CreateDrgRouteTableRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateDrgRouteTable.go.html to see an example of how to use CreateDrgRouteTableRequest. type CreateDrgRouteTableRequest struct { // Details for creating a DRG route table. @@ -69,7 +69,7 @@ func (request CreateDrgRouteTableRequest) RetryPolicy() *common.RetryPolicy { func (request CreateDrgRouteTableRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 6065fc74c1..96e292bac3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateIPSecConnection.go.html to see an example of how to use CreateIPSecConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateIPSecConnection.go.html to see an example of how to use CreateIPSecConnectionRequest. type CreateIPSecConnectionRequest struct { // Details for creating an `IPSecConnection`. @@ -69,7 +69,7 @@ func (request CreateIPSecConnectionRequest) RetryPolicy() *common.RetryPolicy { func (request CreateIPSecConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 050ac558c4..b4d341593e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -29,7 +29,7 @@ type CreateImageDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -40,7 +40,7 @@ type CreateImageDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -71,7 +71,7 @@ func (m CreateImageDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_request_response.go index c8f9895001..1f735213c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateImage.go.html to see an example of how to use CreateImageRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateImage.go.html to see an example of how to use CreateImageRequest. type CreateImageRequest struct { // Image creation details @@ -69,7 +69,7 @@ func (request CreateImageRequest) RetryPolicy() *common.RetryPolicy { func (request CreateImageRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -90,8 +90,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 0f651e13e5..05a0548c80 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,12 +25,12 @@ import ( // 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 + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` GetDefinedTags() map[string]map[string]interface{} @@ -39,7 +39,7 @@ type CreateInstanceConfigurationBase interface { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` GetFreeformTags() map[string]string } @@ -91,7 +91,7 @@ func (m *createinstanceconfigurationbase) UnmarshalPolymorphicJSON(data []byte) err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for CreateInstanceConfigurationBase: %s.", m.Source) + common.Logf("Received unsupported enum value for CreateInstanceConfigurationBase: %s.", m.Source) return *m, nil } } @@ -127,7 +127,7 @@ func (m createinstanceconfigurationbase) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_details.go index 1442bcb69f..81b0963f62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,14 +25,14 @@ import ( // CreateInstanceConfigurationDetails Details for creating an instance configuration by providing a list of configuration settings. type CreateInstanceConfigurationDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment // containing the instance configuration. CompartmentId *string `mandatory:"true" json:"compartmentId"` InstanceDetails InstanceConfigurationInstanceDetails `mandatory:"true" json:"instanceDetails"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -41,7 +41,7 @@ type CreateInstanceConfigurationDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -77,7 +77,7 @@ func (m CreateInstanceConfigurationDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 627bd631ff..7a22a68edf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,16 +25,16 @@ import ( // CreateInstanceConfigurationFromInstanceDetails Details for creating an instance configuration using an existing instance as a template. type CreateInstanceConfigurationFromInstanceDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment // containing the instance configuration. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance to use to create the + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance to use to create the // instance configuration. 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -43,7 +43,7 @@ type CreateInstanceConfigurationFromInstanceDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -79,7 +79,7 @@ func (m CreateInstanceConfigurationFromInstanceDetails) ValidateEnumValue() (boo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_request_response.go index 8c372be317..e2eeb5089e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstanceConfiguration.go.html to see an example of how to use CreateInstanceConfigurationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstanceConfiguration.go.html to see an example of how to use CreateInstanceConfigurationRequest. type CreateInstanceConfigurationRequest struct { // Instance configuration creation details @@ -69,7 +69,7 @@ func (request CreateInstanceConfigurationRequest) RetryPolicy() *common.RetryPol func (request CreateInstanceConfigurationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d8f1478501..fc9e32a1c9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -32,12 +32,12 @@ type CreateInstanceConsoleConnectionDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -53,7 +53,7 @@ func (m CreateInstanceConsoleConnectionDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index d77e4c0d62..a0efa4699c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstanceConsoleConnection.go.html to see an example of how to use CreateInstanceConsoleConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstanceConsoleConnection.go.html to see an example of how to use CreateInstanceConsoleConnectionRequest. type CreateInstanceConsoleConnectionRequest struct { // Request object for creating an InstanceConsoleConnection @@ -69,7 +69,7 @@ func (request CreateInstanceConsoleConnectionRequest) RetryPolicy() *common.Retr func (request CreateInstanceConsoleConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go index 7fe17a5cb4..13dea2f76b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,10 +24,10 @@ import ( // CreateInstancePoolDetails The data to create an instance pool. type CreateInstancePoolDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the instance pool. + // The OCID (https://docs.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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated // with the instance pool. InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` @@ -42,7 +42,7 @@ type CreateInstancePoolDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -51,7 +51,7 @@ type CreateInstancePoolDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -65,6 +65,8 @@ type CreateInstancePoolDetails struct { // 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"` + + LifecycleManagement *InstancePoolLifecycleManagementDetails `mandatory:"false" json:"lifecycleManagement"` } func (m CreateInstancePoolDetails) String() string { @@ -78,7 +80,7 @@ func (m CreateInstancePoolDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 995c44444e..6ef9b5bd98 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ type CreateInstancePoolPlacementConfigurationDetails struct { // Example: `[FAULT-DOMAIN-1, FAULT-DOMAIN-2, FAULT-DOMAIN-3]` FaultDomains []string `mandatory:"false" json:"faultDomains"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet in which to place instances. This field is deprecated. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet in which to place instances. This field is deprecated. // Use `primaryVnicSubnets` instead to set VNIC data for instances in the pool. PrimarySubnetId *string `mandatory:"false" json:"primarySubnetId"` @@ -61,7 +61,7 @@ func (m CreateInstancePoolPlacementConfigurationDetails) ValidateEnumValue() (bo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_request_response.go index 34712b5f3c..cbb6a365fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstancePool.go.html to see an example of how to use CreateInstancePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInstancePool.go.html to see an example of how to use CreateInstancePoolRequest. type CreateInstancePoolRequest struct { // Instance pool creation details @@ -69,7 +69,7 @@ func (request CreateInstancePoolRequest) RetryPolicy() *common.RetryPolicy { func (request CreateInstancePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 730110c73d..e085023588 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,17 +24,17 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -43,11 +43,11 @@ type CreateInternetGatewayDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the Internet Gateway is using. RouteTableId *string `mandatory:"false" json:"routeTableId"` } @@ -62,7 +62,7 @@ func (m CreateInternetGatewayDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_request_response.go index b4e6773e25..7f4fef24ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInternetGateway.go.html to see an example of how to use CreateInternetGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateInternetGateway.go.html to see an example of how to use CreateInternetGatewayRequest. type CreateInternetGatewayRequest struct { // Details for creating a new internet gateway. @@ -69,7 +69,7 @@ func (request CreateInternetGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request CreateInternetGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ef1de0dd66..1b2f3b6b0c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,30 +24,17 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -56,7 +43,7 @@ type CreateIpSecConnectionDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -66,7 +53,7 @@ type CreateIpSecConnectionDetails struct { // 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). + // If Your CPE Is Behind a NAT Device (https://docs.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"` @@ -75,6 +62,19 @@ type CreateIpSecConnectionDetails struct { // for `cpeLocalIdentifier`. CpeLocalIdentifierType CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"` + // 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.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `10.0.1.0/24` + // Example: `2001:db8::/32` + StaticRoutes []string `mandatory:"false" json:"staticRoutes"` + // 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). @@ -95,7 +95,7 @@ func (m CreateIpSecConnectionDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e46d25ab33..f6b6d5be19 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -62,10 +62,10 @@ type CreateIpSecConnectionTunnelDetails struct { // The headend IP that you can choose on the Oracle side to terminate your private IPSec tunnel. OracleTunnelIp *string `mandatory:"false" json:"oracleTunnelIp"` - // The list of virtual circuit OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s over which your network can reach this tunnel. + // The list of virtual circuit OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s over which your network can reach this tunnel. AssociatedVirtualCircuits []string `mandatory:"false" json:"associatedVirtualCircuits"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table assigned to this attachment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table assigned to this attachment. // The DRG route table manages traffic inside the DRG. DrgRouteTableId *string `mandatory:"false" json:"drgRouteTableId"` @@ -95,7 +95,7 @@ func (m CreateIpSecConnectionTunnelDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 0f2f2c3ea2..49290fb6ee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -84,7 +84,7 @@ func (m CreateIpSecTunnelBgpSessionDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index c30a9c96c9..79bd83e342 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( // 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. +// tunnels (https://docs.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. @@ -44,7 +44,7 @@ func (m CreateIpSecTunnelEncryptionDomainDetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 0317026cb2..75677e30e5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,12 +24,8 @@ import ( // 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -38,7 +34,7 @@ type CreateIpv6Details struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -49,6 +45,27 @@ type CreateIpv6Details struct { // Example: `2001:DB8::` IpAddress *string `mandatory:"false" json:"ipAddress"` + // Length of cidr range. Optional field to specify flexible cidr. + CidrPrefixLength *int `mandatory:"false" json:"cidrPrefixLength"` + + // The OCID (https://docs.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:"false" json:"vnicId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet from which the IPv6 is to be drawn. The IP address, + // *if supplied*, must be valid for the given subnet, only valid for reserved IPs currently. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // Lifetime of the IP address. + // There are two types of IPs: + // - Ephemeral + // - Reserved + Lifetime CreateIpv6DetailsLifetimeEnum `mandatory:"false" json:"lifetime,omitempty"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see + // Per-resource Routing (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). + RouteTableId *string `mandatory:"false" json:"routeTableId"` + // The IPv6 prefix allocated to the subnet. This is required if more than one IPv6 prefix exists on the subnet. Ipv6SubnetCidr *string `mandatory:"false" json:"ipv6SubnetCidr"` } @@ -63,8 +80,53 @@ func (m CreateIpv6Details) String() string { func (m CreateIpv6Details) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingCreateIpv6DetailsLifetimeEnum(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(GetCreateIpv6DetailsLifetimeEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } + +// CreateIpv6DetailsLifetimeEnum Enum with underlying type: string +type CreateIpv6DetailsLifetimeEnum string + +// Set of constants representing the allowable values for CreateIpv6DetailsLifetimeEnum +const ( + CreateIpv6DetailsLifetimeEphemeral CreateIpv6DetailsLifetimeEnum = "EPHEMERAL" + CreateIpv6DetailsLifetimeReserved CreateIpv6DetailsLifetimeEnum = "RESERVED" +) + +var mappingCreateIpv6DetailsLifetimeEnum = map[string]CreateIpv6DetailsLifetimeEnum{ + "EPHEMERAL": CreateIpv6DetailsLifetimeEphemeral, + "RESERVED": CreateIpv6DetailsLifetimeReserved, +} + +var mappingCreateIpv6DetailsLifetimeEnumLowerCase = map[string]CreateIpv6DetailsLifetimeEnum{ + "ephemeral": CreateIpv6DetailsLifetimeEphemeral, + "reserved": CreateIpv6DetailsLifetimeReserved, +} + +// GetCreateIpv6DetailsLifetimeEnumValues Enumerates the set of values for CreateIpv6DetailsLifetimeEnum +func GetCreateIpv6DetailsLifetimeEnumValues() []CreateIpv6DetailsLifetimeEnum { + values := make([]CreateIpv6DetailsLifetimeEnum, 0) + for _, v := range mappingCreateIpv6DetailsLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetCreateIpv6DetailsLifetimeEnumStringValues Enumerates the set of values in String for CreateIpv6DetailsLifetimeEnum +func GetCreateIpv6DetailsLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingCreateIpv6DetailsLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateIpv6DetailsLifetimeEnum(val string) (CreateIpv6DetailsLifetimeEnum, bool) { + enum, ok := mappingCreateIpv6DetailsLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_request_response.go index 38391ac82b..342d5e65a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateIpv6.go.html to see an example of how to use CreateIpv6Request. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateIpv6.go.html to see an example of how to use CreateIpv6Request. type CreateIpv6Request struct { // Create IPv6 details. @@ -69,7 +69,7 @@ func (request CreateIpv6Request) RetryPolicy() *common.RetryPolicy { func (request CreateIpv6Request) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_gateway_details.go index 5f98f4c0f1..bfe87e7af3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_gateway_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,14 +24,14 @@ import ( // CreateLocalPeeringGatewayDetails The representation of CreateLocalPeeringGatewayDetails type CreateLocalPeeringGatewayDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the local peering gateway (LPG). + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the local peering gateway (LPG). CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the LPG belongs to. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the LPG 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -40,16 +40,22 @@ type CreateLocalPeeringGatewayDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. + // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` + SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the LPG will use. // If you don't specify a route table here, the LPG is created without an associated route // table. The Networking service does NOT automatically associate the attached VCN's default route table // with the LPG. // 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). + // Transit Routing: Access to Multiple VCNs in Same Region (https://docs.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm). RouteTableId *string `mandatory:"false" json:"routeTableId"` } @@ -64,7 +70,7 @@ func (m CreateLocalPeeringGatewayDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 9e7684338a..a8ce935c42 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateLocalPeeringGateway.go.html to see an example of how to use CreateLocalPeeringGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateLocalPeeringGateway.go.html to see an example of how to use CreateLocalPeeringGatewayRequest. type CreateLocalPeeringGatewayRequest struct { // Details for creating a new local peering gateway. @@ -69,7 +69,7 @@ func (request CreateLocalPeeringGatewayRequest) RetryPolicy() *common.RetryPolic func (request CreateLocalPeeringGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ffa18580f2..284b5389b6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,14 +21,14 @@ import ( "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. +// CreateMacsecKey Defines the secret OCID (https://docs.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. + // Secret OCID (https://docs.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. + // Secret OCID (https://docs.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"` } @@ -44,7 +44,7 @@ func (m CreateMacsecKey) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 7d06140a71..57a9825c88 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -53,7 +53,7 @@ func (m CreateMacsecProperties) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index b5afe4e0e8..7d808c7d51 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,15 +24,15 @@ import ( // 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 + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -41,7 +41,7 @@ type CreateNatGatewayDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -49,10 +49,10 @@ type CreateNatGatewayDetails struct { // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (m CreateNatGatewayDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_request_response.go index e02450b6dc..0f2bf6e71c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateNatGateway.go.html to see an example of how to use CreateNatGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateNatGateway.go.html to see an example of how to use CreateNatGatewayRequest. type CreateNatGatewayRequest struct { // Details for creating a NAT gateway. @@ -69,7 +69,7 @@ func (request CreateNatGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request CreateNatGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ca83d37d0c..27fe9befbc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,16 +24,16 @@ import ( // 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 + // The OCID (https://docs.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 + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -42,7 +42,7 @@ type CreateNetworkSecurityGroupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -58,7 +58,7 @@ func (m CreateNetworkSecurityGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 9da4bcf890..32c4647ddc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateNetworkSecurityGroup.go.html to see an example of how to use CreateNetworkSecurityGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateNetworkSecurityGroup.go.html to see an example of how to use CreateNetworkSecurityGroupRequest. type CreateNetworkSecurityGroupRequest struct { // Details for creating a network security group. @@ -69,7 +69,7 @@ func (request CreateNetworkSecurityGroupRequest) RetryPolicy() *common.RetryPoli func (request CreateNetworkSecurityGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_details.go index 554cbf3da9..e594364253 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( type CreatePrivateIpDetails 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type CreatePrivateIpDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -45,7 +45,7 @@ type CreatePrivateIpDetails struct { // 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). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // Example: `bminstance1` HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` @@ -55,14 +55,39 @@ type CreatePrivateIpDetails struct { // Example: `10.0.3.3` IpAddress *string `mandatory:"false" json:"ipAddress"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to assign the private IP to. The VNIC and private IP + // An optional field that when combined with the ipAddress field, will be used to allocate secondary IPv4 CIDRs. + // The CIDR range created by this combination must be within the subnet's CIDR + // and the CIDR range should not collide with any existing IPv4 address allocation. + // The VNIC ID specified in the request object should not already been assigned more than the max IPv4 addresses. + // If you don't specify a value, this option will be ignored. + // Example: 18 + CidrPrefixLength *int `mandatory:"false" json:"cidrPrefixLength"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to assign the private IP to. The VNIC and private IP // must be in the same subnet. VnicId *string `mandatory:"false" json:"vnicId"` // Use this attribute only with the Oracle Cloud VMware Solution. - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN from which the private IP is to be drawn. The IP address, + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN from which the private IP is to be drawn. The IP address, // *if supplied*, must be valid for the given VLAN. See Vlan. VlanId *string `mandatory:"false" json:"vlanId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet from which the private IP is to be drawn. The IP address, + // *if supplied*, must be valid for the given subnet. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // Any one of the IPv4 CIDRs allocated to the subnet. + Ipv4SubnetCidrAtCreation *string `mandatory:"false" json:"ipv4SubnetCidrAtCreation"` + + // Lifetime of the IP address. + // There are two types of IPs: + // - Ephemeral + // - Reserved + Lifetime CreatePrivateIpDetailsLifetimeEnum `mandatory:"false" json:"lifetime,omitempty"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see + // Per-resource Routing (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). + RouteTableId *string `mandatory:"false" json:"routeTableId"` } func (m CreatePrivateIpDetails) String() string { @@ -75,8 +100,53 @@ func (m CreatePrivateIpDetails) String() string { func (m CreatePrivateIpDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingCreatePrivateIpDetailsLifetimeEnum(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(GetCreatePrivateIpDetailsLifetimeEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } + +// CreatePrivateIpDetailsLifetimeEnum Enum with underlying type: string +type CreatePrivateIpDetailsLifetimeEnum string + +// Set of constants representing the allowable values for CreatePrivateIpDetailsLifetimeEnum +const ( + CreatePrivateIpDetailsLifetimeEphemeral CreatePrivateIpDetailsLifetimeEnum = "EPHEMERAL" + CreatePrivateIpDetailsLifetimeReserved CreatePrivateIpDetailsLifetimeEnum = "RESERVED" +) + +var mappingCreatePrivateIpDetailsLifetimeEnum = map[string]CreatePrivateIpDetailsLifetimeEnum{ + "EPHEMERAL": CreatePrivateIpDetailsLifetimeEphemeral, + "RESERVED": CreatePrivateIpDetailsLifetimeReserved, +} + +var mappingCreatePrivateIpDetailsLifetimeEnumLowerCase = map[string]CreatePrivateIpDetailsLifetimeEnum{ + "ephemeral": CreatePrivateIpDetailsLifetimeEphemeral, + "reserved": CreatePrivateIpDetailsLifetimeReserved, +} + +// GetCreatePrivateIpDetailsLifetimeEnumValues Enumerates the set of values for CreatePrivateIpDetailsLifetimeEnum +func GetCreatePrivateIpDetailsLifetimeEnumValues() []CreatePrivateIpDetailsLifetimeEnum { + values := make([]CreatePrivateIpDetailsLifetimeEnum, 0) + for _, v := range mappingCreatePrivateIpDetailsLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetCreatePrivateIpDetailsLifetimeEnumStringValues Enumerates the set of values in String for CreatePrivateIpDetailsLifetimeEnum +func GetCreatePrivateIpDetailsLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingCreatePrivateIpDetailsLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreatePrivateIpDetailsLifetimeEnum(val string) (CreatePrivateIpDetailsLifetimeEnum, bool) { + enum, ok := mappingCreatePrivateIpDetailsLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_request_response.go index 31afa988d0..26ca3cf726 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePrivateIp.go.html to see an example of how to use CreatePrivateIpRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePrivateIp.go.html to see an example of how to use CreatePrivateIpRequest. type CreatePrivateIpRequest struct { // Create private IP details. @@ -69,7 +69,7 @@ func (request CreatePrivateIpRequest) RetryPolicy() *common.RetryPolicy { func (request CreatePrivateIpRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8c3fbdee31..d9099ab8bb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,17 +24,17 @@ import ( // 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). + // The OCID (https://docs.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.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). + // Public IP Addresses (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -43,11 +43,11 @@ type CreatePublicIpDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.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 @@ -55,7 +55,7 @@ type CreatePublicIpDetails struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` } @@ -73,7 +73,7 @@ func (m CreatePublicIpDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2941979bfd..75739f37c3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,11 +24,11 @@ import ( // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -37,7 +37,7 @@ type CreatePublicIpPoolDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -53,7 +53,7 @@ func (m CreatePublicIpPoolDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 7da7811825..1ca0fd3ca3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePublicIpPool.go.html to see an example of how to use CreatePublicIpPoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePublicIpPool.go.html to see an example of how to use CreatePublicIpPoolRequest. type CreatePublicIpPoolRequest struct { // Create Public Ip Pool details @@ -69,7 +69,7 @@ func (request CreatePublicIpPoolRequest) RetryPolicy() *common.RetryPolicy { func (request CreatePublicIpPoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_request_response.go index fd78610375..e5bb43eb43 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePublicIp.go.html to see an example of how to use CreatePublicIpRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreatePublicIp.go.html to see an example of how to use CreatePublicIpRequest. type CreatePublicIpRequest struct { // Create public IP details. @@ -69,7 +69,7 @@ func (request CreatePublicIpRequest) RetryPolicy() *common.RetryPolicy { func (request CreatePublicIpRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8eea48dca7..0404c7c274 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,14 +24,14 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -40,7 +40,7 @@ type CreateRemotePeeringConnectionDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -56,7 +56,7 @@ func (m CreateRemotePeeringConnectionDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 4662ff30b3..bc793e7220 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateRemotePeeringConnection.go.html to see an example of how to use CreateRemotePeeringConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateRemotePeeringConnection.go.html to see an example of how to use CreateRemotePeeringConnectionRequest. type CreateRemotePeeringConnectionRequest struct { // Request to create peering connection to remote region @@ -69,7 +69,7 @@ func (request CreateRemotePeeringConnectionRequest) RetryPolicy() *common.RetryP func (request CreateRemotePeeringConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8d0ea8e310..11c5ca3e39 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,17 +24,17 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -43,7 +43,7 @@ type CreateRouteTableDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -59,7 +59,7 @@ func (m CreateRouteTableDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_request_response.go index 8eeee45857..cf208187be 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateRouteTable.go.html to see an example of how to use CreateRouteTableRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateRouteTable.go.html to see an example of how to use CreateRouteTableRequest. type CreateRouteTableRequest struct { // Details for creating a new route table. @@ -69,7 +69,7 @@ func (request CreateRouteTableRequest) RetryPolicy() *common.RetryPolicy { func (request CreateRouteTableRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9f18e59135..5418ee77e0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.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. @@ -33,11 +33,11 @@ type CreateSecurityListDetails struct { // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -46,7 +46,7 @@ type CreateSecurityListDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -62,7 +62,7 @@ func (m CreateSecurityListDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_request_response.go index 9b75e63ee7..9aeb81aae6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateSecurityList.go.html to see an example of how to use CreateSecurityListRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateSecurityList.go.html to see an example of how to use CreateSecurityListRequest. type CreateSecurityListRequest struct { // Details regarding the security list to create. @@ -69,7 +69,7 @@ func (request CreateSecurityListRequest) RetryPolicy() *common.RetryPolicy { func (request CreateSecurityListRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_details.go index cf468a88b5..4646bf3d6e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // CreateServiceGatewayDetails The representation of CreateServiceGatewayDetails type CreateServiceGatewayDetails struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to contain the service gateway. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the service gateway. CompartmentId *string `mandatory:"true" json:"compartmentId"` // List of the OCIDs of the Service objects to @@ -37,11 +37,11 @@ type CreateServiceGatewayDetails struct { // RouteTable. Services []ServiceIdRequestDetails `mandatory:"true" json:"services"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -50,16 +50,16 @@ type CreateServiceGatewayDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 will use. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the service gateway will use. // If you don't specify a route table here, the service gateway is created without an associated route // table. The Networking service does NOT automatically associate the attached VCN's default route table // with the service gateway. // 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). + // Transit Routing: Private Access to Oracle Services (https://docs.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm). RouteTableId *string `mandatory:"false" json:"routeTableId"` } @@ -74,7 +74,7 @@ func (m CreateServiceGatewayDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_request_response.go index 7dfcf01e65..dcf776d0fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateServiceGateway.go.html to see an example of how to use CreateServiceGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateServiceGateway.go.html to see an example of how to use CreateServiceGatewayRequest. type CreateServiceGatewayRequest struct { // Details for creating a service gateway. @@ -69,7 +69,7 @@ func (request CreateServiceGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request CreateServiceGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_details.go index adad12c024..4afa84e29c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,16 +24,10 @@ import ( // CreateSubnetDetails The representation of CreateSubnetDetails type CreateSubnetDetails struct { - // The CIDR IP address range of the subnet. The CIDR must maintain the following rules - - // a. The CIDR block is valid and correctly formatted. - // b. The new range is within one of the parent VCN ranges. - // 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 to contain the subnet. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the subnet. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN to contain the subnet. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN to contain the subnet. VcnId *string `mandatory:"true" json:"vcnId"` // Controls whether the subnet is regional or specific to an availability domain. Oracle @@ -48,12 +42,24 @@ type CreateSubnetDetails struct { // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + // The CIDR IP address range of the subnet. The CIDR must maintain the following rules - + // a. The CIDR block is valid and correctly formatted. + // b. The new range is within one of the parent VCN ranges. + // Example: `10.0.1.0/24` + CidrBlock *string `mandatory:"false" json:"cidrBlock"` + + // The list of all IPv4 CIDR blocks for the subnet that meets the following criteria: + // - Ipv4 CIDR blocks must be valid. + // - Multiple Ipv4 CIDR blocks must not overlap each other or the on-premises network CIDR block. + // - The number of prefixes must not exceed the limit of IPv4 prefixes allowed to a subnet. + Ipv4CidrBlocks []string `mandatory:"false" json:"ipv4CidrBlocks"` + // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/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/iaas/Content/General/Concepts/identifiers.htm) of the set of DHCP options the subnet will use. If you don't + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the set of DHCP options the subnet will use. If you don't // provide a value, the subnet uses the VCN's default set of DHCP options. DhcpOptionsId *string `mandatory:"false" json:"dhcpOptionsId"` @@ -70,19 +76,19 @@ type CreateSubnetDetails struct { // hostnames of instances in the subnet. It can only be set if the VCN itself // was created with a DNS label. // For more information, see - // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // Example: `subnet123` 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Use this to enable IPv6 addressing for this subnet. The VCN must be enabled for IPv6. // You can't change this subnet characteristic later. All subnets are /64 in size. The subnet // portion of the IPv6 address is the fourth hextet from the left (1111 in the following example). - // For important details about IPv6 addressing in a VCN, see IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // For important details about IPv6 addressing in a VCN, see IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). // Example: `2001:0db8:0123:1111::/64` Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` @@ -113,7 +119,7 @@ type CreateSubnetDetails struct { // Example: `true` ProhibitPublicIpOnVnic *bool `mandatory:"false" json:"prohibitPublicIpOnVnic"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the subnet will use. If you don't provide a value, + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the subnet will use. If you don't provide a value, // the subnet uses the VCN's default route table. RouteTableId *string `mandatory:"false" json:"routeTableId"` @@ -135,7 +141,7 @@ func (m CreateSubnetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_request_response.go index 8333b1d019..f873098147 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateSubnet.go.html to see an example of how to use CreateSubnetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateSubnet.go.html to see an example of how to use CreateSubnetRequest. type CreateSubnetRequest struct { // Details for creating a subnet. @@ -69,7 +69,7 @@ func (request CreateSubnetRequest) RetryPolicy() *common.RetryPolicy { func (request CreateSubnetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ca592b1b42..1e6ba205e2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.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. @@ -53,7 +53,7 @@ type CreateVcnDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -71,25 +71,30 @@ type CreateVcnDetails struct { // 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). + // DNS in Your Virtual Cloud Network (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` // 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). + // For important details about IPv6 addressing in a VCN, see IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). // Example: `true` IsIpv6Enabled *bool `mandatory:"false" json:"isIpv6Enabled"` + + // Indicates whether ZPR Only mode is enforced. + IsZprOnly *bool `mandatory:"false" json:"isZprOnly"` } func (m CreateVcnDetails) String() string { @@ -103,7 +108,7 @@ func (m CreateVcnDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_request_response.go index 729c90b7fd..050a090ce2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVcn.go.html to see an example of how to use CreateVcnRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVcn.go.html to see an example of how to use CreateVcnRequest. type CreateVcnRequest struct { // Details for creating a new VCN. @@ -69,7 +69,7 @@ func (request CreateVcnRequest) RetryPolicy() *common.RetryPolicy { func (request CreateVcnRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0a483df6ed..23d50950d4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.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 @@ -44,7 +44,7 @@ type CreateVirtualCircuitDetails struct { // 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. + // See Route Filtering (https://docs.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"` @@ -69,7 +69,7 @@ type CreateVirtualCircuitDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -78,11 +78,11 @@ type CreateVirtualCircuitDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 + // For private virtual circuits only. The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Drg // that this virtual circuit uses. GatewayId *string `mandatory:"false" json:"gatewayId"` @@ -91,7 +91,7 @@ type CreateVirtualCircuitDetails struct { // 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 + // The OCID (https://docs.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"` @@ -143,7 +143,7 @@ func (m CreateVirtualCircuitDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f03e7500b5..7d4b92e733 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m CreateVirtualCircuitPublicPrefixDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_request_response.go index 5cd54e332f..301435f287 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVirtualCircuit.go.html to see an example of how to use CreateVirtualCircuitRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVirtualCircuit.go.html to see an example of how to use CreateVirtualCircuitRequest. type CreateVirtualCircuitRequest struct { // Details to create a VirtualCircuit. @@ -69,7 +69,7 @@ func (request CreateVirtualCircuitRequest) RetryPolicy() *common.RetryPolicy { func (request CreateVirtualCircuitRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_details.go index 4284c05023..251a328c8c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -31,10 +31,10 @@ type CreateVlanDetails struct { // Example: `192.0.2.0/24` CidrBlock *string `mandatory:"true" json:"cidrBlock"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the VLAN. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the VLAN. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN to contain the VLAN. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN to contain the VLAN. VcnId *string `mandatory:"true" json:"vcnId"` // Controls whether the VLAN is regional or specific to an availability domain. @@ -48,7 +48,7 @@ type CreateVlanDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -57,7 +57,7 @@ type CreateVlanDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -66,7 +66,7 @@ type CreateVlanDetails struct { // NetworkSecurityGroup. NsgIds []string `mandatory:"false" json:"nsgIds"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the VLAN will use. If you don't provide a value, + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the VLAN will use. If you don't provide a value, // the VLAN uses the VCN's default route table. RouteTableId *string `mandatory:"false" json:"routeTableId"` @@ -87,7 +87,7 @@ func (m CreateVlanDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_request_response.go index b4ecf6341e..e24ffcc824 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVlan.go.html to see an example of how to use CreateVlanRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVlan.go.html to see an example of how to use CreateVlanRequest. type CreateVlanRequest struct { // Details for creating a VLAN @@ -69,7 +69,7 @@ func (request CreateVlanRequest) RetryPolicy() *common.RetryPolicy { func (request CreateVlanRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_details.go index b74834cb79..a166fcb53b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // CreateVnicDetails Contains properties for a VNIC. You use this object when creating the // primary VNIC during instance launch or when creating a secondary VNIC. // For more information about VNICs, see -// Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). +// Virtual Network Interface Cards (VNICs) (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). type CreateVnicDetails struct { // Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled @@ -43,13 +43,13 @@ type CreateVnicDetails struct { // `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). + // IP Addresses (https://docs.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). + // Public IP Addresses (https://docs.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). // Example: `false` // If you specify a `vlanId`, then `assignPublicIp` must be set to false. See // Vlan. @@ -62,7 +62,7 @@ type CreateVnicDetails struct { AssignPrivateDnsRecord *bool `mandatory:"false" json:"assignPrivateDnsRecord"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -71,11 +71,13 @@ type CreateVnicDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` @@ -85,15 +87,15 @@ type CreateVnicDetails struct { // 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`. + // 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). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // When launching an instance, use this `hostnameLabel` instead // of the deprecated `hostnameLabel` in - // `LaunchInstanceDetails`. + // LaunchInstanceDetails. // If you provide both, the values must match. // Example: `bminstance1` // If you specify a `vlanId`, the `hostnameLabel` cannot be specified. VNICs on a VLAN @@ -106,6 +108,14 @@ type CreateVnicDetails struct { // and instead provide the specific IPv6 address within that range to use. Ipv6AddressIpv6SubnetCidrPairDetails []Ipv6AddressIpv6SubnetCidrPairDetails `mandatory:"false" json:"ipv6AddressIpv6SubnetCidrPairDetails"` + // One of the IPv4 CIDR blocks allocated to the subnet. Represents the IP range + // from which the VNIC's private IP address will be assigned if `privateIp` or + // `privateIpId` is not specified. + // Either this field or the `privateIp` (or `privateIpId`, if applicable) field + // must be provided, but not both simultaneously. + // Example: `192.168.1.0/28` + SubnetCidr *string `mandatory:"false" json:"subnetCidr"` + // A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more // information about NSGs, see // NetworkSecurityGroup. @@ -119,10 +129,10 @@ type CreateVnicDetails struct { // 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`. + // the Vnic object and also the + // PrivateIp object returned by + // ListPrivateIps and + // GetPrivateIp. // // If you specify a `vlanId`, the `privateIp` cannot be specified. // See Vlan. @@ -132,7 +142,7 @@ type CreateVnicDetails struct { // 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). + // Using a Private IP as a Route Target (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip). // // If you specify a `vlanId`, the `skipSourceDestCheck` cannot be specified because the // source/destination check is always disabled for VNICs in a VLAN. See @@ -140,7 +150,7 @@ type CreateVnicDetails struct { // 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, + // The OCID (https://docs.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. @@ -150,7 +160,7 @@ type CreateVnicDetails struct { SubnetId *string `mandatory:"false" json:"subnetId"` // Provide this attribute only if you are an Oracle Cloud VMware Solution - // customer and creating a secondary VNIC in a VLAN. The value is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. + // customer and creating a secondary VNIC in a VLAN. The value is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. // See Vlan. // Provide a `vlanId` instead of a `subnetId`. If you provide both a // `vlanId` and `subnetId`, the request fails. @@ -168,7 +178,7 @@ func (m CreateVnicDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7e04e33836..317a842d3d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -29,12 +29,12 @@ type CreateVolumeBackupDetails struct { // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -43,7 +43,7 @@ type CreateVolumeBackupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -65,7 +65,7 @@ func (m CreateVolumeBackupDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c3fc3f6950..a52eb9f4e6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -32,8 +32,8 @@ type CreateVolumeBackupPolicyAssignmentDetails struct { // The OCID of the Vault service key which is the master encryption key for the block / boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). XrcKmsKeyId *string `mandatory:"false" json:"xrcKmsKeyId"` } @@ -48,7 +48,7 @@ func (m CreateVolumeBackupPolicyAssignmentDetails) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 2344b7bf98..f35c860055 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackupPolicyAssignment.go.html to see an example of how to use CreateVolumeBackupPolicyAssignmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackupPolicyAssignment.go.html to see an example of how to use CreateVolumeBackupPolicyAssignmentRequest. type CreateVolumeBackupPolicyAssignmentRequest struct { // Request to assign a specified policy to a particular volume. @@ -62,7 +62,7 @@ func (request CreateVolumeBackupPolicyAssignmentRequest) RetryPolicy() *common.R func (request CreateVolumeBackupPolicyAssignmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_details.go index 62d16f94a1..d2c902f132 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,8 +23,8 @@ import ( // CreateVolumeBackupPolicyDetails Specifies the properties for creating user defined backup policy. // For more information about user defined backup policies, -// see User Defined Policies (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#UserDefinedBackupPolicies) in -// Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). +// see User Defined Policies (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#UserDefinedBackupPolicies) in +// Policy-Based Backups (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). type CreateVolumeBackupPolicyDetails struct { // The OCID of the compartment. @@ -35,21 +35,21 @@ type CreateVolumeBackupPolicyDetails struct { DisplayName *string `mandatory:"false" json:"displayName"` // 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. + // See Region Pairs (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#RegionPairs) for details about paired regions. DestinationRegion *string `mandatory:"false" json:"destinationRegion"` // The collection of schedules for the volume backup policy. See - // see Schedules (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#schedules) in - // Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm) for more information. + // see Schedules (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#schedules) in + // Policy-Based Backups (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm) for more information. Schedules []VolumeBackupSchedule `mandatory:"false" json:"schedules"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -65,7 +65,7 @@ func (m CreateVolumeBackupPolicyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index d274fa1832..d1052ecf1f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackupPolicy.go.html to see an example of how to use CreateVolumeBackupPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackupPolicy.go.html to see an example of how to use CreateVolumeBackupPolicyRequest. type CreateVolumeBackupPolicyRequest struct { // Request to create a new scheduled backup policy. @@ -69,7 +69,7 @@ func (request CreateVolumeBackupPolicyRequest) RetryPolicy() *common.RetryPolicy func (request CreateVolumeBackupPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_request_response.go index 8597d681a1..c71ef214d5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackup.go.html to see an example of how to use CreateVolumeBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeBackup.go.html to see an example of how to use CreateVolumeBackupRequest. type CreateVolumeBackupRequest struct { // Request to create a new backup of given volume. @@ -69,7 +69,7 @@ func (request CreateVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { func (request CreateVolumeBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 977ac058d2..d15524f03a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -38,7 +38,7 @@ type CreateVolumeDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -47,7 +47,7 @@ type CreateVolumeDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -57,7 +57,7 @@ type CreateVolumeDetails struct { // 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. + // See Block Volume Performance Levels (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. // Allowed values: // * `0`: Represents Lower Cost option. // * `10`: Represents Balanced option. @@ -96,9 +96,13 @@ type CreateVolumeDetails struct { // The OCID of the Vault service key which is the master encryption key for the block volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). XrcKmsKeyId *string `mandatory:"false" json:"xrcKmsKeyId"` + + // When set to true, enables SCSI Persistent Reservation (SCSI PR) for the volume. For more information, see + // Persistent Reservations (https://docs.oracle.com/iaas/Content/Block/Concepts/persistent-reservations.htm). + IsReservationsEnabled *bool `mandatory:"false" json:"isReservationsEnabled"` } func (m CreateVolumeDetails) String() string { @@ -112,7 +116,7 @@ func (m CreateVolumeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -136,6 +140,7 @@ func (m *CreateVolumeDetails) UnmarshalJSON(data []byte) (e error) { BlockVolumeReplicas []BlockVolumeReplicaDetails `json:"blockVolumeReplicas"` AutotunePolicies []autotunepolicy `json:"autotunePolicies"` XrcKmsKeyId *string `json:"xrcKmsKeyId"` + IsReservationsEnabled *bool `json:"isReservationsEnabled"` CompartmentId *string `json:"compartmentId"` }{} @@ -194,6 +199,8 @@ func (m *CreateVolumeDetails) UnmarshalJSON(data []byte) (e error) { } m.XrcKmsKeyId = model.XrcKmsKeyId + m.IsReservationsEnabled = model.IsReservationsEnabled + 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 index 15618c3307..6b58097dd8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -33,7 +33,7 @@ type CreateVolumeGroupBackupDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -42,7 +42,7 @@ type CreateVolumeGroupBackupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -64,7 +64,7 @@ func (m CreateVolumeGroupBackupDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 78cf3d5e7d..603fbab6a1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeGroupBackup.go.html to see an example of how to use CreateVolumeGroupBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeGroupBackup.go.html to see an example of how to use CreateVolumeGroupBackupRequest. type CreateVolumeGroupBackupRequest struct { // Request to create a new backup group of given volume group. @@ -69,7 +69,7 @@ func (request CreateVolumeGroupBackupRequest) RetryPolicy() *common.RetryPolicy func (request CreateVolumeGroupBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_details.go index 9f2af6b3ce..d24aa85ac0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -38,7 +38,7 @@ type CreateVolumeGroupDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -47,7 +47,7 @@ type CreateVolumeGroupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -60,8 +60,8 @@ type CreateVolumeGroupDetails struct { // The OCID of the Vault service key which is the master encryption key for the volume's cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). XrcKmsKeyId *string `mandatory:"false" json:"xrcKmsKeyId"` } @@ -76,7 +76,7 @@ func (m CreateVolumeGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_request_response.go index 3de88a3001..b5766afc67 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeGroup.go.html to see an example of how to use CreateVolumeGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolumeGroup.go.html to see an example of how to use CreateVolumeGroupRequest. type CreateVolumeGroupRequest struct { // Request to create a new volume group. @@ -69,7 +69,7 @@ func (request CreateVolumeGroupRequest) RetryPolicy() *common.RetryPolicy { func (request CreateVolumeGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_request_response.go index 9f3cbcd2eb..f75509c068 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolume.go.html to see an example of how to use CreateVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVolume.go.html to see an example of how to use CreateVolumeRequest. type CreateVolumeRequest struct { // Request to create a new volume. @@ -69,7 +69,7 @@ func (request CreateVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request CreateVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0be4a28216..83bf25f658 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,20 +24,20 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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)). + // The capture filter's Oracle ID (OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -46,11 +46,11 @@ type CreateVtapDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.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. @@ -82,7 +82,7 @@ type CreateVtapDetails struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet that source private endpoint belongs to. SourcePrivateEndpointSubnetId *string `mandatory:"false" json:"sourcePrivateEndpointSubnetId"` } @@ -109,7 +109,7 @@ func (m CreateVtapDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_request_response.go index e6705c8f1f..5642fba078 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVtap.go.html to see an example of how to use CreateVtapRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/CreateVtap.go.html to see an example of how to use CreateVtapRequest. type CreateVtapRequest struct { // Details used to create a VTAP. @@ -69,7 +69,7 @@ func (request CreateVtapRequest) RetryPolicy() *common.RetryPolicy { func (request CreateVtapRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ec5d89535b..bffb8f7fe3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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). +// information, see FastConnect Overview (https://docs.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. @@ -33,17 +33,17 @@ import ( // 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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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). + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -52,7 +52,7 @@ type CrossConnect struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -104,7 +104,7 @@ func (m CrossConnect) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 90841a5691..c3bd30243d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,20 +25,20 @@ import ( // 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). +// information, see FastConnect Overview (https://docs.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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -47,13 +47,17 @@ type CrossConnectGroup struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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"` + // 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 cross-connect group's current state. LifecycleState CrossConnectGroupLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` @@ -89,7 +93,7 @@ func (m CrossConnectGroup) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 592246c6bc..ebf043a01a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -43,7 +43,7 @@ func (m CrossConnectLocation) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping.go index c675864c12..1d59111b4d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -52,7 +52,7 @@ type CrossConnectMapping struct { // 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. + // The OCID (https://docs.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). @@ -82,7 +82,7 @@ type CrossConnectMapping struct { // 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. // IPv6 addressing is supported for all commercial and government regions. See - // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). // Example: `2001:db8::1/64` CustomerBgpPeeringIpv6 *string `mandatory:"false" json:"customerBgpPeeringIpv6"` @@ -92,7 +92,7 @@ type CrossConnectMapping struct { // a provider's edge router, the provider specifies this. // There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses. // 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). + // IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). // Example: `2001:db8::2/64` OracleBgpPeeringIpv6 *string `mandatory:"false" json:"oracleBgpPeeringIpv6"` @@ -115,7 +115,7 @@ func (m CrossConnectMapping) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 543b33492c..77cc71423a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -35,7 +35,7 @@ type CrossConnectMappingDetails struct { // 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. + // The OCID (https://docs.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). @@ -109,7 +109,7 @@ func (m CrossConnectMappingDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4f05145133..0226e7911b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m CrossConnectMappingDetailsCollection) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 3618bfdf78..a64a415b5b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -44,7 +44,7 @@ func (m CrossConnectPortSpeedShape) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 24a4c15a38..e969f6f701 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.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. @@ -76,7 +76,7 @@ func (m CrossConnectStatus) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_capacity_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_capacity_source.go index ba3e25850e..03b4b8c6bd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_capacity_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_capacity_source.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( // DedicatedCapacitySource A capacity source of bare metal hosts that is dedicated to a user. type DedicatedCapacitySource struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment of this capacity source. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment of this capacity source. CompartmentId *string `mandatory:"false" json:"compartmentId"` } @@ -40,7 +40,7 @@ func (m DedicatedCapacitySource) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 02e85afb87..adf9b333cc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,16 +6,17 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core import ( + "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -40,7 +41,7 @@ type DedicatedVmHost struct { // 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. + // The OCID (https://docs.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. @@ -57,28 +58,43 @@ type DedicatedVmHost struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // For more information, see Fault Domains (https://docs.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/). + // To get a list of fault domains, use the `ListFaultDomains` operation in the Identity and Access Management Service API (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + PlacementConstraintDetails PlacementConstraintDetails `mandatory:"false" json:"placementConstraintDetails"` + + // The capacity configuration selected to be configured for the Dedicated Virtual Machine host. + // Run ListDedicatedVmHostShapes API to see details of this capacity configuration. + CapacityConfig *string `mandatory:"false" json:"capacityConfig"` + + // Specifies if the Dedicated Virtual Machine Host (DVMH) is restricted to running only Confidential VMs. If `true`, only Confidential VMs can be launched. If `false`, Confidential VMs cannot be launched. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + // 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"` + + // A list of total and remaining CPU and memory per capacity bucket. + CapacityBins []CapacityBin `mandatory:"false" json:"capacityBins"` + + // The compute bare metal host OCID of the dedicated virtual machine host. + ComputeBareMetalHostId *string `mandatory:"false" json:"computeBareMetalHostId"` } func (m DedicatedVmHost) String() string { @@ -95,11 +111,89 @@ func (m DedicatedVmHost) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } +// UnmarshalJSON unmarshals from json +func (m *DedicatedVmHost) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + FaultDomain *string `json:"faultDomain"` + FreeformTags map[string]string `json:"freeformTags"` + PlacementConstraintDetails placementconstraintdetails `json:"placementConstraintDetails"` + CapacityConfig *string `json:"capacityConfig"` + IsMemoryEncryptionEnabled *bool `json:"isMemoryEncryptionEnabled"` + TotalMemoryInGBs *float32 `json:"totalMemoryInGBs"` + RemainingMemoryInGBs *float32 `json:"remainingMemoryInGBs"` + CapacityBins []CapacityBin `json:"capacityBins"` + ComputeBareMetalHostId *string `json:"computeBareMetalHostId"` + AvailabilityDomain *string `json:"availabilityDomain"` + CompartmentId *string `json:"compartmentId"` + DedicatedVmHostShape *string `json:"dedicatedVmHostShape"` + DisplayName *string `json:"displayName"` + Id *string `json:"id"` + LifecycleState DedicatedVmHostLifecycleStateEnum `json:"lifecycleState"` + TimeCreated *common.SDKTime `json:"timeCreated"` + TotalOcpus *float32 `json:"totalOcpus"` + RemainingOcpus *float32 `json:"remainingOcpus"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.FaultDomain = model.FaultDomain + + m.FreeformTags = model.FreeformTags + + nn, e = model.PlacementConstraintDetails.UnmarshalPolymorphicJSON(model.PlacementConstraintDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.PlacementConstraintDetails = nn.(PlacementConstraintDetails) + } else { + m.PlacementConstraintDetails = nil + } + + m.CapacityConfig = model.CapacityConfig + + m.IsMemoryEncryptionEnabled = model.IsMemoryEncryptionEnabled + + m.TotalMemoryInGBs = model.TotalMemoryInGBs + + m.RemainingMemoryInGBs = model.RemainingMemoryInGBs + + m.CapacityBins = make([]CapacityBin, len(model.CapacityBins)) + copy(m.CapacityBins, model.CapacityBins) + m.ComputeBareMetalHostId = model.ComputeBareMetalHostId + + m.AvailabilityDomain = model.AvailabilityDomain + + m.CompartmentId = model.CompartmentId + + m.DedicatedVmHostShape = model.DedicatedVmHostShape + + m.DisplayName = model.DisplayName + + m.Id = model.Id + + m.LifecycleState = model.LifecycleState + + m.TimeCreated = model.TimeCreated + + m.TotalOcpus = model.TotalOcpus + + m.RemainingOcpus = model.RemainingOcpus + + return +} + // DedicatedVmHostLifecycleStateEnum Enum with underlying type: string type DedicatedVmHostLifecycleStateEnum string 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 index 0496204ccc..9a9fbd37c9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -29,6 +29,8 @@ type DedicatedVmHostInstanceShapeSummary struct { // The shape's availability domain. AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + SupportedCapabilities *SupportedCapabilities `mandatory:"false" json:"supportedCapabilities"` } func (m DedicatedVmHostInstanceShapeSummary) String() string { @@ -42,7 +44,7 @@ func (m DedicatedVmHostInstanceShapeSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 83ab4e2a92..a22cf857ac 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,6 +40,9 @@ type DedicatedVmHostInstanceSummary struct { // 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"` + + // Specifies whether the VM instance is confidential. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` } func (m DedicatedVmHostInstanceSummary) String() string { @@ -53,7 +56,7 @@ func (m DedicatedVmHostInstanceSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 7acddd71ed..3416285db2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,11 +25,14 @@ import ( type DedicatedVmHostShapeSummary struct { // The name of the dedicated VM host shape. You can enumerate all available shapes by calling - // dedicatedVmHostShapes. + // ListDedicatedVmHostShapes. DedicatedVmHostShape *string `mandatory:"true" json:"dedicatedVmHostShape"` // The shape's availability domain. AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // A list of capacity configs that are supported by this dedicated VM host shape. + CapacityConfigs []CapacityConfig `mandatory:"false" json:"capacityConfigs"` } func (m DedicatedVmHostShapeSummary) String() string { @@ -43,7 +46,7 @@ func (m DedicatedVmHostShapeSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 93b2945486..8b7736a165 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ type DedicatedVmHostSummary struct { // 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. + // The OCID (https://docs.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. @@ -62,6 +62,9 @@ type DedicatedVmHostSummary struct { // Example: `FAULT-DOMAIN-1` FaultDomain *string `mandatory:"false" json:"faultDomain"` + // Specifies if the Dedicated Virtual Machine Host is restricted to running only Confidential VMs. If `true`, only Confidential VMs can be launched. If `false`, Confidential VMs cannot be launched. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + // The current total memory of the dedicated VM host, in GBs. TotalMemoryInGBs *float32 `mandatory:"false" json:"totalMemoryInGBs"` @@ -83,7 +86,7 @@ func (m DedicatedVmHostSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6bb7108c0a..6860424db7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,19 +28,19 @@ import ( // 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 + // The OCID (https://docs.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 + // The OCID (https://docs.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 + // The OCID (https://docs.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 + // The OCID (https://docs.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"` } @@ -56,7 +56,7 @@ func (m DefaultDrgRouteTables) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 5fdeaff05c..a80edc0bc7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m DefaultPhaseOneParameters) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index eeac3defbe..f6983491fb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m DefaultPhaseTwoParameters) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 8285c43402..aca3d0144d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteAppCatalogSubscription.go.html to see an example of how to use DeleteAppCatalogSubscriptionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteAppCatalogSubscription.go.html to see an example of how to use DeleteAppCatalogSubscriptionRequest. type DeleteAppCatalogSubscriptionRequest struct { // The OCID of the listing. ListingId *string `mandatory:"true" contributesTo:"query" name:"listingId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Listing Resource Version. @@ -68,7 +68,7 @@ func (request DeleteAppCatalogSubscriptionRequest) RetryPolicy() *common.RetryPo func (request DeleteAppCatalogSubscriptionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index e7ddd2274d..5636d44d68 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolumeBackup.go.html to see an example of how to use DeleteBootVolumeBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolumeBackup.go.html to see an example of how to use DeleteBootVolumeBackupRequest. type DeleteBootVolumeBackupRequest struct { // The OCID of the boot volume backup. @@ -67,7 +67,7 @@ func (request DeleteBootVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteBootVolumeBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index cd10404d99..4be24209a3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolumeKmsKey.go.html to see an example of how to use DeleteBootVolumeKmsKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolumeKmsKey.go.html to see an example of how to use DeleteBootVolumeKmsKeyRequest. type DeleteBootVolumeKmsKeyRequest struct { // The OCID of the boot volume. @@ -67,7 +67,7 @@ func (request DeleteBootVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteBootVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_request_response.go index 1349210126..8eebae4596 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolume.go.html to see an example of how to use DeleteBootVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteBootVolume.go.html to see an example of how to use DeleteBootVolumeRequest. type DeleteBootVolumeRequest struct { // The OCID of the boot volume. @@ -67,7 +67,7 @@ func (request DeleteBootVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteBootVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoasn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoasn_request_response.go new file mode 100644 index 0000000000..357e8d495e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoasn_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// DeleteByoasnRequest wrapper for the DeleteByoasn operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteByoasn.go.html to see an example of how to use DeleteByoasnRequest. +type DeleteByoasnRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Byoasn` resource. + ByoasnId *string `mandatory:"true" contributesTo:"path" name:"byoasnId"` + + // 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 DeleteByoasnRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteByoasnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteByoasnRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteByoasnRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteByoasnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteByoasnResponse wrapper for the DeleteByoasn operation +type DeleteByoasnResponse 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 DeleteByoasnResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteByoasnResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoip_range_request_response.go index 66d4dcfddd..9b92eac89b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoip_range_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteByoipRange.go.html to see an example of how to use DeleteByoipRangeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteByoipRange.go.html to see an example of how to use DeleteByoipRangeRequest. type DeleteByoipRangeRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource containing the BYOIP CIDR block. + // The OCID (https://docs.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. @@ -67,7 +67,7 @@ func (request DeleteByoipRangeRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteByoipRangeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -82,8 +82,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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/delete_capture_filter_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_capture_filter_request_response.go index 8778950375..177a1d5ecd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_capture_filter_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_capture_filter_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCaptureFilter.go.html to see an example of how to use DeleteCaptureFilterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCaptureFilter.go.html to see an example of how to use DeleteCaptureFilterRequest. type DeleteCaptureFilterRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capture filter. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteCaptureFilterRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteCaptureFilterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 47d1a7ea26..2fe5784162 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCapacityReservation.go.html to see an example of how to use DeleteComputeCapacityReservationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCapacityReservation.go.html to see an example of how to use DeleteComputeCapacityReservationRequest. type DeleteComputeCapacityReservationRequest struct { // The OCID of the compute capacity reservation. @@ -67,7 +67,7 @@ func (request DeleteComputeCapacityReservationRequest) RetryPolicy() *common.Ret func (request DeleteComputeCapacityReservationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -82,8 +82,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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/delete_compute_capacity_topology_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_capacity_topology_request_response.go index 320802eda3..5a0dd651cb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_capacity_topology_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_capacity_topology_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCapacityTopology.go.html to see an example of how to use DeleteComputeCapacityTopologyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCapacityTopology.go.html to see an example of how to use DeleteComputeCapacityTopologyRequest. type DeleteComputeCapacityTopologyRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" contributesTo:"path" name:"computeCapacityTopologyId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteComputeCapacityTopologyRequest) RetryPolicy() *common.RetryP func (request DeleteComputeCapacityTopologyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -82,8 +82,8 @@ type DeleteComputeCapacityTopologyResponse 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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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/delete_compute_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_cluster_request_response.go index 4b0cbbc051..1fc02c8760 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_cluster_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,11 +15,11 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCluster.go.html to see an example of how to use DeleteComputeClusterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeCluster.go.html to see an example of how to use DeleteComputeClusterRequest. type DeleteComputeClusterRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. - // A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory // access (RDMA) network group. ComputeClusterId *string `mandatory:"true" contributesTo:"path" name:"computeClusterId"` @@ -69,7 +69,7 @@ func (request DeleteComputeClusterRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteComputeClusterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_gpu_memory_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_gpu_memory_cluster_request_response.go new file mode 100644 index 0000000000..a3389d7f00 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_gpu_memory_cluster_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// DeleteComputeGpuMemoryClusterRequest wrapper for the DeleteComputeGpuMemoryCluster operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeGpuMemoryCluster.go.html to see an example of how to use DeleteComputeGpuMemoryClusterRequest. +type DeleteComputeGpuMemoryClusterRequest struct { + + // The OCID of the compute GPU memory cluster. + ComputeGpuMemoryClusterId *string `mandatory:"true" contributesTo:"path" name:"computeGpuMemoryClusterId"` + + // 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 DeleteComputeGpuMemoryClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteComputeGpuMemoryClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteComputeGpuMemoryClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteComputeGpuMemoryClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteComputeGpuMemoryClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteComputeGpuMemoryClusterResponse wrapper for the DeleteComputeGpuMemoryCluster operation +type DeleteComputeGpuMemoryClusterResponse 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 DeleteComputeGpuMemoryClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteComputeGpuMemoryClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_host_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_host_group_request_response.go new file mode 100644 index 0000000000..2335cf0f14 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_host_group_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// DeleteComputeHostGroupRequest wrapper for the DeleteComputeHostGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeHostGroup.go.html to see an example of how to use DeleteComputeHostGroupRequest. +type DeleteComputeHostGroupRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group. + ComputeHostGroupId *string `mandatory:"true" contributesTo:"path" name:"computeHostGroupId"` + + // 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 DeleteComputeHostGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteComputeHostGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteComputeHostGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteComputeHostGroupRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteComputeHostGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteComputeHostGroupResponse wrapper for the DeleteComputeHostGroup operation +type DeleteComputeHostGroupResponse 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 DeleteComputeHostGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteComputeHostGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 90b38210c2..fbc91c1c59 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeImageCapabilitySchema.go.html to see an example of how to use DeleteComputeImageCapabilitySchemaRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteComputeImageCapabilitySchema.go.html to see an example of how to use DeleteComputeImageCapabilitySchemaRequest. type DeleteComputeImageCapabilitySchemaRequest struct { // The id of the compute image capability schema or the image ocid @@ -67,7 +67,7 @@ func (request DeleteComputeImageCapabilitySchemaRequest) RetryPolicy() *common.R func (request DeleteComputeImageCapabilitySchemaRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_console_history_request_response.go index f240ccff25..6513ead7d1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_console_history_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteConsoleHistory.go.html to see an example of how to use DeleteConsoleHistoryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteConsoleHistory.go.html to see an example of how to use DeleteConsoleHistoryRequest. type DeleteConsoleHistoryRequest struct { // The OCID of the console history. @@ -67,7 +67,7 @@ func (request DeleteConsoleHistoryRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteConsoleHistoryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cpe_request_response.go index c52cb778fd..01a5e72ceb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cpe_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCpe.go.html to see an example of how to use DeleteCpeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCpe.go.html to see an example of how to use DeleteCpeRequest. type DeleteCpeRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteCpeRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteCpeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 098a7272d1..e45aebc5f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCrossConnectGroup.go.html to see an example of how to use DeleteCrossConnectGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCrossConnectGroup.go.html to see an example of how to use DeleteCrossConnectGroupRequest. type DeleteCrossConnectGroupRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteCrossConnectGroupRequest) RetryPolicy() *common.RetryPolicy func (request DeleteCrossConnectGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cross_connect_request_response.go index 8452a7f1f3..ed869476f1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cross_connect_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCrossConnect.go.html to see an example of how to use DeleteCrossConnectRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteCrossConnect.go.html to see an example of how to use DeleteCrossConnectRequest. type DeleteCrossConnectRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteCrossConnectRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteCrossConnectRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 3b4787aecb..9eab143b98 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDedicatedVmHost.go.html to see an example of how to use DeleteDedicatedVmHostRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDedicatedVmHost.go.html to see an example of how to use DeleteDedicatedVmHostRequest. type DeleteDedicatedVmHostRequest struct { // The OCID of the dedicated VM host. @@ -62,7 +62,7 @@ func (request DeleteDedicatedVmHostRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteDedicatedVmHostRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -77,8 +77,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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/delete_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dhcp_options_request_response.go index 8277e47552..59f67ddbd0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dhcp_options_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDhcpOptions.go.html to see an example of how to use DeleteDhcpOptionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDhcpOptions.go.html to see an example of how to use DeleteDhcpOptionsRequest. type DeleteDhcpOptionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the set of DHCP options. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteDhcpOptionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_attachment_request_response.go index 8e27403efa..eeb98721d5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_attachment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgAttachment.go.html to see an example of how to use DeleteDrgAttachmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgAttachment.go.html to see an example of how to use DeleteDrgAttachmentRequest. type DeleteDrgAttachmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteDrgAttachmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_request_response.go index bf5941182d..66a7638e26 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrg.go.html to see an example of how to use DeleteDrgRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrg.go.html to see an example of how to use DeleteDrgRequest. type DeleteDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteDrgRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteDrgRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index bb419e5c1b..b9d46de04e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgRouteDistribution.go.html to see an example of how to use DeleteDrgRouteDistributionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgRouteDistribution.go.html to see an example of how to use DeleteDrgRouteDistributionRequest. type DeleteDrgRouteDistributionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. DrgRouteDistributionId *string `mandatory:"true" contributesTo:"path" name:"drgRouteDistributionId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteDrgRouteDistributionRequest) RetryPolicy() *common.RetryPoli func (request DeleteDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index d9ca6714b9..76c463fd03 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgRouteTable.go.html to see an example of how to use DeleteDrgRouteTableRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteDrgRouteTable.go.html to see an example of how to use DeleteDrgRouteTableRequest. type DeleteDrgRouteTableRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. DrgRouteTableId *string `mandatory:"true" contributesTo:"path" name:"drgRouteTableId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteDrgRouteTableRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteDrgRouteTableRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 9667560168..4310479ee9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteIPSecConnection.go.html to see an example of how to use DeleteIPSecConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteIPSecConnection.go.html to see an example of how to use DeleteIPSecConnectionRequest. type DeleteIPSecConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteIPSecConnectionRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteIPSecConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_image_request_response.go index ddd1db9ae8..be40bc50d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_image_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteImage.go.html to see an example of how to use DeleteImageRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteImage.go.html to see an example of how to use DeleteImageRequest. type DeleteImageRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteImageRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteImageRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_instance_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_instance_configuration_request_response.go index fe15388c04..fea1287a31 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_instance_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_instance_configuration_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInstanceConfiguration.go.html to see an example of how to use DeleteInstanceConfigurationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInstanceConfiguration.go.html to see an example of how to use DeleteInstanceConfigurationRequest. type DeleteInstanceConfigurationRequest struct { // The OCID of the instance configuration. @@ -67,7 +67,7 @@ func (request DeleteInstanceConfigurationRequest) RetryPolicy() *common.RetryPol func (request DeleteInstanceConfigurationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ac2610c0d7..4faeb31e8c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInstanceConsoleConnection.go.html to see an example of how to use DeleteInstanceConsoleConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInstanceConsoleConnection.go.html to see an example of how to use DeleteInstanceConsoleConnectionRequest. type DeleteInstanceConsoleConnectionRequest struct { // The OCID of the instance console connection. @@ -67,7 +67,7 @@ func (request DeleteInstanceConsoleConnectionRequest) RetryPolicy() *common.Retr func (request DeleteInstanceConsoleConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internet_gateway_request_response.go index 0b38c31123..760ef19c2f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internet_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInternetGateway.go.html to see an example of how to use DeleteInternetGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteInternetGateway.go.html to see an example of how to use DeleteInternetGatewayRequest. type DeleteInternetGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internet gateway. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteInternetGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteInternetGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_ipv6_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_ipv6_request_response.go index 6076f9dda1..657485ea3e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_ipv6_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_ipv6_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteIpv6.go.html to see an example of how to use DeleteIpv6Request. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteIpv6.go.html to see an example of how to use DeleteIpv6Request. type DeleteIpv6Request struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6. Ipv6Id *string `mandatory:"true" contributesTo:"path" name:"ipv6Id"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteIpv6Request) RetryPolicy() *common.RetryPolicy { func (request DeleteIpv6Request) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 827ea7e92b..768049b30d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteLocalPeeringGateway.go.html to see an example of how to use DeleteLocalPeeringGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteLocalPeeringGateway.go.html to see an example of how to use DeleteLocalPeeringGatewayRequest. type DeleteLocalPeeringGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering gateway. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteLocalPeeringGatewayRequest) RetryPolicy() *common.RetryPolic func (request DeleteLocalPeeringGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_nat_gateway_request_response.go index 4f2a979a2c..c40de97cde 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_nat_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_nat_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteNatGateway.go.html to see an example of how to use DeleteNatGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteNatGateway.go.html to see an example of how to use DeleteNatGatewayRequest. type DeleteNatGatewayRequest struct { - // The NAT gateway's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The NAT gateway's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). NatGatewayId *string `mandatory:"true" contributesTo:"path" name:"natGatewayId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteNatGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteNatGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index a5412ae14b..db37399c7d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteNetworkSecurityGroup.go.html to see an example of how to use DeleteNetworkSecurityGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteNetworkSecurityGroup.go.html to see an example of how to use DeleteNetworkSecurityGroupRequest. type DeleteNetworkSecurityGroupRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteNetworkSecurityGroupRequest) RetryPolicy() *common.RetryPoli func (request DeleteNetworkSecurityGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_ip_request_response.go index b9650d1928..d1e00d8c6f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_ip_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePrivateIp.go.html to see an example of how to use DeletePrivateIpRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePrivateIp.go.html to see an example of how to use DeletePrivateIpRequest. type DeletePrivateIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP or IPv6. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeletePrivateIpRequest) RetryPolicy() *common.RetryPolicy { func (request DeletePrivateIpRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 51fa62e716..273180f5aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePublicIpPool.go.html to see an example of how to use DeletePublicIpPoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePublicIpPool.go.html to see an example of how to use DeletePublicIpPoolRequest. type DeletePublicIpPoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. PublicIpPoolId *string `mandatory:"true" contributesTo:"path" name:"publicIpPoolId"` // Unique identifier for the request. @@ -67,7 +67,7 @@ func (request DeletePublicIpPoolRequest) RetryPolicy() *common.RetryPolicy { func (request DeletePublicIpPoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_public_ip_request_response.go index 44a1f21cfa..4716f022af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_public_ip_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePublicIp.go.html to see an example of how to use DeletePublicIpRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeletePublicIp.go.html to see an example of how to use DeletePublicIpRequest. type DeletePublicIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeletePublicIpRequest) RetryPolicy() *common.RetryPolicy { func (request DeletePublicIpRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 0938ed28d9..74f1ced2dd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteRemotePeeringConnection.go.html to see an example of how to use DeleteRemotePeeringConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteRemotePeeringConnection.go.html to see an example of how to use DeleteRemotePeeringConnectionRequest. type DeleteRemotePeeringConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteRemotePeeringConnectionRequest) RetryPolicy() *common.RetryP func (request DeleteRemotePeeringConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_route_table_request_response.go index 8f3eca743e..d582872265 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_route_table_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteRouteTable.go.html to see an example of how to use DeleteRouteTableRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteRouteTable.go.html to see an example of how to use DeleteRouteTableRequest. type DeleteRouteTableRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteRouteTableRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteRouteTableRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_security_list_request_response.go index d60e471bb3..6646f48159 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_security_list_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteSecurityList.go.html to see an example of how to use DeleteSecurityListRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteSecurityList.go.html to see an example of how to use DeleteSecurityListRequest. type DeleteSecurityListRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the security list. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteSecurityListRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteSecurityListRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_service_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_service_gateway_request_response.go index a52afc7b49..b54e70c1f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_service_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_service_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteServiceGateway.go.html to see an example of how to use DeleteServiceGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteServiceGateway.go.html to see an example of how to use DeleteServiceGatewayRequest. type DeleteServiceGatewayRequest struct { - // The service gateway's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The service gateway's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). ServiceGatewayId *string `mandatory:"true" contributesTo:"path" name:"serviceGatewayId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteServiceGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteServiceGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_subnet_request_response.go index 9014368289..5c762ab054 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_subnet_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteSubnet.go.html to see an example of how to use DeleteSubnetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteSubnet.go.html to see an example of how to use DeleteSubnetRequest. type DeleteSubnetRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // Specify the OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteSubnetRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteSubnetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_request_response.go index 51af00a092..eb547cf267 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVcn.go.html to see an example of how to use DeleteVcnRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVcn.go.html to see an example of how to use DeleteVcnRequest. type DeleteVcnRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteVcnRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteVcnRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4adbe142cb..b439beb507 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m DeleteVirtualCircuitPublicPrefixDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_request_response.go index 8288c47387..dfa05d4e4a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVirtualCircuit.go.html to see an example of how to use DeleteVirtualCircuitRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVirtualCircuit.go.html to see an example of how to use DeleteVirtualCircuitRequest. type DeleteVirtualCircuitRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteVirtualCircuitRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteVirtualCircuitRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vlan_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vlan_request_response.go index cbc9e72921..e6294e9c49 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vlan_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vlan_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVlan.go.html to see an example of how to use DeleteVlanRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVlan.go.html to see an example of how to use DeleteVlanRequest. type DeleteVlanRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. VlanId *string `mandatory:"true" contributesTo:"path" name:"vlanId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteVlanRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteVlanRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ce14cc6559..9da7d1523c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackupPolicyAssignment.go.html to see an example of how to use DeleteVolumeBackupPolicyAssignmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackupPolicyAssignment.go.html to see an example of how to use DeleteVolumeBackupPolicyAssignmentRequest. type DeleteVolumeBackupPolicyAssignmentRequest struct { // The OCID of the volume backup policy assignment. @@ -67,7 +67,7 @@ func (request DeleteVolumeBackupPolicyAssignmentRequest) RetryPolicy() *common.R func (request DeleteVolumeBackupPolicyAssignmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ab102ceed6..8c5913eddb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackupPolicy.go.html to see an example of how to use DeleteVolumeBackupPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackupPolicy.go.html to see an example of how to use DeleteVolumeBackupPolicyRequest. type DeleteVolumeBackupPolicyRequest struct { // The OCID of the volume backup policy. @@ -67,7 +67,7 @@ func (request DeleteVolumeBackupPolicyRequest) RetryPolicy() *common.RetryPolicy func (request DeleteVolumeBackupPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_request_response.go index 9891e50f94..0d0c15da11 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackup.go.html to see an example of how to use DeleteVolumeBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeBackup.go.html to see an example of how to use DeleteVolumeBackupRequest. type DeleteVolumeBackupRequest struct { // The OCID of the volume backup. @@ -67,7 +67,7 @@ func (request DeleteVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteVolumeBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index f818167d3c..605e4abc40 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeGroupBackup.go.html to see an example of how to use DeleteVolumeGroupBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeGroupBackup.go.html to see an example of how to use DeleteVolumeGroupBackupRequest. type DeleteVolumeGroupBackupRequest struct { // The Oracle Cloud ID (OCID) that uniquely identifies the volume group backup. @@ -67,7 +67,7 @@ func (request DeleteVolumeGroupBackupRequest) RetryPolicy() *common.RetryPolicy func (request DeleteVolumeGroupBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_group_request_response.go index d9aca97060..85e3b589de 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeGroup.go.html to see an example of how to use DeleteVolumeGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeGroup.go.html to see an example of how to use DeleteVolumeGroupRequest. type DeleteVolumeGroupRequest struct { // The Oracle Cloud ID (OCID) that uniquely identifies the volume group. @@ -67,7 +67,7 @@ func (request DeleteVolumeGroupRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteVolumeGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index bf5f218163..2a3a6e6354 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeKmsKey.go.html to see an example of how to use DeleteVolumeKmsKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolumeKmsKey.go.html to see an example of how to use DeleteVolumeKmsKeyRequest. type DeleteVolumeKmsKeyRequest struct { // The OCID of the volume. @@ -67,7 +67,7 @@ func (request DeleteVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_request_response.go index 1dc300ddf8..5b5ac62778 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolume.go.html to see an example of how to use DeleteVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVolume.go.html to see an example of how to use DeleteVolumeRequest. type DeleteVolumeRequest struct { // The OCID of the volume. @@ -67,7 +67,7 @@ func (request DeleteVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8d93b2ed60..0568a5a13b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVtap.go.html to see an example of how to use DeleteVtapRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DeleteVtap.go.html to see an example of how to use DeleteVtapRequest. type DeleteVtapRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP. + // The OCID (https://docs.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` @@ -67,7 +67,7 @@ func (request DeleteVtapRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteVtapRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -82,8 +82,8 @@ type DeleteVtapResponse 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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_boot_volume_request_response.go index d20a8f1ac1..3076a40170 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_boot_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachBootVolume.go.html to see an example of how to use DetachBootVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachBootVolume.go.html to see an example of how to use DetachBootVolumeRequest. type DetachBootVolumeRequest struct { // The OCID of the boot volume attachment. @@ -67,7 +67,7 @@ func (request DetachBootVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request DetachBootVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_compute_host_group_host_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_compute_host_group_host_details.go new file mode 100644 index 0000000000..87202924a8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_compute_host_group_host_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DetachComputeHostGroupHostDetails Specifies the host group id +type DetachComputeHostGroupHostDetails struct { + + // 'The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group.' + ComputeHostGroupId *string `mandatory:"true" json:"computeHostGroupId"` +} + +func (m DetachComputeHostGroupHostDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DetachComputeHostGroupHostDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_compute_host_group_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_compute_host_group_host_request_response.go new file mode 100644 index 0000000000..054ed61f84 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_compute_host_group_host_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// DetachComputeHostGroupHostRequest wrapper for the DetachComputeHostGroupHost operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachComputeHostGroupHost.go.html to see an example of how to use DetachComputeHostGroupHostRequest. +type DetachComputeHostGroupHostRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host. + ComputeHostId *string `mandatory:"true" contributesTo:"path" name:"computeHostId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group. + DetachComputeHostGroupHostDetails `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"` + + // 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 DetachComputeHostGroupHostRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DetachComputeHostGroupHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DetachComputeHostGroupHostRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DetachComputeHostGroupHostRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachComputeHostGroupHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DetachComputeHostGroupHostResponse wrapper for the DetachComputeHostGroupHost operation +type DetachComputeHostGroupHostResponse 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 DetachComputeHostGroupHostResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DetachComputeHostGroupHostResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index ae5c932caa..74673082c0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.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 @@ -48,7 +48,7 @@ func (m DetachInstancePoolInstanceDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c6b34f6fcc..ea2c379e84 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachInstancePoolInstance.go.html to see an example of how to use DetachInstancePoolInstanceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachInstancePoolInstance.go.html to see an example of how to use DetachInstancePoolInstanceRequest. type DetachInstancePoolInstanceRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // Instance being detached @@ -72,7 +72,7 @@ func (request DetachInstancePoolInstanceRequest) RetryPolicy() *common.RetryPoli func (request DetachInstancePoolInstanceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -87,8 +87,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 66ade093a1..356c667e18 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m DetachLoadBalancerDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_request_response.go index eb95710780..d61c5337a2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachLoadBalancer.go.html to see an example of how to use DetachLoadBalancerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachLoadBalancer.go.html to see an example of how to use DetachLoadBalancerRequest. type DetachLoadBalancerRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // Load balancer being detached @@ -77,7 +77,7 @@ func (request DetachLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { func (request DetachLoadBalancerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_service_id_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_service_id_request_response.go index 18592641c6..44c05fbb04 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_service_id_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_service_id_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachServiceId.go.html to see an example of how to use DetachServiceIdRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachServiceId.go.html to see an example of how to use DetachServiceIdRequest. type DetachServiceIdRequest struct { - // The service gateway's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The service gateway's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). ServiceGatewayId *string `mandatory:"true" contributesTo:"path" name:"serviceGatewayId"` // ServiceId of Service to be detached from a service gateway. @@ -70,7 +70,7 @@ func (request DetachServiceIdRequest) RetryPolicy() *common.RetryPolicy { func (request DetachServiceIdRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_request_response.go index 734e0bb1d1..c820f37911 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachVnic.go.html to see an example of how to use DetachVnicRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachVnic.go.html to see an example of how to use DetachVnicRequest. type DetachVnicRequest struct { // The OCID of the VNIC attachment. @@ -67,7 +67,7 @@ func (request DetachVnicRequest) RetryPolicy() *common.RetryPolicy { func (request DetachVnicRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_volume_request_response.go index 14fc9822c2..b488fb8199 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachVolume.go.html to see an example of how to use DetachVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/DetachVolume.go.html to see an example of how to use DetachVolumeRequest. type DetachVolumeRequest struct { // The OCID of the volume attachment. @@ -67,7 +67,7 @@ func (request DetachVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request DetachVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index be4b28e08e..25d294316a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -37,7 +37,7 @@ func (m DetachedVolumeAutotunePolicy) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 024649a3bc..e4671ed310 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/device.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/device.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m Device) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 359f089729..9357a33325 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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). +// DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). type DhcpDnsOption struct { // If you set `serverType` to `CustomDnsServer`, specify the @@ -41,7 +41,7 @@ type DhcpDnsOption struct { // 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). + // DNS in Your Virtual Cloud Network (https://docs.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"` @@ -61,7 +61,7 @@ func (m DhcpDnsOption) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 439846e472..1f2ad7476e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,8 +25,8 @@ import ( // 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). +// information, see DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm) +// and DHCP Options (https://docs.oracle.com/iaas/Content/Network/Tasks/managingDHCP.htm). type DhcpOption interface { } @@ -69,7 +69,7 @@ func (m *dhcpoption) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for DhcpOption: %s.", m.Type) + common.Logf("Received unsupported enum value for DhcpOption: %s.", m.Type) return *m, nil } } @@ -85,7 +85,7 @@ func (m dhcpoption) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 966fd43abe..01ff60b48e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,17 +28,17 @@ import ( // 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). +// For more information, see DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm) +// and DHCP Options (https://docs.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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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. + // Oracle ID (OCID (https://docs.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. @@ -51,11 +51,11 @@ type DhcpOptions struct { // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -64,7 +64,7 @@ type DhcpOptions struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -89,7 +89,7 @@ func (m DhcpOptions) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ed98b9a71e..2bd55b5792 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( ) // 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). +// DNS in Your Virtual Cloud Network (https://docs.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) @@ -51,7 +51,7 @@ func (m DhcpSearchDomainOption) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 224bfc99c7..7b9e33b722 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m DpdConfig) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 47fbc152bf..b5357dc17c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,25 +23,25 @@ import ( // 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). +// Service components to create a connection to your on-premises network using Site-to-Site VPN (https://docs.oracle.com/iaas/Content/Network/Tasks/managingIPsec.htm) or a connection that uses +// FastConnect (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). For more information, see +// Networking Overview (https://docs.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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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)). + // The DRG's Oracle ID (OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -50,7 +50,7 @@ type Drg struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -60,7 +60,7 @@ type Drg struct { 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. + // The OCID (https://docs.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"` } @@ -78,7 +78,7 @@ func (m Drg) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8e9813e989..5cd6fe8083 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,16 +24,16 @@ import ( // 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). +// For more information, see Overview of the Networking Service (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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)). + // The DRG attachment's Oracle ID (OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). Id *string `mandatory:"true" json:"id"` // The DRG attachment's current state. @@ -47,34 +47,34 @@ type DrgAttachment struct { // 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 OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.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. + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) + // This field is deprecated. Instead, use the `networkDetails` field to view the OCID (https://docs.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. + // The OCID (https://docs.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.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 + // The OCID (https://docs.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"` @@ -98,7 +98,7 @@ func (m DrgAttachment) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b9b329d7f0..b341982851 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. DrgAttachmentId *string `mandatory:"true" json:"drgAttachmentId"` } @@ -40,7 +40,7 @@ func (m DrgAttachmentIdDrgRouteDistributionMatchCriteria) ValidateEnumValue() (b errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3f0a5592bd..757f0eb1dc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,7 +21,7 @@ import ( "strings" ) -// DrgAttachmentInfo The `DrgAttachmentInfo` resource contains the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. +// DrgAttachmentInfo The `DrgAttachmentInfo` resource contains the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. type DrgAttachmentInfo struct { // The Oracle-assigned ID of the DRG attachment @@ -39,7 +39,7 @@ func (m DrgAttachmentInfo) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index c76abc584e..e4a84f7354 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -37,7 +37,7 @@ func (m DrgAttachmentMatchAllDrgRouteDistributionMatchCriteria) ValidateEnumValu errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8b40ab3964..c5428b22fa 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. GetId() *string } @@ -66,7 +66,7 @@ func (m *drgattachmentnetworkcreatedetails) UnmarshalPolymorphicJSON(data []byte err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for DrgAttachmentNetworkCreateDetails: %s.", m.Type) + common.Logf("Received unsupported enum value for DrgAttachmentNetworkCreateDetails: %s.", m.Type) return *m, nil } } @@ -87,7 +87,7 @@ func (m drgattachmentnetworkcreatedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 06a1720808..80ccafbd49 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. GetId() *string } @@ -82,7 +82,7 @@ func (m *drgattachmentnetworkdetails) UnmarshalPolymorphicJSON(data []byte) (int err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for DrgAttachmentNetworkDetails: %s.", m.Type) + common.Logf("Received unsupported enum value for DrgAttachmentNetworkDetails: %s.", m.Type) return *m, nil } } @@ -103,7 +103,7 @@ func (m drgattachmentnetworkdetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e047254b05..64825233ad 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -61,7 +61,7 @@ func (m *drgattachmentnetworkupdatedetails) UnmarshalPolymorphicJSON(data []byte err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for DrgAttachmentNetworkUpdateDetails: %s.", m.Type) + common.Logf("Received unsupported enum value for DrgAttachmentNetworkUpdateDetails: %s.", m.Type) return *m, nil } } @@ -77,7 +77,7 @@ func (m drgattachmentnetworkupdatedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2e86f835a4..3f1cbc6e56 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m DrgAttachmentTypeDrgRouteDistributionMatchCriteria) ValidateEnumValue() } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_customer.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_customer.go new file mode 100644 index 0000000000..31c98acc78 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_customer.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgCustomer The list of IPSEC / FC / RPC info for a given DRG +type DrgCustomer struct { + + // OCID of the DRG + DrgId *string `mandatory:"true" json:"drgId"` + + // A List of the RPC connections on this DRG + RemotePeeringConnections []DrgCustomerResource `mandatory:"false" json:"remotePeeringConnections"` + + // A List of the VCs on this DRG + VirtualCircuits []DrgCustomerResource `mandatory:"false" json:"virtualCircuits"` + + // A List of the IPSec connections on this DRG + IpsecConnections []DrgCustomerResource `mandatory:"false" json:"ipsecConnections"` +} + +func (m DrgCustomer) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgCustomer) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_customer_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_customer_resource.go new file mode 100644 index 0000000000..3f4729ebfe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_customer_resource.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgCustomerResource The IPSEC / FC / RPC info returned in DrgCustomerResponse +type DrgCustomerResource struct { + + // OCID of the IPSEC / FC / RPC + Id *string `mandatory:"false" json:"id"` + + // The friendly name of the node. + DisplayName *string `mandatory:"false" json:"displayName"` + + // the compartment id of the DRG + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // the lifeCycleState of the IPSEC / FC / RPC + State *string `mandatory:"false" json:"state"` +} + +func (m DrgCustomerResource) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgCustomerResource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_promotion_status_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_promotion_status_response.go new file mode 100644 index 0000000000..ec24444664 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_promotion_status_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgPromotionStatusResponse The promotion/unpromotion status of a DRG +type DrgPromotionStatusResponse struct { + + // OCID of the DRG + DrgId *string `mandatory:"true" json:"drgId"` + + // The promotion status of the DRG + DrgPromotionStatus DrgPromotionStatusResponseDrgPromotionStatusEnum `mandatory:"false" json:"drgPromotionStatus,omitempty"` + + // A map of the promotion status of each RPC connection on this DRG {conn_id -> promo_status} + RpcPromotionStatus map[string]string `mandatory:"false" json:"rpcPromotionStatus"` + + // A map of the promotion status of each VC on this DRG {conn_id -> promo_status} + VcPromotionStatus map[string]string `mandatory:"false" json:"vcPromotionStatus"` + + // A map of the promotion status of each IPSec connection on this DRG {conn_id -> promo_status} + IpsecPromotionStatus map[string]string `mandatory:"false" json:"ipsecPromotionStatus"` +} + +func (m DrgPromotionStatusResponse) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgPromotionStatusResponse) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingDrgPromotionStatusResponseDrgPromotionStatusEnum(string(m.DrgPromotionStatus)); !ok && m.DrgPromotionStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DrgPromotionStatus: %s. Supported values are: %s.", m.DrgPromotionStatus, strings.Join(GetDrgPromotionStatusResponseDrgPromotionStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgPromotionStatusResponseDrgPromotionStatusEnum Enum with underlying type: string +type DrgPromotionStatusResponseDrgPromotionStatusEnum string + +// Set of constants representing the allowable values for DrgPromotionStatusResponseDrgPromotionStatusEnum +const ( + DrgPromotionStatusResponseDrgPromotionStatusUnpromoted DrgPromotionStatusResponseDrgPromotionStatusEnum = "UNPROMOTED" + DrgPromotionStatusResponseDrgPromotionStatusPromoting DrgPromotionStatusResponseDrgPromotionStatusEnum = "PROMOTING" + DrgPromotionStatusResponseDrgPromotionStatusPromoted DrgPromotionStatusResponseDrgPromotionStatusEnum = "PROMOTED" + DrgPromotionStatusResponseDrgPromotionStatusUnpromoting DrgPromotionStatusResponseDrgPromotionStatusEnum = "UNPROMOTING" +) + +var mappingDrgPromotionStatusResponseDrgPromotionStatusEnum = map[string]DrgPromotionStatusResponseDrgPromotionStatusEnum{ + "UNPROMOTED": DrgPromotionStatusResponseDrgPromotionStatusUnpromoted, + "PROMOTING": DrgPromotionStatusResponseDrgPromotionStatusPromoting, + "PROMOTED": DrgPromotionStatusResponseDrgPromotionStatusPromoted, + "UNPROMOTING": DrgPromotionStatusResponseDrgPromotionStatusUnpromoting, +} + +var mappingDrgPromotionStatusResponseDrgPromotionStatusEnumLowerCase = map[string]DrgPromotionStatusResponseDrgPromotionStatusEnum{ + "unpromoted": DrgPromotionStatusResponseDrgPromotionStatusUnpromoted, + "promoting": DrgPromotionStatusResponseDrgPromotionStatusPromoting, + "promoted": DrgPromotionStatusResponseDrgPromotionStatusPromoted, + "unpromoting": DrgPromotionStatusResponseDrgPromotionStatusUnpromoting, +} + +// GetDrgPromotionStatusResponseDrgPromotionStatusEnumValues Enumerates the set of values for DrgPromotionStatusResponseDrgPromotionStatusEnum +func GetDrgPromotionStatusResponseDrgPromotionStatusEnumValues() []DrgPromotionStatusResponseDrgPromotionStatusEnum { + values := make([]DrgPromotionStatusResponseDrgPromotionStatusEnum, 0) + for _, v := range mappingDrgPromotionStatusResponseDrgPromotionStatusEnum { + values = append(values, v) + } + return values +} + +// GetDrgPromotionStatusResponseDrgPromotionStatusEnumStringValues Enumerates the set of values in String for DrgPromotionStatusResponseDrgPromotionStatusEnum +func GetDrgPromotionStatusResponseDrgPromotionStatusEnumStringValues() []string { + return []string{ + "UNPROMOTED", + "PROMOTING", + "PROMOTED", + "UNPROMOTING", + } +} + +// GetMappingDrgPromotionStatusResponseDrgPromotionStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgPromotionStatusResponseDrgPromotionStatusEnum(val string) (DrgPromotionStatusResponseDrgPromotionStatusEnum, bool) { + enum, ok := mappingDrgPromotionStatusResponseDrgPromotionStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} 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 index 9ae54aac88..98bd9abcd7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,10 +22,10 @@ import ( ) // DrgRedundancyStatus The redundancy status of the DRG. For more information, see -// Redundancy Remedies (https://docs.cloud.oracle.com/iaas/Content/Network/Troubleshoot/drgredundancy.htm). +// Redundancy Remedies (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. Id *string `mandatory:"false" json:"id"` // The redundancy status of the DRG. @@ -46,7 +46,7 @@ func (m DrgRedundancyStatus) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ff11d9befe..d1cb44de5e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,16 +22,15 @@ import ( ) // 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. +// A route distribution is a list of statements. Each statement consists of a set of matches, all of which must be `True` 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 unless the -// attachment has the type VCN. Exporting routes through a VCN attachment is unsupported. Export +// attachment has the type `VCN`. Exporting routes through a VCN attachment is unsupported. Export // route distribution statements specify how routes in a DRG attachment's assigned table are // advertised out through the attachment. When a DRG is created, a route distribution is created // with a single ACCEPT statement with match criteria MATCH_ALL. By default, all DRG attachments -// (except for those of type VCN), are assigned this distribution. +// (except for those of type VCN), are assigned this distribution. You can't create a new export route distribution, one is created for you when the DRG is created. // // 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 @@ -39,13 +38,13 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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)). + // The route distribution's Oracle ID (OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). Id *string `mandatory:"true" json:"id"` // The route distribution's current state. @@ -59,7 +58,7 @@ type DrgRouteDistribution struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -68,7 +67,7 @@ type DrgRouteDistribution struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -90,7 +89,7 @@ func (m DrgRouteDistribution) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a39e6dde0f..0688f712b0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -70,7 +70,7 @@ func (m *drgroutedistributionmatchcriteria) UnmarshalPolymorphicJSON(data []byte err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for DrgRouteDistributionMatchCriteria: %s.", m.MatchType) + common.Logf("Received unsupported enum value for DrgRouteDistributionMatchCriteria: %s.", m.MatchType) return *m, nil } } @@ -86,7 +86,7 @@ func (m drgroutedistributionmatchcriteria) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f4a98edac6..8e15837330 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -59,7 +59,7 @@ func (m DrgRouteDistributionStatement) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d2aa020fc1..e615c644a5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ type DrgRouteRule struct { // 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 + // The OCID (https://docs.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"` @@ -91,7 +91,7 @@ func (m DrgRouteRule) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cc93979260..3f838feebf 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -32,15 +32,15 @@ import ( // 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 + // The OCID (https://docs.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 + // The OCID (https://docs.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. + // The OCID (https://docs.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). @@ -56,7 +56,7 @@ type DrgRouteTable struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -65,11 +65,11 @@ type DrgRouteTable struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 + // The OCID (https://docs.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"` } @@ -88,7 +88,7 @@ func (m DrgRouteTable) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 25af8894ed..89e0847660 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -29,7 +29,7 @@ type EgressSecurityRule struct { // 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). + // IPv6 Addresses (https://docs.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`. @@ -80,7 +80,7 @@ func (m EgressSecurityRule) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 69c9b62cc0..41369009b3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -171,7 +171,7 @@ func (m EmulatedVolumeAttachment) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8a27bd782f..8196f86267 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m EncryptionDomainConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 0dc0eb2545..54b7d991b5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core 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 index a1626f2f2b..66012ef531 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -53,7 +53,7 @@ func (m EnumIntegerImageCapabilityDescriptor) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8bdc4cc68b..cd3209162e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -53,7 +53,7 @@ func (m EnumStringImageCapabilitySchemaDescriptor) ValidateEnumValue() (bool, er 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2859d64d29..316984fb2a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -83,7 +83,7 @@ func (m *exportimagedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for ExportImageDetails: %s.", m.DestinationType) + common.Logf("Received unsupported enum value for ExportImageDetails: %s.", m.DestinationType) return *m, nil } } @@ -107,7 +107,7 @@ func (m exportimagedetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_request_response.go index 3f144a5d2f..f83379cfd2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ExportImage.go.html to see an example of how to use ExportImageRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ExportImage.go.html to see an example of how to use ExportImageRequest. type ExportImageRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // Details for the image export. @@ -77,7 +77,7 @@ func (request ExportImageRequest) RetryPolicy() *common.RetryPolicy { func (request ExportImageRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -98,8 +98,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 6d7b068ddb..44828a6bc1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -64,7 +64,7 @@ func (m ExportImageViaObjectStorageTupleDetails) ValidateEnumValue() (bool, erro 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3c0b538450..35d4c84193 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,8 +26,8 @@ import ( 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) + // Storage URLs (https://docs.oracle.com/iaas/Content/Compute/Tasks/imageimportexport.htm#URLs) + // and Using Pre-Authenticated Requests (https://docs.oracle.com/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm) // for constructing URLs for image import/export. DestinationUri *string `mandatory:"true" json:"destinationUri"` @@ -61,7 +61,7 @@ func (m ExportImageViaObjectStorageUriDetails) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 821072cd2b..2fdae0e1e5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,10 +22,10 @@ import ( ) // 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). +// see FastConnect Overview (https://docs.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. + // The OCID (https://docs.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. @@ -101,7 +101,7 @@ func (m FastConnectProviderService) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6d3d6df032..c6f16bbeac 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -52,7 +52,7 @@ func (m FastConnectProviderServiceKey) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_capture_filter_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_capture_filter_rule_details.go index 07a6f45e20..2420ed0bfb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_capture_filter_rule_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_capture_filter_rule_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -73,7 +73,7 @@ func (m FlowLogCaptureFilterRuleDetails) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RuleAction: %s. Supported values are: %s.", m.RuleAction, strings.Join(GetFlowLogCaptureFilterRuleDetailsRuleActionEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/generic_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/generic_bm_launch_instance_platform_config.go index 10dfd18b93..54b9f34196 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/generic_bm_launch_instance_platform_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/generic_bm_launch_instance_platform_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -105,7 +105,7 @@ func (m GenericBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -133,6 +133,7 @@ const ( GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" + GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6 GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -140,6 +141,7 @@ var mappingGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[str "NPS1": GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "NPS2": GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "NPS4": GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "NPS6": GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } var mappingGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -147,6 +149,7 @@ var mappingGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase "nps1": GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "nps2": GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "nps4": GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "nps6": GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } // GetGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for GenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum @@ -165,6 +168,7 @@ func GetGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues( "NPS1", "NPS2", "NPS4", + "NPS6", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/generic_bm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/generic_bm_platform_config.go index d24d6fba89..9866d42d2e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/generic_bm_platform_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/generic_bm_platform_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -105,7 +105,7 @@ func (m GenericBmPlatformConfig) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -133,6 +133,7 @@ const ( GenericBmPlatformConfigNumaNodesPerSocketNps1 GenericBmPlatformConfigNumaNodesPerSocketEnum = "NPS1" GenericBmPlatformConfigNumaNodesPerSocketNps2 GenericBmPlatformConfigNumaNodesPerSocketEnum = "NPS2" GenericBmPlatformConfigNumaNodesPerSocketNps4 GenericBmPlatformConfigNumaNodesPerSocketEnum = "NPS4" + GenericBmPlatformConfigNumaNodesPerSocketNps6 GenericBmPlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingGenericBmPlatformConfigNumaNodesPerSocketEnum = map[string]GenericBmPlatformConfigNumaNodesPerSocketEnum{ @@ -140,6 +141,7 @@ var mappingGenericBmPlatformConfigNumaNodesPerSocketEnum = map[string]GenericBmP "NPS1": GenericBmPlatformConfigNumaNodesPerSocketNps1, "NPS2": GenericBmPlatformConfigNumaNodesPerSocketNps2, "NPS4": GenericBmPlatformConfigNumaNodesPerSocketNps4, + "NPS6": GenericBmPlatformConfigNumaNodesPerSocketNps6, } var mappingGenericBmPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]GenericBmPlatformConfigNumaNodesPerSocketEnum{ @@ -147,6 +149,7 @@ var mappingGenericBmPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]G "nps1": GenericBmPlatformConfigNumaNodesPerSocketNps1, "nps2": GenericBmPlatformConfigNumaNodesPerSocketNps2, "nps4": GenericBmPlatformConfigNumaNodesPerSocketNps4, + "nps6": GenericBmPlatformConfigNumaNodesPerSocketNps6, } // GetGenericBmPlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for GenericBmPlatformConfigNumaNodesPerSocketEnum @@ -165,6 +168,7 @@ func GetGenericBmPlatformConfigNumaNodesPerSocketEnumStringValues() []string { "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index 9879d51d84..85f7e925aa 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAllDrgAttachments.go.html to see an example of how to use GetAllDrgAttachmentsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAllDrgAttachments.go.html to see an example of how to use GetAllDrgAttachmentsRequest. type GetAllDrgAttachmentsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -27,13 +27,13 @@ type GetAllDrgAttachmentsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -82,7 +82,7 @@ func (request GetAllDrgAttachmentsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -98,7 +98,7 @@ type GetAllDrgAttachmentsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 9967f9aa82..19d034fb7b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAllowedIkeIPSecParameters.go.html to see an example of how to use GetAllowedIkeIPSecParametersRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAllowedIkeIPSecParameters.go.html to see an example of how to use GetAllowedIkeIPSecParametersRequest. type GetAllowedIkeIPSecParametersRequest struct { // Unique identifier for the request. @@ -59,7 +59,7 @@ func (request GetAllowedIkeIPSecParametersRequest) RetryPolicy() *common.RetryPo func (request GetAllowedIkeIPSecParametersRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 95dd4a69e7..185ef5e607 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListingAgreements.go.html to see an example of how to use GetAppCatalogListingAgreementsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListingAgreements.go.html to see an example of how to use GetAppCatalogListingAgreementsRequest. type GetAppCatalogListingAgreementsRequest struct { // The OCID of the listing. @@ -65,7 +65,7 @@ func (request GetAppCatalogListingAgreementsRequest) RetryPolicy() *common.Retry func (request GetAppCatalogListingAgreementsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c6719b31a9..697a451acf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListing.go.html to see an example of how to use GetAppCatalogListingRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListing.go.html to see an example of how to use GetAppCatalogListingRequest. type GetAppCatalogListingRequest struct { // The OCID of the listing. @@ -62,7 +62,7 @@ func (request GetAppCatalogListingRequest) RetryPolicy() *common.RetryPolicy { func (request GetAppCatalogListingRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index bc361a2657..2101fa360b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListingResourceVersion.go.html to see an example of how to use GetAppCatalogListingResourceVersionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetAppCatalogListingResourceVersion.go.html to see an example of how to use GetAppCatalogListingResourceVersionRequest. type GetAppCatalogListingResourceVersionRequest struct { // The OCID of the listing. @@ -65,7 +65,7 @@ func (request GetAppCatalogListingResourceVersionRequest) RetryPolicy() *common. func (request GetAppCatalogListingResourceVersionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index aa8a23f77f..cc37ce9879 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBlockVolumeReplica.go.html to see an example of how to use GetBlockVolumeReplicaRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBlockVolumeReplica.go.html to see an example of how to use GetBlockVolumeReplicaRequest. type GetBlockVolumeReplicaRequest struct { // The OCID of the block volume replica. @@ -62,7 +62,7 @@ func (request GetBlockVolumeReplicaRequest) RetryPolicy() *common.RetryPolicy { func (request GetBlockVolumeReplicaRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index e592969d20..94d43fef40 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeAttachment.go.html to see an example of how to use GetBootVolumeAttachmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeAttachment.go.html to see an example of how to use GetBootVolumeAttachmentRequest. type GetBootVolumeAttachmentRequest struct { // The OCID of the boot volume attachment. @@ -62,7 +62,7 @@ func (request GetBootVolumeAttachmentRequest) RetryPolicy() *common.RetryPolicy func (request GetBootVolumeAttachmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index e32e56293c..ab546e6ffd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeBackup.go.html to see an example of how to use GetBootVolumeBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeBackup.go.html to see an example of how to use GetBootVolumeBackupRequest. type GetBootVolumeBackupRequest struct { // The OCID of the boot volume backup. @@ -62,7 +62,7 @@ func (request GetBootVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { func (request GetBootVolumeBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 8d1c70d1ba..012f1b6a88 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeKmsKey.go.html to see an example of how to use GetBootVolumeKmsKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeKmsKey.go.html to see an example of how to use GetBootVolumeKmsKeyRequest. type GetBootVolumeKmsKeyRequest struct { // The OCID of the boot volume. @@ -67,7 +67,7 @@ func (request GetBootVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { func (request GetBootVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 343c085566..97b7946595 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeReplica.go.html to see an example of how to use GetBootVolumeReplicaRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolumeReplica.go.html to see an example of how to use GetBootVolumeReplicaRequest. type GetBootVolumeReplicaRequest struct { // The OCID of the boot volume replica. @@ -62,7 +62,7 @@ func (request GetBootVolumeReplicaRequest) RetryPolicy() *common.RetryPolicy { func (request GetBootVolumeReplicaRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_request_response.go index a4a3c56279..b0a5ebe061 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolume.go.html to see an example of how to use GetBootVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetBootVolume.go.html to see an example of how to use GetBootVolumeRequest. type GetBootVolumeRequest struct { // The OCID of the boot volume. @@ -62,7 +62,7 @@ func (request GetBootVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request GetBootVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoasn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoasn_request_response.go new file mode 100644 index 0000000000..23a5a3bc3e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoasn_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// GetByoasnRequest wrapper for the GetByoasn operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetByoasn.go.html to see an example of how to use GetByoasnRequest. +type GetByoasnRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Byoasn` resource. + ByoasnId *string `mandatory:"true" contributesTo:"path" name:"byoasnId"` + + // 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 GetByoasnRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetByoasnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetByoasnRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetByoasnRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetByoasnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetByoasnResponse wrapper for the GetByoasn operation +type GetByoasnResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Byoasn instance + Byoasn `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 GetByoasnResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetByoasnResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoip_range_request_response.go index 8e4cc83ec4..c390d04541 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoip_range_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetByoipRange.go.html to see an example of how to use GetByoipRangeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetByoipRange.go.html to see an example of how to use GetByoipRangeRequest. type GetByoipRangeRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource containing the BYOIP CIDR block. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetByoipRangeRequest) RetryPolicy() *common.RetryPolicy { func (request GetByoipRangeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_capture_filter_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_capture_filter_request_response.go index 759241f06b..17d5a6705d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_capture_filter_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_capture_filter_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCaptureFilter.go.html to see an example of how to use GetCaptureFilterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCaptureFilter.go.html to see an example of how to use GetCaptureFilterRequest. type GetCaptureFilterRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capture filter. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetCaptureFilterRequest) RetryPolicy() *common.RetryPolicy { func (request GetCaptureFilterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cluster_network_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cluster_network_request_response.go index eca4cad812..c206479208 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cluster_network_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cluster_network_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetClusterNetwork.go.html to see an example of how to use GetClusterNetworkRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetClusterNetwork.go.html to see an example of how to use GetClusterNetworkRequest. type GetClusterNetworkRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. ClusterNetworkId *string `mandatory:"true" contributesTo:"path" name:"clusterNetworkId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetClusterNetworkRequest) RetryPolicy() *common.RetryPolicy { func (request GetClusterNetworkRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index d79aed76c1..adacbb4131 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCapacityReservation.go.html to see an example of how to use GetComputeCapacityReservationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCapacityReservation.go.html to see an example of how to use GetComputeCapacityReservationRequest. type GetComputeCapacityReservationRequest struct { // The OCID of the compute capacity reservation. @@ -62,7 +62,7 @@ func (request GetComputeCapacityReservationRequest) RetryPolicy() *common.RetryP func (request GetComputeCapacityReservationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_capacity_topology_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_capacity_topology_request_response.go index df7dd803c8..dd73a46a2e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_capacity_topology_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_capacity_topology_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCapacityTopology.go.html to see an example of how to use GetComputeCapacityTopologyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCapacityTopology.go.html to see an example of how to use GetComputeCapacityTopologyRequest. type GetComputeCapacityTopologyRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" contributesTo:"path" name:"computeCapacityTopologyId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetComputeCapacityTopologyRequest) RetryPolicy() *common.RetryPoli func (request GetComputeCapacityTopologyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0576365e7c..b00df306d1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,11 +15,11 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCluster.go.html to see an example of how to use GetComputeClusterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeCluster.go.html to see an example of how to use GetComputeClusterRequest. type GetComputeClusterRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. - // A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory // access (RDMA) network group. ComputeClusterId *string `mandatory:"true" contributesTo:"path" name:"computeClusterId"` @@ -64,7 +64,7 @@ func (request GetComputeClusterRequest) RetryPolicy() *common.RetryPolicy { func (request GetComputeClusterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 8f43cdb41c..a651f70312 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGlobalImageCapabilitySchema.go.html to see an example of how to use GetComputeGlobalImageCapabilitySchemaRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGlobalImageCapabilitySchema.go.html to see an example of how to use GetComputeGlobalImageCapabilitySchemaRequest. type GetComputeGlobalImageCapabilitySchemaRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute global image capability schema + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute global image capability schema ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" contributesTo:"path" name:"computeGlobalImageCapabilitySchemaId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetComputeGlobalImageCapabilitySchemaRequest) RetryPolicy() *commo func (request GetComputeGlobalImageCapabilitySchemaRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 8b150e9cf1..f9fe8b0aad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGlobalImageCapabilitySchemaVersion.go.html to see an example of how to use GetComputeGlobalImageCapabilitySchemaVersionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGlobalImageCapabilitySchemaVersion.go.html to see an example of how to use GetComputeGlobalImageCapabilitySchemaVersionRequest. type GetComputeGlobalImageCapabilitySchemaVersionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute global image capability schema + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute global image capability schema ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" contributesTo:"path" name:"computeGlobalImageCapabilitySchemaId"` // The name of the compute global image capability schema version @@ -65,7 +65,7 @@ func (request GetComputeGlobalImageCapabilitySchemaVersionRequest) RetryPolicy() func (request GetComputeGlobalImageCapabilitySchemaVersionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_gpu_memory_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_gpu_memory_cluster_request_response.go new file mode 100644 index 0000000000..a3bc9d4164 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_gpu_memory_cluster_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// GetComputeGpuMemoryClusterRequest wrapper for the GetComputeGpuMemoryCluster operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGpuMemoryCluster.go.html to see an example of how to use GetComputeGpuMemoryClusterRequest. +type GetComputeGpuMemoryClusterRequest struct { + + // The OCID of the compute GPU memory cluster. + ComputeGpuMemoryClusterId *string `mandatory:"true" contributesTo:"path" name:"computeGpuMemoryClusterId"` + + // 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 GetComputeGpuMemoryClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetComputeGpuMemoryClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetComputeGpuMemoryClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetComputeGpuMemoryClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetComputeGpuMemoryClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetComputeGpuMemoryClusterResponse wrapper for the GetComputeGpuMemoryCluster operation +type GetComputeGpuMemoryClusterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeGpuMemoryCluster instance + ComputeGpuMemoryCluster `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 GetComputeGpuMemoryClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetComputeGpuMemoryClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_gpu_memory_fabric_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_gpu_memory_fabric_request_response.go new file mode 100644 index 0000000000..ff5b09353b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_gpu_memory_fabric_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// GetComputeGpuMemoryFabricRequest wrapper for the GetComputeGpuMemoryFabric operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeGpuMemoryFabric.go.html to see an example of how to use GetComputeGpuMemoryFabricRequest. +type GetComputeGpuMemoryFabricRequest struct { + + // The OCID of the compute GPU memory fabric. + ComputeGpuMemoryFabricId *string `mandatory:"true" contributesTo:"path" name:"computeGpuMemoryFabricId"` + + // 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 GetComputeGpuMemoryFabricRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetComputeGpuMemoryFabricRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetComputeGpuMemoryFabricRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetComputeGpuMemoryFabricRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetComputeGpuMemoryFabricRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetComputeGpuMemoryFabricResponse wrapper for the GetComputeGpuMemoryFabric operation +type GetComputeGpuMemoryFabricResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeGpuMemoryFabric instance + ComputeGpuMemoryFabric `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 GetComputeGpuMemoryFabricResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetComputeGpuMemoryFabricResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_host_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_host_group_request_response.go new file mode 100644 index 0000000000..11023b6308 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_host_group_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// GetComputeHostGroupRequest wrapper for the GetComputeHostGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeHostGroup.go.html to see an example of how to use GetComputeHostGroupRequest. +type GetComputeHostGroupRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group. + ComputeHostGroupId *string `mandatory:"true" contributesTo:"path" name:"computeHostGroupId"` + + // 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 GetComputeHostGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetComputeHostGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetComputeHostGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetComputeHostGroupRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetComputeHostGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetComputeHostGroupResponse wrapper for the GetComputeHostGroup operation +type GetComputeHostGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeHostGroup instance + ComputeHostGroup `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 GetComputeHostGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetComputeHostGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_host_request_response.go new file mode 100644 index 0000000000..ab63b21aba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_host_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// GetComputeHostRequest wrapper for the GetComputeHost operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeHost.go.html to see an example of how to use GetComputeHostRequest. +type GetComputeHostRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host. + ComputeHostId *string `mandatory:"true" contributesTo:"path" name:"computeHostId"` + + // 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 GetComputeHostRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetComputeHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetComputeHostRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetComputeHostRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetComputeHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetComputeHostResponse wrapper for the GetComputeHost operation +type GetComputeHostResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeHost instance + ComputeHost `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 GetComputeHostResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetComputeHostResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index b6a1d50538..9b255c76e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeImageCapabilitySchema.go.html to see an example of how to use GetComputeImageCapabilitySchemaRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetComputeImageCapabilitySchema.go.html to see an example of how to use GetComputeImageCapabilitySchemaRequest. type GetComputeImageCapabilitySchemaRequest struct { // The id of the compute image capability schema or the image ocid @@ -65,7 +65,7 @@ func (request GetComputeImageCapabilitySchemaRequest) RetryPolicy() *common.Retr func (request GetComputeImageCapabilitySchemaRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index a1fd31a8e6..71dd5fb5c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetConsoleHistoryContent.go.html to see an example of how to use GetConsoleHistoryContentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetConsoleHistoryContent.go.html to see an example of how to use GetConsoleHistoryContentRequest. type GetConsoleHistoryContentRequest struct { // The OCID of the console history. @@ -68,7 +68,7 @@ func (request GetConsoleHistoryContentRequest) RetryPolicy() *common.RetryPolicy func (request GetConsoleHistoryContentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_console_history_request_response.go index 88474deebd..066ae737f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_console_history_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetConsoleHistory.go.html to see an example of how to use GetConsoleHistoryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetConsoleHistory.go.html to see an example of how to use GetConsoleHistoryRequest. type GetConsoleHistoryRequest struct { // The OCID of the console history. @@ -62,7 +62,7 @@ func (request GetConsoleHistoryRequest) RetryPolicy() *common.RetryPolicy { func (request GetConsoleHistoryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 817f7b726e..91fbdcb0cf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,10 +16,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpeDeviceConfigContent.go.html to see an example of how to use GetCpeDeviceConfigContentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpeDeviceConfigContent.go.html to see an example of how to use GetCpeDeviceConfigContentRequest. type GetCpeDeviceConfigContentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` // Unique identifier for the request. @@ -63,7 +63,7 @@ func (request GetCpeDeviceConfigContentRequest) RetryPolicy() *common.RetryPolic func (request GetCpeDeviceConfigContentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 0a20ccb2ef..6379c082c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpeDeviceShape.go.html to see an example of how to use GetCpeDeviceShapeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpeDeviceShape.go.html to see an example of how to use GetCpeDeviceShapeRequest. type GetCpeDeviceShapeRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device shape. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device shape. CpeDeviceShapeId *string `mandatory:"true" contributesTo:"path" name:"cpeDeviceShapeId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetCpeDeviceShapeRequest) RetryPolicy() *common.RetryPolicy { func (request GetCpeDeviceShapeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_request_response.go index be311dfa5b..0a0ec33520 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpe.go.html to see an example of how to use GetCpeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCpe.go.html to see an example of how to use GetCpeRequest. type GetCpeRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetCpeRequest) RetryPolicy() *common.RetryPolicy { func (request GetCpeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index d80e3ade30..47a8fa2cdb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectGroup.go.html to see an example of how to use GetCrossConnectGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectGroup.go.html to see an example of how to use GetCrossConnectGroupRequest. type GetCrossConnectGroupRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetCrossConnectGroupRequest) RetryPolicy() *common.RetryPolicy { func (request GetCrossConnectGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 6c4522f847..352bdad884 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectLetterOfAuthority.go.html to see an example of how to use GetCrossConnectLetterOfAuthorityRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectLetterOfAuthority.go.html to see an example of how to use GetCrossConnectLetterOfAuthorityRequest. type GetCrossConnectLetterOfAuthorityRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetCrossConnectLetterOfAuthorityRequest) RetryPolicy() *common.Ret func (request GetCrossConnectLetterOfAuthorityRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_request_response.go index 97ee3f7bc2..ff22701b91 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnect.go.html to see an example of how to use GetCrossConnectRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnect.go.html to see an example of how to use GetCrossConnectRequest. type GetCrossConnectRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetCrossConnectRequest) RetryPolicy() *common.RetryPolicy { func (request GetCrossConnectRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 7c66b35d5a..1a36505048 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectStatus.go.html to see an example of how to use GetCrossConnectStatusRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetCrossConnectStatus.go.html to see an example of how to use GetCrossConnectStatusRequest. type GetCrossConnectStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetCrossConnectStatusRequest) RetryPolicy() *common.RetryPolicy { func (request GetCrossConnectStatusRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index a2ae6a292e..ccedba043f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDedicatedVmHost.go.html to see an example of how to use GetDedicatedVmHostRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDedicatedVmHost.go.html to see an example of how to use GetDedicatedVmHostRequest. type GetDedicatedVmHostRequest struct { // The OCID of the dedicated VM host. @@ -62,7 +62,7 @@ func (request GetDedicatedVmHostRequest) RetryPolicy() *common.RetryPolicy { func (request GetDedicatedVmHostRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_dhcp_options_request_response.go index 060e7a91f7..a01e9f8232 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_dhcp_options_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDhcpOptions.go.html to see an example of how to use GetDhcpOptionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDhcpOptions.go.html to see an example of how to use GetDhcpOptionsRequest. type GetDhcpOptionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the set of DHCP options. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { func (request GetDhcpOptionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_attachment_request_response.go index 26cad52544..981c5047f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_attachment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgAttachment.go.html to see an example of how to use GetDrgAttachmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgAttachment.go.html to see an example of how to use GetDrgAttachmentRequest. type GetDrgAttachmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { func (request GetDrgAttachmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index eb49490486..118bcf1894 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRedundancyStatus.go.html to see an example of how to use GetDrgRedundancyStatusRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRedundancyStatus.go.html to see an example of how to use GetDrgRedundancyStatusRequest. type GetDrgRedundancyStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetDrgRedundancyStatusRequest) RetryPolicy() *common.RetryPolicy { func (request GetDrgRedundancyStatusRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_request_response.go index 3d8bfc595a..ffbd43111b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrg.go.html to see an example of how to use GetDrgRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrg.go.html to see an example of how to use GetDrgRequest. type GetDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetDrgRequest) RetryPolicy() *common.RetryPolicy { func (request GetDrgRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 817c4a1d5f..626470ccf8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRouteDistribution.go.html to see an example of how to use GetDrgRouteDistributionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRouteDistribution.go.html to see an example of how to use GetDrgRouteDistributionRequest. type GetDrgRouteDistributionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. DrgRouteDistributionId *string `mandatory:"true" contributesTo:"path" name:"drgRouteDistributionId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetDrgRouteDistributionRequest) RetryPolicy() *common.RetryPolicy func (request GetDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index fe8d6793df..0d724b6eea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRouteTable.go.html to see an example of how to use GetDrgRouteTableRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetDrgRouteTable.go.html to see an example of how to use GetDrgRouteTableRequest. type GetDrgRouteTableRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. DrgRouteTableId *string `mandatory:"true" contributesTo:"path" name:"drgRouteTableId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetDrgRouteTableRequest) RetryPolicy() *common.RetryPolicy { func (request GetDrgRouteTableRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index d8d21d99ea..d903314f4d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetFastConnectProviderServiceKey.go.html to see an example of how to use GetFastConnectProviderServiceKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetFastConnectProviderServiceKey.go.html to see an example of how to use GetFastConnectProviderServiceKeyRequest. type GetFastConnectProviderServiceKeyRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the provider service. + // The OCID (https://docs.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 @@ -68,7 +68,7 @@ func (request GetFastConnectProviderServiceKeyRequest) RetryPolicy() *common.Ret func (request GetFastConnectProviderServiceKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index cb8abd7b4c..d4c52cf36b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetFastConnectProviderService.go.html to see an example of how to use GetFastConnectProviderServiceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetFastConnectProviderService.go.html to see an example of how to use GetFastConnectProviderServiceRequest. type GetFastConnectProviderServiceRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the provider service. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetFastConnectProviderServiceRequest) RetryPolicy() *common.RetryP func (request GetFastConnectProviderServiceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ce2a122fa3..cfeefb28b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionDeviceConfig.go.html to see an example of how to use GetIPSecConnectionDeviceConfigRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionDeviceConfig.go.html to see an example of how to use GetIPSecConnectionDeviceConfigRequest. type GetIPSecConnectionDeviceConfigRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetIPSecConnectionDeviceConfigRequest) RetryPolicy() *common.Retry func (request GetIPSecConnectionDeviceConfigRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 692a43f479..cbfe146027 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionDeviceStatus.go.html to see an example of how to use GetIPSecConnectionDeviceStatusRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionDeviceStatus.go.html to see an example of how to use GetIPSecConnectionDeviceStatusRequest. type GetIPSecConnectionDeviceStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetIPSecConnectionDeviceStatusRequest) RetryPolicy() *common.Retry func (request GetIPSecConnectionDeviceStatusRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 4277653ee3..e88e3d177d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnection.go.html to see an example of how to use GetIPSecConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnection.go.html to see an example of how to use GetIPSecConnectionRequest. type GetIPSecConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetIPSecConnectionRequest) RetryPolicy() *common.RetryPolicy { func (request GetIPSecConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 735a6a1d82..9a66075b9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnelError.go.html to see an example of how to use GetIPSecConnectionTunnelErrorRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnelError.go.html to see an example of how to use GetIPSecConnectionTunnelErrorRequest. type GetIPSecConnectionTunnelErrorRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. TunnelId *string `mandatory:"true" contributesTo:"path" name:"tunnelId"` // Unique Oracle-assigned identifier for the request. @@ -65,7 +65,7 @@ func (request GetIPSecConnectionTunnelErrorRequest) RetryPolicy() *common.RetryP func (request GetIPSecConnectionTunnelErrorRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ac82ac0978..65bfb82bc2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnel.go.html to see an example of how to use GetIPSecConnectionTunnelRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnel.go.html to see an example of how to use GetIPSecConnectionTunnelRequest. type GetIPSecConnectionTunnelRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. TunnelId *string `mandatory:"true" contributesTo:"path" name:"tunnelId"` // Unique Oracle-assigned identifier for the request. @@ -65,7 +65,7 @@ func (request GetIPSecConnectionTunnelRequest) RetryPolicy() *common.RetryPolicy func (request GetIPSecConnectionTunnelRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 6f8aa50513..c64bcb9978 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnelSharedSecret.go.html to see an example of how to use GetIPSecConnectionTunnelSharedSecretRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIPSecConnectionTunnelSharedSecret.go.html to see an example of how to use GetIPSecConnectionTunnelSharedSecretRequest. type GetIPSecConnectionTunnelSharedSecretRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. TunnelId *string `mandatory:"true" contributesTo:"path" name:"tunnelId"` // Unique Oracle-assigned identifier for the request. @@ -65,7 +65,7 @@ func (request GetIPSecConnectionTunnelSharedSecretRequest) RetryPolicy() *common func (request GetIPSecConnectionTunnelSharedSecretRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_image_request_response.go index 1ca828471b..acbc2073e9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_image_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetImage.go.html to see an example of how to use GetImageRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetImage.go.html to see an example of how to use GetImageRequest. type GetImageRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetImageRequest) RetryPolicy() *common.RetryPolicy { func (request GetImageRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index a3397b725a..f5dcb2a7c8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetImageShapeCompatibilityEntry.go.html to see an example of how to use GetImageShapeCompatibilityEntryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetImageShapeCompatibilityEntry.go.html to see an example of how to use GetImageShapeCompatibilityEntryRequest. type GetImageShapeCompatibilityEntryRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // Shape name. @@ -65,7 +65,7 @@ func (request GetImageShapeCompatibilityEntryRequest) RetryPolicy() *common.Retr func (request GetImageShapeCompatibilityEntryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_configuration_request_response.go index 906ab5913c..2165a0e3cc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_configuration_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceConfiguration.go.html to see an example of how to use GetInstanceConfigurationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceConfiguration.go.html to see an example of how to use GetInstanceConfigurationRequest. type GetInstanceConfigurationRequest struct { // The OCID of the instance configuration. @@ -62,7 +62,7 @@ func (request GetInstanceConfigurationRequest) RetryPolicy() *common.RetryPolicy func (request GetInstanceConfigurationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 44e90f3f5b..7471538257 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceConsoleConnection.go.html to see an example of how to use GetInstanceConsoleConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceConsoleConnection.go.html to see an example of how to use GetInstanceConsoleConnectionRequest. type GetInstanceConsoleConnectionRequest struct { // The OCID of the instance console connection. @@ -62,7 +62,7 @@ func (request GetInstanceConsoleConnectionRequest) RetryPolicy() *common.RetryPo func (request GetInstanceConsoleConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_maintenance_event_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_maintenance_event_request_response.go index aa192f1695..2eeac76be4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_maintenance_event_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_maintenance_event_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceMaintenanceEvent.go.html to see an example of how to use GetInstanceMaintenanceEventRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceMaintenanceEvent.go.html to see an example of how to use GetInstanceMaintenanceEventRequest. type GetInstanceMaintenanceEventRequest struct { // The OCID of the instance maintenance event. @@ -62,7 +62,7 @@ func (request GetInstanceMaintenanceEventRequest) RetryPolicy() *common.RetryPol func (request GetInstanceMaintenanceEventRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6ca3558e63..82110e4e19 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceMaintenanceReboot.go.html to see an example of how to use GetInstanceMaintenanceRebootRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstanceMaintenanceReboot.go.html to see an example of how to use GetInstanceMaintenanceRebootRequest. type GetInstanceMaintenanceRebootRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetInstanceMaintenanceRebootRequest) RetryPolicy() *common.RetryPo func (request GetInstanceMaintenanceRebootRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 4e59ee5550..1669a5dc5b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePoolInstance.go.html to see an example of how to use GetInstancePoolInstanceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePoolInstance.go.html to see an example of how to use GetInstancePoolInstanceRequest. type GetInstancePoolInstanceRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` // Unique Oracle-assigned identifier for the request. @@ -65,7 +65,7 @@ func (request GetInstancePoolInstanceRequest) RetryPolicy() *common.RetryPolicy func (request GetInstancePoolInstanceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 660d75a437..1cf6f51908 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePoolLoadBalancerAttachment.go.html to see an example of how to use GetInstancePoolLoadBalancerAttachmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePoolLoadBalancerAttachment.go.html to see an example of how to use GetInstancePoolLoadBalancerAttachmentRequest. type GetInstancePoolLoadBalancerAttachmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // The OCID of the load balancer attachment. @@ -65,7 +65,7 @@ func (request GetInstancePoolLoadBalancerAttachmentRequest) RetryPolicy() *commo func (request GetInstancePoolLoadBalancerAttachmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_request_response.go index 456cfd9458..6723549270 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePool.go.html to see an example of how to use GetInstancePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstancePool.go.html to see an example of how to use GetInstancePoolRequest. type GetInstancePoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetInstancePoolRequest) RetryPolicy() *common.RetryPolicy { func (request GetInstancePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_request_response.go index 1167920480..193fb4b921 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstance.go.html to see an example of how to use GetInstanceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInstance.go.html to see an example of how to use GetInstanceRequest. type GetInstanceRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetInstanceRequest) RetryPolicy() *common.RetryPolicy { func (request GetInstanceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internet_gateway_request_response.go index 82d7c0ae1d..6537ed6b36 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internet_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInternetGateway.go.html to see an example of how to use GetInternetGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetInternetGateway.go.html to see an example of how to use GetInternetGatewayRequest. type GetInternetGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internet gateway. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetInternetGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request GetInternetGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ip_inventory_vcn_overlap_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ip_inventory_vcn_overlap_details.go index b9dce48078..caa2d0e126 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ip_inventory_vcn_overlap_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ip_inventory_vcn_overlap_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -27,7 +27,7 @@ type GetIpInventoryVcnOverlapDetails struct { // Lists the selected regions. RegionList []string `mandatory:"true" json:"regionList"` - // The list of OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartments. + // The list of OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartments. CompartmentList []string `mandatory:"true" json:"compartmentList"` } @@ -42,7 +42,7 @@ func (m GetIpInventoryVcnOverlapDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 75d4d7fe72..aa8ed47a78 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,10 +16,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIpsecCpeDeviceConfigContent.go.html to see an example of how to use GetIpsecCpeDeviceConfigContentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIpsecCpeDeviceConfigContent.go.html to see an example of how to use GetIpsecCpeDeviceConfigContentRequest. type GetIpsecCpeDeviceConfigContentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. @@ -63,7 +63,7 @@ func (request GetIpsecCpeDeviceConfigContentRequest) RetryPolicy() *common.Retry func (request GetIpsecCpeDeviceConfigContentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ipv6_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ipv6_request_response.go index f6410d4692..86e3e093f6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ipv6_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ipv6_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIpv6.go.html to see an example of how to use GetIpv6Request. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetIpv6.go.html to see an example of how to use GetIpv6Request. type GetIpv6Request struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6. Ipv6Id *string `mandatory:"true" contributesTo:"path" name:"ipv6Id"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetIpv6Request) RetryPolicy() *common.RetryPolicy { func (request GetIpv6Request) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index e79b0d3a2c..4235ef2aa3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetLocalPeeringGateway.go.html to see an example of how to use GetLocalPeeringGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetLocalPeeringGateway.go.html to see an example of how to use GetLocalPeeringGatewayRequest. type GetLocalPeeringGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering gateway. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetLocalPeeringGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request GetLocalPeeringGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 5a339c0d35..7b1d90f416 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetMeasuredBootReport.go.html to see an example of how to use GetMeasuredBootReportRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetMeasuredBootReport.go.html to see an example of how to use GetMeasuredBootReportRequest. type GetMeasuredBootReportRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetMeasuredBootReportRequest) RetryPolicy() *common.RetryPolicy { func (request GetMeasuredBootReportRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_nat_gateway_request_response.go index 22aee7ec2c..efef9131b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_nat_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_nat_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNatGateway.go.html to see an example of how to use GetNatGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNatGateway.go.html to see an example of how to use GetNatGatewayRequest. type GetNatGatewayRequest struct { - // The NAT gateway's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The NAT gateway's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). NatGatewayId *string `mandatory:"true" contributesTo:"path" name:"natGatewayId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetNatGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request GetNatGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index e72ebc1af6..560d2a1d5b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNetworkSecurityGroup.go.html to see an example of how to use GetNetworkSecurityGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNetworkSecurityGroup.go.html to see an example of how to use GetNetworkSecurityGroupRequest. type GetNetworkSecurityGroupRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetNetworkSecurityGroupRequest) RetryPolicy() *common.RetryPolicy func (request GetNetworkSecurityGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 87e471ef4c..bf7cb2d2fd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNetworkingTopology.go.html to see an example of how to use GetNetworkingTopologyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetNetworkingTopology.go.html to see an example of how to use GetNetworkingTopologyRequest. type GetNetworkingTopologyRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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`. @@ -90,7 +90,7 @@ func (request GetNetworkingTopologyRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_ip_request_response.go index 01e12b6ede..e09e8b0b09 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_ip_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPrivateIp.go.html to see an example of how to use GetPrivateIpRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPrivateIp.go.html to see an example of how to use GetPrivateIpRequest. type GetPrivateIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP or IPv6. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetPrivateIpRequest) RetryPolicy() *common.RetryPolicy { func (request GetPrivateIpRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f0a896c5c8..de7c64a205 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m GetPublicIpByIpAddressDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index f11720b918..4819aebd18 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpByIpAddress.go.html to see an example of how to use GetPublicIpByIpAddressRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpByIpAddress.go.html to see an example of how to use GetPublicIpByIpAddressRequest. type GetPublicIpByIpAddressRequest struct { // IP address details for fetching the public IP. @@ -62,7 +62,7 @@ func (request GetPublicIpByIpAddressRequest) RetryPolicy() *common.RetryPolicy { func (request GetPublicIpByIpAddressRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5597121d7e..50bf630b73 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP. PrivateIpId *string `mandatory:"true" json:"privateIpId"` } @@ -39,7 +39,7 @@ func (m GetPublicIpByPrivateIpIdDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 1d4a7c16a8..286971e5a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpByPrivateIpId.go.html to see an example of how to use GetPublicIpByPrivateIpIdRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpByPrivateIpId.go.html to see an example of how to use GetPublicIpByPrivateIpIdRequest. type GetPublicIpByPrivateIpIdRequest struct { // Private IP details for fetching the public IP. @@ -62,7 +62,7 @@ func (request GetPublicIpByPrivateIpIdRequest) RetryPolicy() *common.RetryPolicy func (request GetPublicIpByPrivateIpIdRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 813622ae0b..1885a4731b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpPool.go.html to see an example of how to use GetPublicIpPoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIpPool.go.html to see an example of how to use GetPublicIpPoolRequest. type GetPublicIpPoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. PublicIpPoolId *string `mandatory:"true" contributesTo:"path" name:"publicIpPoolId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetPublicIpPoolRequest) RetryPolicy() *common.RetryPolicy { func (request GetPublicIpPoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_request_response.go index f7c5f6533b..600231b817 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIp.go.html to see an example of how to use GetPublicIpRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetPublicIp.go.html to see an example of how to use GetPublicIpRequest. type GetPublicIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetPublicIpRequest) RetryPolicy() *common.RetryPolicy { func (request GetPublicIpRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 659b22d30a..234400fe16 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetRemotePeeringConnection.go.html to see an example of how to use GetRemotePeeringConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetRemotePeeringConnection.go.html to see an example of how to use GetRemotePeeringConnectionRequest. type GetRemotePeeringConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetRemotePeeringConnectionRequest) RetryPolicy() *common.RetryPoli func (request GetRemotePeeringConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_resource_ip_inventory_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_resource_ip_inventory_request_response.go index 9cea79e8d1..6e7536cf31 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_resource_ip_inventory_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_resource_ip_inventory_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetResourceIpInventory.go.html to see an example of how to use GetResourceIpInventoryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetResourceIpInventory.go.html to see an example of how to use GetResourceIpInventoryRequest. type GetResourceIpInventoryRequest struct { // Specify the ID of the resource. @@ -62,7 +62,7 @@ func (request GetResourceIpInventoryRequest) RetryPolicy() *common.RetryPolicy { func (request GetResourceIpInventoryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -81,7 +81,7 @@ type GetResourceIpInventoryResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_route_table_request_response.go index ba486c968e..21fd3dfd8e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_route_table_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetRouteTable.go.html to see an example of how to use GetRouteTableRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetRouteTable.go.html to see an example of how to use GetRouteTableRequest. type GetRouteTableRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetRouteTableRequest) RetryPolicy() *common.RetryPolicy { func (request GetRouteTableRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_security_list_request_response.go index ea54b369c7..3b6fb9c2ca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_security_list_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSecurityList.go.html to see an example of how to use GetSecurityListRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSecurityList.go.html to see an example of how to use GetSecurityListRequest. type GetSecurityListRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the security list. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetSecurityListRequest) RetryPolicy() *common.RetryPolicy { func (request GetSecurityListRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_gateway_request_response.go index f39cef54c3..9c3c040a65 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetServiceGateway.go.html to see an example of how to use GetServiceGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetServiceGateway.go.html to see an example of how to use GetServiceGatewayRequest. type GetServiceGatewayRequest struct { - // The service gateway's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The service gateway's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). ServiceGatewayId *string `mandatory:"true" contributesTo:"path" name:"serviceGatewayId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetServiceGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request GetServiceGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_request_response.go index 9c4117e41e..5fe4e9c9ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetService.go.html to see an example of how to use GetServiceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetService.go.html to see an example of how to use GetServiceRequest. type GetServiceRequest struct { - // The service's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The service's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). ServiceId *string `mandatory:"true" contributesTo:"path" name:"serviceId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetServiceRequest) RetryPolicy() *common.RetryPolicy { func (request GetServiceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_cidr_utilization_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_cidr_utilization_request_response.go index 095625a330..1465f615af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_cidr_utilization_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_cidr_utilization_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetCidrUtilization.go.html to see an example of how to use GetSubnetCidrUtilizationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetCidrUtilization.go.html to see an example of how to use GetSubnetCidrUtilizationRequest. type GetSubnetCidrUtilizationRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetSubnetCidrUtilizationRequest) RetryPolicy() *common.RetryPolicy func (request GetSubnetCidrUtilizationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_ip_inventory_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_ip_inventory_request_response.go index 23664686e3..c1a4f033ee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_ip_inventory_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_ip_inventory_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetIpInventory.go.html to see an example of how to use GetSubnetIpInventoryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetIpInventory.go.html to see an example of how to use GetSubnetIpInventoryRequest. type GetSubnetIpInventoryRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetSubnetIpInventoryRequest) RetryPolicy() *common.RetryPolicy { func (request GetSubnetIpInventoryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_request_response.go index 429d1260aa..0aefdb78fb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnet.go.html to see an example of how to use GetSubnetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnet.go.html to see an example of how to use GetSubnetRequest. type GetSubnetRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // Specify the OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetSubnetRequest) RetryPolicy() *common.RetryPolicy { func (request GetSubnetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3a8743b0f5..11be4a0039 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetTopology.go.html to see an example of how to use GetSubnetTopologyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetSubnetTopology.go.html to see an example of how to use GetSubnetTopologyRequest. type GetSubnetTopologyRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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`. @@ -93,7 +93,7 @@ func (request GetSubnetTopologyRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 052f08d0b0..c2e5ebb766 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,13 +16,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetTunnelCpeDeviceConfigContent.go.html to see an example of how to use GetTunnelCpeDeviceConfigContentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetTunnelCpeDeviceConfigContent.go.html to see an example of how to use GetTunnelCpeDeviceConfigContentRequest. type GetTunnelCpeDeviceConfigContentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. TunnelId *string `mandatory:"true" contributesTo:"path" name:"tunnelId"` // Unique identifier for the request. @@ -66,7 +66,7 @@ func (request GetTunnelCpeDeviceConfigContentRequest) RetryPolicy() *common.Retr func (request GetTunnelCpeDeviceConfigContentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index a0c263c625..170e853771 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetTunnelCpeDeviceConfig.go.html to see an example of how to use GetTunnelCpeDeviceConfigRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetTunnelCpeDeviceConfig.go.html to see an example of how to use GetTunnelCpeDeviceConfigRequest. type GetTunnelCpeDeviceConfigRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. TunnelId *string `mandatory:"true" contributesTo:"path" name:"tunnelId"` // Unique identifier for the request. @@ -65,7 +65,7 @@ func (request GetTunnelCpeDeviceConfigRequest) RetryPolicy() *common.RetryPolicy func (request GetTunnelCpeDeviceConfigRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_upgrade_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_upgrade_status_request_response.go index b86452da49..2365f78ded 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_upgrade_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_upgrade_status_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetUpgradeStatus.go.html to see an example of how to use GetUpgradeStatusRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetUpgradeStatus.go.html to see an example of how to use GetUpgradeStatusRequest. type GetUpgradeStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetUpgradeStatusRequest) RetryPolicy() *common.RetryPolicy { func (request GetUpgradeStatusRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 12faf25b35..71758e3b4f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnDnsResolverAssociation.go.html to see an example of how to use GetVcnDnsResolverAssociationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnDnsResolverAssociation.go.html to see an example of how to use GetVcnDnsResolverAssociationRequest. type GetVcnDnsResolverAssociationRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetVcnDnsResolverAssociationRequest) RetryPolicy() *common.RetryPo func (request GetVcnDnsResolverAssociationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_overlap_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_overlap_request_response.go index 27f0f49897..7517b06a34 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_overlap_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_overlap_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnOverlap.go.html to see an example of how to use GetVcnOverlapRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnOverlap.go.html to see an example of how to use GetVcnOverlapRequest. type GetVcnOverlapRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // Lists details of the IP Inventory VCN overlap data. @@ -72,7 +72,7 @@ func (request GetVcnOverlapRequest) RetryPolicy() *common.RetryPolicy { func (request GetVcnOverlapRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,16 +96,16 @@ type GetVcnOverlapResponse struct { // For list pagination. A pagination token to get the total number of results available. OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` - // 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) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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"` // The IpInventory API current state. LifecycleState GetVcnOverlapLifecycleStateEnum `presentIn:"header" name:"lifecycle-state"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + // Use GetWorkRequest (https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the resource. DataRequestId *string `presentIn:"header" name:"data-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_request_response.go index 7be8c56ea5..8a5c51b4b2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcn.go.html to see an example of how to use GetVcnRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcn.go.html to see an example of how to use GetVcnRequest. type GetVcnRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetVcnRequest) RetryPolicy() *common.RetryPolicy { func (request GetVcnRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 22e595f7a6..483e9c8eae 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnTopology.go.html to see an example of how to use GetVcnTopologyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVcnTopology.go.html to see an example of how to use GetVcnTopologyRequest. type GetVcnTopologyRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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`. @@ -93,7 +93,7 @@ func (request GetVcnTopologyRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_virtual_circuit_request_response.go index c28d632d2d..ff23aedf05 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_virtual_circuit_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVirtualCircuit.go.html to see an example of how to use GetVirtualCircuitRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVirtualCircuit.go.html to see an example of how to use GetVirtualCircuitRequest. type GetVirtualCircuitRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetVirtualCircuitRequest) RetryPolicy() *common.RetryPolicy { func (request GetVirtualCircuitRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vlan_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vlan_request_response.go index 715bc11988..b655a90ca6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vlan_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vlan_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVlan.go.html to see an example of how to use GetVlanRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVlan.go.html to see an example of how to use GetVlanRequest. type GetVlanRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. VlanId *string `mandatory:"true" contributesTo:"path" name:"vlanId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetVlanRequest) RetryPolicy() *common.RetryPolicy { func (request GetVlanRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_attachment_request_response.go index 1d26de8787..ae65bb58a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_attachment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVnicAttachment.go.html to see an example of how to use GetVnicAttachmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVnicAttachment.go.html to see an example of how to use GetVnicAttachmentRequest. type GetVnicAttachmentRequest struct { // The OCID of the VNIC attachment. @@ -62,7 +62,7 @@ func (request GetVnicAttachmentRequest) RetryPolicy() *common.RetryPolicy { func (request GetVnicAttachmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_request_response.go index 688991b847..c3f3c77355 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVnic.go.html to see an example of how to use GetVnicRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVnic.go.html to see an example of how to use GetVnicRequest. type GetVnicRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request GetVnicRequest) RetryPolicy() *common.RetryPolicy { func (request GetVnicRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_attachment_request_response.go index 89200b4f87..ab4aea984e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_attachment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeAttachment.go.html to see an example of how to use GetVolumeAttachmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeAttachment.go.html to see an example of how to use GetVolumeAttachmentRequest. type GetVolumeAttachmentRequest struct { // The OCID of the volume attachment. @@ -62,7 +62,7 @@ func (request GetVolumeAttachmentRequest) RetryPolicy() *common.RetryPolicy { func (request GetVolumeAttachmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index a7788fcb1f..f8b7ecdc7d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicyAssetAssignment.go.html to see an example of how to use GetVolumeBackupPolicyAssetAssignmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicyAssetAssignment.go.html to see an example of how to use GetVolumeBackupPolicyAssetAssignmentRequest. type GetVolumeBackupPolicyAssetAssignmentRequest struct { // The OCID of an asset (e.g. a volume). @@ -23,13 +23,13 @@ type GetVolumeBackupPolicyAssetAssignmentRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -73,7 +73,7 @@ func (request GetVolumeBackupPolicyAssetAssignmentRequest) RetryPolicy() *common func (request GetVolumeBackupPolicyAssetAssignmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type GetVolumeBackupPolicyAssetAssignmentResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 0f8917205f..87413b36dc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicyAssignment.go.html to see an example of how to use GetVolumeBackupPolicyAssignmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicyAssignment.go.html to see an example of how to use GetVolumeBackupPolicyAssignmentRequest. type GetVolumeBackupPolicyAssignmentRequest struct { // The OCID of the volume backup policy assignment. @@ -62,7 +62,7 @@ func (request GetVolumeBackupPolicyAssignmentRequest) RetryPolicy() *common.Retr func (request GetVolumeBackupPolicyAssignmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c4464cf674..2b303177b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicy.go.html to see an example of how to use GetVolumeBackupPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackupPolicy.go.html to see an example of how to use GetVolumeBackupPolicyRequest. type GetVolumeBackupPolicyRequest struct { // The OCID of the volume backup policy. @@ -62,7 +62,7 @@ func (request GetVolumeBackupPolicyRequest) RetryPolicy() *common.RetryPolicy { func (request GetVolumeBackupPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_request_response.go index a71da808e6..6a736c146a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackup.go.html to see an example of how to use GetVolumeBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeBackup.go.html to see an example of how to use GetVolumeBackupRequest. type GetVolumeBackupRequest struct { // The OCID of the volume backup. @@ -62,7 +62,7 @@ func (request GetVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { func (request GetVolumeBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 44ef4e50df..16a9e1510f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroupBackup.go.html to see an example of how to use GetVolumeGroupBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroupBackup.go.html to see an example of how to use GetVolumeGroupBackupRequest. type GetVolumeGroupBackupRequest struct { // The Oracle Cloud ID (OCID) that uniquely identifies the volume group backup. @@ -62,7 +62,7 @@ func (request GetVolumeGroupBackupRequest) RetryPolicy() *common.RetryPolicy { func (request GetVolumeGroupBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index a19e4d7f21..0a083e6cc1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroupReplica.go.html to see an example of how to use GetVolumeGroupReplicaRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroupReplica.go.html to see an example of how to use GetVolumeGroupReplicaRequest. type GetVolumeGroupReplicaRequest struct { // The OCID of the volume replica group. @@ -62,7 +62,7 @@ func (request GetVolumeGroupReplicaRequest) RetryPolicy() *common.RetryPolicy { func (request GetVolumeGroupReplicaRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_request_response.go index cc7074ddda..a01ded7789 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroup.go.html to see an example of how to use GetVolumeGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeGroup.go.html to see an example of how to use GetVolumeGroupRequest. type GetVolumeGroupRequest struct { // The Oracle Cloud ID (OCID) that uniquely identifies the volume group. @@ -62,7 +62,7 @@ func (request GetVolumeGroupRequest) RetryPolicy() *common.RetryPolicy { func (request GetVolumeGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index d263481de1..b6fa59349c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeKmsKey.go.html to see an example of how to use GetVolumeKmsKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolumeKmsKey.go.html to see an example of how to use GetVolumeKmsKeyRequest. type GetVolumeKmsKeyRequest struct { // The OCID of the volume. @@ -67,7 +67,7 @@ func (request GetVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { func (request GetVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_request_response.go index da567c3817..b4bb057ef0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolume.go.html to see an example of how to use GetVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVolume.go.html to see an example of how to use GetVolumeRequest. type GetVolumeRequest struct { // The OCID of the volume. @@ -62,7 +62,7 @@ func (request GetVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request GetVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vtap_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vtap_request_response.go index 61e36fb59a..782153f19e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vtap_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vtap_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVtap.go.html to see an example of how to use GetVtapRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetVtap.go.html to see an example of how to use GetVtapRequest. type GetVtapRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP. VtapId *string `mandatory:"true" contributesTo:"path" name:"vtapId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetVtapRequest) RetryPolicy() *common.RetryPolicy { func (request GetVtapRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 0b98b50b5d..eb1f8161aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetWindowsInstanceInitialCredentials.go.html to see an example of how to use GetWindowsInstanceInitialCredentialsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/GetWindowsInstanceInitialCredentials.go.html to see an example of how to use GetWindowsInstanceInitialCredentialsRequest. type GetWindowsInstanceInitialCredentialsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` // Unique Oracle-assigned identifier for the request. @@ -62,7 +62,7 @@ func (request GetWindowsInstanceInitialCredentialsRequest) RetryPolicy() *common func (request GetWindowsInstanceInitialCredentialsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/host_group_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/host_group_configuration.go new file mode 100644 index 0000000000..bf856e2aa4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/host_group_configuration.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HostGroupConfiguration Host group configuration +type HostGroupConfiguration struct { + + // Either the platform name or compute shape that the configuration is targeting + Target *string `mandatory:"false" json:"target"` + + // The OCID for firmware bundle + FirmwareBundleId *string `mandatory:"false" json:"firmwareBundleId"` + + // Preferred recycle level for hosts associated with the reservation config. + // * `SKIP_RECYCLE` - Skips host wipe. + // * `FULL_RECYCLE` - Does not skip host wipe. This is the default behavior. + RecycleLevel HostGroupConfigurationRecycleLevelEnum `mandatory:"false" json:"recycleLevel,omitempty"` +} + +func (m HostGroupConfiguration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HostGroupConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingHostGroupConfigurationRecycleLevelEnum(string(m.RecycleLevel)); !ok && m.RecycleLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecycleLevel: %s. Supported values are: %s.", m.RecycleLevel, strings.Join(GetHostGroupConfigurationRecycleLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// HostGroupConfigurationRecycleLevelEnum Enum with underlying type: string +type HostGroupConfigurationRecycleLevelEnum string + +// Set of constants representing the allowable values for HostGroupConfigurationRecycleLevelEnum +const ( + HostGroupConfigurationRecycleLevelSkipRecycle HostGroupConfigurationRecycleLevelEnum = "SKIP_RECYCLE" + HostGroupConfigurationRecycleLevelFullRecycle HostGroupConfigurationRecycleLevelEnum = "FULL_RECYCLE" +) + +var mappingHostGroupConfigurationRecycleLevelEnum = map[string]HostGroupConfigurationRecycleLevelEnum{ + "SKIP_RECYCLE": HostGroupConfigurationRecycleLevelSkipRecycle, + "FULL_RECYCLE": HostGroupConfigurationRecycleLevelFullRecycle, +} + +var mappingHostGroupConfigurationRecycleLevelEnumLowerCase = map[string]HostGroupConfigurationRecycleLevelEnum{ + "skip_recycle": HostGroupConfigurationRecycleLevelSkipRecycle, + "full_recycle": HostGroupConfigurationRecycleLevelFullRecycle, +} + +// GetHostGroupConfigurationRecycleLevelEnumValues Enumerates the set of values for HostGroupConfigurationRecycleLevelEnum +func GetHostGroupConfigurationRecycleLevelEnumValues() []HostGroupConfigurationRecycleLevelEnum { + values := make([]HostGroupConfigurationRecycleLevelEnum, 0) + for _, v := range mappingHostGroupConfigurationRecycleLevelEnum { + values = append(values, v) + } + return values +} + +// GetHostGroupConfigurationRecycleLevelEnumStringValues Enumerates the set of values in String for HostGroupConfigurationRecycleLevelEnum +func GetHostGroupConfigurationRecycleLevelEnumStringValues() []string { + return []string{ + "SKIP_RECYCLE", + "FULL_RECYCLE", + } +} + +// GetMappingHostGroupConfigurationRecycleLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingHostGroupConfigurationRecycleLevelEnum(val string) (HostGroupConfigurationRecycleLevelEnum, bool) { + enum, ok := mappingHostGroupConfigurationRecycleLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/host_group_placement_constraint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/host_group_placement_constraint_details.go new file mode 100644 index 0000000000..c8f2af12d8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/host_group_placement_constraint_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HostGroupPlacementConstraintDetails The details for providing placement constraints using the compute host group OCID. +type HostGroupPlacementConstraintDetails struct { + + // The OCID of the compute host group. This is only available for dedicated capacity customers. + ComputeHostGroupId *string `mandatory:"true" json:"computeHostGroupId"` +} + +func (m HostGroupPlacementConstraintDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HostGroupPlacementConstraintDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m HostGroupPlacementConstraintDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeHostGroupPlacementConstraintDetails HostGroupPlacementConstraintDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeHostGroupPlacementConstraintDetails + }{ + "HOST_GROUP", + (MarshalTypeHostGroupPlacementConstraintDetails)(m), + } + + return json.Marshal(&s) +} 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 index 8bd2559106..0a9068ce90 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -207,7 +207,7 @@ func (m IScsiVolumeAttachment) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6bf1ab9715..ab23e044a3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -50,7 +50,7 @@ func (m IcmpOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 4342b773d1..4b0e864d0e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/image.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,10 +22,10 @@ import ( ) // 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). +// Overview of the Compute Service (https://docs.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). +// Getting Started with Policies (https://docs.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 { @@ -59,7 +59,7 @@ type Image struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -70,7 +70,7 @@ type Image struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -118,7 +118,7 @@ func (m Image) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index fb9fafbdef..cdbe027d95 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -72,7 +72,7 @@ func (m *imagecapabilityschemadescriptor) UnmarshalPolymorphicJSON(data []byte) err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for ImageCapabilitySchemaDescriptor: %s.", m.DescriptorType) + common.Logf("Received unsupported enum value for ImageCapabilitySchemaDescriptor: %s.", m.DescriptorType) return *m, nil } } @@ -96,7 +96,7 @@ func (m imagecapabilityschemadescriptor) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 45ae36f90b..ff40026c96 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ImageMemoryConstraints) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 878b8cb14b..7ff7ae7ddf 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ImageOcpuConstraints) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 785f08505b..127493c97f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -46,7 +46,7 @@ func (m ImageShapeCompatibilityEntry) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 31e857b689..6d26980718 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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). + // The image OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). ImageId *string `mandatory:"true" json:"imageId"` // The shape name. @@ -46,7 +46,7 @@ func (m ImageShapeCompatibilitySummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e8d7127389..9a7fff34eb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -78,7 +78,7 @@ func (m *imagesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for ImageSourceDetails: %s.", m.SourceType) + common.Logf("Received unsupported enum value for ImageSourceDetails: %s.", m.SourceType) return *m, nil } } @@ -112,7 +112,7 @@ func (m imagesourcedetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bf59d45a02..170c095023 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -72,7 +72,7 @@ func (m ImageSourceViaObjectStorageTupleDetails) ValidateEnumValue() (bool, erro 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 941839ab7f..d7467ebea5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -66,7 +66,7 @@ func (m ImageSourceViaObjectStorageUriDetails) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", 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 index 1d30374cb4..0be6ada57b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -35,7 +35,7 @@ type IngressSecurityRule struct { // 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). + // IPv6 Addresses (https://docs.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`. @@ -79,7 +79,7 @@ func (m IngressSecurityRule) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ecbabf6164..ddb8157c59 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -34,10 +34,10 @@ import ( // operation to get the VNIC ID for the instance, and then call // GetVnic with the VNIC ID. // For more information, see -// Overview of the Compute Service (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm). +// Overview of the Compute Service (https://docs.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). +// Getting Started with Policies (https://docs.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 { @@ -72,9 +72,14 @@ type Instance struct { // 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). + // For more information, see Capacity Reservations (https://docs.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` + PlacementConstraintDetails PlacementConstraintDetails `mandatory:"false" json:"placementConstraintDetails"` + + // Whether AI enterprise is enabled on the instance. + IsAIEnterpriseEnabled *bool `mandatory:"false" json:"isAIEnterpriseEnabled"` + // The OCID of the cluster placement group of the instance. ClusterPlacementGroupId *string `mandatory:"false" json:"clusterPlacementGroupId"` @@ -82,11 +87,13 @@ type Instance struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` @@ -114,7 +121,7 @@ type Instance struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -142,7 +149,7 @@ type Instance struct { // 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). + // Bring Your Own Image (https://docs.oracle.com/iaas/Content/Compute/References/bringyourownimage.htm). // For more information about iPXE, see http://ipxe.org. IpxeScript *string `mandatory:"false" json:"ipxeScript"` @@ -187,6 +194,9 @@ type Instance struct { // The OCID of the Instance Configuration used to source launch details for this instance. Any other fields supplied in the instance launch request override the details stored in the Instance Configuration for this instance launch. InstanceConfigurationId *string `mandatory:"false" json:"instanceConfigurationId"` + + // List of licensing configurations associated with the instance. + LicensingConfigs []LicensingConfig `mandatory:"false" json:"licensingConfigs"` } func (m Instance) String() string { @@ -209,7 +219,7 @@ func (m Instance) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LaunchMode: %s. Supported values are: %s.", m.LaunchMode, strings.Join(GetInstanceLaunchModeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -217,39 +227,42 @@ func (m Instance) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *Instance) UnmarshalJSON(data []byte) (e error) { model := struct { - CapacityReservationId *string `json:"capacityReservationId"` - ClusterPlacementGroupId *string `json:"clusterPlacementGroupId"` - DedicatedVmHostId *string `json:"dedicatedVmHostId"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - SecurityAttributesState InstanceSecurityAttributesStateEnum `json:"securityAttributesState"` - 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"` - IsCrossNumaNode *bool `json:"isCrossNumaNode"` - SourceDetails instancesourcedetails `json:"sourceDetails"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - AgentConfig *InstanceAgentConfig `json:"agentConfig"` - TimeMaintenanceRebootDue *common.SDKTime `json:"timeMaintenanceRebootDue"` - PlatformConfig platformconfig `json:"platformConfig"` - InstanceConfigurationId *string `json:"instanceConfigurationId"` - 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"` + CapacityReservationId *string `json:"capacityReservationId"` + PlacementConstraintDetails placementconstraintdetails `json:"placementConstraintDetails"` + IsAIEnterpriseEnabled *bool `json:"isAIEnterpriseEnabled"` + ClusterPlacementGroupId *string `json:"clusterPlacementGroupId"` + DedicatedVmHostId *string `json:"dedicatedVmHostId"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` + SecurityAttributesState InstanceSecurityAttributesStateEnum `json:"securityAttributesState"` + 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"` + IsCrossNumaNode *bool `json:"isCrossNumaNode"` + SourceDetails instancesourcedetails `json:"sourceDetails"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + AgentConfig *InstanceAgentConfig `json:"agentConfig"` + TimeMaintenanceRebootDue *common.SDKTime `json:"timeMaintenanceRebootDue"` + PlatformConfig platformconfig `json:"platformConfig"` + InstanceConfigurationId *string `json:"instanceConfigurationId"` + LicensingConfigs []LicensingConfig `json:"licensingConfigs"` + 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) @@ -259,6 +272,18 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) { var nn interface{} m.CapacityReservationId = model.CapacityReservationId + nn, e = model.PlacementConstraintDetails.UnmarshalPolymorphicJSON(model.PlacementConstraintDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.PlacementConstraintDetails = nn.(PlacementConstraintDetails) + } else { + m.PlacementConstraintDetails = nil + } + + m.IsAIEnterpriseEnabled = model.IsAIEnterpriseEnabled + m.ClusterPlacementGroupId = model.ClusterPlacementGroupId m.DedicatedVmHostId = model.DedicatedVmHostId @@ -325,6 +350,8 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) { m.InstanceConfigurationId = model.InstanceConfigurationId + m.LicensingConfigs = make([]LicensingConfig, len(model.LicensingConfigs)) + copy(m.LicensingConfigs, model.LicensingConfigs) m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId 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 index d8986c2c7e..ca89633d74 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/InstanceAction.go.html to see an example of how to use InstanceActionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/InstanceAction.go.html to see an example of how to use InstanceActionRequest. type InstanceActionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.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. @@ -83,7 +83,7 @@ func (request InstanceActionRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_config.go index bc06d31b6c..a5a777e8f9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -52,7 +52,7 @@ type InstanceAgentConfig struct { // Whether Oracle Cloud Agent can run all of the available plugins. // This includes the management and monitoring plugins. // 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). + // Managing Plugins with Oracle Cloud Agent (https://docs.oracle.com/iaas/Content/Compute/Tasks/manage-plugins.htm). AreAllPluginsDisabled *bool `mandatory:"false" json:"areAllPluginsDisabled"` // The configuration of plugins associated with this instance. @@ -70,7 +70,7 @@ func (m InstanceAgentConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index cbb3869cc3..8958d2a83a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m InstanceAgentFeatures) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 12b5da62e3..3ce64c09a2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -27,7 +27,7 @@ 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). + // Managing Plugins with Oracle Cloud Agent (https://docs.oracle.com/iaas/Content/Compute/Tasks/manage-plugins.htm). Name *string `mandatory:"true" json:"name"` // Whether the plugin should be enabled or disabled. @@ -50,7 +50,7 @@ func (m InstanceAgentPluginConfigDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 42c0c5d3d1..dbc872af7b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -50,7 +50,7 @@ func (m InstanceAvailabilityConfig) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration.go index bb9e8e9026..02bfab322d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,14 +24,14 @@ import ( // InstanceConfiguration An instance configuration is a template that defines the settings to use when creating Compute instances. // For more information about instance configurations, see -// Managing Compute Instances (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm). +// Managing Compute Instances (https://docs.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm). type InstanceConfiguration struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment // containing the instance configuration. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) 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). @@ -39,7 +39,7 @@ type InstanceConfiguration struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -48,7 +48,7 @@ type InstanceConfiguration struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -71,7 +71,7 @@ func (m InstanceConfiguration) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_milan_bm_gpu_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_milan_bm_gpu_launch_instance_platform_config.go index 5353cec2f6..7215e42ac0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_milan_bm_gpu_launch_instance_platform_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_milan_bm_gpu_launch_instance_platform_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfig) Validate } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -126,6 +126,7 @@ const ( InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1 InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2 InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4 InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" + InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6 InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingInstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -133,6 +134,7 @@ var mappingInstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNod "NPS1": InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "NPS2": InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "NPS4": InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "NPS6": InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } var mappingInstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -140,6 +142,7 @@ var mappingInstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNod "nps1": InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "nps2": InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "nps4": InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "nps6": InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } // GetInstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum @@ -158,6 +161,7 @@ func GetInstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfigNumaNodesP "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index deb629f8b5..3d40fe9c9b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -106,7 +106,7 @@ func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) ValidateEnu } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -134,6 +134,7 @@ const ( InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" + InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -141,6 +142,7 @@ var mappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesP "NPS1": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "NPS2": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "NPS4": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "NPS6": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } var mappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -148,6 +150,7 @@ var mappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesP "nps1": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "nps2": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "nps4": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "nps6": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } // GetInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum @@ -166,6 +169,7 @@ func GetInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerS "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index 794d483698..b9d9582ef9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig) ValidateE } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -126,6 +126,7 @@ const ( InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1 InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2 InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4 InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" + InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6 InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -133,6 +134,7 @@ var mappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNode "NPS1": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "NPS2": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "NPS4": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "NPS6": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } var mappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -140,6 +142,7 @@ var mappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNode "nps1": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "nps2": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "nps4": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "nps6": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } // GetInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum @@ -158,6 +161,7 @@ func GetInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPe "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index fc0c62b4bb..c3ea8607ae 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -106,7 +106,7 @@ func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) ValidateEnum } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -134,6 +134,7 @@ const ( InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" + InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6 InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -141,6 +142,7 @@ var mappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPe "NPS1": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "NPS2": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "NPS4": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "NPS6": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } var mappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -148,6 +150,7 @@ var mappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPe "nps1": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "nps2": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "nps4": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "nps6": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } // GetInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum @@ -166,6 +169,7 @@ func GetInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSo "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index 856c43d8f5..22e412705d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -77,7 +77,7 @@ func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) ValidateEnumValu errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e34925c206..bd719517a2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -33,7 +33,7 @@ type InstanceConfigurationAttachVnicDetails struct { // 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). + // Virtual Network Interface Cards (VNICs) (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). NicIndex *int `mandatory:"false" json:"nicIndex"` } @@ -48,7 +48,7 @@ func (m InstanceConfigurationAttachVnicDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 698bde1ef8..edd98ccfc8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -89,7 +89,7 @@ func (m *instanceconfigurationattachvolumedetails) UnmarshalPolymorphicJSON(data err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for InstanceConfigurationAttachVolumeDetails: %s.", m.Type) + common.Logf("Received unsupported enum value for InstanceConfigurationAttachVolumeDetails: %s.", m.Type) return *m, nil } } @@ -125,7 +125,7 @@ func (m instanceconfigurationattachvolumedetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d3e5f913d3..2e5ba6c662 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -65,7 +65,7 @@ func (m *instanceconfigurationautotunepolicy) UnmarshalPolymorphicJSON(data []by err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for InstanceConfigurationAutotunePolicy: %s.", m.AutotuneType) + common.Logf("Received unsupported enum value for InstanceConfigurationAutotunePolicy: %s.", m.AutotuneType) return *m, nil } } @@ -81,7 +81,7 @@ func (m instanceconfigurationautotunepolicy) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0adfe176cf..9e89580d80 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -50,7 +50,7 @@ func (m InstanceConfigurationAvailabilityConfig) ValidateEnumValue() (bool, erro 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bca5efb0aa..b5c137ab65 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -43,7 +43,7 @@ func (m InstanceConfigurationBlockVolumeDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d903bba57e..c461014c6b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -44,7 +44,7 @@ func (m InstanceConfigurationBlockVolumeReplicaDetails) ValidateEnumValue() (boo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_vnic_details.go index f9e54dca1e..6d187ebece 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_vnic_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_vnic_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,7 +22,7 @@ import ( ) // InstanceConfigurationCreateVnicDetails Contains the properties of the VNIC for an instance configuration. See CreateVnicDetails -// and Instance Configurations (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm#config) for more information. +// and Instance Configurations (https://docs.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm#config) for more information. type InstanceConfigurationCreateVnicDetails struct { // Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled @@ -41,7 +41,7 @@ type InstanceConfigurationCreateVnicDetails struct { AssignPrivateDnsRecord *bool `mandatory:"false" json:"assignPrivateDnsRecord"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -50,11 +50,13 @@ type InstanceConfigurationCreateVnicDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` @@ -73,6 +75,15 @@ type InstanceConfigurationCreateVnicDetails struct { // NetworkSecurityGroup. NsgIds []string `mandatory:"false" json:"nsgIds"` + // One of the IPv4 CIDR blocks allocated to the subnet. Represents the IP range + // from which the VNIC's private IP address will be assigned if `privateIp` or + // `privateIpId` is not specified. + // Either this field or the `privateIp` (or `privateIpId`, if applicable) field + // must be provided, but not both simultaneously. + // Example: `192.168.1.0/28` + // See the `subnetCidr` attribute of CreateVnicDetails for more information. + SubnetCidr *string `mandatory:"false" json:"subnetCidr"` + // A private IP address of your choice to assign to the VNIC. // See the `privateIp` attribute of CreateVnicDetails for more information. PrivateIp *string `mandatory:"false" json:"privateIp"` @@ -97,7 +108,7 @@ func (m InstanceConfigurationCreateVnicDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d14942c873..fbf768580d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ type InstanceConfigurationCreateVolumeDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -54,7 +54,7 @@ type InstanceConfigurationCreateVolumeDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -64,7 +64,7 @@ type InstanceConfigurationCreateVolumeDetails struct { // 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. + // See Block Volume Performance Levels (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. // Allowed values: // * `0`: Represents Lower Cost option. // * `10`: Represents Balanced option. @@ -86,9 +86,13 @@ type InstanceConfigurationCreateVolumeDetails struct { // The OCID of the Vault service key which is the master encryption key for the block volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). XrcKmsKeyId *string `mandatory:"false" json:"xrcKmsKeyId"` + + // When set to true, enables SCSI Persistent Reservation (SCSI PR) for the volume. For more information, see + // Persistent Reservations (https://docs.oracle.com/iaas/Content/Block/Concepts/persistent-reservations.htm). + IsReservationsEnabled *bool `mandatory:"false" json:"isReservationsEnabled"` } func (m InstanceConfigurationCreateVolumeDetails) String() string { @@ -102,7 +106,7 @@ func (m InstanceConfigurationCreateVolumeDetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -125,6 +129,7 @@ func (m *InstanceConfigurationCreateVolumeDetails) UnmarshalJSON(data []byte) (e SourceDetails instanceconfigurationvolumesourcedetails `json:"sourceDetails"` AutotunePolicies []instanceconfigurationautotunepolicy `json:"autotunePolicies"` XrcKmsKeyId *string `json:"xrcKmsKeyId"` + IsReservationsEnabled *bool `json:"isReservationsEnabled"` }{} e = json.Unmarshal(data, &model) @@ -180,5 +185,7 @@ func (m *InstanceConfigurationCreateVolumeDetails) UnmarshalJSON(data []byte) (e } m.XrcKmsKeyId = model.XrcKmsKeyId + m.IsReservationsEnabled = model.IsReservationsEnabled + 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 index 53b444f528..b6bf4ab563 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -37,7 +37,7 @@ func (m InstanceConfigurationDetachedVolumeAutotunePolicy) ValidateEnumValue() ( errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_generic_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_generic_bm_launch_instance_platform_config.go index 9b7003c535..160e2c5337 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_generic_bm_launch_instance_platform_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_generic_bm_launch_instance_platform_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -105,7 +105,7 @@ func (m InstanceConfigurationGenericBmLaunchInstancePlatformConfig) ValidateEnum } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -133,6 +133,7 @@ const ( InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" + InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6 InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS6" ) var mappingInstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -140,6 +141,7 @@ var mappingInstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPe "NPS1": InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "NPS2": InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "NPS4": InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "NPS6": InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } var mappingInstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ @@ -147,6 +149,7 @@ var mappingInstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPe "nps1": InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, "nps2": InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, "nps4": InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, + "nps6": InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketNps6, } // GetInstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for InstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum @@ -165,6 +168,7 @@ func GetInstanceConfigurationGenericBmLaunchInstancePlatformConfigNumaNodesPerSo "NPS1", "NPS2", "NPS4", + "NPS6", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_host_group_placement_constraint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_host_group_placement_constraint_details.go new file mode 100644 index 0000000000..c59a980064 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_host_group_placement_constraint_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationHostGroupPlacementConstraintDetails The details for providing placement constraints using the compute host group OCID. +type InstanceConfigurationHostGroupPlacementConstraintDetails struct { + + // The OCID of the compute host group. This is only available for dedicated capacity customers. + ComputeHostGroupId *string `mandatory:"true" json:"computeHostGroupId"` +} + +func (m InstanceConfigurationHostGroupPlacementConstraintDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationHostGroupPlacementConstraintDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationHostGroupPlacementConstraintDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationHostGroupPlacementConstraintDetails InstanceConfigurationHostGroupPlacementConstraintDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationHostGroupPlacementConstraintDetails + }{ + "HOST_GROUP", + (MarshalTypeInstanceConfigurationHostGroupPlacementConstraintDetails)(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 index f05851d796..1d32f3f4e5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -65,7 +65,7 @@ func (m *instanceconfigurationinstancedetails) UnmarshalPolymorphicJSON(data []b err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for InstanceConfigurationInstanceDetails: %s.", m.InstanceType) + common.Logf("Received unsupported enum value for InstanceConfigurationInstanceDetails: %s.", m.InstanceType) return *m, nil } } @@ -81,7 +81,7 @@ func (m instanceconfigurationinstancedetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 90afd35a75..22d9009807 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -41,7 +41,7 @@ func (m InstanceConfigurationInstanceOptions) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 2d2ac657b0..5ca5167b5e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -65,7 +65,7 @@ func (m *instanceconfigurationinstancesourcedetails) UnmarshalPolymorphicJSON(da err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for InstanceConfigurationInstanceSourceDetails: %s.", m.SourceType) + common.Logf("Received unsupported enum value for InstanceConfigurationInstanceSourceDetails: %s.", m.SourceType) return *m, nil } } @@ -81,7 +81,7 @@ func (m instanceconfigurationinstancesourcedetails) ValidateEnumValue() (bool, e errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_image_filter_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_image_filter_details.go index 3e7f6bd9b1..fe26a3f68e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_image_filter_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_image_filter_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,7 +28,7 @@ type InstanceConfigurationInstanceSourceImageFilterDetails struct { CompartmentId *string `mandatory:"false" json:"compartmentId"` // Filter based on these defined tags. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). DefinedTagsFilter map[string]map[string]interface{} `mandatory:"false" json:"definedTagsFilter"` // The image's operating system. @@ -51,7 +51,7 @@ func (m InstanceConfigurationInstanceSourceImageFilterDetails) ValidateEnumValue errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f886db432c..9304eab5de 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m InstanceConfigurationInstanceSourceViaBootVolumeDetails) ValidateEnumVal errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ba61d4f243..8ec042c4d4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -37,7 +37,7 @@ type InstanceConfigurationInstanceSourceViaImageDetails struct { // 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. + // See Block Volume Performance Levels (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. // Allowed values: // * `10`: Represents Balanced option. // * `20`: Represents Higher Performance option. @@ -59,7 +59,7 @@ func (m InstanceConfigurationInstanceSourceViaImageDetails) ValidateEnumValue() errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e2e21816d6..19de0bb3c3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig) Validat } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index dda188e70c..5f2b4d3e88 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) Validat } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7242b533f3..bad9c00378 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -77,7 +77,7 @@ func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) ValidateEnumVa errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_ipv6_address_ipv6_subnet_cidr_pair_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_ipv6_address_ipv6_subnet_cidr_pair_details.go index 5dd1b328d2..c5c453f73c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_ipv6_address_ipv6_subnet_cidr_pair_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_ipv6_address_ipv6_subnet_cidr_pair_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m InstanceConfigurationIpv6AddressIpv6SubnetCidrPairDetails) ValidateEnumV errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f4a0efb0d1..2780bdb667 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -76,7 +76,7 @@ func (m InstanceConfigurationIscsiAttachVolumeDetails) ValidateEnumValue() (bool errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 38bbefd1b0..fd12bef457 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -55,7 +55,7 @@ type InstanceConfigurationLaunchInstanceAgentConfigDetails struct { // 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). + // Managing Plugins with Oracle Cloud Agent (https://docs.oracle.com/iaas/Content/Compute/Tasks/manage-plugins.htm). AreAllPluginsDisabled *bool `mandatory:"false" json:"areAllPluginsDisabled"` // The configuration of plugins associated with this instance. @@ -73,7 +73,7 @@ func (m InstanceConfigurationLaunchInstanceAgentConfigDetails) ValidateEnumValue errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go index f3637302d0..2d1c03e0a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -34,6 +34,15 @@ type InstanceConfigurationLaunchInstanceDetails struct { // The OCID of the compute capacity reservation this instance is launched under. CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` + // Whether to enable AI enterprise on the instance. + IsAIEnterpriseEnabled *bool `mandatory:"false" json:"isAIEnterpriseEnabled"` + + PlacementConstraintDetails InstanceConfigurationPlacementConstraintDetails `mandatory:"false" json:"placementConstraintDetails"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + // compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. + ComputeClusterId *string `mandatory:"false" json:"computeClusterId"` + // The OCID of the compartment containing the instance. // Instances created from instance configurations are placed in the same compartment // as the instance that was used to create the instance configuration. @@ -45,11 +54,13 @@ type InstanceConfigurationLaunchInstanceDetails struct { CreateVnicDetails *InstanceConfigurationCreateVnicDetails `mandatory:"false" json:"createVnicDetails"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` @@ -66,7 +77,7 @@ type InstanceConfigurationLaunchInstanceDetails struct { ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -87,7 +98,7 @@ type InstanceConfigurationLaunchInstanceDetails struct { // 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). + // Bring Your Own Image (https://docs.oracle.com/iaas/Content/Compute/References/bringyourownimage.htm). // For more information about iPXE, see http://ipxe.org. IpxeScript *string `mandatory:"false" json:"ipxeScript"` @@ -181,6 +192,9 @@ type InstanceConfigurationLaunchInstanceDetails struct { AvailabilityConfig *InstanceConfigurationAvailabilityConfig `mandatory:"false" json:"availabilityConfig"` PreemptibleInstanceConfig *PreemptibleInstanceConfigDetails `mandatory:"false" json:"preemptibleInstanceConfig"` + + // List of licensing configurations associated with target launch values. + LicensingConfigs []LaunchInstanceLicensingConfig `mandatory:"false" json:"licensingConfigs"` } func (m InstanceConfigurationLaunchInstanceDetails) String() string { @@ -200,7 +214,7 @@ func (m InstanceConfigurationLaunchInstanceDetails) ValidateEnumValue() (bool, e 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -210,6 +224,9 @@ func (m *InstanceConfigurationLaunchInstanceDetails) UnmarshalJSON(data []byte) model := struct { AvailabilityDomain *string `json:"availabilityDomain"` CapacityReservationId *string `json:"capacityReservationId"` + IsAIEnterpriseEnabled *bool `json:"isAIEnterpriseEnabled"` + PlacementConstraintDetails instanceconfigurationplacementconstraintdetails `json:"placementConstraintDetails"` + ComputeClusterId *string `json:"computeClusterId"` CompartmentId *string `json:"compartmentId"` ClusterPlacementGroupId *string `json:"clusterPlacementGroupId"` CreateVnicDetails *InstanceConfigurationCreateVnicDetails `json:"createVnicDetails"` @@ -234,6 +251,7 @@ func (m *InstanceConfigurationLaunchInstanceDetails) UnmarshalJSON(data []byte) InstanceOptions *InstanceConfigurationInstanceOptions `json:"instanceOptions"` AvailabilityConfig *InstanceConfigurationAvailabilityConfig `json:"availabilityConfig"` PreemptibleInstanceConfig *PreemptibleInstanceConfigDetails `json:"preemptibleInstanceConfig"` + LicensingConfigs []launchinstancelicensingconfig `json:"licensingConfigs"` }{} e = json.Unmarshal(data, &model) @@ -245,6 +263,20 @@ func (m *InstanceConfigurationLaunchInstanceDetails) UnmarshalJSON(data []byte) m.CapacityReservationId = model.CapacityReservationId + m.IsAIEnterpriseEnabled = model.IsAIEnterpriseEnabled + + nn, e = model.PlacementConstraintDetails.UnmarshalPolymorphicJSON(model.PlacementConstraintDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.PlacementConstraintDetails = nn.(InstanceConfigurationPlacementConstraintDetails) + } else { + m.PlacementConstraintDetails = nil + } + + m.ComputeClusterId = model.ComputeClusterId + m.CompartmentId = model.CompartmentId m.ClusterPlacementGroupId = model.ClusterPlacementGroupId @@ -309,6 +341,18 @@ func (m *InstanceConfigurationLaunchInstanceDetails) UnmarshalJSON(data []byte) m.PreemptibleInstanceConfig = model.PreemptibleInstanceConfig + m.LicensingConfigs = make([]LaunchInstanceLicensingConfig, len(model.LicensingConfigs)) + for i, n := range model.LicensingConfigs { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.LicensingConfigs[i] = nn.(LaunchInstanceLicensingConfig) + } else { + m.LicensingConfigs[i] = nil + } + } return } 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 index f1e3d285d9..bd8e0611c3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -118,7 +118,7 @@ func (m *instanceconfigurationlaunchinstanceplatformconfig) UnmarshalPolymorphic err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for InstanceConfigurationLaunchInstancePlatformConfig: %s.", m.Type) + common.Logf("Received unsupported enum value for InstanceConfigurationLaunchInstancePlatformConfig: %s.", m.Type) return *m, nil } } @@ -154,7 +154,7 @@ func (m instanceconfigurationlaunchinstanceplatformconfig) ValidateEnumValue() ( errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 04758c8512..e96e9d5ee1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -51,6 +51,9 @@ type InstanceConfigurationLaunchInstanceShapeConfigDetails struct { // The number of NVMe drives to be used for storage. A single drive has 6.8 TB available. Nvmes *int `mandatory:"false" json:"nvmes"` + + // This field is reserved for internal use. + ResourceManagement InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum `mandatory:"false" json:"resourceManagement,omitempty"` } func (m InstanceConfigurationLaunchInstanceShapeConfigDetails) String() string { @@ -66,8 +69,11 @@ func (m InstanceConfigurationLaunchInstanceShapeConfigDetails) ValidateEnumValue 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 _, ok := GetMappingInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum(string(m.ResourceManagement)); !ok && m.ResourceManagement != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceManagement: %s. Supported values are: %s.", m.ResourceManagement, strings.Join(GetInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -117,3 +123,45 @@ func GetMappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpu enum, ok := mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum Enum with underlying type: string +type InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum string + +// Set of constants representing the allowable values for InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum +const ( + InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementDynamic InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum = "DYNAMIC" + InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementStatic InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum = "STATIC" +) + +var mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum = map[string]InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum{ + "DYNAMIC": InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementDynamic, + "STATIC": InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementStatic, +} + +var mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnumLowerCase = map[string]InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum{ + "dynamic": InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementDynamic, + "static": InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementStatic, +} + +// GetInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnumValues Enumerates the set of values for InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum +func GetInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnumValues() []InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum { + values := make([]InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum, 0) + for _, v := range mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnumStringValues Enumerates the set of values in String for InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum +func GetInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnumStringValues() []string { + return []string{ + "DYNAMIC", + "STATIC", + } +} + +// GetMappingInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum(val string) (InstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnum, bool) { + enum, ok := mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsResourceManagementEnumLowerCase[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 index 7c9350e500..73ea7e53e2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -90,7 +90,7 @@ func (m InstanceConfigurationLaunchOptions) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f128ca9a4c..43d4fd55a7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -76,7 +76,7 @@ func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) ValidateEnumVal errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 739011031f..7325989410 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -44,7 +44,7 @@ func (m InstanceConfigurationPerformanceBasedAutotunePolicy) ValidateEnumValue() errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_placement_constraint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_placement_constraint_details.go new file mode 100644 index 0000000000..b82064b9da --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_placement_constraint_details.go @@ -0,0 +1,83 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationPlacementConstraintDetails The details for providing placement constraints. +type InstanceConfigurationPlacementConstraintDetails interface { +} + +type instanceconfigurationplacementconstraintdetails struct { + JsonData []byte + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *instanceconfigurationplacementconstraintdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerinstanceconfigurationplacementconstraintdetails instanceconfigurationplacementconstraintdetails + s := struct { + Model Unmarshalerinstanceconfigurationplacementconstraintdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *instanceconfigurationplacementconstraintdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "HOST_GROUP": + mm := InstanceConfigurationHostGroupPlacementConstraintDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for InstanceConfigurationPlacementConstraintDetails: %s.", m.Type) + return *m, nil + } +} + +func (m instanceconfigurationplacementconstraintdetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m instanceconfigurationplacementconstraintdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} 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 index dc84789836..e08c3f73d6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,12 +39,12 @@ type InstanceConfigurationSummary struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -60,7 +60,7 @@ func (m InstanceConfigurationSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 378c5e368a..d3702c4ecd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -65,7 +65,7 @@ func (m *instanceconfigurationvolumesourcedetails) UnmarshalPolymorphicJSON(data err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for InstanceConfigurationVolumeSourceDetails: %s.", m.Type) + common.Logf("Received unsupported enum value for InstanceConfigurationVolumeSourceDetails: %s.", m.Type) return *m, nil } } @@ -81,7 +81,7 @@ func (m instanceconfigurationvolumesourcedetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 12934c109b..ee40babc68 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m InstanceConfigurationVolumeSourceFromVolumeBackupDetails) ValidateEnumVa errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_from_volume_details.go index e21478c579..73239ab26d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m InstanceConfigurationVolumeSourceFromVolumeDetails) ValidateEnumValue() errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 69f20eb775..c44855379b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( // 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). +// For more information about instance console connections, see Troubleshooting Instances Using Instance Console Connections (https://docs.oracle.com/iaas/Content/Compute/References/serialconsole.htm). type InstanceConsoleConnection struct { // The OCID of the compartment to contain the console connection. @@ -33,7 +33,7 @@ type InstanceConsoleConnection struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -41,7 +41,7 @@ type InstanceConsoleConnection struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -76,7 +76,7 @@ func (m InstanceConsoleConnection) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bda34885e2..50a0fee4b7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m InstanceCredentials) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_alternative_resolution_actions.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_alternative_resolution_actions.go index 8337cec681..50f85d840c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_alternative_resolution_actions.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_alternative_resolution_actions.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_event.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_event.go index df104d6bbb..b8b9cb2384 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_event.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_event.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // InstanceMaintenanceEvent It is the event in which the maintenance action will be be performed on the customer instance on the scheduled date and time. type InstanceMaintenanceEvent struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance event. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance event. Id *string `mandatory:"true" json:"id"` // The OCID of the instance. @@ -36,11 +36,11 @@ type InstanceMaintenanceEvent struct { // This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have // tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, // deferred, or even cancelled. Please see the - // Instance Maintenance (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. + // Instance Maintenance (https://docs.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. MaintenanceCategory InstanceMaintenanceEventMaintenanceCategoryEnum `mandatory:"true" json:"maintenanceCategory"` // This is the reason that Maintenance is being performed. See - // Instance Maintenance (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. + // Instance Maintenance (https://docs.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. MaintenanceReason InstanceMaintenanceEventMaintenanceReasonEnum `mandatory:"true" json:"maintenanceReason"` // This is the action that will be performed on the Instance by OCI when the Maintenance begins. @@ -71,12 +71,12 @@ type InstanceMaintenanceEvent struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -147,7 +147,7 @@ func (m InstanceMaintenanceEvent) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_event_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_event_summary.go index a4ea07b495..b2ad0ad48d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_event_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_event_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // InstanceMaintenanceEventSummary It is the event in which the maintenance action will be be performed on the customer instance on the scheduled date and time. type InstanceMaintenanceEventSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance event. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance event. Id *string `mandatory:"true" json:"id"` // The OCID of the instance. @@ -36,11 +36,11 @@ type InstanceMaintenanceEventSummary struct { // This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have // tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, // deferred, or even cancelled. Please see the - // Instance Maintenance (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. + // Instance Maintenance (https://docs.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. MaintenanceCategory InstanceMaintenanceEventMaintenanceCategoryEnum `mandatory:"true" json:"maintenanceCategory"` // This is the reason that Maintenance is being performed. See - // Instance Maintenance (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. + // Instance Maintenance (https://docs.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. MaintenanceReason InstanceMaintenanceEventMaintenanceReasonEnum `mandatory:"true" json:"maintenanceReason"` // This is the action that will be performed on the Instance by OCI when the Maintenance begins. @@ -67,7 +67,7 @@ type InstanceMaintenanceEventSummary struct { CreatedBy InstanceMaintenanceEventCreatedByEnum `mandatory:"true" json:"createdBy"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -76,7 +76,7 @@ type InstanceMaintenanceEventSummary struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -137,7 +137,7 @@ func (m InstanceMaintenanceEventSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index fdcf497a3f..928f0e7371 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m InstanceMaintenanceReboot) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 4b19f1fcd5..ec957e76c6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -41,7 +41,7 @@ func (m InstanceOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f6a948f19f..3ce8e43ac4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,17 +23,17 @@ import ( // 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). +// Managing Compute Instances (https://docs.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. + // The OCID (https://docs.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 + // The OCID (https://docs.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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated // with the instance pool. InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` @@ -51,7 +51,7 @@ type InstancePool struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -60,7 +60,7 @@ type InstancePool struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -74,6 +74,8 @@ type InstancePool struct { // 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"` + + LifecycleManagement *InstancePoolLifecycleManagementDetails `mandatory:"false" json:"lifecycleManagement"` } func (m InstancePool) String() string { @@ -90,7 +92,7 @@ func (m InstancePool) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4a469017e9..085d83d30b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,10 +24,10 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -36,11 +36,11 @@ type InstancePoolInstance struct { // 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 + // The OCID (https://docs.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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration // used to create the instance. InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` @@ -83,7 +83,7 @@ func (m InstancePoolInstance) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -93,21 +93,27 @@ type InstancePoolInstanceLifecycleStateEnum string // Set of constants representing the allowable values for InstancePoolInstanceLifecycleStateEnum const ( - InstancePoolInstanceLifecycleStateAttaching InstancePoolInstanceLifecycleStateEnum = "ATTACHING" - InstancePoolInstanceLifecycleStateActive InstancePoolInstanceLifecycleStateEnum = "ACTIVE" - InstancePoolInstanceLifecycleStateDetaching InstancePoolInstanceLifecycleStateEnum = "DETACHING" + InstancePoolInstanceLifecycleStateAttaching InstancePoolInstanceLifecycleStateEnum = "ATTACHING" + InstancePoolInstanceLifecycleStateActive InstancePoolInstanceLifecycleStateEnum = "ACTIVE" + InstancePoolInstanceLifecycleStateDetaching InstancePoolInstanceLifecycleStateEnum = "DETACHING" + InstancePoolInstanceLifecycleStateTerminationAwait InstancePoolInstanceLifecycleStateEnum = "TERMINATION_AWAIT" + InstancePoolInstanceLifecycleStateTerminationProceed InstancePoolInstanceLifecycleStateEnum = "TERMINATION_PROCEED" ) var mappingInstancePoolInstanceLifecycleStateEnum = map[string]InstancePoolInstanceLifecycleStateEnum{ - "ATTACHING": InstancePoolInstanceLifecycleStateAttaching, - "ACTIVE": InstancePoolInstanceLifecycleStateActive, - "DETACHING": InstancePoolInstanceLifecycleStateDetaching, + "ATTACHING": InstancePoolInstanceLifecycleStateAttaching, + "ACTIVE": InstancePoolInstanceLifecycleStateActive, + "DETACHING": InstancePoolInstanceLifecycleStateDetaching, + "TERMINATION_AWAIT": InstancePoolInstanceLifecycleStateTerminationAwait, + "TERMINATION_PROCEED": InstancePoolInstanceLifecycleStateTerminationProceed, } var mappingInstancePoolInstanceLifecycleStateEnumLowerCase = map[string]InstancePoolInstanceLifecycleStateEnum{ - "attaching": InstancePoolInstanceLifecycleStateAttaching, - "active": InstancePoolInstanceLifecycleStateActive, - "detaching": InstancePoolInstanceLifecycleStateDetaching, + "attaching": InstancePoolInstanceLifecycleStateAttaching, + "active": InstancePoolInstanceLifecycleStateActive, + "detaching": InstancePoolInstanceLifecycleStateDetaching, + "termination_await": InstancePoolInstanceLifecycleStateTerminationAwait, + "termination_proceed": InstancePoolInstanceLifecycleStateTerminationProceed, } // GetInstancePoolInstanceLifecycleStateEnumValues Enumerates the set of values for InstancePoolInstanceLifecycleStateEnum @@ -125,6 +131,8 @@ func GetInstancePoolInstanceLifecycleStateEnumStringValues() []string { "ATTACHING", "ACTIVE", "DETACHING", + "TERMINATION_AWAIT", + "TERMINATION_PROCEED", } } 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 index 5a16f470c5..f9acaa9683 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -51,7 +51,7 @@ func (m InstancePoolInstanceLoadBalancerBackend) ValidateEnumValue() (bool, erro } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_lifecycle_actions_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_lifecycle_actions_details.go new file mode 100644 index 0000000000..e36ac769b6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_lifecycle_actions_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePoolLifecycleActionsDetails The lifecycle actions for the instance pool. +type InstancePoolLifecycleActionsDetails struct { + PreTermination *InstancePoolPreTerminationActionDetails `mandatory:"false" json:"preTermination"` +} + +func (m InstancePoolLifecycleActionsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePoolLifecycleActionsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_lifecycle_management_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_lifecycle_management_details.go new file mode 100644 index 0000000000..fdc70edaa2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_lifecycle_management_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePoolLifecycleManagementDetails The lifecycle management options for the instance pool. +type InstancePoolLifecycleManagementDetails struct { + LifecycleActions *InstancePoolLifecycleActionsDetails `mandatory:"true" json:"lifecycleActions"` +} + +func (m InstancePoolLifecycleManagementDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePoolLifecycleManagementDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} 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 index 25a5815033..0bbe202dfe 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,13 +24,13 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (m InstancePoolLoadBalancerAttachment) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8194435023..f2fb5c1005 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,7 +28,7 @@ type InstancePoolPlacementConfiguration struct { // 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 in which to place instances. This field is deprecated. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet in which to place instances. This field is deprecated. // Use `primaryVnicSubnets` instead to set VNIC data for instances in the pool. PrimarySubnetId *string `mandatory:"false" json:"primarySubnetId"` @@ -61,7 +61,7 @@ func (m InstancePoolPlacementConfiguration) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_ipv6_address_ipv6_subnet_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_ipv6_address_ipv6_subnet_cidr_details.go index 2e78959ad2..87f9c35242 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_ipv6_address_ipv6_subnet_cidr_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_ipv6_address_ipv6_subnet_cidr_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m InstancePoolPlacementIpv6AddressIpv6SubnetCidrDetails) ValidateEnumValue errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_primary_subnet.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_primary_subnet.go index 62ae08cc62..854fbbc80f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_primary_subnet.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_primary_subnet.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // InstancePoolPlacementPrimarySubnet Details about the IPv6 primary subnet. type InstancePoolPlacementPrimarySubnet struct { - // The subnet OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the secondary VNIC. + // The subnet OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the secondary VNIC. SubnetId *string `mandatory:"true" json:"subnetId"` // Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled @@ -52,7 +52,7 @@ func (m InstancePoolPlacementPrimarySubnet) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 84b34c4b9a..5f945b23cc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The subnet OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the secondary VNIC. SubnetId *string `mandatory:"true" json:"subnetId"` // Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled @@ -56,7 +56,7 @@ func (m InstancePoolPlacementSecondaryVnicSubnet) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_subnet_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_subnet_details.go index 7272d91938..15abce479b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_subnet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_subnet_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // InstancePoolPlacementSubnetDetails Base details about the IPv6 subnet. type InstancePoolPlacementSubnetDetails struct { - // The subnet OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the secondary VNIC. + // The subnet OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the secondary VNIC. SubnetId *string `mandatory:"true" json:"subnetId"` // Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled @@ -52,7 +52,7 @@ func (m InstancePoolPlacementSubnetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_pre_termination_action_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_pre_termination_action_details.go new file mode 100644 index 0000000000..7a234be0e8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_pre_termination_action_details.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePoolPreTerminationActionDetails The data for pre-termination action for an instance pool +type InstancePoolPreTerminationActionDetails struct { + + // Whether pre-termination action is enabled or not. + IsEnabled *bool `mandatory:"true" json:"isEnabled"` + + // The timeout in seconds for pre-termination action for an instance pool. + Timeout *int `mandatory:"true" json:"timeout"` + + OnTimeout *InstancePoolPreTerminationActionHandleTimeoutDetails `mandatory:"true" json:"onTimeout"` +} + +func (m InstancePoolPreTerminationActionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePoolPreTerminationActionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_pre_termination_action_handle_timeout_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_pre_termination_action_handle_timeout_details.go new file mode 100644 index 0000000000..4d47f3ce69 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_pre_termination_action_handle_timeout_details.go @@ -0,0 +1,146 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePoolPreTerminationActionHandleTimeoutDetails Options to handle timeout for pre-termination action. +type InstancePoolPreTerminationActionHandleTimeoutDetails struct { + + // Whether the block volume should be preserved after termination. + PreserveBlockVolumeMode InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum `mandatory:"true" json:"preserveBlockVolumeMode"` + + // Whether the boot volume should be preserved after termination. + PreserveBootVolumeMode InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum `mandatory:"true" json:"preserveBootVolumeMode"` +} + +func (m InstancePoolPreTerminationActionHandleTimeoutDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePoolPreTerminationActionHandleTimeoutDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum(string(m.PreserveBlockVolumeMode)); !ok && m.PreserveBlockVolumeMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PreserveBlockVolumeMode: %s. Supported values are: %s.", m.PreserveBlockVolumeMode, strings.Join(GetInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnumStringValues(), ","))) + } + if _, ok := GetMappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum(string(m.PreserveBootVolumeMode)); !ok && m.PreserveBootVolumeMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PreserveBootVolumeMode: %s. Supported values are: %s.", m.PreserveBootVolumeMode, strings.Join(GetInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum Enum with underlying type: string +type InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum string + +// Set of constants representing the allowable values for InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum +const ( + InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModePreserveAlways InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum = "PRESERVE_ALWAYS" + InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModePreserveOnTimeout InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum = "PRESERVE_ON_TIMEOUT" + InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeDeleteAlways InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum = "DELETE_ALWAYS" +) + +var mappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum = map[string]InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum{ + "PRESERVE_ALWAYS": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModePreserveAlways, + "PRESERVE_ON_TIMEOUT": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModePreserveOnTimeout, + "DELETE_ALWAYS": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeDeleteAlways, +} + +var mappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnumLowerCase = map[string]InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum{ + "preserve_always": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModePreserveAlways, + "preserve_on_timeout": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModePreserveOnTimeout, + "delete_always": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeDeleteAlways, +} + +// GetInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnumValues Enumerates the set of values for InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum +func GetInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnumValues() []InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum { + values := make([]InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum, 0) + for _, v := range mappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum { + values = append(values, v) + } + return values +} + +// GetInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnumStringValues Enumerates the set of values in String for InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum +func GetInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnumStringValues() []string { + return []string{ + "PRESERVE_ALWAYS", + "PRESERVE_ON_TIMEOUT", + "DELETE_ALWAYS", + } +} + +// GetMappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum(val string) (InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnum, bool) { + enum, ok := mappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBlockVolumeModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum Enum with underlying type: string +type InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum string + +// Set of constants representing the allowable values for InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum +const ( + InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModePreserveAlways InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum = "PRESERVE_ALWAYS" + InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModePreserveOnTimeout InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum = "PRESERVE_ON_TIMEOUT" + InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeDeleteAlways InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum = "DELETE_ALWAYS" +) + +var mappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum = map[string]InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum{ + "PRESERVE_ALWAYS": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModePreserveAlways, + "PRESERVE_ON_TIMEOUT": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModePreserveOnTimeout, + "DELETE_ALWAYS": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeDeleteAlways, +} + +var mappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnumLowerCase = map[string]InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum{ + "preserve_always": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModePreserveAlways, + "preserve_on_timeout": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModePreserveOnTimeout, + "delete_always": InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeDeleteAlways, +} + +// GetInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnumValues Enumerates the set of values for InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum +func GetInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnumValues() []InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum { + values := make([]InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum, 0) + for _, v := range mappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum { + values = append(values, v) + } + return values +} + +// GetInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnumStringValues Enumerates the set of values in String for InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum +func GetInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnumStringValues() []string { + return []string{ + "PRESERVE_ALWAYS", + "PRESERVE_ON_TIMEOUT", + "DELETE_ALWAYS", + } +} + +// GetMappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum(val string) (InstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnum, bool) { + enum, ok := mappingInstancePoolPreTerminationActionHandleTimeoutDetailsPreserveBootVolumeModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} 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 index ba943a0ab5..d7c771be1a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -51,12 +51,12 @@ type InstancePoolSummary struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -75,7 +75,7 @@ func (m InstancePoolSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 532030565f..0e855cac38 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -69,7 +69,7 @@ func (m *instancepoweractiondetails) UnmarshalPolymorphicJSON(data []byte) (inte err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for InstancePowerActionDetails: %s.", m.ActionType) + common.Logf("Received unsupported enum value for InstancePowerActionDetails: %s.", m.ActionType) return *m, nil } } @@ -85,7 +85,7 @@ func (m instancepoweractiondetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index ae4a44d8aa..21d25b652a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -37,7 +37,7 @@ type InstanceReservationConfig struct { // 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). + // For more information, see Capacity Reservations (https://docs.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm). FaultDomain *string `mandatory:"false" json:"faultDomain"` ClusterConfig *ClusterConfigDetails `mandatory:"false" json:"clusterConfig"` @@ -59,7 +59,7 @@ func (m InstanceReservationConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 4eb5fdc22a..31edb9e3d2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -36,12 +36,12 @@ type InstanceReservationConfigDetails struct { 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). + // For more information, see Fault Domains (https://docs.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/). + // the Identity and Access Management Service API (https://docs.oracle.com/iaas/api/#/en/identity/20160918/). // Example: `FAULT-DOMAIN-1` FaultDomain *string `mandatory:"false" json:"faultDomain"` @@ -62,7 +62,7 @@ func (m InstanceReservationConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 29fb643bd3..b075f299a9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,7 +28,7 @@ import ( // 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). +// see Flexible Shapes (https://docs.oracle.com/iaas/Content/Compute/References/computeshapes.htm#flexible). type InstanceReservationShapeConfigDetails struct { // The total number of OCPUs available to the instance. @@ -49,7 +49,7 @@ func (m InstanceReservationShapeConfigDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 78670d505f..6398356797 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -70,6 +70,9 @@ type InstanceShapeConfig struct { // in which case the actual number of OCPUs will be calculated based on this value // and the actual hardware. This must be a multiple of 2. Vcpus *int `mandatory:"false" json:"vcpus"` + + // This field is reserved for internal use. + ResourceManagement InstanceShapeConfigResourceManagementEnum `mandatory:"false" json:"resourceManagement,omitempty"` } func (m InstanceShapeConfig) String() string { @@ -85,8 +88,11 @@ func (m InstanceShapeConfig) ValidateEnumValue() (bool, error) { 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 _, ok := GetMappingInstanceShapeConfigResourceManagementEnum(string(m.ResourceManagement)); !ok && m.ResourceManagement != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceManagement: %s. Supported values are: %s.", m.ResourceManagement, strings.Join(GetInstanceShapeConfigResourceManagementEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -136,3 +142,45 @@ func GetMappingInstanceShapeConfigBaselineOcpuUtilizationEnum(val string) (Insta enum, ok := mappingInstanceShapeConfigBaselineOcpuUtilizationEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// InstanceShapeConfigResourceManagementEnum Enum with underlying type: string +type InstanceShapeConfigResourceManagementEnum string + +// Set of constants representing the allowable values for InstanceShapeConfigResourceManagementEnum +const ( + InstanceShapeConfigResourceManagementDynamic InstanceShapeConfigResourceManagementEnum = "DYNAMIC" + InstanceShapeConfigResourceManagementStatic InstanceShapeConfigResourceManagementEnum = "STATIC" +) + +var mappingInstanceShapeConfigResourceManagementEnum = map[string]InstanceShapeConfigResourceManagementEnum{ + "DYNAMIC": InstanceShapeConfigResourceManagementDynamic, + "STATIC": InstanceShapeConfigResourceManagementStatic, +} + +var mappingInstanceShapeConfigResourceManagementEnumLowerCase = map[string]InstanceShapeConfigResourceManagementEnum{ + "dynamic": InstanceShapeConfigResourceManagementDynamic, + "static": InstanceShapeConfigResourceManagementStatic, +} + +// GetInstanceShapeConfigResourceManagementEnumValues Enumerates the set of values for InstanceShapeConfigResourceManagementEnum +func GetInstanceShapeConfigResourceManagementEnumValues() []InstanceShapeConfigResourceManagementEnum { + values := make([]InstanceShapeConfigResourceManagementEnum, 0) + for _, v := range mappingInstanceShapeConfigResourceManagementEnum { + values = append(values, v) + } + return values +} + +// GetInstanceShapeConfigResourceManagementEnumStringValues Enumerates the set of values in String for InstanceShapeConfigResourceManagementEnum +func GetInstanceShapeConfigResourceManagementEnumStringValues() []string { + return []string{ + "DYNAMIC", + "STATIC", + } +} + +// GetMappingInstanceShapeConfigResourceManagementEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceShapeConfigResourceManagementEnum(val string) (InstanceShapeConfigResourceManagementEnum, bool) { + enum, ok := mappingInstanceShapeConfigResourceManagementEnumLowerCase[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 index 53859f0d26..0e6cb215f4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -65,7 +65,7 @@ func (m *instancesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for InstanceSourceDetails: %s.", m.SourceType) + common.Logf("Received unsupported enum value for InstanceSourceDetails: %s.", m.SourceType) return *m, nil } } @@ -81,7 +81,7 @@ func (m instancesourcedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_image_filter_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_image_filter_details.go index 20644d4681..9db036a889 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_image_filter_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_image_filter_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,7 +28,7 @@ type InstanceSourceImageFilterDetails struct { CompartmentId *string `mandatory:"true" json:"compartmentId"` // Filter based on these defined tags. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). DefinedTagsFilter map[string]map[string]interface{} `mandatory:"false" json:"definedTagsFilter"` // The image's operating system. @@ -51,7 +51,7 @@ func (m InstanceSourceImageFilterDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 49bbad9ac9..fdec55d52b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m InstanceSourceViaBootVolumeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f683b98fd5..497aa9974d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -36,7 +36,7 @@ type InstanceSourceViaImageDetails struct { // 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. + // See Block Volume Performance Levels (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. // Allowed values: // * `10`: Represents Balanced option. // * `20`: Represents Higher Performance option. @@ -58,7 +58,7 @@ func (m InstanceSourceViaImageDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a0fc6e5c11..206651f73d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -73,7 +73,7 @@ func (m InstanceSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9531214f86..9c6f18cd9b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m IntelIcelakeBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, e } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cffab00f9f..c4a0a89e11 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m IntelIcelakeBmPlatformConfig) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 792aa1113f..15f11b883a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m IntelSkylakeBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, e } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 020acc8e9c..08263d441a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m IntelSkylakeBmPlatformConfig) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index fcb70fe248..87baaa6606 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -77,7 +77,7 @@ func (m IntelVmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 97973da86c..6e2c0d51e2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -77,7 +77,7 @@ func (m IntelVmPlatformConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_update_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_update_instance_platform_config.go index 4c29302b21..7519f9335e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_update_instance_platform_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_update_instance_platform_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m IntelVmUpdateInstancePlatformConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c3ff8b67bd..3a8743a5cb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,26 +23,26 @@ import ( // 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). +// Typical Networking Service Scenarios (https://docs.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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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)). + // The internet gateway's Oracle ID (OCID (https://docs.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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -51,7 +51,7 @@ type InternetGateway struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -63,7 +63,7 @@ type InternetGateway struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the Internet Gateway is using. RouteTableId *string `mandatory:"false" json:"routeTableId"` } @@ -81,7 +81,7 @@ func (m InternetGateway) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_ip_address_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_ip_address_summary.go index 0d1c168a2a..84d455b49a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_ip_address_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_ip_address_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -27,7 +27,7 @@ type InventoryIpAddressSummary struct { // The IP address assigned from a subnet. IpAddress *string `mandatory:"false" json:"ipAddress"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. VnicId *string `mandatory:"false" json:"vnicId"` // The name of the VNIC. @@ -48,7 +48,7 @@ func (m InventoryIpAddressSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_resource_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_resource_summary.go index 8aa0a1cdf9..e33d0ace9b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_resource_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_resource_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -30,13 +30,16 @@ type InventoryResourceSummary struct { // Resource types of the resource. ResourceType InventoryResourceSummaryResourceTypeEnum `mandatory:"false" json:"resourceType,omitempty"` + // Mac Address of IP Resource + MacAddress *string `mandatory:"false" json:"macAddress"` + // Lists the 'IpAddressCollection' object. IpAddressCollection []InventoryIpAddressSummary `mandatory:"false" json:"ipAddressCollection"` // The region name of the corresponding resource. Region *string `mandatory:"false" json:"region"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` } @@ -54,7 +57,7 @@ func (m InventoryResourceSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceType: %s. Supported values are: %s.", m.ResourceType, strings.Join(GetInventoryResourceSummaryResourceTypeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_subnet_cidr_block_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_subnet_cidr_block_summary.go index 65defaa594..0ab8b0a9da 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_subnet_cidr_block_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_subnet_cidr_block_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m InventorySubnetCidrBlockSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_subnet_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_subnet_summary.go index 32cab41202..f08edc5bf1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_subnet_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_subnet_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // InventorySubnetSummary Lists subnet and its associated resources. type InventorySubnetSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"false" json:"subnetId"` // Name of the subnet within a VCN. @@ -42,7 +42,7 @@ type InventorySubnetSummary struct { // Region name of the subnet. Region *string `mandatory:"false" json:"region"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` // Lists the `ResourceCollection` object. @@ -63,7 +63,7 @@ func (m InventorySubnetSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceType: %s. Supported values are: %s.", m.ResourceType, strings.Join(GetInventorySubnetSummaryResourceTypeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_vcn_cidr_block_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_vcn_cidr_block_summary.go index 3f3dbe35be..21986afaa5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_vcn_cidr_block_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_vcn_cidr_block_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m InventoryVcnCidrBlockSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_vcn_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_vcn_summary.go index 565ab4e021..0464e738e0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_vcn_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_vcn_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // InventoryVcnSummary Provides the summary of a VCN's IP Inventory data under specified compartments. type InventoryVcnSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN . + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN . VcnId *string `mandatory:"false" json:"vcnId"` // Name of the VCN. @@ -42,7 +42,7 @@ type InventoryVcnSummary struct { // Region name of the VCN. Region *string `mandatory:"false" json:"region"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` // Lists `Subnetcollection` objects @@ -63,7 +63,7 @@ func (m InventoryVcnSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceType: %s. Supported values are: %s.", m.ResourceType, strings.Join(GetInventoryVcnSummaryResourceTypeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_cidr_utilization_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_cidr_utilization_collection.go index 6d8b9d3654..f968b028c9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_cidr_utilization_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_cidr_utilization_collection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -52,7 +52,7 @@ func (m IpInventoryCidrUtilizationCollection) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_cidr_utilization_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_cidr_utilization_summary.go index 882efc8f1f..7e94cdccfc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_cidr_utilization_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_cidr_utilization_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m IpInventoryCidrUtilizationSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_collection.go index 8908f5deca..e3fecb6353 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_collection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -52,7 +52,7 @@ func (m IpInventoryCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_collection.go index 340e6931af..f074be6828 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_collection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -52,7 +52,7 @@ func (m IpInventorySubnetResourceCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_summary.go index cf65ab833e..a249005a62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // IpInventorySubnetResourceSummary Provides the IP Inventory details of a subnet and its associated resources. type IpInventorySubnetResourceSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IP address. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IP address. IpId *string `mandatory:"false" json:"ipId"` // Lists the allocated private IP address. @@ -51,6 +51,9 @@ type IpInventorySubnetResourceSummary struct { // Name of the created resource. AssignedResourceName *string `mandatory:"false" json:"assignedResourceName"` + // Primary flag for IP Resource + IsPrimary *bool `mandatory:"false" json:"isPrimary"` + // Type of the resource. AssignedResourceType IpInventorySubnetResourceSummaryAssignedResourceTypeEnum `mandatory:"false" json:"assignedResourceType,omitempty"` @@ -84,7 +87,7 @@ func (m IpInventorySubnetResourceSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AssignedResourceType: %s. Supported values are: %s.", m.AssignedResourceType, strings.Join(GetIpInventorySubnetResourceSummaryAssignedResourceTypeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_vcn_overlap_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_vcn_overlap_collection.go index 283bd81cf6..7b480a3da4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_vcn_overlap_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_vcn_overlap_collection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -49,7 +49,7 @@ func (m IpInventoryVcnOverlapCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_vcn_overlap_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_vcn_overlap_summary.go index 4a0900792b..dce2d28b68 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_vcn_overlap_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_vcn_overlap_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // IpInventoryVcnOverlapSummary Provides the VCN overlap details. type IpInventoryVcnOverlapSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN . + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN . OverlappingVcnId *string `mandatory:"false" json:"overlappingVcnId"` // Name of the overlapping VCN. @@ -48,7 +48,7 @@ func (m IpInventoryVcnOverlapSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5bb262327f..cfc1698fd0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -35,41 +35,29 @@ import ( // 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). +// Site-to-Site VPN Overview (https://docs.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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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)). + // The IPSec connection's Oracle ID (OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -78,7 +66,7 @@ type IpSecConnection struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -88,7 +76,7 @@ type IpSecConnection struct { // 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). + // If Your CPE Is Behind a NAT Device (https://docs.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"` @@ -97,6 +85,18 @@ type IpSecConnection struct { // for `cpeLocalIdentifier`. CpeLocalIdentifierType IpSecConnectionCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"` + // 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.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `10.0.1.0/24` + // Example: `2001:db8::/32` + StaticRoutes []string `mandatory:"false" json:"staticRoutes"` + // 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"` @@ -125,7 +125,7 @@ func (m IpSecConnection) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TransportType: %s. Supported values are: %s.", m.TransportType, strings.Join(GetIpSecConnectionTransportTypeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index fd6b02dda1..9860ffc52f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,10 +26,10 @@ import ( // - IPSecConnectionTunnelSharedSecret type IpSecConnectionDeviceConfig struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the IPSec connection. + // The OCID (https://docs.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)). + // The IPSec connection's Oracle ID (OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). Id *string `mandatory:"true" json:"id"` // The date and time the IPSec connection was created. @@ -50,7 +50,7 @@ func (m IpSecConnectionDeviceConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 36043c26df..14a6bf0980 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,10 +25,10 @@ import ( // IPSecConnectionTunnel. type IpSecConnectionDeviceStatus struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the IPSec connection. + // The OCID (https://docs.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)). + // The IPSec connection's Oracle ID (OCID (https://docs.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). @@ -50,7 +50,7 @@ func (m IpSecConnectionDeviceStatus) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 755bd3fefe..e70945bcd5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,10 +26,10 @@ import ( // IPSecConnectionTunnelSharedSecret object. type IpSecConnectionTunnel struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the tunnel. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. Id *string `mandatory:"true" json:"id"` // The tunnel's lifecycle state. @@ -93,7 +93,7 @@ type IpSecConnectionTunnel struct { PhaseTwoDetails *TunnelPhaseTwoDetails `mandatory:"false" json:"phaseTwoDetails"` - // The list of virtual circuit OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s over which your network can reach this tunnel. + // The list of virtual circuit OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s over which your network can reach this tunnel. AssociatedVirtualCircuits []string `mandatory:"false" json:"associatedVirtualCircuits"` } @@ -129,7 +129,7 @@ func (m IpSecConnectionTunnel) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0d1e01d88a..14482978d6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -54,7 +54,7 @@ func (m IpSecConnectionTunnelErrorDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index aa9d87851e..64727cced1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m IpSecConnectionTunnelSharedSecret) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ipam.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipam.go index 82372e8cc2..ac60f79889 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ipam.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipam.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -41,7 +41,7 @@ func (m Ipam) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d5b688d04c..271e349ad0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,13 +25,13 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. Id *string `mandatory:"false" json:"id"` // The IPSec connection that contains the attached IPSec tunnel. IpsecConnectionId *string `mandatory:"false" json:"ipsecConnectionId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit's DRG attachment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit's DRG attachment. TransportAttachmentId *string `mandatory:"false" json:"transportAttachmentId"` } @@ -51,7 +51,7 @@ func (m IpsecTunnelDrgAttachmentNetworkDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e707182b2e..dd369c7ec0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,10 +26,10 @@ import ( // 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). +// details about IPv6 addressing in a VCN, see IPv6 Addresses (https://docs.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. + // The OCID (https://docs.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"` @@ -37,7 +37,7 @@ type Ipv6 struct { // 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. + // The OCID (https://docs.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 prefix of the VNIC's subnet @@ -48,26 +48,42 @@ type Ipv6 struct { // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Length of cidr range. Optional field to specify flexible cidr. + CidrPrefixLength *int `mandatory:"false" json:"cidrPrefixLength"` + + // The OCID (https://docs.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:"false" json:"vnicId"` + + // State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise it is AVAILABLE. + IpState Ipv6IpStateEnum `mandatory:"false" json:"ipState,omitempty"` + + // Lifetime of the IP address. + // There are two types of IPs: + // - Ephemeral + // - Reserved + Lifetime Ipv6LifetimeEnum `mandatory:"false" json:"lifetime,omitempty"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see + // Per-resource Routing (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). + RouteTableId *string `mandatory:"false" json:"routeTableId"` } func (m Ipv6) String() string { @@ -83,8 +99,14 @@ func (m Ipv6) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetIpv6LifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingIpv6IpStateEnum(string(m.IpState)); !ok && m.IpState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpState: %s. Supported values are: %s.", m.IpState, strings.Join(GetIpv6IpStateEnumStringValues(), ","))) + } + if _, ok := GetMappingIpv6LifetimeEnum(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(GetIpv6LifetimeEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -138,3 +160,87 @@ func GetMappingIpv6LifecycleStateEnum(val string) (Ipv6LifecycleStateEnum, bool) enum, ok := mappingIpv6LifecycleStateEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// Ipv6IpStateEnum Enum with underlying type: string +type Ipv6IpStateEnum string + +// Set of constants representing the allowable values for Ipv6IpStateEnum +const ( + Ipv6IpStateAssigned Ipv6IpStateEnum = "ASSIGNED" + Ipv6IpStateAvailable Ipv6IpStateEnum = "AVAILABLE" +) + +var mappingIpv6IpStateEnum = map[string]Ipv6IpStateEnum{ + "ASSIGNED": Ipv6IpStateAssigned, + "AVAILABLE": Ipv6IpStateAvailable, +} + +var mappingIpv6IpStateEnumLowerCase = map[string]Ipv6IpStateEnum{ + "assigned": Ipv6IpStateAssigned, + "available": Ipv6IpStateAvailable, +} + +// GetIpv6IpStateEnumValues Enumerates the set of values for Ipv6IpStateEnum +func GetIpv6IpStateEnumValues() []Ipv6IpStateEnum { + values := make([]Ipv6IpStateEnum, 0) + for _, v := range mappingIpv6IpStateEnum { + values = append(values, v) + } + return values +} + +// GetIpv6IpStateEnumStringValues Enumerates the set of values in String for Ipv6IpStateEnum +func GetIpv6IpStateEnumStringValues() []string { + return []string{ + "ASSIGNED", + "AVAILABLE", + } +} + +// GetMappingIpv6IpStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpv6IpStateEnum(val string) (Ipv6IpStateEnum, bool) { + enum, ok := mappingIpv6IpStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// Ipv6LifetimeEnum Enum with underlying type: string +type Ipv6LifetimeEnum string + +// Set of constants representing the allowable values for Ipv6LifetimeEnum +const ( + Ipv6LifetimeEphemeral Ipv6LifetimeEnum = "EPHEMERAL" + Ipv6LifetimeReserved Ipv6LifetimeEnum = "RESERVED" +) + +var mappingIpv6LifetimeEnum = map[string]Ipv6LifetimeEnum{ + "EPHEMERAL": Ipv6LifetimeEphemeral, + "RESERVED": Ipv6LifetimeReserved, +} + +var mappingIpv6LifetimeEnumLowerCase = map[string]Ipv6LifetimeEnum{ + "ephemeral": Ipv6LifetimeEphemeral, + "reserved": Ipv6LifetimeReserved, +} + +// GetIpv6LifetimeEnumValues Enumerates the set of values for Ipv6LifetimeEnum +func GetIpv6LifetimeEnumValues() []Ipv6LifetimeEnum { + values := make([]Ipv6LifetimeEnum, 0) + for _, v := range mappingIpv6LifetimeEnum { + values = append(values, v) + } + return values +} + +// GetIpv6LifetimeEnumStringValues Enumerates the set of values in String for Ipv6LifetimeEnum +func GetIpv6LifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingIpv6LifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpv6LifetimeEnum(val string) (Ipv6LifetimeEnum, bool) { + enum, ok := mappingIpv6LifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6_address_ipv6_subnet_cidr_pair_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6_address_ipv6_subnet_cidr_pair_details.go index 5a1f7ec27e..f41312e1ca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6_address_ipv6_subnet_cidr_pair_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6_address_ipv6_subnet_cidr_pair_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m Ipv6AddressIpv6SubnetCidrPairDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6_vnic_detach_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6_vnic_detach_request_response.go new file mode 100644 index 0000000000..1cb002c06a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6_vnic_detach_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// Ipv6VnicDetachRequest wrapper for the Ipv6VnicDetach operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/Ipv6VnicDetach.go.html to see an example of how to use Ipv6VnicDetachRequest. +type Ipv6VnicDetachRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6. + Ipv6Id *string `mandatory:"true" contributesTo:"path" name:"ipv6Id"` + + // 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"` + + // 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 Ipv6VnicDetachRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request Ipv6VnicDetachRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request Ipv6VnicDetachRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request Ipv6VnicDetachRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request Ipv6VnicDetachRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// Ipv6VnicDetachResponse wrapper for the Ipv6VnicDetach operation +type Ipv6VnicDetachResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Ipv6 instance + Ipv6 `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 Ipv6VnicDetachResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response Ipv6VnicDetachResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_i_scsi_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_i_scsi_volume_details.go index 3ffcdf7478..e14dfc63c8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_i_scsi_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_i_scsi_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -101,7 +101,7 @@ func (m LaunchAttachIScsiVolumeDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_paravirtualized_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_paravirtualized_volume_details.go index 43cf17d6fe..6f24001be5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_paravirtualized_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_paravirtualized_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -91,7 +91,7 @@ func (m LaunchAttachParavirtualizedVolumeDetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_volume_details.go index 30f3b493c9..6b73cc8836 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_attach_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -98,7 +98,7 @@ func (m *launchattachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (inter err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for LaunchAttachVolumeDetails: %s.", m.Type) + common.Logf("Received unsupported enum value for LaunchAttachVolumeDetails: %s.", m.Type) return *m, nil } } @@ -144,7 +144,7 @@ func (m launchattachvolumedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_create_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_create_volume_details.go index 31e6a0c04e..f7aa46de00 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_create_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_create_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -61,7 +61,7 @@ func (m *launchcreatevolumedetails) UnmarshalPolymorphicJSON(data []byte) (inter err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for LaunchCreateVolumeDetails: %s.", m.VolumeCreationType) + common.Logf("Received unsupported enum value for LaunchCreateVolumeDetails: %s.", m.VolumeCreationType) return *m, nil } } @@ -77,7 +77,7 @@ func (m launchcreatevolumedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_create_volume_from_attributes.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_create_volume_from_attributes.go index 79d334cc8c..f76b565c56 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_create_volume_from_attributes.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_create_volume_from_attributes.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ type LaunchCreateVolumeFromAttributes struct { // 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. + // See Block Volume Performance Levels (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. // Allowed values: // * `0`: Represents Lower Cost option. // * `10`: Represents Balanced option. @@ -62,7 +62,7 @@ func (m LaunchCreateVolumeFromAttributes) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_agent_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_agent_config_details.go index 80d018e718..c1a6b82ebc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_agent_config_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_agent_config_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -55,7 +55,7 @@ type LaunchInstanceAgentConfigDetails struct { // 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). + // Managing Plugins with Oracle Cloud Agent (https://docs.oracle.com/iaas/Content/Compute/Tasks/manage-plugins.htm). AreAllPluginsDisabled *bool `mandatory:"false" json:"areAllPluginsDisabled"` // The configuration of plugins associated with this instance. @@ -73,7 +73,7 @@ func (m LaunchInstanceAgentConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 4671fbf6e8..0f21760694 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -51,7 +51,7 @@ func (m LaunchInstanceAvailabilityConfigDetails) ValidateEnumValue() (bool, erro 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_configuration_request_response.go index cf6f96e943..0fc0340689 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_configuration_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/LaunchInstanceConfiguration.go.html to see an example of how to use LaunchInstanceConfigurationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/LaunchInstanceConfiguration.go.html to see an example of how to use LaunchInstanceConfigurationRequest. type LaunchInstanceConfigurationRequest struct { // The OCID of the instance configuration. @@ -72,7 +72,7 @@ func (request LaunchInstanceConfigurationRequest) RetryPolicy() *common.RetryPol func (request LaunchInstanceConfigurationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -93,8 +93,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_details.go index d4c057ecbc..54e596a346 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -35,7 +35,7 @@ type LaunchInstanceDetails struct { // The OCID of the compute capacity reservation this instance is launched under. // You can opt out of all default reservations 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). + // For more information, see Capacity Reservations (https://docs.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` CreateVnicDetails *CreateVnicDetails `mandatory:"false" json:"createVnicDetails"` @@ -44,11 +44,13 @@ type LaunchInstanceDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` @@ -81,12 +83,12 @@ type LaunchInstanceDetails struct { ClusterPlacementGroupId *string `mandatory:"false" json:"clusterPlacementGroupId"` // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 - // compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + // compute cluster (https://docs.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 @@ -120,7 +122,7 @@ type LaunchInstanceDetails struct { // 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). + // Bring Your Own Image (https://docs.oracle.com/iaas/Content/Compute/References/bringyourownimage.htm). // For more information about iPXE, see http://ipxe.org. IpxeScript *string `mandatory:"false" json:"ipxeScript"` @@ -193,8 +195,16 @@ type LaunchInstanceDetails struct { PlatformConfig LaunchInstancePlatformConfig `mandatory:"false" json:"platformConfig"` + PlacementConstraintDetails PlacementConstraintDetails `mandatory:"false" json:"placementConstraintDetails"` + + // Whether to enable AI enterprise on the instance. + IsAIEnterpriseEnabled *bool `mandatory:"false" json:"isAIEnterpriseEnabled"` + // The OCID of the Instance Configuration containing instance launch details. Any other fields supplied in this instance launch request will override the details stored in the Instance Configuration for this instance launch. InstanceConfigurationId *string `mandatory:"false" json:"instanceConfigurationId"` + + // List of licensing configurations associated with target launch values. + LicensingConfigs []LaunchInstanceLicensingConfig `mandatory:"false" json:"licensingConfigs"` } func (m LaunchInstanceDetails) String() string { @@ -208,7 +218,7 @@ func (m LaunchInstanceDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -243,7 +253,10 @@ func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { LaunchVolumeAttachments []launchattachvolumedetails `json:"launchVolumeAttachments"` IsPvEncryptionInTransitEnabled *bool `json:"isPvEncryptionInTransitEnabled"` PlatformConfig launchinstanceplatformconfig `json:"platformConfig"` + PlacementConstraintDetails placementconstraintdetails `json:"placementConstraintDetails"` + IsAIEnterpriseEnabled *bool `json:"isAIEnterpriseEnabled"` InstanceConfigurationId *string `json:"instanceConfigurationId"` + LicensingConfigs []launchinstancelicensingconfig `json:"licensingConfigs"` AvailabilityDomain *string `json:"availabilityDomain"` CompartmentId *string `json:"compartmentId"` }{} @@ -333,8 +346,32 @@ func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { m.PlatformConfig = nil } + nn, e = model.PlacementConstraintDetails.UnmarshalPolymorphicJSON(model.PlacementConstraintDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.PlacementConstraintDetails = nn.(PlacementConstraintDetails) + } else { + m.PlacementConstraintDetails = nil + } + + m.IsAIEnterpriseEnabled = model.IsAIEnterpriseEnabled + m.InstanceConfigurationId = model.InstanceConfigurationId + m.LicensingConfigs = make([]LaunchInstanceLicensingConfig, len(model.LicensingConfigs)) + for i, n := range model.LicensingConfigs { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.LicensingConfigs[i] = nn.(LaunchInstanceLicensingConfig) + } else { + m.LicensingConfigs[i] = nil + } + } m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_licensing_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_licensing_config.go new file mode 100644 index 0000000000..78d4187c0d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_licensing_config.go @@ -0,0 +1,178 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LaunchInstanceLicensingConfig The license config requested for the instance. +type LaunchInstanceLicensingConfig interface { + + // License Type for the OS license. + // * `OCI_PROVIDED` - OCI provided license (e.g. metered $/OCPU-hour). + // * `BRING_YOUR_OWN_LICENSE` - Bring your own license. + GetLicenseType() LaunchInstanceLicensingConfigLicenseTypeEnum +} + +type launchinstancelicensingconfig struct { + JsonData []byte + LicenseType LaunchInstanceLicensingConfigLicenseTypeEnum `mandatory:"false" json:"licenseType,omitempty"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *launchinstancelicensingconfig) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerlaunchinstancelicensingconfig launchinstancelicensingconfig + s := struct { + Model Unmarshalerlaunchinstancelicensingconfig + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.LicenseType = s.Model.LicenseType + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *launchinstancelicensingconfig) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "WINDOWS": + mm := LaunchInstanceWindowsLicensingConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for LaunchInstanceLicensingConfig: %s.", m.Type) + return *m, nil + } +} + +// GetLicenseType returns LicenseType +func (m launchinstancelicensingconfig) GetLicenseType() LaunchInstanceLicensingConfigLicenseTypeEnum { + return m.LicenseType +} + +func (m launchinstancelicensingconfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m launchinstancelicensingconfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingLaunchInstanceLicensingConfigLicenseTypeEnum(string(m.LicenseType)); !ok && m.LicenseType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LicenseType: %s. Supported values are: %s.", m.LicenseType, strings.Join(GetLaunchInstanceLicensingConfigLicenseTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LaunchInstanceLicensingConfigLicenseTypeEnum Enum with underlying type: string +type LaunchInstanceLicensingConfigLicenseTypeEnum string + +// Set of constants representing the allowable values for LaunchInstanceLicensingConfigLicenseTypeEnum +const ( + LaunchInstanceLicensingConfigLicenseTypeOciProvided LaunchInstanceLicensingConfigLicenseTypeEnum = "OCI_PROVIDED" + LaunchInstanceLicensingConfigLicenseTypeBringYourOwnLicense LaunchInstanceLicensingConfigLicenseTypeEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingLaunchInstanceLicensingConfigLicenseTypeEnum = map[string]LaunchInstanceLicensingConfigLicenseTypeEnum{ + "OCI_PROVIDED": LaunchInstanceLicensingConfigLicenseTypeOciProvided, + "BRING_YOUR_OWN_LICENSE": LaunchInstanceLicensingConfigLicenseTypeBringYourOwnLicense, +} + +var mappingLaunchInstanceLicensingConfigLicenseTypeEnumLowerCase = map[string]LaunchInstanceLicensingConfigLicenseTypeEnum{ + "oci_provided": LaunchInstanceLicensingConfigLicenseTypeOciProvided, + "bring_your_own_license": LaunchInstanceLicensingConfigLicenseTypeBringYourOwnLicense, +} + +// GetLaunchInstanceLicensingConfigLicenseTypeEnumValues Enumerates the set of values for LaunchInstanceLicensingConfigLicenseTypeEnum +func GetLaunchInstanceLicensingConfigLicenseTypeEnumValues() []LaunchInstanceLicensingConfigLicenseTypeEnum { + values := make([]LaunchInstanceLicensingConfigLicenseTypeEnum, 0) + for _, v := range mappingLaunchInstanceLicensingConfigLicenseTypeEnum { + values = append(values, v) + } + return values +} + +// GetLaunchInstanceLicensingConfigLicenseTypeEnumStringValues Enumerates the set of values in String for LaunchInstanceLicensingConfigLicenseTypeEnum +func GetLaunchInstanceLicensingConfigLicenseTypeEnumStringValues() []string { + return []string{ + "OCI_PROVIDED", + "BRING_YOUR_OWN_LICENSE", + } +} + +// GetMappingLaunchInstanceLicensingConfigLicenseTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchInstanceLicensingConfigLicenseTypeEnum(val string) (LaunchInstanceLicensingConfigLicenseTypeEnum, bool) { + enum, ok := mappingLaunchInstanceLicensingConfigLicenseTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LaunchInstanceLicensingConfigTypeEnum Enum with underlying type: string +type LaunchInstanceLicensingConfigTypeEnum string + +// Set of constants representing the allowable values for LaunchInstanceLicensingConfigTypeEnum +const ( + LaunchInstanceLicensingConfigTypeWindows LaunchInstanceLicensingConfigTypeEnum = "WINDOWS" +) + +var mappingLaunchInstanceLicensingConfigTypeEnum = map[string]LaunchInstanceLicensingConfigTypeEnum{ + "WINDOWS": LaunchInstanceLicensingConfigTypeWindows, +} + +var mappingLaunchInstanceLicensingConfigTypeEnumLowerCase = map[string]LaunchInstanceLicensingConfigTypeEnum{ + "windows": LaunchInstanceLicensingConfigTypeWindows, +} + +// GetLaunchInstanceLicensingConfigTypeEnumValues Enumerates the set of values for LaunchInstanceLicensingConfigTypeEnum +func GetLaunchInstanceLicensingConfigTypeEnumValues() []LaunchInstanceLicensingConfigTypeEnum { + values := make([]LaunchInstanceLicensingConfigTypeEnum, 0) + for _, v := range mappingLaunchInstanceLicensingConfigTypeEnum { + values = append(values, v) + } + return values +} + +// GetLaunchInstanceLicensingConfigTypeEnumStringValues Enumerates the set of values in String for LaunchInstanceLicensingConfigTypeEnum +func GetLaunchInstanceLicensingConfigTypeEnumStringValues() []string { + return []string{ + "WINDOWS", + } +} + +// GetMappingLaunchInstanceLicensingConfigTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchInstanceLicensingConfigTypeEnum(val string) (LaunchInstanceLicensingConfigTypeEnum, bool) { + enum, ok := mappingLaunchInstanceLicensingConfigTypeEnumLowerCase[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 index 9b107f962b..bf024d603e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -29,9 +29,9 @@ import ( // 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). +// Shielded Instances (https://docs.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). +// BIOS Settings for Bare Metal Instances (https://docs.oracle.com/iaas/Content/Compute/References/bios-settings.htm). type LaunchInstancePlatformConfig interface { // Whether Secure Boot is enabled on the instance. @@ -122,7 +122,7 @@ func (m *launchinstanceplatformconfig) UnmarshalPolymorphicJSON(data []byte) (in err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for LaunchInstancePlatformConfig: %s.", m.Type) + common.Logf("Received unsupported enum value for LaunchInstancePlatformConfig: %s.", m.Type) return *m, nil } } @@ -158,7 +158,7 @@ func (m launchinstanceplatformconfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_request_response.go index 58ea6080d7..e1b219c286 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/LaunchInstance.go.html to see an example of how to use LaunchInstanceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/LaunchInstance.go.html to see an example of how to use LaunchInstanceRequest. type LaunchInstanceRequest struct { // Instance details @@ -69,7 +69,7 @@ func (request LaunchInstanceRequest) RetryPolicy() *common.RetryPolicy { func (request LaunchInstanceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -90,8 +90,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 3b0a215f8e..6ac12b16aa 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -50,6 +50,9 @@ type LaunchInstanceShapeConfigDetails struct { // The number of NVMe drives to be used for storage. A single drive has 6.8 TB available. Nvmes *int `mandatory:"false" json:"nvmes"` + + // This field is reserved for internal use. + ResourceManagement LaunchInstanceShapeConfigDetailsResourceManagementEnum `mandatory:"false" json:"resourceManagement,omitempty"` } func (m LaunchInstanceShapeConfigDetails) String() string { @@ -65,8 +68,11 @@ func (m LaunchInstanceShapeConfigDetails) ValidateEnumValue() (bool, error) { 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 _, ok := GetMappingLaunchInstanceShapeConfigDetailsResourceManagementEnum(string(m.ResourceManagement)); !ok && m.ResourceManagement != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceManagement: %s. Supported values are: %s.", m.ResourceManagement, strings.Join(GetLaunchInstanceShapeConfigDetailsResourceManagementEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -116,3 +122,45 @@ func GetMappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum(val s enum, ok := mappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// LaunchInstanceShapeConfigDetailsResourceManagementEnum Enum with underlying type: string +type LaunchInstanceShapeConfigDetailsResourceManagementEnum string + +// Set of constants representing the allowable values for LaunchInstanceShapeConfigDetailsResourceManagementEnum +const ( + LaunchInstanceShapeConfigDetailsResourceManagementDynamic LaunchInstanceShapeConfigDetailsResourceManagementEnum = "DYNAMIC" + LaunchInstanceShapeConfigDetailsResourceManagementStatic LaunchInstanceShapeConfigDetailsResourceManagementEnum = "STATIC" +) + +var mappingLaunchInstanceShapeConfigDetailsResourceManagementEnum = map[string]LaunchInstanceShapeConfigDetailsResourceManagementEnum{ + "DYNAMIC": LaunchInstanceShapeConfigDetailsResourceManagementDynamic, + "STATIC": LaunchInstanceShapeConfigDetailsResourceManagementStatic, +} + +var mappingLaunchInstanceShapeConfigDetailsResourceManagementEnumLowerCase = map[string]LaunchInstanceShapeConfigDetailsResourceManagementEnum{ + "dynamic": LaunchInstanceShapeConfigDetailsResourceManagementDynamic, + "static": LaunchInstanceShapeConfigDetailsResourceManagementStatic, +} + +// GetLaunchInstanceShapeConfigDetailsResourceManagementEnumValues Enumerates the set of values for LaunchInstanceShapeConfigDetailsResourceManagementEnum +func GetLaunchInstanceShapeConfigDetailsResourceManagementEnumValues() []LaunchInstanceShapeConfigDetailsResourceManagementEnum { + values := make([]LaunchInstanceShapeConfigDetailsResourceManagementEnum, 0) + for _, v := range mappingLaunchInstanceShapeConfigDetailsResourceManagementEnum { + values = append(values, v) + } + return values +} + +// GetLaunchInstanceShapeConfigDetailsResourceManagementEnumStringValues Enumerates the set of values in String for LaunchInstanceShapeConfigDetailsResourceManagementEnum +func GetLaunchInstanceShapeConfigDetailsResourceManagementEnumStringValues() []string { + return []string{ + "DYNAMIC", + "STATIC", + } +} + +// GetMappingLaunchInstanceShapeConfigDetailsResourceManagementEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchInstanceShapeConfigDetailsResourceManagementEnum(val string) (LaunchInstanceShapeConfigDetailsResourceManagementEnum, bool) { + enum, ok := mappingLaunchInstanceShapeConfigDetailsResourceManagementEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_windows_licensing_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_windows_licensing_config.go new file mode 100644 index 0000000000..b258bc15e3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_windows_licensing_config.go @@ -0,0 +1,70 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LaunchInstanceWindowsLicensingConfig The default windows licensing config. +type LaunchInstanceWindowsLicensingConfig struct { + + // License Type for the OS license. + // * `OCI_PROVIDED` - OCI provided license (e.g. metered $/OCPU-hour). + // * `BRING_YOUR_OWN_LICENSE` - Bring your own license. + LicenseType LaunchInstanceLicensingConfigLicenseTypeEnum `mandatory:"false" json:"licenseType,omitempty"` +} + +// GetLicenseType returns LicenseType +func (m LaunchInstanceWindowsLicensingConfig) GetLicenseType() LaunchInstanceLicensingConfigLicenseTypeEnum { + return m.LicenseType +} + +func (m LaunchInstanceWindowsLicensingConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LaunchInstanceWindowsLicensingConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingLaunchInstanceLicensingConfigLicenseTypeEnum(string(m.LicenseType)); !ok && m.LicenseType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LicenseType: %s. Supported values are: %s.", m.LicenseType, strings.Join(GetLaunchInstanceLicensingConfigLicenseTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m LaunchInstanceWindowsLicensingConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeLaunchInstanceWindowsLicensingConfig LaunchInstanceWindowsLicensingConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeLaunchInstanceWindowsLicensingConfig + }{ + "WINDOWS", + (MarshalTypeLaunchInstanceWindowsLicensingConfig)(m), + } + + return json.Marshal(&s) +} 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 index 7423f2864c..fe58caf142 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -90,7 +90,7 @@ func (m LaunchOptions) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bed774160d..cda883cc25 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -31,7 +31,7 @@ type LetterOfAuthority struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. CrossConnectId *string `mandatory:"false" json:"crossConnectId"` // The address of the FastConnect location. @@ -62,7 +62,7 @@ func (m LetterOfAuthority) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/licensing_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/licensing_config.go new file mode 100644 index 0000000000..ea0ffe2998 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/licensing_config.go @@ -0,0 +1,139 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LicensingConfig Configuration of the Operating System license. +type LicensingConfig struct { + + // Operating System type of the Configuration. + Type LicensingConfigTypeEnum `mandatory:"false" json:"type,omitempty"` + + // License Type for the OS license. + // * `OCI_PROVIDED` - OCI provided license (e.g. metered $/OCPU-hour). + // * `BRING_YOUR_OWN_LICENSE` - Bring your own license. + LicenseType LicensingConfigLicenseTypeEnum `mandatory:"false" json:"licenseType,omitempty"` + + // The Operating System version of the license config. + OsVersion *string `mandatory:"false" json:"osVersion"` +} + +func (m LicensingConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LicensingConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingLicensingConfigTypeEnum(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(GetLicensingConfigTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingLicensingConfigLicenseTypeEnum(string(m.LicenseType)); !ok && m.LicenseType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LicenseType: %s. Supported values are: %s.", m.LicenseType, strings.Join(GetLicensingConfigLicenseTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LicensingConfigTypeEnum Enum with underlying type: string +type LicensingConfigTypeEnum string + +// Set of constants representing the allowable values for LicensingConfigTypeEnum +const ( + LicensingConfigTypeWindows LicensingConfigTypeEnum = "WINDOWS" +) + +var mappingLicensingConfigTypeEnum = map[string]LicensingConfigTypeEnum{ + "WINDOWS": LicensingConfigTypeWindows, +} + +var mappingLicensingConfigTypeEnumLowerCase = map[string]LicensingConfigTypeEnum{ + "windows": LicensingConfigTypeWindows, +} + +// GetLicensingConfigTypeEnumValues Enumerates the set of values for LicensingConfigTypeEnum +func GetLicensingConfigTypeEnumValues() []LicensingConfigTypeEnum { + values := make([]LicensingConfigTypeEnum, 0) + for _, v := range mappingLicensingConfigTypeEnum { + values = append(values, v) + } + return values +} + +// GetLicensingConfigTypeEnumStringValues Enumerates the set of values in String for LicensingConfigTypeEnum +func GetLicensingConfigTypeEnumStringValues() []string { + return []string{ + "WINDOWS", + } +} + +// GetMappingLicensingConfigTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLicensingConfigTypeEnum(val string) (LicensingConfigTypeEnum, bool) { + enum, ok := mappingLicensingConfigTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LicensingConfigLicenseTypeEnum Enum with underlying type: string +type LicensingConfigLicenseTypeEnum string + +// Set of constants representing the allowable values for LicensingConfigLicenseTypeEnum +const ( + LicensingConfigLicenseTypeOciProvided LicensingConfigLicenseTypeEnum = "OCI_PROVIDED" + LicensingConfigLicenseTypeBringYourOwnLicense LicensingConfigLicenseTypeEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingLicensingConfigLicenseTypeEnum = map[string]LicensingConfigLicenseTypeEnum{ + "OCI_PROVIDED": LicensingConfigLicenseTypeOciProvided, + "BRING_YOUR_OWN_LICENSE": LicensingConfigLicenseTypeBringYourOwnLicense, +} + +var mappingLicensingConfigLicenseTypeEnumLowerCase = map[string]LicensingConfigLicenseTypeEnum{ + "oci_provided": LicensingConfigLicenseTypeOciProvided, + "bring_your_own_license": LicensingConfigLicenseTypeBringYourOwnLicense, +} + +// GetLicensingConfigLicenseTypeEnumValues Enumerates the set of values for LicensingConfigLicenseTypeEnum +func GetLicensingConfigLicenseTypeEnumValues() []LicensingConfigLicenseTypeEnum { + values := make([]LicensingConfigLicenseTypeEnum, 0) + for _, v := range mappingLicensingConfigLicenseTypeEnum { + values = append(values, v) + } + return values +} + +// GetLicensingConfigLicenseTypeEnumStringValues Enumerates the set of values in String for LicensingConfigLicenseTypeEnum +func GetLicensingConfigLicenseTypeEnumStringValues() []string { + return []string{ + "OCI_PROVIDED", + "BRING_YOUR_OWN_LICENSE", + } +} + +// GetMappingLicensingConfigLicenseTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLicensingConfigLicenseTypeEnum(val string) (LicensingConfigLicenseTypeEnum, bool) { + enum, ok := mappingLicensingConfigLicenseTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 25b79f32f2..2818e37065 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAllowedPeerRegionsForRemotePeering.go.html to see an example of how to use ListAllowedPeerRegionsForRemotePeeringRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAllowedPeerRegionsForRemotePeering.go.html to see an example of how to use ListAllowedPeerRegionsForRemotePeeringRequest. type ListAllowedPeerRegionsForRemotePeeringRequest struct { // Unique Oracle-assigned identifier for the request. @@ -59,7 +59,7 @@ func (request ListAllowedPeerRegionsForRemotePeeringRequest) RetryPolicy() *comm func (request ListAllowedPeerRegionsForRemotePeeringRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ac87a34926..7bf53dbb03 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogListingResourceVersions.go.html to see an example of how to use ListAppCatalogListingResourceVersionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogListingResourceVersions.go.html to see an example of how to use ListAppCatalogListingResourceVersionsRequest. type ListAppCatalogListingResourceVersionsRequest struct { // The OCID of the listing. @@ -23,13 +23,13 @@ type ListAppCatalogListingResourceVersionsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -80,7 +80,7 @@ func (request ListAppCatalogListingResourceVersionsRequest) ValidateEnumValue() 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ type ListAppCatalogListingResourceVersionsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 0e91d40dc9..07d900db4f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,18 +15,18 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogListings.go.html to see an example of how to use ListAppCatalogListingsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogListings.go.html to see an example of how to use ListAppCatalogListingsRequest. 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -86,7 +86,7 @@ func (request ListAppCatalogListingsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -102,7 +102,7 @@ type ListAppCatalogListingsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 5a5196e6b7..4970c6a6d6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogSubscriptions.go.html to see an example of how to use ListAppCatalogSubscriptionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListAppCatalogSubscriptions.go.html to see an example of how to use ListAppCatalogSubscriptionsRequest. type ListAppCatalogSubscriptionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -95,7 +95,7 @@ func (request ListAppCatalogSubscriptionsRequest) ValidateEnumValue() (bool, err 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -111,7 +111,7 @@ type ListAppCatalogSubscriptionsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 304ce9f1ca..67125686d1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,14 +15,14 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBlockVolumeReplicas.go.html to see an example of how to use ListBlockVolumeReplicasRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBlockVolumeReplicas.go.html to see an example of how to use ListBlockVolumeReplicasRequest. 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. + // The OCID (https://docs.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. @@ -30,13 +30,13 @@ type ListBlockVolumeReplicasRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -108,7 +108,7 @@ func (request ListBlockVolumeReplicasRequest) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -124,7 +124,7 @@ type ListBlockVolumeReplicasResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 3548e525cd..ee0600b87e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,25 +15,25 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeAttachments.go.html to see an example of how to use ListBootVolumeAttachmentsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeAttachments.go.html to see an example of how to use ListBootVolumeAttachmentsRequest. type ListBootVolumeAttachmentsRequest 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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the instance. @@ -83,7 +83,7 @@ func (request ListBootVolumeAttachmentsRequest) RetryPolicy() *common.RetryPolic func (request ListBootVolumeAttachmentsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -99,7 +99,7 @@ type ListBootVolumeAttachmentsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 42a6d3f400..b5983b5901 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeBackups.go.html to see an example of how to use ListBootVolumeBackupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeBackups.go.html to see an example of how to use ListBootVolumeBackupsRequest. type ListBootVolumeBackupsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -26,13 +26,13 @@ type ListBootVolumeBackupsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -108,7 +108,7 @@ func (request ListBootVolumeBackupsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -124,7 +124,7 @@ type ListBootVolumeBackupsResponse struct { // 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). + // List Pagination (https://docs.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 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 index c415fc5f6e..8ff54b46fd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,14 +15,14 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeReplicas.go.html to see an example of how to use ListBootVolumeReplicasRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumeReplicas.go.html to see an example of how to use ListBootVolumeReplicasRequest. 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. + // The OCID (https://docs.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. @@ -30,13 +30,13 @@ type ListBootVolumeReplicasRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -108,7 +108,7 @@ func (request ListBootVolumeReplicasRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -124,7 +124,7 @@ type ListBootVolumeReplicasResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volumes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volumes_request_response.go index 22e3bb2f12..217940137c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volumes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volumes_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,25 +15,25 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumes.go.html to see an example of how to use ListBootVolumesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListBootVolumes.go.html to see an example of how to use ListBootVolumesRequest. type ListBootVolumesRequest 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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the volume group. @@ -80,7 +80,7 @@ func (request ListBootVolumesRequest) RetryPolicy() *common.RetryPolicy { func (request ListBootVolumesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ type ListBootVolumesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoasns_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoasns_request_response.go new file mode 100644 index 0000000000..27cba21399 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoasns_request_response.go @@ -0,0 +1,210 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ListByoasnsRequest wrapper for the ListByoasns operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListByoasns.go.html to see an example of how to use ListByoasnsRequest. +type ListByoasnsRequest struct { + + // The OCID (https://docs.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.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.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, for byoasn List operation. + SortBy ListByoasnsSortByEnum `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 ListByoasnsSortOrderEnum `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 ListByoasnsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListByoasnsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListByoasnsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListByoasnsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListByoasnsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListByoasnsSortByEnum(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(GetListByoasnsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListByoasnsSortOrderEnum(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(GetListByoasnsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListByoasnsResponse wrapper for the ListByoasns operation +type ListByoasnsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ByoasnCollection instances + ByoasnCollection `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.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 ListByoasnsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListByoasnsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListByoasnsSortByEnum Enum with underlying type: string +type ListByoasnsSortByEnum string + +// Set of constants representing the allowable values for ListByoasnsSortByEnum +const ( + ListByoasnsSortByTimecreated ListByoasnsSortByEnum = "TIMECREATED" + ListByoasnsSortByDisplayname ListByoasnsSortByEnum = "DISPLAYNAME" +) + +var mappingListByoasnsSortByEnum = map[string]ListByoasnsSortByEnum{ + "TIMECREATED": ListByoasnsSortByTimecreated, + "DISPLAYNAME": ListByoasnsSortByDisplayname, +} + +var mappingListByoasnsSortByEnumLowerCase = map[string]ListByoasnsSortByEnum{ + "timecreated": ListByoasnsSortByTimecreated, + "displayname": ListByoasnsSortByDisplayname, +} + +// GetListByoasnsSortByEnumValues Enumerates the set of values for ListByoasnsSortByEnum +func GetListByoasnsSortByEnumValues() []ListByoasnsSortByEnum { + values := make([]ListByoasnsSortByEnum, 0) + for _, v := range mappingListByoasnsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListByoasnsSortByEnumStringValues Enumerates the set of values in String for ListByoasnsSortByEnum +func GetListByoasnsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListByoasnsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListByoasnsSortByEnum(val string) (ListByoasnsSortByEnum, bool) { + enum, ok := mappingListByoasnsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListByoasnsSortOrderEnum Enum with underlying type: string +type ListByoasnsSortOrderEnum string + +// Set of constants representing the allowable values for ListByoasnsSortOrderEnum +const ( + ListByoasnsSortOrderAsc ListByoasnsSortOrderEnum = "ASC" + ListByoasnsSortOrderDesc ListByoasnsSortOrderEnum = "DESC" +) + +var mappingListByoasnsSortOrderEnum = map[string]ListByoasnsSortOrderEnum{ + "ASC": ListByoasnsSortOrderAsc, + "DESC": ListByoasnsSortOrderDesc, +} + +var mappingListByoasnsSortOrderEnumLowerCase = map[string]ListByoasnsSortOrderEnum{ + "asc": ListByoasnsSortOrderAsc, + "desc": ListByoasnsSortOrderDesc, +} + +// GetListByoasnsSortOrderEnumValues Enumerates the set of values for ListByoasnsSortOrderEnum +func GetListByoasnsSortOrderEnumValues() []ListByoasnsSortOrderEnum { + values := make([]ListByoasnsSortOrderEnum, 0) + for _, v := range mappingListByoasnsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListByoasnsSortOrderEnumStringValues Enumerates the set of values in String for ListByoasnsSortOrderEnum +func GetListByoasnsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListByoasnsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListByoasnsSortOrderEnum(val string) (ListByoasnsSortOrderEnum, bool) { + enum, ok := mappingListByoasnsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 2a81c83f7a..28779af439 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListByoipAllocatedRanges.go.html to see an example of how to use ListByoipAllocatedRangesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListByoipAllocatedRanges.go.html to see an example of how to use ListByoipAllocatedRangesRequest. type ListByoipAllocatedRangesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource containing the BYOIP CIDR block. + // The OCID (https://docs.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. @@ -27,13 +27,13 @@ type ListByoipAllocatedRangesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -73,7 +73,7 @@ func (request ListByoipAllocatedRangesRequest) RetryPolicy() *common.RetryPolicy func (request ListByoipAllocatedRangesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListByoipAllocatedRangesResponse struct { // 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). + // List Pagination (https://docs.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 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 index d7cb2dffdd..8f85262970 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListByoipRanges.go.html to see an example of how to use ListByoipRangesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListByoipRanges.go.html to see an example of how to use ListByoipRangesRequest. type ListByoipRangesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Unique identifier for the request. @@ -27,13 +27,13 @@ type ListByoipRangesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -98,7 +98,7 @@ func (request ListByoipRangesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -114,7 +114,7 @@ type ListByoipRangesResponse struct { // 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). + // List Pagination (https://docs.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 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 index a9b8d8e9a6..ae1180ca52 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCaptureFilters.go.html to see an example of how to use ListCaptureFiltersRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCaptureFilters.go.html to see an example of how to use ListCaptureFiltersRequest. type ListCaptureFiltersRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -108,7 +108,7 @@ func (request ListCaptureFiltersRequest) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FilterType: %s. Supported values are: %s.", request.FilterType, strings.Join(GetCaptureFilterFilterTypeEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -124,7 +124,7 @@ type ListCaptureFiltersResponse struct { // 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). + // List Pagination (https://docs.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 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 index 505ef2a0cb..3590632687 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListClusterNetworkInstances.go.html to see an example of how to use ListClusterNetworkInstancesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListClusterNetworkInstances.go.html to see an example of how to use ListClusterNetworkInstancesRequest. type ListClusterNetworkInstancesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -29,13 +29,13 @@ type ListClusterNetworkInstancesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -98,7 +98,7 @@ func (request ListClusterNetworkInstancesRequest) ValidateEnumValue() (bool, err 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -114,7 +114,7 @@ type ListClusterNetworkInstancesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 27b80fbd51..d5ebb3a63c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListClusterNetworks.go.html to see an example of how to use ListClusterNetworksRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListClusterNetworks.go.html to see an example of how to use ListClusterNetworksRequest. type ListClusterNetworksRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -26,13 +26,13 @@ type ListClusterNetworksRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -102,7 +102,7 @@ func (request ListClusterNetworksRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -118,7 +118,7 @@ type ListClusterNetworksResponse struct { // 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). + // List Pagination (https://docs.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 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 index cef65a88b1..074f2d6c4b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservationInstanceShapes.go.html to see an example of how to use ListComputeCapacityReservationInstanceShapesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservationInstanceShapes.go.html to see an example of how to use ListComputeCapacityReservationInstanceShapesRequest. type ListComputeCapacityReservationInstanceShapesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -31,13 +31,13 @@ type ListComputeCapacityReservationInstanceShapesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -99,7 +99,7 @@ func (request ListComputeCapacityReservationInstanceShapesRequest) ValidateEnumV 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -115,7 +115,7 @@ type ListComputeCapacityReservationInstanceShapesResponse struct { // 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). + // List Pagination (https://docs.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 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 index f5ecfeabb8..f56bb7d36b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservationInstances.go.html to see an example of how to use ListComputeCapacityReservationInstancesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservationInstances.go.html to see an example of how to use ListComputeCapacityReservationInstancesRequest. type ListComputeCapacityReservationInstancesRequest struct { // The OCID of the compute capacity reservation. @@ -25,7 +25,7 @@ type ListComputeCapacityReservationInstancesRequest struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` // Unique identifier for the request. @@ -34,13 +34,13 @@ type ListComputeCapacityReservationInstancesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -99,7 +99,7 @@ func (request ListComputeCapacityReservationInstancesRequest) ValidateEnumValue( 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -115,7 +115,7 @@ type ListComputeCapacityReservationInstancesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 34dc5b41c4..a5c155e787 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservations.go.html to see an example of how to use ListComputeCapacityReservationsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityReservations.go.html to see an example of how to use ListComputeCapacityReservationsRequest. type ListComputeCapacityReservationsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -33,13 +33,13 @@ type ListComputeCapacityReservationsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -105,7 +105,7 @@ func (request ListComputeCapacityReservationsRequest) ValidateEnumValue() (bool, 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListComputeCapacityReservationsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topologies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topologies_request_response.go index 90a69a60d9..596e9e8520 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topologies_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topologies_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologies.go.html to see an example of how to use ListComputeCapacityTopologiesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologies.go.html to see an example of how to use ListComputeCapacityTopologiesRequest. type ListComputeCapacityTopologiesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -30,13 +30,13 @@ type ListComputeCapacityTopologiesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -99,7 +99,7 @@ func (request ListComputeCapacityTopologiesRequest) ValidateEnumValue() (bool, e errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeCapacityTopologiesSortOrderEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -115,7 +115,7 @@ type ListComputeCapacityTopologiesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_bare_metal_hosts_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_bare_metal_hosts_request_response.go index a0a9c6bc65..0d33ed6855 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_bare_metal_hosts_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_bare_metal_hosts_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,37 +15,37 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeBareMetalHosts.go.html to see an example of how to use ListComputeCapacityTopologyComputeBareMetalHostsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeBareMetalHosts.go.html to see an example of how to use ListComputeCapacityTopologyComputeBareMetalHostsRequest. type ListComputeCapacityTopologyComputeBareMetalHostsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" contributesTo:"path" name:"computeCapacityTopologyId"` // 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. + // The OCID (https://docs.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 compute HPC island. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. ComputeHpcIslandId *string `mandatory:"false" contributesTo:"query" name:"computeHpcIslandId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. ComputeNetworkBlockId *string `mandatory:"false" contributesTo:"query" name:"computeNetworkBlockId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute local block. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute local block. ComputeLocalBlockId *string `mandatory:"false" contributesTo:"query" name:"computeLocalBlockId"` // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -108,7 +108,7 @@ func (request ListComputeCapacityTopologyComputeBareMetalHostsRequest) ValidateE errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeCapacityTopologyComputeBareMetalHostsSortOrderEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -124,7 +124,7 @@ type ListComputeCapacityTopologyComputeBareMetalHostsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_hpc_islands_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_hpc_islands_request_response.go index 3645c68f05..be310cc299 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_hpc_islands_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_hpc_islands_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,28 +15,28 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeHpcIslands.go.html to see an example of how to use ListComputeCapacityTopologyComputeHpcIslandsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeHpcIslands.go.html to see an example of how to use ListComputeCapacityTopologyComputeHpcIslandsRequest. type ListComputeCapacityTopologyComputeHpcIslandsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" contributesTo:"path" name:"computeCapacityTopologyId"` // 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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -99,7 +99,7 @@ func (request ListComputeCapacityTopologyComputeHpcIslandsRequest) ValidateEnumV errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeCapacityTopologyComputeHpcIslandsSortOrderEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -115,7 +115,7 @@ type ListComputeCapacityTopologyComputeHpcIslandsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_network_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_network_blocks_request_response.go index d7fb6e2838..8a5ef3828f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_network_blocks_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_topology_compute_network_blocks_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,31 +15,31 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeNetworkBlocks.go.html to see an example of how to use ListComputeCapacityTopologyComputeNetworkBlocksRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeCapacityTopologyComputeNetworkBlocks.go.html to see an example of how to use ListComputeCapacityTopologyComputeNetworkBlocksRequest. type ListComputeCapacityTopologyComputeNetworkBlocksRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" contributesTo:"path" name:"computeCapacityTopologyId"` // 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. + // The OCID (https://docs.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 compute HPC island. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. ComputeHpcIslandId *string `mandatory:"false" contributesTo:"query" name:"computeHpcIslandId"` // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -102,7 +102,7 @@ func (request ListComputeCapacityTopologyComputeNetworkBlocksRequest) ValidateEn errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeCapacityTopologyComputeNetworkBlocksSortOrderEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -118,7 +118,7 @@ type ListComputeCapacityTopologyComputeNetworkBlocksResponse struct { // 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). + // List Pagination (https://docs.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 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 index eaec09df70..3a391f785d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeClusters.go.html to see an example of how to use ListComputeClustersRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeClusters.go.html to see an example of how to use ListComputeClustersRequest. type ListComputeClustersRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -30,13 +30,13 @@ type ListComputeClustersRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -99,7 +99,7 @@ func (request ListComputeClustersRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -115,7 +115,7 @@ type ListComputeClustersResponse struct { // 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). + // List Pagination (https://docs.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 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 index c580a52bed..3cfcac6f05 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGlobalImageCapabilitySchemaVersions.go.html to see an example of how to use ListComputeGlobalImageCapabilitySchemaVersionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGlobalImageCapabilitySchemaVersions.go.html to see an example of how to use ListComputeGlobalImageCapabilitySchemaVersionsRequest. type ListComputeGlobalImageCapabilitySchemaVersionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute global image capability schema + // The OCID (https://docs.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. @@ -26,13 +26,13 @@ type ListComputeGlobalImageCapabilitySchemaVersionsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -95,7 +95,7 @@ func (request ListComputeGlobalImageCapabilitySchemaVersionsRequest) ValidateEnu 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -111,7 +111,7 @@ type ListComputeGlobalImageCapabilitySchemaVersionsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 813bb407ae..5fc9eb8c1f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGlobalImageCapabilitySchemas.go.html to see an example of how to use ListComputeGlobalImageCapabilitySchemasRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGlobalImageCapabilitySchemas.go.html to see an example of how to use ListComputeGlobalImageCapabilitySchemasRequest. type ListComputeGlobalImageCapabilitySchemasRequest struct { // A filter to return only resources that match the given compartment OCID exactly. @@ -26,13 +26,13 @@ type ListComputeGlobalImageCapabilitySchemasRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -95,7 +95,7 @@ func (request ListComputeGlobalImageCapabilitySchemasRequest) ValidateEnumValue( 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -111,7 +111,7 @@ type ListComputeGlobalImageCapabilitySchemasResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_cluster_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_cluster_instances_request_response.go new file mode 100644 index 0000000000..c11ce35c25 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_cluster_instances_request_response.go @@ -0,0 +1,213 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ListComputeGpuMemoryClusterInstancesRequest wrapper for the ListComputeGpuMemoryClusterInstances operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGpuMemoryClusterInstances.go.html to see an example of how to use ListComputeGpuMemoryClusterInstancesRequest. +type ListComputeGpuMemoryClusterInstancesRequest struct { + + // The OCID of the compute GPU memory cluster. + ComputeGpuMemoryClusterId *string `mandatory:"true" contributesTo:"path" name:"computeGpuMemoryClusterId"` + + // 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 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.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 ListComputeGpuMemoryClusterInstancesSortByEnum `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 ListComputeGpuMemoryClusterInstancesSortOrderEnum `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + 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 ListComputeGpuMemoryClusterInstancesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeGpuMemoryClusterInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeGpuMemoryClusterInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeGpuMemoryClusterInstancesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeGpuMemoryClusterInstancesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListComputeGpuMemoryClusterInstancesSortByEnum(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(GetListComputeGpuMemoryClusterInstancesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeGpuMemoryClusterInstancesSortOrderEnum(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(GetListComputeGpuMemoryClusterInstancesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeGpuMemoryClusterInstancesResponse wrapper for the ListComputeGpuMemoryClusterInstances operation +type ListComputeGpuMemoryClusterInstancesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ComputeGpuMemoryClusterInstanceCollection instances + ComputeGpuMemoryClusterInstanceCollection `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // 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.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 ListComputeGpuMemoryClusterInstancesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeGpuMemoryClusterInstancesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeGpuMemoryClusterInstancesSortByEnum Enum with underlying type: string +type ListComputeGpuMemoryClusterInstancesSortByEnum string + +// Set of constants representing the allowable values for ListComputeGpuMemoryClusterInstancesSortByEnum +const ( + ListComputeGpuMemoryClusterInstancesSortByTimecreated ListComputeGpuMemoryClusterInstancesSortByEnum = "TIMECREATED" + ListComputeGpuMemoryClusterInstancesSortByDisplayname ListComputeGpuMemoryClusterInstancesSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeGpuMemoryClusterInstancesSortByEnum = map[string]ListComputeGpuMemoryClusterInstancesSortByEnum{ + "TIMECREATED": ListComputeGpuMemoryClusterInstancesSortByTimecreated, + "DISPLAYNAME": ListComputeGpuMemoryClusterInstancesSortByDisplayname, +} + +var mappingListComputeGpuMemoryClusterInstancesSortByEnumLowerCase = map[string]ListComputeGpuMemoryClusterInstancesSortByEnum{ + "timecreated": ListComputeGpuMemoryClusterInstancesSortByTimecreated, + "displayname": ListComputeGpuMemoryClusterInstancesSortByDisplayname, +} + +// GetListComputeGpuMemoryClusterInstancesSortByEnumValues Enumerates the set of values for ListComputeGpuMemoryClusterInstancesSortByEnum +func GetListComputeGpuMemoryClusterInstancesSortByEnumValues() []ListComputeGpuMemoryClusterInstancesSortByEnum { + values := make([]ListComputeGpuMemoryClusterInstancesSortByEnum, 0) + for _, v := range mappingListComputeGpuMemoryClusterInstancesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeGpuMemoryClusterInstancesSortByEnumStringValues Enumerates the set of values in String for ListComputeGpuMemoryClusterInstancesSortByEnum +func GetListComputeGpuMemoryClusterInstancesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeGpuMemoryClusterInstancesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeGpuMemoryClusterInstancesSortByEnum(val string) (ListComputeGpuMemoryClusterInstancesSortByEnum, bool) { + enum, ok := mappingListComputeGpuMemoryClusterInstancesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeGpuMemoryClusterInstancesSortOrderEnum Enum with underlying type: string +type ListComputeGpuMemoryClusterInstancesSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeGpuMemoryClusterInstancesSortOrderEnum +const ( + ListComputeGpuMemoryClusterInstancesSortOrderAsc ListComputeGpuMemoryClusterInstancesSortOrderEnum = "ASC" + ListComputeGpuMemoryClusterInstancesSortOrderDesc ListComputeGpuMemoryClusterInstancesSortOrderEnum = "DESC" +) + +var mappingListComputeGpuMemoryClusterInstancesSortOrderEnum = map[string]ListComputeGpuMemoryClusterInstancesSortOrderEnum{ + "ASC": ListComputeGpuMemoryClusterInstancesSortOrderAsc, + "DESC": ListComputeGpuMemoryClusterInstancesSortOrderDesc, +} + +var mappingListComputeGpuMemoryClusterInstancesSortOrderEnumLowerCase = map[string]ListComputeGpuMemoryClusterInstancesSortOrderEnum{ + "asc": ListComputeGpuMemoryClusterInstancesSortOrderAsc, + "desc": ListComputeGpuMemoryClusterInstancesSortOrderDesc, +} + +// GetListComputeGpuMemoryClusterInstancesSortOrderEnumValues Enumerates the set of values for ListComputeGpuMemoryClusterInstancesSortOrderEnum +func GetListComputeGpuMemoryClusterInstancesSortOrderEnumValues() []ListComputeGpuMemoryClusterInstancesSortOrderEnum { + values := make([]ListComputeGpuMemoryClusterInstancesSortOrderEnum, 0) + for _, v := range mappingListComputeGpuMemoryClusterInstancesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeGpuMemoryClusterInstancesSortOrderEnumStringValues Enumerates the set of values in String for ListComputeGpuMemoryClusterInstancesSortOrderEnum +func GetListComputeGpuMemoryClusterInstancesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeGpuMemoryClusterInstancesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeGpuMemoryClusterInstancesSortOrderEnum(val string) (ListComputeGpuMemoryClusterInstancesSortOrderEnum, bool) { + enum, ok := mappingListComputeGpuMemoryClusterInstancesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_clusters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_clusters_request_response.go new file mode 100644 index 0000000000..8d219f983e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_clusters_request_response.go @@ -0,0 +1,228 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ListComputeGpuMemoryClustersRequest wrapper for the ListComputeGpuMemoryClusters operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGpuMemoryClusters.go.html to see an example of how to use ListComputeGpuMemoryClustersRequest. +type ListComputeGpuMemoryClustersRequest struct { + + // The OCID (https://docs.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"` + + // A filter to return only the listings that matches the given GPU memory cluster id. + ComputeGpuMemoryClusterId *string `mandatory:"false" contributesTo:"query" name:"computeGpuMemoryClusterId"` + + // 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"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory + // access (RDMA) network group. + ComputeClusterId *string `mandatory:"false" contributesTo:"query" name:"computeClusterId"` + + // 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.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 ListComputeGpuMemoryClustersSortByEnum `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 ListComputeGpuMemoryClustersSortOrderEnum `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + 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 ListComputeGpuMemoryClustersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeGpuMemoryClustersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeGpuMemoryClustersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeGpuMemoryClustersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeGpuMemoryClustersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListComputeGpuMemoryClustersSortByEnum(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(GetListComputeGpuMemoryClustersSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeGpuMemoryClustersSortOrderEnum(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(GetListComputeGpuMemoryClustersSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeGpuMemoryClustersResponse wrapper for the ListComputeGpuMemoryClusters operation +type ListComputeGpuMemoryClustersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ComputeGpuMemoryClusterCollection instances + ComputeGpuMemoryClusterCollection `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // 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.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 ListComputeGpuMemoryClustersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeGpuMemoryClustersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeGpuMemoryClustersSortByEnum Enum with underlying type: string +type ListComputeGpuMemoryClustersSortByEnum string + +// Set of constants representing the allowable values for ListComputeGpuMemoryClustersSortByEnum +const ( + ListComputeGpuMemoryClustersSortByTimecreated ListComputeGpuMemoryClustersSortByEnum = "TIMECREATED" + ListComputeGpuMemoryClustersSortByDisplayname ListComputeGpuMemoryClustersSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeGpuMemoryClustersSortByEnum = map[string]ListComputeGpuMemoryClustersSortByEnum{ + "TIMECREATED": ListComputeGpuMemoryClustersSortByTimecreated, + "DISPLAYNAME": ListComputeGpuMemoryClustersSortByDisplayname, +} + +var mappingListComputeGpuMemoryClustersSortByEnumLowerCase = map[string]ListComputeGpuMemoryClustersSortByEnum{ + "timecreated": ListComputeGpuMemoryClustersSortByTimecreated, + "displayname": ListComputeGpuMemoryClustersSortByDisplayname, +} + +// GetListComputeGpuMemoryClustersSortByEnumValues Enumerates the set of values for ListComputeGpuMemoryClustersSortByEnum +func GetListComputeGpuMemoryClustersSortByEnumValues() []ListComputeGpuMemoryClustersSortByEnum { + values := make([]ListComputeGpuMemoryClustersSortByEnum, 0) + for _, v := range mappingListComputeGpuMemoryClustersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeGpuMemoryClustersSortByEnumStringValues Enumerates the set of values in String for ListComputeGpuMemoryClustersSortByEnum +func GetListComputeGpuMemoryClustersSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeGpuMemoryClustersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeGpuMemoryClustersSortByEnum(val string) (ListComputeGpuMemoryClustersSortByEnum, bool) { + enum, ok := mappingListComputeGpuMemoryClustersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeGpuMemoryClustersSortOrderEnum Enum with underlying type: string +type ListComputeGpuMemoryClustersSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeGpuMemoryClustersSortOrderEnum +const ( + ListComputeGpuMemoryClustersSortOrderAsc ListComputeGpuMemoryClustersSortOrderEnum = "ASC" + ListComputeGpuMemoryClustersSortOrderDesc ListComputeGpuMemoryClustersSortOrderEnum = "DESC" +) + +var mappingListComputeGpuMemoryClustersSortOrderEnum = map[string]ListComputeGpuMemoryClustersSortOrderEnum{ + "ASC": ListComputeGpuMemoryClustersSortOrderAsc, + "DESC": ListComputeGpuMemoryClustersSortOrderDesc, +} + +var mappingListComputeGpuMemoryClustersSortOrderEnumLowerCase = map[string]ListComputeGpuMemoryClustersSortOrderEnum{ + "asc": ListComputeGpuMemoryClustersSortOrderAsc, + "desc": ListComputeGpuMemoryClustersSortOrderDesc, +} + +// GetListComputeGpuMemoryClustersSortOrderEnumValues Enumerates the set of values for ListComputeGpuMemoryClustersSortOrderEnum +func GetListComputeGpuMemoryClustersSortOrderEnumValues() []ListComputeGpuMemoryClustersSortOrderEnum { + values := make([]ListComputeGpuMemoryClustersSortOrderEnum, 0) + for _, v := range mappingListComputeGpuMemoryClustersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeGpuMemoryClustersSortOrderEnumStringValues Enumerates the set of values in String for ListComputeGpuMemoryClustersSortOrderEnum +func GetListComputeGpuMemoryClustersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeGpuMemoryClustersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeGpuMemoryClustersSortOrderEnum(val string) (ListComputeGpuMemoryClustersSortOrderEnum, bool) { + enum, ok := mappingListComputeGpuMemoryClustersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_fabrics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_fabrics_request_response.go new file mode 100644 index 0000000000..f956a3e577 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_gpu_memory_fabrics_request_response.go @@ -0,0 +1,238 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ListComputeGpuMemoryFabricsRequest wrapper for the ListComputeGpuMemoryFabrics operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeGpuMemoryFabrics.go.html to see an example of how to use ListComputeGpuMemoryFabricsRequest. +type ListComputeGpuMemoryFabricsRequest struct { + + // The OCID (https://docs.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"` + + // A filter to return only the listings that matches the given GPU memory fabric id. + ComputeGpuMemoryFabricId *string `mandatory:"false" contributesTo:"query" name:"computeGpuMemoryFabricId"` + + // 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"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute HPC island. + ComputeHpcIslandId *string `mandatory:"false" contributesTo:"query" name:"computeHpcIslandId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute network block. + ComputeNetworkBlockId *string `mandatory:"false" contributesTo:"query" name:"computeNetworkBlockId"` + + // A filter to return ComputeGpuMemoryFabricSummary resources that match the given lifecycle state. + ComputeGpuMemoryFabricLifecycleState ComputeGpuMemoryFabricLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"computeGpuMemoryFabricLifecycleState" omitEmpty:"true"` + + // A filter to return ComputeGpuMemoryFabricSummary resources that match the given fabric health. + ComputeGpuMemoryFabricHealth ComputeGpuMemoryFabricFabricHealthEnum `mandatory:"false" contributesTo:"query" name:"computeGpuMemoryFabricHealth" 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.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.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 ListComputeGpuMemoryFabricsSortByEnum `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 ListComputeGpuMemoryFabricsSortOrderEnum `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 ListComputeGpuMemoryFabricsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeGpuMemoryFabricsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeGpuMemoryFabricsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeGpuMemoryFabricsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeGpuMemoryFabricsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeGpuMemoryFabricLifecycleStateEnum(string(request.ComputeGpuMemoryFabricLifecycleState)); !ok && request.ComputeGpuMemoryFabricLifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ComputeGpuMemoryFabricLifecycleState: %s. Supported values are: %s.", request.ComputeGpuMemoryFabricLifecycleState, strings.Join(GetComputeGpuMemoryFabricLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingComputeGpuMemoryFabricFabricHealthEnum(string(request.ComputeGpuMemoryFabricHealth)); !ok && request.ComputeGpuMemoryFabricHealth != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ComputeGpuMemoryFabricHealth: %s. Supported values are: %s.", request.ComputeGpuMemoryFabricHealth, strings.Join(GetComputeGpuMemoryFabricFabricHealthEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeGpuMemoryFabricsSortByEnum(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(GetListComputeGpuMemoryFabricsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeGpuMemoryFabricsSortOrderEnum(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(GetListComputeGpuMemoryFabricsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeGpuMemoryFabricsResponse wrapper for the ListComputeGpuMemoryFabrics operation +type ListComputeGpuMemoryFabricsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ComputeGpuMemoryFabricCollection instances + ComputeGpuMemoryFabricCollection `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.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 ListComputeGpuMemoryFabricsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeGpuMemoryFabricsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeGpuMemoryFabricsSortByEnum Enum with underlying type: string +type ListComputeGpuMemoryFabricsSortByEnum string + +// Set of constants representing the allowable values for ListComputeGpuMemoryFabricsSortByEnum +const ( + ListComputeGpuMemoryFabricsSortByTimecreated ListComputeGpuMemoryFabricsSortByEnum = "TIMECREATED" + ListComputeGpuMemoryFabricsSortByDisplayname ListComputeGpuMemoryFabricsSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeGpuMemoryFabricsSortByEnum = map[string]ListComputeGpuMemoryFabricsSortByEnum{ + "TIMECREATED": ListComputeGpuMemoryFabricsSortByTimecreated, + "DISPLAYNAME": ListComputeGpuMemoryFabricsSortByDisplayname, +} + +var mappingListComputeGpuMemoryFabricsSortByEnumLowerCase = map[string]ListComputeGpuMemoryFabricsSortByEnum{ + "timecreated": ListComputeGpuMemoryFabricsSortByTimecreated, + "displayname": ListComputeGpuMemoryFabricsSortByDisplayname, +} + +// GetListComputeGpuMemoryFabricsSortByEnumValues Enumerates the set of values for ListComputeGpuMemoryFabricsSortByEnum +func GetListComputeGpuMemoryFabricsSortByEnumValues() []ListComputeGpuMemoryFabricsSortByEnum { + values := make([]ListComputeGpuMemoryFabricsSortByEnum, 0) + for _, v := range mappingListComputeGpuMemoryFabricsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeGpuMemoryFabricsSortByEnumStringValues Enumerates the set of values in String for ListComputeGpuMemoryFabricsSortByEnum +func GetListComputeGpuMemoryFabricsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeGpuMemoryFabricsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeGpuMemoryFabricsSortByEnum(val string) (ListComputeGpuMemoryFabricsSortByEnum, bool) { + enum, ok := mappingListComputeGpuMemoryFabricsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeGpuMemoryFabricsSortOrderEnum Enum with underlying type: string +type ListComputeGpuMemoryFabricsSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeGpuMemoryFabricsSortOrderEnum +const ( + ListComputeGpuMemoryFabricsSortOrderAsc ListComputeGpuMemoryFabricsSortOrderEnum = "ASC" + ListComputeGpuMemoryFabricsSortOrderDesc ListComputeGpuMemoryFabricsSortOrderEnum = "DESC" +) + +var mappingListComputeGpuMemoryFabricsSortOrderEnum = map[string]ListComputeGpuMemoryFabricsSortOrderEnum{ + "ASC": ListComputeGpuMemoryFabricsSortOrderAsc, + "DESC": ListComputeGpuMemoryFabricsSortOrderDesc, +} + +var mappingListComputeGpuMemoryFabricsSortOrderEnumLowerCase = map[string]ListComputeGpuMemoryFabricsSortOrderEnum{ + "asc": ListComputeGpuMemoryFabricsSortOrderAsc, + "desc": ListComputeGpuMemoryFabricsSortOrderDesc, +} + +// GetListComputeGpuMemoryFabricsSortOrderEnumValues Enumerates the set of values for ListComputeGpuMemoryFabricsSortOrderEnum +func GetListComputeGpuMemoryFabricsSortOrderEnumValues() []ListComputeGpuMemoryFabricsSortOrderEnum { + values := make([]ListComputeGpuMemoryFabricsSortOrderEnum, 0) + for _, v := range mappingListComputeGpuMemoryFabricsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeGpuMemoryFabricsSortOrderEnumStringValues Enumerates the set of values in String for ListComputeGpuMemoryFabricsSortOrderEnum +func GetListComputeGpuMemoryFabricsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeGpuMemoryFabricsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeGpuMemoryFabricsSortOrderEnum(val string) (ListComputeGpuMemoryFabricsSortOrderEnum, bool) { + enum, ok := mappingListComputeGpuMemoryFabricsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_host_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_host_groups_request_response.go new file mode 100644 index 0000000000..b646280935 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_host_groups_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ListComputeHostGroupsRequest wrapper for the ListComputeHostGroups operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeHostGroups.go.html to see an example of how to use ListComputeHostGroupsRequest. +type ListComputeHostGroupsRequest struct { + + // The OCID (https://docs.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 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.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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + 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 ListComputeHostGroupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeHostGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeHostGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeHostGroupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeHostGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeHostGroupsResponse wrapper for the ListComputeHostGroups operation +type ListComputeHostGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ComputeHostGroupCollection instances + ComputeHostGroupCollection `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.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 ListComputeHostGroupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeHostGroupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_hosts_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_hosts_request_response.go new file mode 100644 index 0000000000..98d62b3b27 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_hosts_request_response.go @@ -0,0 +1,237 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ListComputeHostsRequest wrapper for the ListComputeHosts operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeHosts.go.html to see an example of how to use ListComputeHostsRequest. +type ListComputeHostsRequest struct { + + // The OCID (https://docs.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"` + + // 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"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host network resoruce. + // - Customer-unique HPC island ID + // - Customer-unique network block ID + // - Customer-unique local block ID + NetworkResourceId *string `mandatory:"false" contributesTo:"query" name:"networkResourceId"` + + // 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.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.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 ListComputeHostsSortByEnum `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 ListComputeHostsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only ComputeHostSummary resources that match the given Compute Host lifecycle State OCID exactly. + ComputeHostLifecycleState *string `mandatory:"false" contributesTo:"query" name:"computeHostLifecycleState"` + + // A filter to return only ComputeHostSummary resources that match the given Compute Host health State OCID exactly. + ComputeHostHealth *string `mandatory:"false" contributesTo:"query" name:"computeHostHealth"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group. + ComputeHostGroupId *string `mandatory:"false" contributesTo:"query" name:"computeHostGroupId"` + + // When set to true, all the compartments in the tenancy are traversed + // and the hosts in the specified tenancy and its compartments are fetched. + // Default is false. + ComputeHostInSubtree *bool `mandatory:"false" contributesTo:"query" name:"computeHostInSubtree"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListComputeHostsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeHostsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeHostsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeHostsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeHostsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListComputeHostsSortByEnum(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(GetListComputeHostsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeHostsSortOrderEnum(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(GetListComputeHostsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeHostsResponse wrapper for the ListComputeHosts operation +type ListComputeHostsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ComputeHostCollection instances + ComputeHostCollection `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.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 ListComputeHostsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeHostsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeHostsSortByEnum Enum with underlying type: string +type ListComputeHostsSortByEnum string + +// Set of constants representing the allowable values for ListComputeHostsSortByEnum +const ( + ListComputeHostsSortByTimecreated ListComputeHostsSortByEnum = "TIMECREATED" + ListComputeHostsSortByDisplayname ListComputeHostsSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeHostsSortByEnum = map[string]ListComputeHostsSortByEnum{ + "TIMECREATED": ListComputeHostsSortByTimecreated, + "DISPLAYNAME": ListComputeHostsSortByDisplayname, +} + +var mappingListComputeHostsSortByEnumLowerCase = map[string]ListComputeHostsSortByEnum{ + "timecreated": ListComputeHostsSortByTimecreated, + "displayname": ListComputeHostsSortByDisplayname, +} + +// GetListComputeHostsSortByEnumValues Enumerates the set of values for ListComputeHostsSortByEnum +func GetListComputeHostsSortByEnumValues() []ListComputeHostsSortByEnum { + values := make([]ListComputeHostsSortByEnum, 0) + for _, v := range mappingListComputeHostsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeHostsSortByEnumStringValues Enumerates the set of values in String for ListComputeHostsSortByEnum +func GetListComputeHostsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeHostsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeHostsSortByEnum(val string) (ListComputeHostsSortByEnum, bool) { + enum, ok := mappingListComputeHostsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeHostsSortOrderEnum Enum with underlying type: string +type ListComputeHostsSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeHostsSortOrderEnum +const ( + ListComputeHostsSortOrderAsc ListComputeHostsSortOrderEnum = "ASC" + ListComputeHostsSortOrderDesc ListComputeHostsSortOrderEnum = "DESC" +) + +var mappingListComputeHostsSortOrderEnum = map[string]ListComputeHostsSortOrderEnum{ + "ASC": ListComputeHostsSortOrderAsc, + "DESC": ListComputeHostsSortOrderDesc, +} + +var mappingListComputeHostsSortOrderEnumLowerCase = map[string]ListComputeHostsSortOrderEnum{ + "asc": ListComputeHostsSortOrderAsc, + "desc": ListComputeHostsSortOrderDesc, +} + +// GetListComputeHostsSortOrderEnumValues Enumerates the set of values for ListComputeHostsSortOrderEnum +func GetListComputeHostsSortOrderEnumValues() []ListComputeHostsSortOrderEnum { + values := make([]ListComputeHostsSortOrderEnum, 0) + for _, v := range mappingListComputeHostsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeHostsSortOrderEnumStringValues Enumerates the set of values in String for ListComputeHostsSortOrderEnum +func GetListComputeHostsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeHostsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeHostsSortOrderEnum(val string) (ListComputeHostsSortOrderEnum, bool) { + enum, ok := mappingListComputeHostsSortOrderEnumLowerCase[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 index b4eed95485..d0b8b0f2a2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeImageCapabilitySchemas.go.html to see an example of how to use ListComputeImageCapabilitySchemasRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListComputeImageCapabilitySchemas.go.html to see an example of how to use ListComputeImageCapabilitySchemasRequest. 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. + // The OCID (https://docs.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. @@ -29,13 +29,13 @@ type ListComputeImageCapabilitySchemasRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -98,7 +98,7 @@ func (request ListComputeImageCapabilitySchemasRequest) ValidateEnumValue() (boo 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -114,7 +114,7 @@ type ListComputeImageCapabilitySchemasResponse struct { // 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). + // List Pagination (https://docs.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 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 index 2a067e3802..05892301c5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListConsoleHistories.go.html to see an example of how to use ListConsoleHistoriesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListConsoleHistories.go.html to see an example of how to use ListConsoleHistoriesRequest. type ListConsoleHistoriesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -27,13 +27,13 @@ type ListConsoleHistoriesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the instance. @@ -106,7 +106,7 @@ func (request ListConsoleHistoriesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -122,7 +122,7 @@ type ListConsoleHistoriesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 392819b1c4..7e18e17852 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,18 +15,18 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCpeDeviceShapes.go.html to see an example of how to use ListCpeDeviceShapesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCpeDeviceShapes.go.html to see an example of how to use ListCpeDeviceShapesRequest. type ListCpeDeviceShapesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -70,7 +70,7 @@ func (request ListCpeDeviceShapesRequest) RetryPolicy() *common.RetryPolicy { func (request ListCpeDeviceShapesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -86,7 +86,7 @@ type ListCpeDeviceShapesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cpes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cpes_request_response.go index 617960a3ea..7707969ae9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cpes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cpes_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCpes.go.html to see an example of how to use ListCpesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCpes.go.html to see an example of how to use ListCpesRequest. type ListCpesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -73,7 +73,7 @@ func (request ListCpesRequest) RetryPolicy() *common.RetryPolicy { func (request ListCpesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListCpesResponse struct { // 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). + // List Pagination (https://docs.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 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 index d9c5bce148..793cc2f027 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectGroups.go.html to see an example of how to use ListCrossConnectGroupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectGroups.go.html to see an example of how to use ListCrossConnectGroupsRequest. type ListCrossConnectGroupsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -102,7 +102,7 @@ func (request ListCrossConnectGroupsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -118,7 +118,7 @@ type ListCrossConnectGroupsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 96f389d9da..daede5f732 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectLocations.go.html to see an example of how to use ListCrossConnectLocationsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectLocations.go.html to see an example of how to use ListCrossConnectLocationsRequest. type ListCrossConnectLocationsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -73,7 +73,7 @@ func (request ListCrossConnectLocationsRequest) RetryPolicy() *common.RetryPolic func (request ListCrossConnectLocationsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListCrossConnectLocationsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c6dec7d0af..248456c1e0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectMappings.go.html to see an example of how to use ListCrossConnectMappingsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnectMappings.go.html to see an example of how to use ListCrossConnectMappingsRequest. type ListCrossConnectMappingsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request ListCrossConnectMappingsRequest) RetryPolicy() *common.RetryPolicy func (request ListCrossConnectMappingsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 175dbf6e30..d05972353e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnects.go.html to see an example of how to use ListCrossConnectsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossConnects.go.html to see an example of how to use ListCrossConnectsRequest. type ListCrossConnectsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -105,7 +105,7 @@ func (request ListCrossConnectsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListCrossConnectsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index da91caaed7..de97e924fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossconnectPortSpeedShapes.go.html to see an example of how to use ListCrossconnectPortSpeedShapesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListCrossconnectPortSpeedShapes.go.html to see an example of how to use ListCrossconnectPortSpeedShapesRequest. type ListCrossconnectPortSpeedShapesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -73,7 +73,7 @@ func (request ListCrossconnectPortSpeedShapesRequest) RetryPolicy() *common.Retr func (request ListCrossconnectPortSpeedShapesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListCrossconnectPortSpeedShapesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index d84659353e..c57449f05e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostInstanceShapes.go.html to see an example of how to use ListDedicatedVmHostInstanceShapesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostInstanceShapes.go.html to see an example of how to use ListDedicatedVmHostInstanceShapesRequest. type ListDedicatedVmHostInstanceShapesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -30,13 +30,13 @@ type ListDedicatedVmHostInstanceShapesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -80,7 +80,7 @@ func (request ListDedicatedVmHostInstanceShapesRequest) RetryPolicy() *common.Re func (request ListDedicatedVmHostInstanceShapesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ type ListDedicatedVmHostInstanceShapesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 3a68676526..0de5638a52 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostInstances.go.html to see an example of how to use ListDedicatedVmHostInstancesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostInstances.go.html to see an example of how to use ListDedicatedVmHostInstancesRequest. type ListDedicatedVmHostInstancesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -28,15 +28,18 @@ type ListDedicatedVmHostInstancesRequest struct { // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + // A filter to return only confidential Dedicated VM hosts (DVMH) or confidential VM instances on DVMH. + IsMemoryEncryptionEnabled *bool `mandatory:"false" contributesTo:"query" name:"isMemoryEncryptionEnabled"` + // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -99,7 +102,7 @@ func (request ListDedicatedVmHostInstancesRequest) ValidateEnumValue() (bool, er 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -115,7 +118,7 @@ type ListDedicatedVmHostInstancesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 1025c1c738..b65f20bbe3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostShapes.go.html to see an example of how to use ListDedicatedVmHostShapesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHostShapes.go.html to see an example of how to use ListDedicatedVmHostShapesRequest. type ListDedicatedVmHostShapesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -30,13 +30,13 @@ type ListDedicatedVmHostShapesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -80,7 +80,7 @@ func (request ListDedicatedVmHostShapesRequest) RetryPolicy() *common.RetryPolic func (request ListDedicatedVmHostShapesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ type ListDedicatedVmHostShapesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 94ce3276e7..cd481bf393 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHosts.go.html to see an example of how to use ListDedicatedVmHostsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDedicatedVmHosts.go.html to see an example of how to use ListDedicatedVmHostsRequest. type ListDedicatedVmHostsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -36,13 +36,13 @@ type ListDedicatedVmHostsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -68,6 +68,9 @@ type ListDedicatedVmHostsRequest struct { // The available OCPUs of the dedicated VM host. RemainingOcpusGreaterThanOrEqualTo *float32 `mandatory:"false" contributesTo:"query" name:"remainingOcpusGreaterThanOrEqualTo"` + // A filter to return only confidential Dedicated VM hosts (DVMH) or confidential VM instances on DVMH. + IsMemoryEncryptionEnabled *bool `mandatory:"false" contributesTo:"query" name:"isMemoryEncryptionEnabled"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -114,7 +117,7 @@ func (request ListDedicatedVmHostsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -130,7 +133,7 @@ type ListDedicatedVmHostsResponse struct { // 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). + // List Pagination (https://docs.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 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 index b99b7af4a4..152e3124ae 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDhcpOptions.go.html to see an example of how to use ListDhcpOptionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDhcpOptions.go.html to see an example of how to use ListDhcpOptionsRequest. type ListDhcpOptionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -105,7 +105,7 @@ func (request ListDhcpOptionsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListDhcpOptionsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 6c35e1216b..9d5cb6c447 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,36 +15,36 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgAttachments.go.html to see an example of how to use ListDrgAttachmentsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgAttachments.go.html to see an example of how to use ListDrgAttachmentsRequest. type ListDrgAttachmentsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -120,7 +120,7 @@ func (request ListDrgAttachmentsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -136,7 +136,7 @@ type ListDrgAttachmentsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 8bf71aa0ce..e05c24e6ab 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteDistributionStatements.go.html to see an example of how to use ListDrgRouteDistributionStatementsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteDistributionStatements.go.html to see an example of how to use ListDrgRouteDistributionStatementsRequest. type ListDrgRouteDistributionStatementsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The field to sort by. @@ -86,7 +86,7 @@ func (request ListDrgRouteDistributionStatementsRequest) ValidateEnumValue() (bo 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -102,7 +102,7 @@ type ListDrgRouteDistributionStatementsResponse struct { // 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). + // List Pagination (https://docs.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 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 index c686396a95..4b3aa18732 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteDistributions.go.html to see an example of how to use ListDrgRouteDistributionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteDistributions.go.html to see an example of how to use ListDrgRouteDistributionsRequest. type ListDrgRouteDistributionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -102,7 +102,7 @@ func (request ListDrgRouteDistributionsRequest) ValidateEnumValue() (bool, error 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -118,7 +118,7 @@ type ListDrgRouteDistributionsResponse struct { // 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). + // List Pagination (https://docs.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 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 index a18b813330..f907ba9270 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteRules.go.html to see an example of how to use ListDrgRouteRulesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteRules.go.html to see an example of how to use ListDrgRouteRulesRequest. type ListDrgRouteRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -80,7 +80,7 @@ func (request ListDrgRouteRulesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ type ListDrgRouteRulesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 53694981be..b375637ce4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteTables.go.html to see an example of how to use ListDrgRouteTablesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgRouteTables.go.html to see an example of how to use ListDrgRouteTablesRequest. type ListDrgRouteTablesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -48,7 +48,7 @@ type ListDrgRouteTablesRequest struct { // 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. + // The OCID (https://docs.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 @@ -105,7 +105,7 @@ func (request ListDrgRouteTablesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListDrgRouteTablesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_request_response.go index ffb09c4ec9..5c354fc493 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgs.go.html to see an example of how to use ListDrgsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListDrgs.go.html to see an example of how to use ListDrgsRequest. type ListDrgsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -73,7 +73,7 @@ func (request ListDrgsRequest) RetryPolicy() *common.RetryPolicy { func (request ListDrgsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListDrgsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c69cc0b3a0..fde78e43f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListFastConnectProviderServices.go.html to see an example of how to use ListFastConnectProviderServicesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListFastConnectProviderServices.go.html to see an example of how to use ListFastConnectProviderServicesRequest. type ListFastConnectProviderServicesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -73,7 +73,7 @@ func (request ListFastConnectProviderServicesRequest) RetryPolicy() *common.Retr func (request ListFastConnectProviderServicesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListFastConnectProviderServicesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 2175d85f1a..8df5656b97 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListFastConnectProviderVirtualCircuitBandwidthShapes.go.html to see an example of how to use ListFastConnectProviderVirtualCircuitBandwidthShapesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListFastConnectProviderVirtualCircuitBandwidthShapes.go.html to see an example of how to use ListFastConnectProviderVirtualCircuitBandwidthShapesRequest. type ListFastConnectProviderVirtualCircuitBandwidthShapesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the provider service. + // The OCID (https://docs.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 // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -73,7 +73,7 @@ func (request ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) Retry func (request ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListFastConnectProviderVirtualCircuitBandwidthShapesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 3e3340cda2..05dd7374aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnelRoutes.go.html to see an example of how to use ListIPSecConnectionTunnelRoutesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnelRoutes.go.html to see an example of how to use ListIPSecConnectionTunnelRoutesRequest. type ListIPSecConnectionTunnelRoutesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. TunnelId *string `mandatory:"true" contributesTo:"path" name:"tunnelId"` // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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`, this returns only the @@ -84,7 +84,7 @@ func (request ListIPSecConnectionTunnelRoutesRequest) ValidateEnumValue() (bool, 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -100,7 +100,7 @@ type ListIPSecConnectionTunnelRoutesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index cfcc661585..4a13ec7a5a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnelSecurityAssociations.go.html to see an example of how to use ListIPSecConnectionTunnelSecurityAssociationsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnelSecurityAssociations.go.html to see an example of how to use ListIPSecConnectionTunnelSecurityAssociationsRequest. type ListIPSecConnectionTunnelSecurityAssociationsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. TunnelId *string `mandatory:"true" contributesTo:"path" name:"tunnelId"` // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -76,7 +76,7 @@ func (request ListIPSecConnectionTunnelSecurityAssociationsRequest) RetryPolicy( func (request ListIPSecConnectionTunnelSecurityAssociationsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type ListIPSecConnectionTunnelSecurityAssociationsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 21aaf5991f..0943d55c19 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnels.go.html to see an example of how to use ListIPSecConnectionTunnelsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnectionTunnels.go.html to see an example of how to use ListIPSecConnectionTunnelsRequest. type ListIPSecConnectionTunnelsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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 // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -73,7 +73,7 @@ func (request ListIPSecConnectionTunnelsRequest) RetryPolicy() *common.RetryPoli func (request ListIPSecConnectionTunnelsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListIPSecConnectionTunnelsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 0e2b697c13..7797d4e2ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,27 +15,27 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnections.go.html to see an example of how to use ListIPSecConnectionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIPSecConnections.go.html to see an example of how to use ListIPSecConnectionsRequest. type ListIPSecConnectionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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 DRG. + // The OCID (https://docs.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/iaas/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.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 // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -79,7 +79,7 @@ func (request ListIPSecConnectionsRequest) RetryPolicy() *common.RetryPolicy { func (request ListIPSecConnectionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -95,7 +95,7 @@ type ListIPSecConnectionsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index af6442260d..851d1e1cfc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListImageShapeCompatibilityEntries.go.html to see an example of how to use ListImageShapeCompatibilityEntriesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListImageShapeCompatibilityEntries.go.html to see an example of how to use ListImageShapeCompatibilityEntriesRequest. type ListImageShapeCompatibilityEntriesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -73,7 +73,7 @@ func (request ListImageShapeCompatibilityEntriesRequest) RetryPolicy() *common.R func (request ListImageShapeCompatibilityEntriesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListImageShapeCompatibilityEntriesResponse struct { // 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). + // List Pagination (https://docs.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 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 index a62b672b86..e8bbd2239f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListImages.go.html to see an example of how to use ListImagesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListImages.go.html to see an example of how to use ListImagesRequest. type ListImagesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -37,13 +37,13 @@ type ListImagesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -113,7 +113,7 @@ func (request ListImagesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -129,7 +129,7 @@ type ListImagesResponse struct { // 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). + // List Pagination (https://docs.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 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 index f6f9df6d20..fa87e936dd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceConfigurations.go.html to see an example of how to use ListInstanceConfigurationsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceConfigurations.go.html to see an example of how to use ListInstanceConfigurationsRequest. type ListInstanceConfigurationsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -92,7 +92,7 @@ func (request ListInstanceConfigurationsRequest) ValidateEnumValue() (bool, erro 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -108,7 +108,7 @@ type ListInstanceConfigurationsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 5e513774e2..68723732aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceConsoleConnections.go.html to see an example of how to use ListInstanceConsoleConnectionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceConsoleConnections.go.html to see an example of how to use ListInstanceConsoleConnectionsRequest. type ListInstanceConsoleConnectionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The OCID of the instance. @@ -26,13 +26,13 @@ type ListInstanceConsoleConnectionsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -76,7 +76,7 @@ func (request ListInstanceConsoleConnectionsRequest) RetryPolicy() *common.Retry func (request ListInstanceConsoleConnectionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type ListInstanceConsoleConnectionsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 36016abb85..0777caa47d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceDevices.go.html to see an example of how to use ListInstanceDevicesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceDevices.go.html to see an example of how to use ListInstanceDevicesRequest. type ListInstanceDevicesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.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. @@ -29,13 +29,13 @@ type ListInstanceDevicesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -98,7 +98,7 @@ func (request ListInstanceDevicesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -114,7 +114,7 @@ type ListInstanceDevicesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_maintenance_events_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_maintenance_events_request_response.go index d2aed48740..4462017090 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_maintenance_events_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_maintenance_events_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceMaintenanceEvents.go.html to see an example of how to use ListInstanceMaintenanceEventsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstanceMaintenanceEvents.go.html to see an example of how to use ListInstanceMaintenanceEventsRequest. type ListInstanceMaintenanceEventsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The OCID of the instance. @@ -41,13 +41,13 @@ type ListInstanceMaintenanceEventsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -113,7 +113,7 @@ func (request ListInstanceMaintenanceEventsRequest) ValidateEnumValue() (bool, e errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListInstanceMaintenanceEventsSortOrderEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -129,7 +129,7 @@ type ListInstanceMaintenanceEventsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 3c1f901c34..a282307298 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstancePoolInstances.go.html to see an example of how to use ListInstancePoolInstancesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstancePoolInstances.go.html to see an example of how to use ListInstancePoolInstancesRequest. type ListInstancePoolInstancesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -29,13 +29,13 @@ type ListInstancePoolInstancesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -98,7 +98,7 @@ func (request ListInstancePoolInstancesRequest) ValidateEnumValue() (bool, error 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -114,7 +114,7 @@ type ListInstancePoolInstancesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 29a0e61340..928e3e0e31 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstancePools.go.html to see an example of how to use ListInstancePoolsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstancePools.go.html to see an example of how to use ListInstancePoolsRequest. type ListInstancePoolsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -26,13 +26,13 @@ type ListInstancePoolsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -102,7 +102,7 @@ func (request ListInstancePoolsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -118,7 +118,7 @@ type ListInstancePoolsResponse struct { // 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). + // List Pagination (https://docs.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 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 index eab4ee10d2..e5d45444a2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstances.go.html to see an example of how to use ListInstancesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInstances.go.html to see an example of how to use ListInstancesRequest. type ListInstancesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -28,8 +28,8 @@ type ListInstancesRequest struct { // 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 (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory // access (RDMA) network group. ComputeClusterId *string `mandatory:"false" contributesTo:"query" name:"computeClusterId"` @@ -38,13 +38,13 @@ type ListInstancesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -114,7 +114,7 @@ func (request ListInstancesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -130,7 +130,7 @@ type ListInstancesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 812aec5e17..17ce15758a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInternetGateways.go.html to see an example of how to use ListInternetGatewaysRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListInternetGateways.go.html to see an example of how to use ListInternetGatewaysRequest. type ListInternetGatewaysRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -105,7 +105,7 @@ func (request ListInternetGatewaysRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListInternetGatewaysResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ip_inventory_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ip_inventory_details.go index 794c31afff..98e78bd3d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ip_inventory_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ip_inventory_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -27,7 +27,7 @@ type ListIpInventoryDetails struct { // Lists the selected regions. RegionList []string `mandatory:"true" json:"regionList"` - // List the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartments. + // List the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartments. CompartmentList []string `mandatory:"true" json:"compartmentList"` // List of selected filters. @@ -59,10 +59,10 @@ type ListIpInventoryDetails struct { SortOrder ListIpInventoryDetailsSortOrderEnum `mandatory:"false" json:"sortOrder,omitempty"` // Most List operations paginate results. Results are paginated for the ListInstances operations. When you call a paginated List operation, the response indicates more pages of results by including the opc-next-page header. - // For more information, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // For more information, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). PaginationOffset *int `mandatory:"false" json:"paginationOffset"` - // Specifies the maximum number of results displayed per page for a paginated "List" call. For more information, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Specifies the maximum number of results displayed per page for a paginated "List" call. For more information, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `50` PaginationLimit *int `mandatory:"false" json:"paginationLimit"` } @@ -90,7 +90,7 @@ func (m ListIpInventoryDetails) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", m.SortOrder, strings.Join(GetListIpInventoryDetailsSortOrderEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ip_inventory_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ip_inventory_request_response.go index 746a9c89a3..1162b4f769 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ip_inventory_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ip_inventory_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIpInventory.go.html to see an example of how to use ListIpInventoryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIpInventory.go.html to see an example of how to use ListIpInventoryRequest. type ListIpInventoryRequest struct { // Details required to list the IP Inventory data. @@ -62,7 +62,7 @@ func (request ListIpInventoryRequest) RetryPolicy() *common.RetryPolicy { func (request ListIpInventoryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -81,7 +81,7 @@ type ListIpInventoryResponse struct { // 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). + // List Pagination (https://docs.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 @@ -91,16 +91,16 @@ type ListIpInventoryResponse struct { // For list pagination. A pagination token to get the total number of results available. OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` - // 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) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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"` // The IpInventory API current state. LifecycleState ListIpInventoryLifecycleStateEnum `presentIn:"header" name:"lifecycle-state"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + // Use GetWorkRequest (https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the resource. DataRequestId *string `presentIn:"header" name:"data-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ipv6s_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ipv6s_request_response.go index 2407fe9787..3a1029ed64 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ipv6s_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ipv6s_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,30 +15,39 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIpv6s.go.html to see an example of how to use ListIpv6sRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListIpv6s.go.html to see an example of how to use ListIpv6sRequest. type ListIpv6sRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // An IP address. This could be either IPv4 or IPv6, depending on the resource. // Example: `10.0.3.3` IpAddress *string `mandatory:"false" contributesTo:"query" name:"ipAddress"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"false" contributesTo:"query" name:"subnetId"` // The OCID of the VNIC. VnicId *string `mandatory:"false" contributesTo:"query" name:"vnicId"` + // State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED otherwise AVAILABLE + IpState *string `mandatory:"false" contributesTo:"query" name:"ipState"` + + // Lifetime of the IP address. + // There are two types of IPs: + // - Ephemeral + // - Reserved + Lifetime *string `mandatory:"false" contributesTo:"query" name:"lifetime"` + // 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"` @@ -80,7 +89,7 @@ func (request ListIpv6sRequest) RetryPolicy() *common.RetryPolicy { func (request ListIpv6sRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +105,7 @@ type ListIpv6sResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index eedda3b39c..465f6797a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListLocalPeeringGateways.go.html to see an example of how to use ListLocalPeeringGatewaysRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListLocalPeeringGateways.go.html to see an example of how to use ListLocalPeeringGatewaysRequest. type ListLocalPeeringGatewaysRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` // Unique Oracle-assigned identifier for the request. @@ -76,7 +76,7 @@ func (request ListLocalPeeringGatewaysRequest) RetryPolicy() *common.RetryPolicy func (request ListLocalPeeringGatewaysRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type ListLocalPeeringGatewaysResponse struct { // 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). + // List Pagination (https://docs.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 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 index 1a7f789920..e8162e7283 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNatGateways.go.html to see an example of how to use ListNatGatewaysRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNatGateways.go.html to see an example of how to use ListNatGatewaysRequest. type ListNatGatewaysRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -105,7 +105,7 @@ func (request ListNatGatewaysRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListNatGatewaysResponse struct { // 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). + // List Pagination (https://docs.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 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 index 313ff74f7f..005998deac 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroupSecurityRules.go.html to see an example of how to use ListNetworkSecurityGroupSecurityRulesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroupSecurityRules.go.html to see an example of how to use ListNetworkSecurityGroupSecurityRulesRequest. type ListNetworkSecurityGroupSecurityRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + // The OCID (https://docs.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, @@ -27,13 +27,13 @@ type ListNetworkSecurityGroupSecurityRulesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The field to sort by. @@ -93,7 +93,7 @@ func (request ListNetworkSecurityGroupSecurityRulesRequest) ValidateEnumValue() 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -109,7 +109,7 @@ type ListNetworkSecurityGroupSecurityRulesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 42463a0551..53a2f95190 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroupVnics.go.html to see an example of how to use ListNetworkSecurityGroupVnicsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroupVnics.go.html to see an example of how to use ListNetworkSecurityGroupVnicsRequest. type ListNetworkSecurityGroupVnicsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The field to sort by. @@ -86,7 +86,7 @@ func (request ListNetworkSecurityGroupVnicsRequest) ValidateEnumValue() (bool, e 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -102,7 +102,7 @@ type ListNetworkSecurityGroupVnicsResponse struct { // 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). + // List Pagination (https://docs.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 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 index b3be12febc..fa4142f3a5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,27 +15,27 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroups.go.html to see an example of how to use ListNetworkSecurityGroupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListNetworkSecurityGroups.go.html to see an example of how to use ListNetworkSecurityGroupsRequest. type ListNetworkSecurityGroupsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -108,7 +108,7 @@ func (request ListNetworkSecurityGroupsRequest) ValidateEnumValue() (bool, error 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -124,7 +124,7 @@ type ListNetworkSecurityGroupsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_ips_request_response.go index 7828c113d7..903994f36b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_ips_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_ips_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,31 +15,40 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPrivateIps.go.html to see an example of how to use ListPrivateIpsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPrivateIps.go.html to see an example of how to use ListPrivateIpsRequest. type ListPrivateIpsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // An IP address. This could be either IPv4 or IPv6, depending on the resource. // Example: `10.0.3.3` IpAddress *string `mandatory:"false" contributesTo:"query" name:"ipAddress"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"false" contributesTo:"query" name:"subnetId"` // The OCID of the VNIC. VnicId *string `mandatory:"false" contributesTo:"query" name:"vnicId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. + // State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED otherwise AVAILABLE + IpState *string `mandatory:"false" contributesTo:"query" name:"ipState"` + + // Lifetime of the IP address. + // There are two types of IPs: + // - Ephemeral + // - Reserved + Lifetime *string `mandatory:"false" contributesTo:"query" name:"lifetime"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. VlanId *string `mandatory:"false" contributesTo:"query" name:"vlanId"` // Unique Oracle-assigned identifier for the request. @@ -83,7 +92,7 @@ func (request ListPrivateIpsRequest) RetryPolicy() *common.RetryPolicy { func (request ListPrivateIpsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -99,7 +108,7 @@ type ListPrivateIpsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 879139fd9a..38d98b917c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPublicIpPools.go.html to see an example of how to use ListPublicIpPoolsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPublicIpPools.go.html to see an example of how to use ListPublicIpPoolsRequest. type ListPublicIpPoolsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Unique identifier for the request. @@ -27,13 +27,13 @@ type ListPublicIpPoolsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -98,7 +98,7 @@ func (request ListPublicIpPoolsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -114,7 +114,7 @@ type ListPublicIpPoolsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 938546eb92..484ad8c291 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPublicIps.go.html to see an example of how to use ListPublicIpsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListPublicIps.go.html to see an example of how to use ListPublicIpsRequest. type ListPublicIpsRequest struct { // Whether the public IP is regional or specific to a particular availability domain. @@ -28,18 +28,18 @@ type ListPublicIpsRequest struct { // 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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The name of the availability domain. @@ -99,7 +99,7 @@ func (request ListPublicIpsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -115,7 +115,7 @@ type ListPublicIpsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 9b713ab638..df5f775693 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListRemotePeeringConnections.go.html to see an example of how to use ListRemotePeeringConnectionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListRemotePeeringConnections.go.html to see an example of how to use ListRemotePeeringConnectionsRequest. type ListRemotePeeringConnectionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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 DRG. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -76,7 +76,7 @@ func (request ListRemotePeeringConnectionsRequest) RetryPolicy() *common.RetryPo func (request ListRemotePeeringConnectionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type ListRemotePeeringConnectionsResponse struct { // 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). + // List Pagination (https://docs.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 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 index a5966bad6e..65701ae7b8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListRouteTables.go.html to see an example of how to use ListRouteTablesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListRouteTables.go.html to see an example of how to use ListRouteTablesRequest. type ListRouteTablesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. + // The OCID (https://docs.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. @@ -105,7 +105,7 @@ func (request ListRouteTablesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListRouteTablesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 27f7b3f508..1313bc65d2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListSecurityLists.go.html to see an example of how to use ListSecurityListsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListSecurityLists.go.html to see an example of how to use ListSecurityListsRequest. type ListSecurityListsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. + // The OCID (https://docs.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. @@ -105,7 +105,7 @@ func (request ListSecurityListsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListSecurityListsResponse struct { // 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). + // List Pagination (https://docs.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 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 index b3738979db..a784b08a36 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListServiceGateways.go.html to see an example of how to use ListServiceGatewaysRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListServiceGateways.go.html to see an example of how to use ListServiceGatewaysRequest. type ListServiceGatewaysRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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 @@ -102,7 +102,7 @@ func (request ListServiceGatewaysRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -118,7 +118,7 @@ type ListServiceGatewaysResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_services_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_services_request_response.go index d567d171de..bf553922be 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_services_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_services_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,18 +15,18 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListServices.go.html to see an example of how to use ListServicesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListServices.go.html to see an example of how to use ListServicesRequest. type ListServicesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -70,7 +70,7 @@ func (request ListServicesRequest) RetryPolicy() *common.RetryPolicy { func (request ListServicesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -86,7 +86,7 @@ type ListServicesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 029897d2e4..da4e841b95 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListShapes.go.html to see an example of how to use ListShapesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListShapes.go.html to see an example of how to use ListShapesRequest. type ListShapesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -27,16 +27,16 @@ type ListShapesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. + // The OCID (https://docs.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. @@ -80,7 +80,7 @@ func (request ListShapesRequest) RetryPolicy() *common.RetryPolicy { func (request ListShapesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ type ListShapesResponse struct { // 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). + // List Pagination (https://docs.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 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 index dbdea96282..2fc63ac3ab 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListSubnets.go.html to see an example of how to use ListSubnetsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListSubnets.go.html to see an example of how to use ListSubnetsRequest. type ListSubnetsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. + // The OCID (https://docs.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. @@ -105,7 +105,7 @@ func (request ListSubnetsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListSubnetsResponse struct { // 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). + // List Pagination (https://docs.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 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 index f5e5d682e1..ac6327d512 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVcns.go.html to see an example of how to use ListVcnsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVcns.go.html to see an example of how to use ListVcnsRequest. type ListVcnsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -102,7 +102,7 @@ func (request ListVcnsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -118,7 +118,7 @@ type ListVcnsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_associated_tunnels_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_associated_tunnels_request_response.go index f4ffe9f539..9fe68aacc6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_associated_tunnels_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_associated_tunnels_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitAssociatedTunnels.go.html to see an example of how to use ListVirtualCircuitAssociatedTunnelsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitAssociatedTunnels.go.html to see an example of how to use ListVirtualCircuitAssociatedTunnelsRequest. type ListVirtualCircuitAssociatedTunnelsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -73,7 +73,7 @@ func (request ListVirtualCircuitAssociatedTunnelsRequest) RetryPolicy() *common. func (request ListVirtualCircuitAssociatedTunnelsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ type ListVirtualCircuitAssociatedTunnelsResponse struct { // 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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 5a53c05bff..1c9d0ffff1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitBandwidthShapes.go.html to see an example of how to use ListVirtualCircuitBandwidthShapesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitBandwidthShapes.go.html to see an example of how to use ListVirtualCircuitBandwidthShapesRequest. type ListVirtualCircuitBandwidthShapesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -73,7 +73,7 @@ func (request ListVirtualCircuitBandwidthShapesRequest) RetryPolicy() *common.Re func (request ListVirtualCircuitBandwidthShapesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListVirtualCircuitBandwidthShapesResponse struct { // 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). + // List Pagination (https://docs.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 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 index b6f5125807..7b17354f46 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitPublicPrefixes.go.html to see an example of how to use ListVirtualCircuitPublicPrefixesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuitPublicPrefixes.go.html to see an example of how to use ListVirtualCircuitPublicPrefixesRequest. type ListVirtualCircuitPublicPrefixesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.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 @@ -70,7 +70,7 @@ func (request ListVirtualCircuitPublicPrefixesRequest) ValidateEnumValue() (bool 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 09b6e51c07..693d4d77af 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,21 +15,21 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuits.go.html to see an example of how to use ListVirtualCircuitsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVirtualCircuits.go.html to see an example of how to use ListVirtualCircuitsRequest. type ListVirtualCircuitsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -102,7 +102,7 @@ func (request ListVirtualCircuitsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -118,7 +118,7 @@ type ListVirtualCircuitsResponse struct { // 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). + // List Pagination (https://docs.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 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 index b9f3ce190d..63bafee5db 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,24 +15,24 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVlans.go.html to see an example of how to use ListVlansRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVlans.go.html to see an example of how to use ListVlansRequest. type ListVlansRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. + // The OCID (https://docs.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. @@ -105,7 +105,7 @@ func (request ListVlansRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListVlansResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vnic_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vnic_attachments_request_response.go index 4d8c3a1bee..a86ed931ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vnic_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vnic_attachments_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVnicAttachments.go.html to see an example of how to use ListVnicAttachmentsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVnicAttachments.go.html to see an example of how to use ListVnicAttachmentsRequest. type ListVnicAttachmentsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -30,13 +30,13 @@ type ListVnicAttachmentsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the VNIC. @@ -83,7 +83,7 @@ func (request ListVnicAttachmentsRequest) RetryPolicy() *common.RetryPolicy { func (request ListVnicAttachmentsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -99,7 +99,7 @@ type ListVnicAttachmentsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_attachments_request_response.go index b7520c5440..d36a52c7c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_attachments_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeAttachments.go.html to see an example of how to use ListVolumeAttachmentsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeAttachments.go.html to see an example of how to use ListVolumeAttachmentsRequest. type ListVolumeAttachmentsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -27,13 +27,13 @@ type ListVolumeAttachmentsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the instance. @@ -83,7 +83,7 @@ func (request ListVolumeAttachmentsRequest) RetryPolicy() *common.RetryPolicy { func (request ListVolumeAttachmentsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -99,7 +99,7 @@ type ListVolumeAttachmentsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index b983e0601a..2292f8a0eb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,18 +15,18 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeBackupPolicies.go.html to see an example of how to use ListVolumeBackupPoliciesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeBackupPolicies.go.html to see an example of how to use ListVolumeBackupPoliciesRequest. type ListVolumeBackupPoliciesRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the compartment. @@ -74,7 +74,7 @@ func (request ListVolumeBackupPoliciesRequest) RetryPolicy() *common.RetryPolicy func (request ListVolumeBackupPoliciesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -90,7 +90,7 @@ type ListVolumeBackupPoliciesResponse struct { // 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). + // List Pagination (https://docs.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 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 index df754422aa..b854f75cc8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeBackups.go.html to see an example of how to use ListVolumeBackupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeBackups.go.html to see an example of how to use ListVolumeBackupsRequest. type ListVolumeBackupsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The OCID of the volume. @@ -26,13 +26,13 @@ type ListVolumeBackupsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -108,7 +108,7 @@ func (request ListVolumeBackupsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -124,7 +124,7 @@ type ListVolumeBackupsResponse struct { // 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). + // List Pagination (https://docs.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 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 index fc8949739b..ca0f76c6ab 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroupBackups.go.html to see an example of how to use ListVolumeGroupBackupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroupBackups.go.html to see an example of how to use ListVolumeGroupBackupsRequest. type ListVolumeGroupBackupsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -26,13 +26,13 @@ type ListVolumeGroupBackupsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -98,7 +98,7 @@ func (request ListVolumeGroupBackupsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -114,7 +114,7 @@ type ListVolumeGroupBackupsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 2989e13689..6d3b516377 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,25 +15,25 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroupReplicas.go.html to see an example of how to use ListVolumeGroupReplicasRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroupReplicas.go.html to see an example of how to use ListVolumeGroupReplicasRequest. 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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -105,7 +105,7 @@ func (request ListVolumeGroupReplicasRequest) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -121,7 +121,7 @@ type ListVolumeGroupReplicasResponse struct { // 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). + // List Pagination (https://docs.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 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 index 2ea3122d3f..c184128b84 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroups.go.html to see an example of how to use ListVolumeGroupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumeGroups.go.html to see an example of how to use ListVolumeGroupsRequest. type ListVolumeGroupsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -27,13 +27,13 @@ type ListVolumeGroupsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -106,7 +106,7 @@ func (request ListVolumeGroupsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -122,7 +122,7 @@ type ListVolumeGroupsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 81b26acd13..2b29e97feb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,25 +15,25 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumes.go.html to see an example of how to use ListVolumesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVolumes.go.html to see an example of how to use ListVolumesRequest. 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. + // The OCID (https://docs.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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.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. @@ -112,7 +112,7 @@ func (request ListVolumesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -128,7 +128,7 @@ type ListVolumesResponse struct { // 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). + // List Pagination (https://docs.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 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 index d877a79f96..3272c17def 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,19 +15,19 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVtaps.go.html to see an example of how to use ListVtapsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ListVtaps.go.html to see an example of how to use ListVtapsRequest. type ListVtapsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -40,13 +40,13 @@ type ListVtapsRequest 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. @@ -119,7 +119,7 @@ func (request ListVtapsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -135,7 +135,7 @@ type ListVtapsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 218587e533..d73d194be3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,20 +25,20 @@ import ( // 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). +// see VCN Peering (https://docs.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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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)). + // The LPG's Oracle ID (OCID (https://docs.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. @@ -53,26 +53,32 @@ type LocalPeeringGateway struct { // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. + // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` + SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` + // 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. @@ -89,9 +95,9 @@ type LocalPeeringGateway struct { // 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. + // The OCID (https://docs.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). + // Transit Routing: Access to Multiple VCNs in Same Region (https://docs.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm). RouteTableId *string `mandatory:"false" json:"routeTableId"` } @@ -112,7 +118,7 @@ func (m LocalPeeringGateway) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9a1da459f7..a81ec28d7f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,10 +25,10 @@ import ( // LoopBackDrgAttachmentNetworkDetails Specifies the loopback attachment on the DRG. A loopback attachment can be used to terminate a virtual circuit that is carrying an IPSec tunnel, routing traffic directly to the IPSec tunnel attachment where the tunnel can terminate. type LoopBackDrgAttachmentNetworkDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. Id *string `mandatory:"false" json:"id"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target IPSec tunnel attachment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target IPSec tunnel attachment. Ids []string `mandatory:"false" json:"ids"` } @@ -48,7 +48,7 @@ func (m LoopBackDrgAttachmentNetworkDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bc793b7535..e9c81daf71 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core 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 index cb66c66f7c..9085b2c86a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,10 +24,10 @@ import ( // 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. + // Secret OCID (https://docs.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. + // Secret OCID (https://docs.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. @@ -48,7 +48,7 @@ func (m MacsecKey) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index cf646a5056..c09dfd6fd2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -53,7 +53,7 @@ func (m MacsecProperties) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 6087d9e605..a00e509d50 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core 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 index cd67725587..45ad136f84 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -46,7 +46,7 @@ func (m MeasuredBootEntry) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index a6fe5a2ea7..56d8a6985b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -41,7 +41,7 @@ func (m MeasuredBootReport) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index cce6457062..a4cc55bfe8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m MeasuredBootReportMeasurements) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 49bf4343e1..c81d0e9600 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m MemberReplica) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/memory_fabric_preferences_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/memory_fabric_preferences_descriptor.go new file mode 100644 index 0000000000..d552cb6644 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/memory_fabric_preferences_descriptor.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MemoryFabricPreferencesDescriptor The preference object specified by customer. Contains customerDesiredFirmwareBundleId, fabricRecycleLevel. +type MemoryFabricPreferencesDescriptor struct { + + // The desired firmware bundle id on the GPU memory fabric. + CustomerDesiredFirmwareBundleId *string `mandatory:"false" json:"customerDesiredFirmwareBundleId"` + + // The recycle level of GPU memory fabric. + FabricRecycleLevel MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum `mandatory:"false" json:"fabricRecycleLevel,omitempty"` +} + +func (m MemoryFabricPreferencesDescriptor) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MemoryFabricPreferencesDescriptor) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingMemoryFabricPreferencesDescriptorFabricRecycleLevelEnum(string(m.FabricRecycleLevel)); !ok && m.FabricRecycleLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FabricRecycleLevel: %s. Supported values are: %s.", m.FabricRecycleLevel, strings.Join(GetMemoryFabricPreferencesDescriptorFabricRecycleLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum Enum with underlying type: string +type MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum string + +// Set of constants representing the allowable values for MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum +const ( + MemoryFabricPreferencesDescriptorFabricRecycleLevelFullRecycle MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum = "FULL_RECYCLE" + MemoryFabricPreferencesDescriptorFabricRecycleLevelSkipRecycle MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum = "SKIP_RECYCLE" + MemoryFabricPreferencesDescriptorFabricRecycleLevelOpportunisticFullRecycle MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum = "OPPORTUNISTIC_FULL_RECYCLE" +) + +var mappingMemoryFabricPreferencesDescriptorFabricRecycleLevelEnum = map[string]MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum{ + "FULL_RECYCLE": MemoryFabricPreferencesDescriptorFabricRecycleLevelFullRecycle, + "SKIP_RECYCLE": MemoryFabricPreferencesDescriptorFabricRecycleLevelSkipRecycle, + "OPPORTUNISTIC_FULL_RECYCLE": MemoryFabricPreferencesDescriptorFabricRecycleLevelOpportunisticFullRecycle, +} + +var mappingMemoryFabricPreferencesDescriptorFabricRecycleLevelEnumLowerCase = map[string]MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum{ + "full_recycle": MemoryFabricPreferencesDescriptorFabricRecycleLevelFullRecycle, + "skip_recycle": MemoryFabricPreferencesDescriptorFabricRecycleLevelSkipRecycle, + "opportunistic_full_recycle": MemoryFabricPreferencesDescriptorFabricRecycleLevelOpportunisticFullRecycle, +} + +// GetMemoryFabricPreferencesDescriptorFabricRecycleLevelEnumValues Enumerates the set of values for MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum +func GetMemoryFabricPreferencesDescriptorFabricRecycleLevelEnumValues() []MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum { + values := make([]MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum, 0) + for _, v := range mappingMemoryFabricPreferencesDescriptorFabricRecycleLevelEnum { + values = append(values, v) + } + return values +} + +// GetMemoryFabricPreferencesDescriptorFabricRecycleLevelEnumStringValues Enumerates the set of values in String for MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum +func GetMemoryFabricPreferencesDescriptorFabricRecycleLevelEnumStringValues() []string { + return []string{ + "FULL_RECYCLE", + "SKIP_RECYCLE", + "OPPORTUNISTIC_FULL_RECYCLE", + } +} + +// GetMappingMemoryFabricPreferencesDescriptorFabricRecycleLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMemoryFabricPreferencesDescriptorFabricRecycleLevelEnum(val string) (MemoryFabricPreferencesDescriptorFabricRecycleLevelEnum, bool) { + enum, ok := mappingMemoryFabricPreferencesDescriptorFabricRecycleLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_ipv4_subnet_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_ipv4_subnet_cidr_details.go new file mode 100644 index 0000000000..cc7e1f7575 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_ipv4_subnet_cidr_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ModifyIpv4SubnetCidrDetails Details object for updating the specified Ipv4 CIDR block of a Subnet. +type ModifyIpv4SubnetCidrDetails struct { + + // The Ipv4 CIDR IP address to update. + Ipv4CidrBlock *string `mandatory:"true" json:"ipv4CidrBlock"` + + // The new Ipv4 CIDR IP address. + UpdatedIpv4CidrBlock *string `mandatory:"true" json:"updatedIpv4CidrBlock"` +} + +func (m ModifyIpv4SubnetCidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ModifyIpv4SubnetCidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_ipv4_subnet_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_ipv4_subnet_cidr_request_response.go new file mode 100644 index 0000000000..8cb4ceeca1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_ipv4_subnet_cidr_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ModifyIpv4SubnetCidrRequest wrapper for the ModifyIpv4SubnetCidr operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ModifyIpv4SubnetCidr.go.html to see an example of how to use ModifyIpv4SubnetCidrRequest. +type ModifyIpv4SubnetCidrRequest struct { + + // Specify the OCID (https://docs.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 IPv4 prefix. + ModifyIpv4SubnetCidrDetails `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 ModifyIpv4SubnetCidrRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ModifyIpv4SubnetCidrRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ModifyIpv4SubnetCidrRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ModifyIpv4SubnetCidrRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ModifyIpv4SubnetCidrRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ModifyIpv4SubnetCidrResponse wrapper for the ModifyIpv4SubnetCidr operation +type ModifyIpv4SubnetCidrResponse 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 ModifyIpv4SubnetCidrResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ModifyIpv4SubnetCidrResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 39757d5729..5f0636ef42 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ModifyVcnCidrDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_request_response.go index 702c497fd2..35c893275c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ModifyVcnCidr.go.html to see an example of how to use ModifyVcnCidrRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ModifyVcnCidr.go.html to see an example of how to use ModifyVcnCidrRequest. type ModifyVcnCidrRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // Details object for updating a VCN CIDR. @@ -77,7 +77,7 @@ func (request ModifyVcnCidrRequest) RetryPolicy() *common.RetryPolicy { func (request ModifyVcnCidrRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,8 +92,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index d8c2c982dc..64e438bc86 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -49,7 +49,7 @@ func (m MultipathDevice) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f5b311dfd3..7b51df967a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,19 +24,19 @@ import ( // 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). +// NAT Gateway (https://docs.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). +// Policies (https://docs.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 OCID (https://docs.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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the // NAT gateway. Id *string `mandatory:"true" json:"id"` @@ -54,12 +54,12 @@ type NatGateway struct { // 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 + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -68,14 +68,14 @@ type NatGateway struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -96,7 +96,7 @@ func (m NatGateway) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 760da9d06a..bb11ae2a48 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -31,32 +31,32 @@ import ( // // 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`. +// CreateVnicDetails). Or you can add an existing +// instance to an NSG with UpdateVnic. // To add security rules to an NSG, see -// `AddNetworkSecurityGroupSecurityRules`. +// AddNetworkSecurityGroupSecurityRules. // To list the VNICs in an NSG, see -// `ListNetworkSecurityGroupVnics`. +// ListNetworkSecurityGroupVnics. // To list the security rules in an NSG, see -// `ListNetworkSecurityGroupSecurityRules`. +// ListNetworkSecurityGroupSecurityRules. // For more information about network security groups, see -// `Network Security Groups (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/networksecuritygroups.htm)`. +// Network Security Groups (https://docs.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 +// - 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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -66,11 +66,11 @@ type NetworkSecurityGroup struct { // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -79,7 +79,7 @@ type NetworkSecurityGroup struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -98,7 +98,7 @@ func (m NetworkSecurityGroup) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 45d69a8eb4..461db4e7c8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,10 +24,10 @@ import ( // 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. + // The OCID (https://docs.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 + // The OCID (https://docs.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"` @@ -48,7 +48,7 @@ func (m NetworkSecurityGroupVnic) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/networking_topology.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/networking_topology.go index 6bb7751232..0e5aea553a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/networking_topology.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/networking_topology.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( ) // NetworkingTopology Defines the representation of a virtual network topology for a region. -// See Network Visualizer Documentation (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/network_visualizer.htm) for more information, including +// See Network Visualizer Documentation (https://docs.oracle.com/iaas/Content/Network/Concepts/network_visualizer.htm) for more information, including // conventions and pictures of symbols. type NetworkingTopology struct { @@ -73,7 +73,7 @@ func (m NetworkingTopology) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/paravirtualized_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/paravirtualized_volume_attachment.go index 4724b4b5a4..4aeebf2bb1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/paravirtualized_volume_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/paravirtualized_volume_attachment.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -171,7 +171,7 @@ func (m ParavirtualizedVolumeAttachment) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d8abbcd78d..55032a397c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,7 +22,7 @@ import ( ) // 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). +// information, see VCN Peering (https://docs.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). type PeerRegionForRemotePeering struct { // The region's name. @@ -41,7 +41,7 @@ func (m PeerRegionForRemotePeering) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 20ec92c9e5..6922b017a9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m PercentageOfCoresEnabledOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index ae3727fcff..b4356ce8e1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -44,7 +44,7 @@ func (m PerformanceBasedAutotunePolicy) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0f6bcfbed6..5dc3e63df6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -60,7 +60,7 @@ func (m PhaseOneConfigDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 86aac353e0..de13cfe82b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -63,7 +63,7 @@ func (m PhaseTwoConfigDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/placement_constraint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/placement_constraint_details.go new file mode 100644 index 0000000000..41baedd353 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/placement_constraint_details.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PlacementConstraintDetails The details for providing placement constraints. +type PlacementConstraintDetails interface { +} + +type placementconstraintdetails struct { + JsonData []byte + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *placementconstraintdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerplacementconstraintdetails placementconstraintdetails + s := struct { + Model Unmarshalerplacementconstraintdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *placementconstraintdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "HOST_GROUP": + mm := HostGroupPlacementConstraintDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "COMPUTE_BARE_METAL_HOST": + mm := ComputeBareMetalHostPlacementConstraintDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for PlacementConstraintDetails: %s.", m.Type) + return *m, nil + } +} + +func (m placementconstraintdetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m placementconstraintdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} 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 index 7d6d6b4941..a0a2006436 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -113,7 +113,7 @@ func (m *platformconfig) UnmarshalPolymorphicJSON(data []byte) (interface{}, err err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for PlatformConfig: %s.", m.Type) + common.Logf("Received unsupported enum value for PlatformConfig: %s.", m.Type) return *m, nil } } @@ -149,7 +149,7 @@ func (m platformconfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 554ec42bfc..af2ed07956 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -43,7 +43,7 @@ func (m PortRange) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index fe57096aaf..1c03056af2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -38,7 +38,7 @@ func (m PreemptibleInstanceConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d6f2471d21..f95feedc8a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -61,7 +61,7 @@ func (m *preemptionaction) UnmarshalPolymorphicJSON(data []byte) (interface{}, e err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for PreemptionAction: %s.", m.Type) + common.Logf("Received unsupported enum value for PreemptionAction: %s.", m.Type) return *m, nil } } @@ -77,7 +77,7 @@ func (m preemptionaction) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip.go index c2d30461db..cacf7d24b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -31,7 +31,7 @@ import ( // automatically deleted when the VNIC is terminated. // You can add *secondary private IPs* to a VNIC after it's created. For more // information, see the `privateIp` operations and also -// IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingIPaddresses.htm). +// IP Addresses (https://docs.oracle.com/iaas/Content/Network/Tasks/managingIPaddresses.htm). // **Note:** Only // ListPrivateIps and // GetPrivateIp work with @@ -41,14 +41,14 @@ import ( // CreateVnicDetails when calling either // LaunchInstance or // AttachVnic. To update the hostname -// for a primary private IP, you use `UpdateVnic`. +// for a primary private IP, you use UpdateVnic. // `PrivateIp` objects that are created for use with the Oracle Cloud VMware Solution are // assigned to a VLAN and not a VNIC in a subnet. See the // descriptions of the relevant attributes in the `PrivateIp` object. Also see // Vlan. // 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). +// Getting Started with Policies (https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). type PrivateIp struct { // The private IP's availability domain. This attribute will be null if this is a *secondary* @@ -56,11 +56,11 @@ type PrivateIp struct { // 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 private IP. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the private IP. 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -69,7 +69,7 @@ type PrivateIp struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -80,11 +80,11 @@ type PrivateIp struct { // 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). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // Example: `bminstance1` HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - // The private IP's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + // The private IP's Oracle ID (OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). Id *string `mandatory:"false" json:"id"` // The private IP address of the `privateIp` object. The address is within the CIDR @@ -95,17 +95,20 @@ type PrivateIp struct { // Example: `10.0.3.3` IpAddress *string `mandatory:"false" json:"ipAddress"` + // The secondary IPv4 CIDR prefix length. + CidrPrefixLength *int `mandatory:"false" json:"cidrPrefixLength"` + // Whether this private IP is the primary one on the VNIC. Primary private IPs // are unassigned and deleted automatically when the VNIC is terminated. // Example: `true` IsPrimary *bool `mandatory:"false" json:"isPrimary"` // Applicable only if the `PrivateIp` object is being used with a VLAN as part of - // the Oracle Cloud VMware Solution. The `vlanId` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. See + // the Oracle Cloud VMware Solution. The `vlanId` is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. See // Vlan. VlanId *string `mandatory:"false" json:"vlanId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the VNIC is in. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the VNIC is in. // However, if the `PrivateIp` object is being used with a VLAN as part of // the Oracle Cloud VMware Solution, the `subnetId` is null. SubnetId *string `mandatory:"false" json:"subnetId"` @@ -114,11 +117,27 @@ type PrivateIp struct { // 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 VNIC the private IP is assigned to. The VNIC and private IP + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC the private IP is assigned to. The VNIC and private IP // must be in the same subnet. // 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"` + + // State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise it is AVAILABLE. + IpState PrivateIpIpStateEnum `mandatory:"false" json:"ipState,omitempty"` + + // Lifetime of the IP address. + // There are two types of IPs: + // - Ephemeral + // - Reserved + Lifetime PrivateIpLifetimeEnum `mandatory:"false" json:"lifetime,omitempty"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see + // Per-resource Routing (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // Ipv4 Subnet CIDR specified whn creating the PrivateIP. + Ipv4SubnetCidrAtCreation *string `mandatory:"false" json:"ipv4SubnetCidrAtCreation"` } func (m PrivateIp) String() string { @@ -131,8 +150,98 @@ func (m PrivateIp) String() string { func (m PrivateIp) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingPrivateIpIpStateEnum(string(m.IpState)); !ok && m.IpState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpState: %s. Supported values are: %s.", m.IpState, strings.Join(GetPrivateIpIpStateEnumStringValues(), ","))) + } + if _, ok := GetMappingPrivateIpLifetimeEnum(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(GetPrivateIpLifetimeEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } + +// PrivateIpIpStateEnum Enum with underlying type: string +type PrivateIpIpStateEnum string + +// Set of constants representing the allowable values for PrivateIpIpStateEnum +const ( + PrivateIpIpStateAssigned PrivateIpIpStateEnum = "ASSIGNED" + PrivateIpIpStateAvailable PrivateIpIpStateEnum = "AVAILABLE" +) + +var mappingPrivateIpIpStateEnum = map[string]PrivateIpIpStateEnum{ + "ASSIGNED": PrivateIpIpStateAssigned, + "AVAILABLE": PrivateIpIpStateAvailable, +} + +var mappingPrivateIpIpStateEnumLowerCase = map[string]PrivateIpIpStateEnum{ + "assigned": PrivateIpIpStateAssigned, + "available": PrivateIpIpStateAvailable, +} + +// GetPrivateIpIpStateEnumValues Enumerates the set of values for PrivateIpIpStateEnum +func GetPrivateIpIpStateEnumValues() []PrivateIpIpStateEnum { + values := make([]PrivateIpIpStateEnum, 0) + for _, v := range mappingPrivateIpIpStateEnum { + values = append(values, v) + } + return values +} + +// GetPrivateIpIpStateEnumStringValues Enumerates the set of values in String for PrivateIpIpStateEnum +func GetPrivateIpIpStateEnumStringValues() []string { + return []string{ + "ASSIGNED", + "AVAILABLE", + } +} + +// GetMappingPrivateIpIpStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPrivateIpIpStateEnum(val string) (PrivateIpIpStateEnum, bool) { + enum, ok := mappingPrivateIpIpStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// PrivateIpLifetimeEnum Enum with underlying type: string +type PrivateIpLifetimeEnum string + +// Set of constants representing the allowable values for PrivateIpLifetimeEnum +const ( + PrivateIpLifetimeEphemeral PrivateIpLifetimeEnum = "EPHEMERAL" + PrivateIpLifetimeReserved PrivateIpLifetimeEnum = "RESERVED" +) + +var mappingPrivateIpLifetimeEnum = map[string]PrivateIpLifetimeEnum{ + "EPHEMERAL": PrivateIpLifetimeEphemeral, + "RESERVED": PrivateIpLifetimeReserved, +} + +var mappingPrivateIpLifetimeEnumLowerCase = map[string]PrivateIpLifetimeEnum{ + "ephemeral": PrivateIpLifetimeEphemeral, + "reserved": PrivateIpLifetimeReserved, +} + +// GetPrivateIpLifetimeEnumValues Enumerates the set of values for PrivateIpLifetimeEnum +func GetPrivateIpLifetimeEnumValues() []PrivateIpLifetimeEnum { + values := make([]PrivateIpLifetimeEnum, 0) + for _, v := range mappingPrivateIpLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetPrivateIpLifetimeEnumStringValues Enumerates the set of values in String for PrivateIpLifetimeEnum +func GetPrivateIpLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingPrivateIpLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPrivateIpLifetimeEnum(val string) (PrivateIpLifetimeEnum, bool) { + enum, ok := mappingPrivateIpLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_vnic_detach_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_vnic_detach_request_response.go new file mode 100644 index 0000000000..3fb687aa09 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_vnic_detach_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// PrivateIpVnicDetachRequest wrapper for the PrivateIpVnicDetach operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/PrivateIpVnicDetach.go.html to see an example of how to use PrivateIpVnicDetachRequest. +type PrivateIpVnicDetachRequest struct { + + // The OCID (https://docs.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` + // 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"` + + // 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 PrivateIpVnicDetachRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request PrivateIpVnicDetachRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request PrivateIpVnicDetachRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request PrivateIpVnicDetachRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request PrivateIpVnicDetachRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PrivateIpVnicDetachResponse wrapper for the PrivateIpVnicDetach operation +type PrivateIpVnicDetachResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The PrivateIp instance + PrivateIp `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 PrivateIpVnicDetachResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response PrivateIpVnicDetachResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 39f36267ce..99d7a6d5b1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -27,10 +27,10 @@ import ( // 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). +// see Public IP Addresses (https://docs.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 + // The OCID (https://docs.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"` @@ -44,14 +44,14 @@ type PublicIp struct { // 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 OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -60,11 +60,11 @@ type PublicIp struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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)). + // The public IP's Oracle ID (OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). Id *string `mandatory:"false" json:"id"` // The public IP address of the `publicIp` object. @@ -84,11 +84,11 @@ type PublicIp struct { // * `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). + // see Public IP Addresses (https://docs.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 + // The OCID (https://docs.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. @@ -108,7 +108,7 @@ type PublicIp struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool object created in the current tenancy. PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` } @@ -135,7 +135,7 @@ func (m PublicIp) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cd321ad194..d94667f7ae 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,10 +24,10 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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). @@ -38,7 +38,7 @@ type PublicIpPool struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -47,7 +47,7 @@ type PublicIpPool struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -69,7 +69,7 @@ func (m PublicIpPool) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 04b3820903..a6822ca2fe 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m PublicIpPoolCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 629e5943e2..175b64dca8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,11 +24,11 @@ import ( // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -37,11 +37,11 @@ type PublicIpPoolSummary struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.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. @@ -66,7 +66,7 @@ func (m PublicIpPoolSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 35cdfe4f37..5c37eb5cba 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -47,7 +47,7 @@ func (m RebootMigrateActionDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/recycle_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/recycle_details.go new file mode 100644 index 0000000000..afca60a91c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/recycle_details.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RecycleDetails Shows details about the last recycle performed on this host. +type RecycleDetails struct { + + // Preferred recycle level for hosts associated with the reservation config. + // * `SKIP_RECYCLE` - Skips host wipe. + // * `FULL_RECYCLE` - Does not skip host wipe. This is the default behavior. + RecycleLevel RecycleDetailsRecycleLevelEnum `mandatory:"false" json:"recycleLevel,omitempty"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group this host was attached to at the time of recycle. + ComputeHostGroupId *string `mandatory:"false" json:"computeHostGroupId"` +} + +func (m RecycleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RecycleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingRecycleDetailsRecycleLevelEnum(string(m.RecycleLevel)); !ok && m.RecycleLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecycleLevel: %s. Supported values are: %s.", m.RecycleLevel, strings.Join(GetRecycleDetailsRecycleLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RecycleDetailsRecycleLevelEnum Enum with underlying type: string +type RecycleDetailsRecycleLevelEnum string + +// Set of constants representing the allowable values for RecycleDetailsRecycleLevelEnum +const ( + RecycleDetailsRecycleLevelSkipRecycle RecycleDetailsRecycleLevelEnum = "SKIP_RECYCLE" + RecycleDetailsRecycleLevelFullRecycle RecycleDetailsRecycleLevelEnum = "FULL_RECYCLE" +) + +var mappingRecycleDetailsRecycleLevelEnum = map[string]RecycleDetailsRecycleLevelEnum{ + "SKIP_RECYCLE": RecycleDetailsRecycleLevelSkipRecycle, + "FULL_RECYCLE": RecycleDetailsRecycleLevelFullRecycle, +} + +var mappingRecycleDetailsRecycleLevelEnumLowerCase = map[string]RecycleDetailsRecycleLevelEnum{ + "skip_recycle": RecycleDetailsRecycleLevelSkipRecycle, + "full_recycle": RecycleDetailsRecycleLevelFullRecycle, +} + +// GetRecycleDetailsRecycleLevelEnumValues Enumerates the set of values for RecycleDetailsRecycleLevelEnum +func GetRecycleDetailsRecycleLevelEnumValues() []RecycleDetailsRecycleLevelEnum { + values := make([]RecycleDetailsRecycleLevelEnum, 0) + for _, v := range mappingRecycleDetailsRecycleLevelEnum { + values = append(values, v) + } + return values +} + +// GetRecycleDetailsRecycleLevelEnumStringValues Enumerates the set of values in String for RecycleDetailsRecycleLevelEnum +func GetRecycleDetailsRecycleLevelEnumStringValues() []string { + return []string{ + "SKIP_RECYCLE", + "FULL_RECYCLE", + } +} + +// GetMappingRecycleDetailsRecycleLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRecycleDetailsRecycleLevelEnum(val string) (RecycleDetailsRecycleLevelEnum, bool) { + enum, ok := mappingRecycleDetailsRecycleLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} 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 index c81d7b1d65..21352cd71b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,23 +25,23 @@ import ( // 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). +// VCN Peering (https://docs.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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. @@ -61,23 +61,23 @@ type RemotePeeringConnection struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // If this RPC is peered, this value is the OCID (https://docs.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. + // If this RPC is peered, this value is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the other RPC's tenancy. PeerTenancyId *string `mandatory:"false" json:"peerTenancyId"` } @@ -98,7 +98,7 @@ func (m RemotePeeringConnection) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f1cd642b0d..f787c4cff9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. Id *string `mandatory:"false" json:"id"` } @@ -45,7 +45,7 @@ func (m RemotePeeringConnectionDrgAttachmentNetworkDetails) ValidateEnumValue() errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2c9ecba402..03bf8ee99f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m RemoveDrgRouteDistributionStatementsDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 3b80f86e72..884b68088e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveDrgRouteDistributionStatements.go.html to see an example of how to use RemoveDrgRouteDistributionStatementsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveDrgRouteDistributionStatements.go.html to see an example of how to use RemoveDrgRouteDistributionStatementsRequest. type RemoveDrgRouteDistributionStatementsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. DrgRouteDistributionId *string `mandatory:"true" contributesTo:"path" name:"drgRouteDistributionId"` // Request with one or more route distribution statements to remove from the route distribution. @@ -65,7 +65,7 @@ func (request RemoveDrgRouteDistributionStatementsRequest) RetryPolicy() *common func (request RemoveDrgRouteDistributionStatementsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7452b6407b..bed9ceafa7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m RemoveDrgRouteRulesDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 90b087a459..d965b1081a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveDrgRouteRules.go.html to see an example of how to use RemoveDrgRouteRulesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveDrgRouteRules.go.html to see an example of how to use RemoveDrgRouteRulesRequest. type RemoveDrgRouteRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. DrgRouteTableId *string `mandatory:"true" contributesTo:"path" name:"drgRouteTableId"` // Request to remove one or more route rules in the DRG route table. @@ -65,7 +65,7 @@ func (request RemoveDrgRouteRulesRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveDrgRouteRulesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 8dae871ceb..01870e8285 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveExportDrgRouteDistribution.go.html to see an example of how to use RemoveExportDrgRouteDistributionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveExportDrgRouteDistribution.go.html to see an example of how to use RemoveExportDrgRouteDistributionRequest. type RemoveExportDrgRouteDistributionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` // Unique identifier for the request. @@ -67,7 +67,7 @@ func (request RemoveExportDrgRouteDistributionRequest) RetryPolicy() *common.Ret func (request RemoveExportDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 351287218d..3d922872aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveImageShapeCompatibilityEntry.go.html to see an example of how to use RemoveImageShapeCompatibilityEntryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveImageShapeCompatibilityEntry.go.html to see an example of how to use RemoveImageShapeCompatibilityEntryRequest. type RemoveImageShapeCompatibilityEntryRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // Shape name. @@ -65,7 +65,7 @@ func (request RemoveImageShapeCompatibilityEntryRequest) RetryPolicy() *common.R func (request RemoveImageShapeCompatibilityEntryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ab5026a93d..1a3fd21243 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveImportDrgRouteDistribution.go.html to see an example of how to use RemoveImportDrgRouteDistributionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveImportDrgRouteDistribution.go.html to see an example of how to use RemoveImportDrgRouteDistributionRequest. type RemoveImportDrgRouteDistributionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. DrgRouteTableId *string `mandatory:"true" contributesTo:"path" name:"drgRouteTableId"` // Unique identifier for the request. @@ -67,7 +67,7 @@ func (request RemoveImportDrgRouteDistributionRequest) RetryPolicy() *common.Ret func (request RemoveImportDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv4_subnet_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv4_subnet_cidr_details.go new file mode 100644 index 0000000000..282086ca39 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv4_subnet_cidr_details.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemoveIpv4SubnetCidrDetails Details object for removing an IPv4 prefix from a subnet. +type RemoveIpv4SubnetCidrDetails struct { + + // This field should only be specified when removing an IPv4 prefix from a subnet's IPv4 address space. + // The CIDR must maintain the following rules - + // a. The CIDR block is valid and correctly formatted. + // b. The CIDR range is within one of the parent VCN ranges. + // c. The CIDR range to be removed is already present in the list of ipv4CidrBlocks + // Example: `10.0.1.0/24` + Ipv4CidrBlock *string `mandatory:"true" json:"ipv4CidrBlock"` +} + +func (m RemoveIpv4SubnetCidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveIpv4SubnetCidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv4_subnet_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv4_subnet_cidr_request_response.go new file mode 100644 index 0000000000..b2613db328 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv4_subnet_cidr_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// RemoveIpv4SubnetCidrRequest wrapper for the RemoveIpv4SubnetCidr operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveIpv4SubnetCidr.go.html to see an example of how to use RemoveIpv4SubnetCidrRequest. +type RemoveIpv4SubnetCidrRequest struct { + + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` + + // Details object for removing an IPv4 SUBNET prefix. + RemoveIpv4SubnetCidrDetails `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 RemoveIpv4SubnetCidrRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RemoveIpv4SubnetCidrRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RemoveIpv4SubnetCidrRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RemoveIpv4SubnetCidrRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveIpv4SubnetCidrRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RemoveIpv4SubnetCidrResponse wrapper for the RemoveIpv4SubnetCidr operation +type RemoveIpv4SubnetCidrResponse 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 RemoveIpv4SubnetCidrResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RemoveIpv4SubnetCidrResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 56e289cbf8..11bf425087 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveIpv6SubnetCidr.go.html to see an example of how to use RemoveIpv6SubnetCidrRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveIpv6SubnetCidr.go.html to see an example of how to use RemoveIpv6SubnetCidrRequest. type RemoveIpv6SubnetCidrRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // Specify the OCID (https://docs.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 prefix. @@ -77,7 +77,7 @@ func (request RemoveIpv6SubnetCidrRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveIpv6SubnetCidrRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -95,8 +95,8 @@ type RemoveIpv6SubnetCidrResponse 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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_ipv6_vcn_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv6_vcn_cidr_request_response.go index 2bcd7ffdf7..6150713196 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveIpv6VcnCidr.go.html to see an example of how to use RemoveIpv6VcnCidrRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveIpv6VcnCidr.go.html to see an example of how to use RemoveIpv6VcnCidrRequest. type RemoveIpv6VcnCidrRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // Unique identifier for the request. @@ -77,7 +77,7 @@ func (request RemoveIpv6VcnCidrRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveIpv6VcnCidrRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -95,8 +95,8 @@ type RemoveIpv6VcnCidrResponse 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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_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 index 5a7ede9fc2..25d26bd723 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m RemoveNetworkSecurityGroupSecurityRulesDetails) ValidateEnumValue() (boo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 987fc3f0c1..4fb753e57e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveNetworkSecurityGroupSecurityRules.go.html to see an example of how to use RemoveNetworkSecurityGroupSecurityRulesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveNetworkSecurityGroupSecurityRules.go.html to see an example of how to use RemoveNetworkSecurityGroupSecurityRulesRequest. type RemoveNetworkSecurityGroupSecurityRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` // Request with one or more security rules associated with the network security group that @@ -66,7 +66,7 @@ func (request RemoveNetworkSecurityGroupSecurityRulesRequest) RetryPolicy() *com func (request RemoveNetworkSecurityGroupSecurityRulesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6462a91c1d..7b88771a36 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m RemovePublicIpPoolCapacityDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index aca4c140ff..acff3abbaf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemovePublicIpPoolCapacity.go.html to see an example of how to use RemovePublicIpPoolCapacityRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemovePublicIpPoolCapacity.go.html to see an example of how to use RemovePublicIpPoolCapacityRequest. type RemovePublicIpPoolCapacityRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. PublicIpPoolId *string `mandatory:"true" contributesTo:"path" name:"publicIpPoolId"` // The CIDR block to remove from the IP pool. @@ -72,7 +72,7 @@ func (request RemovePublicIpPoolCapacityRequest) RetryPolicy() *common.RetryPoli func (request RemovePublicIpPoolCapacityRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8b90ca8ef5..a6441dc3f6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ type RemoveSubnetIpv6CidrDetails struct { // This field is not required and should only be specified when removing an IPv6 prefix // from a subnet's IPv6 address space. - // SeeIPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // SeeIPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). // Example: `2001:0db8:0123::/64` Ipv6CidrBlock *string `mandatory:"true" json:"ipv6CidrBlock"` } @@ -42,7 +42,7 @@ func (m RemoveSubnetIpv6CidrDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 426a6a8318..c94404b303 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m RemoveVcnCidrDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_request_response.go index b96a53bb9a..8720e227d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveVcnCidr.go.html to see an example of how to use RemoveVcnCidrRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/RemoveVcnCidr.go.html to see an example of how to use RemoveVcnCidrRequest. type RemoveVcnCidrRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // Details object for removing a VCN CIDR. @@ -77,7 +77,7 @@ func (request RemoveVcnCidrRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveVcnCidrRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,8 +92,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 6468c1517b..7441083a4b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ 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). + // SeeIPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). // Example: `2001:0db8:0123::/56` Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` } @@ -42,7 +42,7 @@ func (m RemoveVcnIpv6CidrDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d8283ae700..62f0009413 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ import ( 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) + // reboot migration (https://docs.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 @@ -49,7 +49,7 @@ func (m ResetActionDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/reset_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/reset_instance_pool_request_response.go index 0bc84e018a..95732ae95f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/reset_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/reset_instance_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ResetInstancePool.go.html to see an example of how to use ResetInstancePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ResetInstancePool.go.html to see an example of how to use ResetInstancePoolRequest. type ResetInstancePoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -74,7 +74,7 @@ func (request ResetInstancePoolRequest) RetryPolicy() *common.RetryPolicy { func (request ResetInstancePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 0eb0d3a191..8fba82b839 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,9 +25,9 @@ import ( // 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 + // The OCID (https://docs.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). + // Route Tables (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). NetworkEntityId *string `mandatory:"true" json:"networkEntityId"` // Deprecated. Instead use `destination` and `destinationType`. Requests that include both @@ -45,7 +45,7 @@ type RouteRule struct { // or `2001:0db8:0123:45::/56`. If you set this to an IPv6 prefix, 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). + // See IPv6 Addresses (https://docs.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`. @@ -82,7 +82,7 @@ func (m RouteRule) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9213d5c024..c909f42515 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,16 +23,16 @@ import ( // 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). +// Overview of the Networking Service (https://docs.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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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)). + // The route table's Oracle ID (OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). Id *string `mandatory:"true" json:"id"` // The route table's current state. @@ -41,11 +41,11 @@ type RouteTable struct { // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -54,7 +54,7 @@ type RouteTable struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -77,7 +77,7 @@ func (m RouteTable) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index bb1a09ff64..5421744937 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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). +// Security Lists (https://docs.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 @@ -35,10 +35,10 @@ import ( // 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). +// Getting Started with Policies (https://docs.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. + // The OCID (https://docs.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. @@ -48,7 +48,7 @@ type SecurityList struct { // 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)). + // The security list's Oracle Cloud ID (OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). Id *string `mandatory:"true" json:"id"` // Rules for allowing ingress IP packets. @@ -61,16 +61,16 @@ type SecurityList struct { // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -89,7 +89,7 @@ func (m SecurityList) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d064d3b69a..24396a01fc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -44,11 +44,11 @@ type SecurityRule struct { // 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). + // See IPv6 Addresses (https://docs.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 + // * The OCID (https://docs.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"` @@ -59,7 +59,7 @@ type SecurityRule struct { // * `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 + // * `NETWORK_SECURITY_GROUP`: If the rule's `destination` is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a // NetworkSecurityGroup. DestinationType SecurityRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` @@ -87,11 +87,11 @@ type SecurityRule struct { // 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). + // See IPv6 Addresses (https://docs.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 + // * The OCID (https://docs.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"` @@ -101,7 +101,7 @@ type SecurityRule struct { // * `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 + // * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a // NetworkSecurityGroup. SourceType SecurityRuleSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` @@ -133,7 +133,7 @@ func (m SecurityRule) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f2e1ff1355..20718a2a0a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/service.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/service.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( // 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 +// Access to Oracle Services: Service Gateway (https://docs.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. @@ -44,7 +44,7 @@ type Service struct { // 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). + // The `Service` object's OCID (https://docs.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. @@ -63,7 +63,7 @@ func (m Service) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index ca6847ff99..a29dea95c7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -27,10 +27,10 @@ import ( // find available service CIDR labels) 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). +// Access to Oracle Services: Service Gateway (https://docs.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). +// Getting Started with Policies (https://docs.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 @@ -38,11 +38,11 @@ type ServiceGateway struct { // 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 + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service gateway. Id *string `mandatory:"true" json:"id"` // The service gateway's current state. @@ -54,12 +54,12 @@ type ServiceGateway struct { // 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 + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -68,13 +68,13 @@ type ServiceGateway struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.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). + // Transit Routing: Private Access to Oracle Services (https://docs.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). @@ -96,7 +96,7 @@ func (m ServiceGateway) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2efdf8fd25..0c37989202 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // ServiceIdRequestDetails The representation of ServiceIdRequestDetails type ServiceIdRequestDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Service. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Service. ServiceId *string `mandatory:"true" json:"serviceId"` } @@ -39,7 +39,7 @@ func (m ServiceIdRequestDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index bc51589979..1a3c284015 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // ServiceIdResponseDetails The representation of ServiceIdResponseDetails type ServiceIdResponseDetails struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service. ServiceId *string `mandatory:"true" json:"serviceId"` // The name of the service. @@ -42,7 +42,7 @@ func (m ServiceIdResponseDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_details.go new file mode 100644 index 0000000000..96d449cf2c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SetOriginAsnDetails Update Origin ASN of a BYOIP Range +type SetOriginAsnDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Byoasn` Resource to be associated. + ByoasnId *string `mandatory:"true" json:"byoasnId"` + + // The as path prepend length. + AsPathPrependLength *int `mandatory:"false" json:"asPathPrependLength"` +} + +func (m SetOriginAsnDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SetOriginAsnDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_request_response.go new file mode 100644 index 0000000000..a08ed2577e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// SetOriginAsnRequest wrapper for the SetOriginAsn operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SetOriginAsn.go.html to see an example of how to use SetOriginAsnRequest. +type SetOriginAsnRequest struct { + + // The OCID (https://docs.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"` + + // ASN details + SetOriginAsnDetails `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 SetOriginAsnRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request SetOriginAsnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request SetOriginAsnRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request SetOriginAsnRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request SetOriginAsnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SetOriginAsnResponse wrapper for the SetOriginAsn operation +type SetOriginAsnResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 SetOriginAsnResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response SetOriginAsnResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_to_oracle_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_to_oracle_request_response.go new file mode 100644 index 0000000000..668be0da94 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/set_origin_asn_to_oracle_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// SetOriginAsnToOracleRequest wrapper for the SetOriginAsnToOracle operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SetOriginAsnToOracle.go.html to see an example of how to use SetOriginAsnToOracleRequest. +type SetOriginAsnToOracleRequest struct { + + // The OCID (https://docs.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"` + + // 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 SetOriginAsnToOracleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request SetOriginAsnToOracleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request SetOriginAsnToOracleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request SetOriginAsnToOracleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request SetOriginAsnToOracleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SetOriginAsnToOracleResponse wrapper for the SetOriginAsnToOracle operation +type SetOriginAsnToOracleResponse 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 SetOriginAsnToOracleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response SetOriginAsnToOracleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index a4c284b4d3..aed28c39a9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,8 +22,8 @@ import ( ) // 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). +// For more information, see Overview of the Compute Service (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm) and +// Compute Shapes (https://docs.oracle.com/iaas/Content/Compute/References/computeshapes.htm). type Shape struct { // The name of the shape. You can enumerate all available shapes by calling @@ -104,17 +104,17 @@ type Shape struct { // 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) + // Whether the shape supports creating subcore or burstable instances. A burstable instance (https://docs.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) + // Whether the shape supports creating flexible instances. A flexible shape (https://docs.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). + // see Changing the Shape of an Instance (https://docs.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. @@ -141,7 +141,7 @@ func (m Shape) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5b3a7ce392..d5624f47a2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ShapeAccessControlServiceEnabledPlatformOptions) ValidateEnumValue() (bo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 6b3fd3d070..517fa35874 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m ShapeAlternativeObject) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index a8fcde5bb1..f513b85bef 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ShapeInputOutputMemoryManagementUnitEnabledPlatformOptions) ValidateEnum errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 271eec9371..12791455e3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -46,7 +46,7 @@ func (m ShapeMaxVnicAttachmentOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index de7105f18b..973c7a0f8b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ShapeMeasuredBootOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f0ffde9ef5..97ee5b2e86 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ShapeMemoryEncryptionOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 6dd9862126..c16d2973fd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -55,7 +55,7 @@ func (m ShapeMemoryOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 2ed9d8a56d..facb2a4d69 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -46,7 +46,7 @@ func (m ShapeNetworkingBandwidthOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 3542676368..c250466c51 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -48,7 +48,7 @@ func (m ShapeNumaNodesPerSocketPlatformOptions) ValidateEnumValue() (bool, error } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -62,6 +62,7 @@ const ( ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps1 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS1" ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps2 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS2" ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps4 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS4" + ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps6 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS6" ) var mappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = map[string]ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum{ @@ -69,6 +70,7 @@ var mappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = map[string] "NPS1": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps1, "NPS2": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps2, "NPS4": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps4, + "NPS6": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps6, } var mappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumLowerCase = map[string]ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum{ @@ -76,6 +78,7 @@ var mappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumLowerCase = ma "nps1": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps1, "nps2": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps2, "nps4": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps4, + "nps6": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps6, } // GetShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumValues Enumerates the set of values for ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum @@ -94,6 +97,7 @@ func GetShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumStringValues() [] "NPS1", "NPS2", "NPS4", + "NPS6", } } 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 index ebc75118b0..7aacc1cc9f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -46,7 +46,7 @@ func (m ShapeOcpuOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e45eeb8511..00ab257ca3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -62,7 +62,7 @@ func (m ShapePlatformConfigOptions) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0726717d88..a1b239ec0b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ShapeSecureBootOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f68753f447..32f0e794a0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ShapeSymmetricMultiThreadingEnabledPlatformOptions) ValidateEnumValue() errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e421027e2f..a421966b81 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ShapeTrustedPlatformModuleOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 83d5df530b..a1d7eca442 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m ShapeVirtualInstructionsEnabledPlatformOptions) ValidateEnumValue() (boo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 457e518bbd..630753c7bd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ import ( 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) + // reboot migration (https://docs.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 @@ -49,7 +49,7 @@ func (m SoftResetActionDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/softreset_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/softreset_instance_pool_request_response.go index ed4f091d18..2801494305 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/softreset_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/softreset_instance_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SoftresetInstancePool.go.html to see an example of how to use SoftresetInstancePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SoftresetInstancePool.go.html to see an example of how to use SoftresetInstancePoolRequest. type SoftresetInstancePoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -74,7 +74,7 @@ func (request SoftresetInstancePoolRequest) RetryPolicy() *common.RetryPolicy { func (request SoftresetInstancePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/softstop_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/softstop_instance_pool_request_response.go index c04572e38a..37aed26153 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/softstop_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/softstop_instance_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SoftstopInstancePool.go.html to see an example of how to use SoftstopInstancePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/SoftstopInstancePool.go.html to see an example of how to use SoftstopInstancePoolRequest. type SoftstopInstancePoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -74,7 +74,7 @@ func (request SoftstopInstancePoolRequest) RetryPolicy() *common.RetryPolicy { func (request SoftstopInstancePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/start_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/start_instance_pool_request_response.go index 79f8c320da..67b8f29e22 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/start_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/start_instance_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/StartInstancePool.go.html to see an example of how to use StartInstancePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/StartInstancePool.go.html to see an example of how to use StartInstancePoolRequest. type StartInstancePoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -74,7 +74,7 @@ func (request StartInstancePoolRequest) RetryPolicy() *common.RetryPolicy { func (request StartInstancePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/stop_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/stop_instance_pool_request_response.go index 784e9ad192..f205b13800 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/stop_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/stop_instance_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/StopInstancePool.go.html to see an example of how to use StopInstancePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/StopInstancePool.go.html to see an example of how to use StopInstancePoolRequest. type StopInstancePoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -74,7 +74,7 @@ func (request StopInstancePoolRequest) RetryPolicy() *common.RetryPolicy { func (request StopInstancePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/subnet.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/subnet.go index d868595249..a5194522aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/subnet.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/subnet.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,30 +24,30 @@ import ( // Subnet A logical subdivision of a VCN. Each subnet // consists of a contiguous range of IP addresses that do not overlap with // other subnets in the VCN. Example: 172.16.1.0/24. For more information, see -// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm) and -// VCNs and Subnets (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVCNs.htm). +// Overview of the Networking Service (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm) and +// VCNs and Subnets (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVCNs.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). +// Getting Started with Policies (https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). type Subnet struct { // The subnet's CIDR block. // 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 subnet. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the subnet. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The subnet's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + // The subnet's Oracle ID (OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). Id *string `mandatory:"true" json:"id"` // The subnet's current state. LifecycleState SubnetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table that the subnet uses. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table that the subnet uses. RouteTableId *string `mandatory:"true" json:"routeTableId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the subnet is in. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the subnet is in. VcnId *string `mandatory:"true" json:"vcnId"` // The IP address of the virtual router. @@ -63,12 +63,18 @@ type Subnet struct { // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + // The list of all IPv4 CIDR blocks for the subnet that meets the following criteria: + // - Ipv4 CIDR blocks must be valid. + // - Multiple Ipv4 CIDR blocks must not overlap each other or the on-premises network CIDR block. + // - The number of prefixes must not exceed the limit of IPv4 prefixes allowed to a subnet. + Ipv4CidrBlocks []string `mandatory:"false" json:"ipv4CidrBlocks"` + // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/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/iaas/Content/General/Concepts/identifiers.htm) of the set of DHCP options that the subnet uses. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the set of DHCP options that the subnet uses. DhcpOptionsId *string `mandatory:"false" json:"dhcpOptionsId"` // A user-friendly name. Does not have to be unique, and it's changeable. @@ -83,17 +89,17 @@ type Subnet struct { // The absence of this parameter means the Internet and VCN Resolver // will not resolve hostnames of instances in this subnet. // For more information, see - // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // Example: `subnet123` 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // For an IPv6-enabled subnet, this is the IPv6 prefix for the subnet's IP address space. - // The subnet size is always /64. See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // The subnet size is always /64. See IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). // Example: `2001:0db8:0123:1111::/64` Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` @@ -136,7 +142,7 @@ type Subnet struct { // The subnet's domain name, which consists of the subnet's DNS label, // 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). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // Example: `subnet123.vcn1.oraclevcn.com` SubnetDomainName *string `mandatory:"false" json:"subnetDomainName"` @@ -159,7 +165,7 @@ func (m Subnet) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6cfd461194..0b6120a683 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( ) // SubnetTopology Defines the visualization of a subnet in a VCN. -// See Network Visualizer Documentation (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/network_visualizer.htm) for more information, including +// See Network Visualizer Documentation (https://docs.oracle.com/iaas/Content/Network/Concepts/network_visualizer.htm) for more information, including // conventions and pictures of symbols. type SubnetTopology struct { @@ -41,7 +41,7 @@ type SubnetTopology struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet for which the visualization is generated. SubnetId *string `mandatory:"false" json:"subnetId"` } @@ -76,7 +76,7 @@ func (m SubnetTopology) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/supported_capabilities.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/supported_capabilities.go new file mode 100644 index 0000000000..44db8037c0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/supported_capabilities.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SupportedCapabilities Specifies the capabilities that the Dedicated Virtual Machine Host (DVMH) Shape or Virtual Machine Instance Shape could support. +type SupportedCapabilities struct { + + // Whether the DVMH shape could support confidential VMs or the VM instance shape could be confidential. + IsMemoryEncryptionSupported *bool `mandatory:"true" json:"isMemoryEncryptionSupported"` +} + +func (m SupportedCapabilities) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SupportedCapabilities) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} 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 index 90848bc9b6..d2e2b4f521 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m TcpOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_cluster_network_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_cluster_network_request_response.go index 6ec39330c1..0e1ca328a2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_cluster_network_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_cluster_network_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateClusterNetwork.go.html to see an example of how to use TerminateClusterNetworkRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateClusterNetwork.go.html to see an example of how to use TerminateClusterNetworkRequest. type TerminateClusterNetworkRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. ClusterNetworkId *string `mandatory:"true" contributesTo:"path" name:"clusterNetworkId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request TerminateClusterNetworkRequest) RetryPolicy() *common.RetryPolicy func (request TerminateClusterNetworkRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -82,8 +82,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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/terminate_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_pool_request_response.go index 1abd4390a0..a7564e6383 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateInstancePool.go.html to see an example of how to use TerminateInstancePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateInstancePool.go.html to see an example of how to use TerminateInstancePoolRequest. type TerminateInstancePoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request TerminateInstancePoolRequest) RetryPolicy() *common.RetryPolicy { func (request TerminateInstancePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go index 15dc757174..08792d6343 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateInstance.go.html to see an example of how to use TerminateInstanceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminateInstance.go.html to see an example of how to use TerminateInstanceRequest. type TerminateInstanceRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -35,6 +35,11 @@ type TerminateInstanceRequest struct { // default value is `true`. PreserveDataVolumesCreatedAtLaunch *bool `mandatory:"false" contributesTo:"query" name:"preserveDataVolumesCreatedAtLaunch"` + // This optional parameter overrides recycle level for hosts. The parameter can be used when hosts are associated + // with a Capacity Reservation. + // * `FULL_RECYCLE` - Does not skip host wipe. This is the default behavior. + RecycleLevel TerminateInstanceRecycleLevelEnum `mandatory:"false" contributesTo:"query" name:"recycleLevel" 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"` @@ -75,8 +80,11 @@ func (request TerminateInstanceRequest) RetryPolicy() *common.RetryPolicy { // Not recommended for calling this function directly func (request TerminateInstanceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingTerminateInstanceRecycleLevelEnum(string(request.RecycleLevel)); !ok && request.RecycleLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecycleLevel: %s. Supported values are: %s.", request.RecycleLevel, strings.Join(GetTerminateInstanceRecycleLevelEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -100,3 +108,41 @@ func (response TerminateInstanceResponse) String() string { func (response TerminateInstanceResponse) HTTPResponse() *http.Response { return response.RawResponse } + +// TerminateInstanceRecycleLevelEnum Enum with underlying type: string +type TerminateInstanceRecycleLevelEnum string + +// Set of constants representing the allowable values for TerminateInstanceRecycleLevelEnum +const ( + TerminateInstanceRecycleLevelFullRecycle TerminateInstanceRecycleLevelEnum = "FULL_RECYCLE" +) + +var mappingTerminateInstanceRecycleLevelEnum = map[string]TerminateInstanceRecycleLevelEnum{ + "FULL_RECYCLE": TerminateInstanceRecycleLevelFullRecycle, +} + +var mappingTerminateInstanceRecycleLevelEnumLowerCase = map[string]TerminateInstanceRecycleLevelEnum{ + "full_recycle": TerminateInstanceRecycleLevelFullRecycle, +} + +// GetTerminateInstanceRecycleLevelEnumValues Enumerates the set of values for TerminateInstanceRecycleLevelEnum +func GetTerminateInstanceRecycleLevelEnumValues() []TerminateInstanceRecycleLevelEnum { + values := make([]TerminateInstanceRecycleLevelEnum, 0) + for _, v := range mappingTerminateInstanceRecycleLevelEnum { + values = append(values, v) + } + return values +} + +// GetTerminateInstanceRecycleLevelEnumStringValues Enumerates the set of values in String for TerminateInstanceRecycleLevelEnum +func GetTerminateInstanceRecycleLevelEnumStringValues() []string { + return []string{ + "FULL_RECYCLE", + } +} + +// GetMappingTerminateInstanceRecycleLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTerminateInstanceRecycleLevelEnum(val string) (TerminateInstanceRecycleLevelEnum, bool) { + enum, ok := mappingTerminateInstanceRecycleLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} 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 index eee32169ec..ed34bd12af 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m TerminatePreemptionAction) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/termination_proceed_instance_pool_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/termination_proceed_instance_pool_instance_details.go new file mode 100644 index 0000000000..813491ae7a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/termination_proceed_instance_pool_instance_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TerminationProceedInstancePoolInstanceDetails An instance to be marked for termination in an instance pool. +type TerminationProceedInstancePoolInstanceDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"true" json:"instanceId"` +} + +func (m TerminationProceedInstancePoolInstanceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TerminationProceedInstancePoolInstanceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/termination_proceed_instance_pool_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/termination_proceed_instance_pool_instance_request_response.go new file mode 100644 index 0000000000..ded9208f6f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/termination_proceed_instance_pool_instance_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// TerminationProceedInstancePoolInstanceRequest wrapper for the TerminationProceedInstancePoolInstance operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/TerminationProceedInstancePoolInstance.go.html to see an example of how to use TerminationProceedInstancePoolInstanceRequest. +type TerminationProceedInstancePoolInstanceRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` + + // Instance to be marked for terminating. + TerminationProceedInstancePoolInstanceDetails `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 TerminationProceedInstancePoolInstanceRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request TerminationProceedInstancePoolInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request TerminationProceedInstancePoolInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request TerminationProceedInstancePoolInstanceRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request TerminationProceedInstancePoolInstanceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TerminationProceedInstancePoolInstanceResponse wrapper for the TerminationProceedInstancePoolInstance operation +type TerminationProceedInstancePoolInstanceResponse 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 TerminationProceedInstancePoolInstanceResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response TerminationProceedInstancePoolInstanceResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 7016bb00b6..b6e53fe979 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/topology.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -91,7 +91,7 @@ func (m *topology) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for Topology: %s.", m.Type) + common.Logf("Received unsupported enum value for Topology: %s.", m.Type) return *m, nil } } @@ -127,7 +127,7 @@ func (m topology) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c81cb8df99..aa92cd2158 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,10 +28,10 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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"` @@ -58,7 +58,7 @@ func (m TopologyAssociatedWithEntityRelationship) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9b63df688e..54d5ae365c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,7 +24,7 @@ import ( // 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. + // The OCID (https://docs.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"` } @@ -39,7 +39,7 @@ func (m TopologyAssociatedWithRelationshipDetails) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index a8b581f89b..cf4a714764 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -28,10 +28,10 @@ import ( // `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. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second entity in the relationship. Id2 *string `mandatory:"true" json:"id2"` } @@ -56,7 +56,7 @@ func (m TopologyContainsEntityRelationship) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5886e0f275..c3ba55f129 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,10 +25,10 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second entity in the relationship. GetId2() *string } @@ -79,7 +79,7 @@ func (m *topologyentityrelationship) UnmarshalPolymorphicJSON(data []byte) (inte err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for TopologyEntityRelationship: %s.", m.Type) + common.Logf("Received unsupported enum value for TopologyEntityRelationship: %s.", m.Type) return *m, nil } } @@ -105,7 +105,7 @@ func (m topologyentityrelationship) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c80425937e..5dc317907c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -27,10 +27,10 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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"` @@ -57,7 +57,7 @@ func (m TopologyRoutesToEntityRelationship) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8300ec4bff..139aa384f5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -32,7 +32,7 @@ type TopologyRoutesToRelationshipDetails struct { // 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. + // The OCID (https://docs.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. @@ -53,7 +53,7 @@ func (m TopologyRoutesToRelationshipDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9ac2cf0d94..7520c00b10 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -49,7 +49,7 @@ func (m TunnelConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8cbd063bff..d034a3cd05 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -45,7 +45,7 @@ func (m TunnelCpeDeviceConfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9b6d45e35a..2d2baeaa71 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -71,7 +71,7 @@ func (m TunnelPhaseOneDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index db647d0049..474f2311f2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -74,7 +74,7 @@ func (m TunnelPhaseTwoDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 7b53f92a38..42178511b2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -54,7 +54,7 @@ func (m TunnelRouteSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 01c49fc2d3..e699a5682b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -54,7 +54,7 @@ func (m TunnelSecurityAssociationSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f552173ad6..79c695eda5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -54,7 +54,7 @@ func (m TunnelStatus) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d18508fb55..07790af003 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m UdpOptions) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d1e1a224b8..0bf19c05e7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,14 +34,14 @@ type UpdateBootVolumeBackupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -56,7 +56,7 @@ func (m UpdateBootVolumeBackupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 530be5051e..9bd1f57a08 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolumeBackup.go.html to see an example of how to use UpdateBootVolumeBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolumeBackup.go.html to see an example of how to use UpdateBootVolumeBackupRequest. type UpdateBootVolumeBackupRequest struct { // The OCID of the boot volume backup. @@ -70,7 +70,7 @@ func (request UpdateBootVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateBootVolumeBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 97d5e25125..de9c876808 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -35,7 +35,7 @@ type UpdateBootVolumeDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -44,7 +44,7 @@ type UpdateBootVolumeDetails struct { // 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. + // See Block Volume Performance Levels (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. // Allowed values: // * `10`: Represents Balanced option. // * `20`: Represents Higher Performance option. @@ -75,7 +75,7 @@ func (m UpdateBootVolumeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c985515acd..d12e20125d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -41,7 +41,7 @@ func (m UpdateBootVolumeKmsKeyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 8a59cef926..feeb5cbc2b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolumeKmsKey.go.html to see an example of how to use UpdateBootVolumeKmsKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolumeKmsKey.go.html to see an example of how to use UpdateBootVolumeKmsKeyRequest. type UpdateBootVolumeKmsKeyRequest struct { // The OCID of the boot volume. @@ -70,7 +70,7 @@ func (request UpdateBootVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateBootVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_request_response.go index 69d5807925..ef7936657c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolume.go.html to see an example of how to use UpdateBootVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateBootVolume.go.html to see an example of how to use UpdateBootVolumeRequest. type UpdateBootVolumeRequest struct { // The OCID of the boot volume. @@ -70,7 +70,7 @@ func (request UpdateBootVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateBootVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoasn_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoasn_details.go new file mode 100644 index 0000000000..e42311bd51 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoasn_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateByoasnDetails The information used to update a `Byoasn` resource. +type UpdateByoasnDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateByoasnDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateByoasnDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoasn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoasn_request_response.go new file mode 100644 index 0000000000..516b578039 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoasn_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// UpdateByoasnRequest wrapper for the UpdateByoasn operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateByoasn.go.html to see an example of how to use UpdateByoasnRequest. +type UpdateByoasnRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Byoasn` resource. + ByoasnId *string `mandatory:"true" contributesTo:"path" name:"byoasnId"` + + // Byoasn Range details. + UpdateByoasnDetails `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"` + + // 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 UpdateByoasnRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateByoasnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateByoasnRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateByoasnRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateByoasnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateByoasnResponse wrapper for the UpdateByoasn operation +type UpdateByoasnResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Byoasn instance + Byoasn `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 UpdateByoasnResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateByoasnResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index f9545efae1..92081777ce 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateByoipRangeDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -50,7 +50,7 @@ func (m UpdateByoipRangeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_request_response.go index 15d8c11b8b..0c3b8636b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateByoipRange.go.html to see an example of how to use UpdateByoipRangeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateByoipRange.go.html to see an example of how to use UpdateByoipRangeRequest. type UpdateByoipRangeRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource containing the BYOIP CIDR block. + // The OCID (https://docs.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"` // Byoip Range details. @@ -70,7 +70,7 @@ func (request UpdateByoipRangeRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateByoipRangeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capacity_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capacity_source_details.go index 51e1c4a198..afe7fc846e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capacity_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capacity_source_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -61,7 +61,7 @@ func (m *updatecapacitysourcedetails) UnmarshalPolymorphicJSON(data []byte) (int err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for UpdateCapacitySourceDetails: %s.", m.CapacityType) + common.Logf("Received unsupported enum value for UpdateCapacitySourceDetails: %s.", m.CapacityType) return *m, nil } } @@ -77,7 +77,7 @@ func (m updatecapacitysourcedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 26e0fa16ec..042f427eef 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -40,7 +40,7 @@ type UpdateCaptureFilterDetails struct { FlowLogCaptureFilterRules []FlowLogCaptureFilterRuleDetails `mandatory:"false" json:"flowLogCaptureFilterRules"` // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -56,7 +56,7 @@ func (m UpdateCaptureFilterDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_request_response.go index 10051939aa..711bc2c569 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCaptureFilter.go.html to see an example of how to use UpdateCaptureFilterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCaptureFilter.go.html to see an example of how to use UpdateCaptureFilterRequest. type UpdateCaptureFilterRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capture filter. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateCaptureFilterRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateCaptureFilterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b96fcb62a9..234125fca6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,11 +21,11 @@ import ( "strings" ) -// UpdateClusterNetworkDetails The data to update a cluster network with instance pools (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). +// UpdateClusterNetworkDetails The data to update a cluster network with instance pools (https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateClusterNetworkDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -53,7 +53,7 @@ func (m UpdateClusterNetworkDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 94b83a1375..00e4cfa30b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,11 +24,11 @@ import ( // 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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -37,7 +37,7 @@ type UpdateClusterNetworkInstancePoolDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -47,7 +47,7 @@ type UpdateClusterNetworkInstancePoolDetails struct { // operation. 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated with the instance pool. InstanceConfigurationId *string `mandatory:"false" json:"instanceConfigurationId"` } @@ -62,7 +62,7 @@ func (m UpdateClusterNetworkInstancePoolDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_request_response.go index 75b68bd010..16b2218cc0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateClusterNetwork.go.html to see an example of how to use UpdateClusterNetworkRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateClusterNetwork.go.html to see an example of how to use UpdateClusterNetworkRequest. type UpdateClusterNetworkRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. ClusterNetworkId *string `mandatory:"true" contributesTo:"path" name:"clusterNetworkId"` // Update cluster network @@ -77,7 +77,7 @@ func (request UpdateClusterNetworkRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateClusterNetworkRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b281480f2d..465369d428 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,12 +34,12 @@ type UpdateComputeCapacityReservationDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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). + // For more information, see Capacity Reservations (https://docs.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). IsDefaultReservation *bool `mandatory:"false" json:"isDefaultReservation"` // The capacity configurations for the capacity reservation. @@ -59,7 +59,7 @@ func (m UpdateComputeCapacityReservationDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index beee69fa47..0a2181f8b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCapacityReservation.go.html to see an example of how to use UpdateComputeCapacityReservationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCapacityReservation.go.html to see an example of how to use UpdateComputeCapacityReservationRequest. type UpdateComputeCapacityReservationRequest struct { // The OCID of the compute capacity reservation. @@ -70,7 +70,7 @@ func (request UpdateComputeCapacityReservationRequest) RetryPolicy() *common.Ret func (request UpdateComputeCapacityReservationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -85,8 +85,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_capacity_topology_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_topology_details.go index 0bbc072189..0c529cb5aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_topology_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_topology_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -27,7 +27,7 @@ type UpdateComputeCapacityTopologyDetails struct { CapacitySource UpdateCapacitySourceDetails `mandatory:"false" json:"capacitySource"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -36,7 +36,7 @@ type UpdateComputeCapacityTopologyDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -52,7 +52,7 @@ func (m UpdateComputeCapacityTopologyDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_topology_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_topology_request_response.go index 43cd1027c2..e2127d6cd4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_topology_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_topology_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCapacityTopology.go.html to see an example of how to use UpdateComputeCapacityTopologyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCapacityTopology.go.html to see an example of how to use UpdateComputeCapacityTopologyRequest. type UpdateComputeCapacityTopologyRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity topology. ComputeCapacityTopologyId *string `mandatory:"true" contributesTo:"path" name:"computeCapacityTopologyId"` // Update compute capacity topology details. @@ -70,7 +70,7 @@ func (request UpdateComputeCapacityTopologyRequest) RetryPolicy() *common.RetryP func (request UpdateComputeCapacityTopologyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -85,8 +85,8 @@ type UpdateComputeCapacityTopologyResponse 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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 2e7c7ac8d7..7078e7bdfa 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,7 +21,7 @@ import ( "strings" ) -// UpdateComputeClusterDetails The data to update a compute cluster. A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) +// UpdateComputeClusterDetails The data to update a compute cluster. A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) // is a remote direct memory access (RDMA) network group. type UpdateComputeClusterDetails struct { @@ -30,12 +30,12 @@ type UpdateComputeClusterDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -51,7 +51,7 @@ func (m UpdateComputeClusterDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_request_response.go index d25e35ff01..4fa6591e2a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,11 +15,11 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCluster.go.html to see an example of how to use UpdateComputeClusterRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeCluster.go.html to see an example of how to use UpdateComputeClusterRequest. type UpdateComputeClusterRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. - // A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory // access (RDMA) network group. ComputeClusterId *string `mandatory:"true" contributesTo:"path" name:"computeClusterId"` @@ -79,7 +79,7 @@ func (request UpdateComputeClusterRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateComputeClusterRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_cluster_details.go new file mode 100644 index 0000000000..f7178a0b20 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_cluster_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateComputeGpuMemoryClusterDetails Updates compute GPU memory cluster details. +type UpdateComputeGpuMemoryClusterDetails struct { + + // Instance Configuration to be used for this GPU Memory Cluster + InstanceConfigurationId *string `mandatory:"false" json:"instanceConfigurationId"` + + // The number of instances currently running in the GpuMemoryCluster + Size *int64 `mandatory:"false" json:"size"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // 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 UpdateComputeGpuMemoryClusterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateComputeGpuMemoryClusterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_cluster_request_response.go new file mode 100644 index 0000000000..5d6e7e00e6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_cluster_request_response.go @@ -0,0 +1,114 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// UpdateComputeGpuMemoryClusterRequest wrapper for the UpdateComputeGpuMemoryCluster operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeGpuMemoryCluster.go.html to see an example of how to use UpdateComputeGpuMemoryClusterRequest. +type UpdateComputeGpuMemoryClusterRequest struct { + + // The OCID of the compute GPU memory cluster. + ComputeGpuMemoryClusterId *string `mandatory:"true" contributesTo:"path" name:"computeGpuMemoryClusterId"` + + // Update compute GPU memory cluster details. + UpdateComputeGpuMemoryClusterDetails `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"` + + // 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 UpdateComputeGpuMemoryClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateComputeGpuMemoryClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateComputeGpuMemoryClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateComputeGpuMemoryClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateComputeGpuMemoryClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateComputeGpuMemoryClusterResponse wrapper for the UpdateComputeGpuMemoryCluster operation +type UpdateComputeGpuMemoryClusterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeGpuMemoryCluster instance + ComputeGpuMemoryCluster `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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 UpdateComputeGpuMemoryClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateComputeGpuMemoryClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_fabric_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_fabric_details.go new file mode 100644 index 0000000000..354c89dc82 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_fabric_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateComputeGpuMemoryFabricDetails Updates compute GPU memory fabric details. +type UpdateComputeGpuMemoryFabricDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + MemoryFabricPreferences *MemoryFabricPreferencesDescriptor `mandatory:"false" json:"memoryFabricPreferences"` +} + +func (m UpdateComputeGpuMemoryFabricDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateComputeGpuMemoryFabricDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_fabric_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_fabric_request_response.go new file mode 100644 index 0000000000..ffa1de1792 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_gpu_memory_fabric_request_response.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// UpdateComputeGpuMemoryFabricRequest wrapper for the UpdateComputeGpuMemoryFabric operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeGpuMemoryFabric.go.html to see an example of how to use UpdateComputeGpuMemoryFabricRequest. +type UpdateComputeGpuMemoryFabricRequest struct { + + // The OCID of the compute GPU memory fabric. + ComputeGpuMemoryFabricId *string `mandatory:"true" contributesTo:"path" name:"computeGpuMemoryFabricId"` + + // Update compute GPU memory fabric details. + UpdateComputeGpuMemoryFabricDetails `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"` + + // 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 UpdateComputeGpuMemoryFabricRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateComputeGpuMemoryFabricRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateComputeGpuMemoryFabricRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateComputeGpuMemoryFabricRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateComputeGpuMemoryFabricRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateComputeGpuMemoryFabricResponse wrapper for the UpdateComputeGpuMemoryFabric operation +type UpdateComputeGpuMemoryFabricResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeGpuMemoryFabric instance + ComputeGpuMemoryFabric `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 UpdateComputeGpuMemoryFabricResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateComputeGpuMemoryFabricResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_details.go new file mode 100644 index 0000000000..7edcfc3391 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateComputeHostDetails The details for updating the compute host. +type UpdateComputeHostDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateComputeHostDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateComputeHostDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_group_details.go new file mode 100644 index 0000000000..586202770a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_group_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateComputeHostGroupDetails Update details information for a compute host group. +type UpdateComputeHostGroupDetails 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 list of HostGroupConfiguration objects + Configurations []HostGroupConfiguration `mandatory:"false" json:"configurations"` + + // A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group. + IsTargetedPlacementRequired *bool `mandatory:"false" json:"isTargetedPlacementRequired"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateComputeHostGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateComputeHostGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_group_request_response.go new file mode 100644 index 0000000000..d7576548ca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_group_request_response.go @@ -0,0 +1,117 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// UpdateComputeHostGroupRequest wrapper for the UpdateComputeHostGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeHostGroup.go.html to see an example of how to use UpdateComputeHostGroupRequest. +type UpdateComputeHostGroupRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group. + ComputeHostGroupId *string `mandatory:"true" contributesTo:"path" name:"computeHostGroupId"` + + // Update compute host group details. + UpdateComputeHostGroupDetails `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"` + + // 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 UpdateComputeHostGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateComputeHostGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateComputeHostGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateComputeHostGroupRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateComputeHostGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateComputeHostGroupResponse wrapper for the UpdateComputeHostGroup operation +type UpdateComputeHostGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeHostGroup instance + ComputeHostGroup `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Location of the resource. + Location *string `presentIn:"header" name:"location"` + + // Unique Oracle-assigned identifier for the 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 UpdateComputeHostGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateComputeHostGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_request_response.go new file mode 100644 index 0000000000..39575f8274 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_host_request_response.go @@ -0,0 +1,111 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// UpdateComputeHostRequest wrapper for the UpdateComputeHost operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeHost.go.html to see an example of how to use UpdateComputeHostRequest. +type UpdateComputeHostRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host. + ComputeHostId *string `mandatory:"true" contributesTo:"path" name:"computeHostId"` + + // Update compute capacity topology details. + UpdateComputeHostDetails `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"` + + // 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 UpdateComputeHostRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateComputeHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateComputeHostRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateComputeHostRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateComputeHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateComputeHostResponse wrapper for the UpdateComputeHost operation +type UpdateComputeHostResponse 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 UpdateComputeHostResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateComputeHostResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 1d49968d75..3a85a322e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -30,7 +30,7 @@ type UpdateComputeImageCapabilitySchemaDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -38,7 +38,7 @@ type UpdateComputeImageCapabilitySchemaDetails struct { SchemaData map[string]ImageCapabilitySchemaDescriptor `mandatory:"false" json:"schemaData"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -54,7 +54,7 @@ func (m UpdateComputeImageCapabilitySchemaDetails) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 0fa7d3c440..3766896cba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeImageCapabilitySchema.go.html to see an example of how to use UpdateComputeImageCapabilitySchemaRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateComputeImageCapabilitySchema.go.html to see an example of how to use UpdateComputeImageCapabilitySchemaRequest. type UpdateComputeImageCapabilitySchemaRequest struct { // The id of the compute image capability schema or the image ocid @@ -70,7 +70,7 @@ func (request UpdateComputeImageCapabilitySchemaRequest) RetryPolicy() *common.R func (request UpdateComputeImageCapabilitySchemaRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4b12fe8c8b..3f0e1d0500 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateConsoleHistoryDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -50,7 +50,7 @@ func (m UpdateConsoleHistoryDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_request_response.go index 979ae696ad..72e53dd6f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateConsoleHistory.go.html to see an example of how to use UpdateConsoleHistoryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateConsoleHistory.go.html to see an example of how to use UpdateConsoleHistoryRequest. type UpdateConsoleHistoryRequest struct { // The OCID of the console history. @@ -70,7 +70,7 @@ func (request UpdateConsoleHistoryRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateConsoleHistoryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 41f73087b8..30efd6f8a7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,11 +34,11 @@ type UpdateCpeDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 + // The OCID (https://docs.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. @@ -61,7 +61,7 @@ func (m UpdateCpeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_request_response.go index 0b6ba93a2c..af95ea148d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCpe.go.html to see an example of how to use UpdateCpeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCpe.go.html to see an example of how to use UpdateCpeRequest. type UpdateCpeRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateCpeRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateCpeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d0211947ff..270343ee8d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateCrossConnectDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -61,7 +61,7 @@ func (m UpdateCrossConnectDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f39ce37005..fc3e97727d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -37,7 +37,7 @@ type UpdateCrossConnectGroupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -55,7 +55,7 @@ func (m UpdateCrossConnectGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 073317564f..87f21b97ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCrossConnectGroup.go.html to see an example of how to use UpdateCrossConnectGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCrossConnectGroup.go.html to see an example of how to use UpdateCrossConnectGroupRequest. type UpdateCrossConnectGroupRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group. CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` // Update CrossConnectGroup fields @@ -70,7 +70,7 @@ func (request UpdateCrossConnectGroupRequest) RetryPolicy() *common.RetryPolicy func (request UpdateCrossConnectGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_request_response.go index f023e2a775..b526e08dcd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCrossConnect.go.html to see an example of how to use UpdateCrossConnectRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateCrossConnect.go.html to see an example of how to use UpdateCrossConnectRequest. type UpdateCrossConnectRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` // Update CrossConnect fields. @@ -70,7 +70,7 @@ func (request UpdateCrossConnectRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateCrossConnectRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_capacity_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_capacity_source_details.go index 58317c41ed..ef9beb1b9c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_capacity_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_capacity_source_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -37,7 +37,7 @@ func (m UpdateDedicatedCapacitySourceDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2fa1509f8c..cdec030633 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateDedicatedVmHostDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -50,7 +50,7 @@ func (m UpdateDedicatedVmHostDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 53bee9a36a..677b6e86fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDedicatedVmHost.go.html to see an example of how to use UpdateDedicatedVmHostRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDedicatedVmHost.go.html to see an example of how to use UpdateDedicatedVmHostRequest. type UpdateDedicatedVmHostRequest struct { // The OCID of the dedicated VM host. @@ -77,7 +77,7 @@ func (request UpdateDedicatedVmHostRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateDedicatedVmHostRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9ad256d3ac..ad9250a30a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -35,7 +35,7 @@ type UpdateDhcpDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -59,7 +59,7 @@ func (m UpdateDhcpDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_options_request_response.go index e6b6cfc431..cf396492f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_options_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDhcpOptions.go.html to see an example of how to use UpdateDhcpOptionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDhcpOptions.go.html to see an example of how to use UpdateDhcpOptionsRequest. type UpdateDhcpOptionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the set of DHCP options. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateDhcpOptionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_details.go index 8e9d8938ca..7c25492e10 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -29,7 +29,7 @@ type UpdateDrgAttachmentDetails struct { // 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 OCID (https://docs.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. @@ -38,24 +38,24 @@ type UpdateDrgAttachmentDetails struct { NetworkDetails DrgAttachmentNetworkUpdateDetails `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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 export route distribution used to specify how routes in the assigned DRG route table + // The OCID (https://docs.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 out through the attachment. // 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/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. + // This is the OCID (https://docs.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) + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) RouteTableId *string `mandatory:"false" json:"routeTableId"` } @@ -70,7 +70,7 @@ func (m UpdateDrgAttachmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_request_response.go index 4529209a7c..d37fa472e8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgAttachment.go.html to see an example of how to use UpdateDrgAttachmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgAttachment.go.html to see an example of how to use UpdateDrgAttachmentRequest. type UpdateDrgAttachmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` // Details object for updating a `DrgAttachment`. @@ -70,7 +70,7 @@ func (request UpdateDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateDrgAttachmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8436f38b64..b0c22c19eb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -36,7 +36,7 @@ type UpdateDrgDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -52,7 +52,7 @@ func (m UpdateDrgDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_request_response.go index 070aaffc38..2cbea2cfc7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrg.go.html to see an example of how to use UpdateDrgRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrg.go.html to see an example of how to use UpdateDrgRequest. type UpdateDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateDrgRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateDrgRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3c26b9b8cb..ad4c32e95e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -35,7 +35,7 @@ type UpdateDrgRouteDistributionDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -51,7 +51,7 @@ func (m UpdateDrgRouteDistributionDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 3b8910b060..cdfe337693 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteDistribution.go.html to see an example of how to use UpdateDrgRouteDistributionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteDistribution.go.html to see an example of how to use UpdateDrgRouteDistributionRequest. type UpdateDrgRouteDistributionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. DrgRouteDistributionId *string `mandatory:"true" contributesTo:"path" name:"drgRouteDistributionId"` // Details object for updating a route distribution @@ -70,7 +70,7 @@ func (request UpdateDrgRouteDistributionRequest) RetryPolicy() *common.RetryPoli func (request UpdateDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4b27ef0401..82397c2a86 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -46,7 +46,7 @@ func (m UpdateDrgRouteDistributionStatementDetails) ValidateEnumValue() (bool, e errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2cdb8f4145..9d182e0cc4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m UpdateDrgRouteDistributionStatementsDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 9528f006d9..50061eb5ea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteDistributionStatements.go.html to see an example of how to use UpdateDrgRouteDistributionStatementsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteDistributionStatements.go.html to see an example of how to use UpdateDrgRouteDistributionStatementsRequest. type UpdateDrgRouteDistributionStatementsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. DrgRouteDistributionId *string `mandatory:"true" contributesTo:"path" name:"drgRouteDistributionId"` // Request to update one or more route distribution statements in the route distribution. @@ -65,7 +65,7 @@ func (request UpdateDrgRouteDistributionStatementsRequest) RetryPolicy() *common func (request UpdateDrgRouteDistributionStatementsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ada6a0e2fe..bb8b74d1a0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -38,7 +38,7 @@ type UpdateDrgRouteRuleDetails struct { // * `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 + // The OCID (https://docs.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"` } @@ -57,7 +57,7 @@ func (m UpdateDrgRouteRuleDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 654ae63f5b..e36574c562 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m UpdateDrgRouteRulesDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 777f9fa01a..4f66c38b69 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteRules.go.html to see an example of how to use UpdateDrgRouteRulesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteRules.go.html to see an example of how to use UpdateDrgRouteRulesRequest. type UpdateDrgRouteRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. DrgRouteTableId *string `mandatory:"true" contributesTo:"path" name:"drgRouteTableId"` // Request to update one or more route rules in the DRG route table. @@ -65,7 +65,7 @@ func (request UpdateDrgRouteRulesRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateDrgRouteRulesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b28e55ded1..8edf43f85b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -35,11 +35,11 @@ type UpdateDrgRouteTableDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 + // The OCID (https://docs.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"` @@ -59,7 +59,7 @@ func (m UpdateDrgRouteTableDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 81a5a1099e..392dcbe447 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteTable.go.html to see an example of how to use UpdateDrgRouteTableRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateDrgRouteTable.go.html to see an example of how to use UpdateDrgRouteTableRequest. type UpdateDrgRouteTableRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. DrgRouteTableId *string `mandatory:"true" contributesTo:"path" name:"drgRouteTableId"` // Details object used to updating a DRG route table. @@ -70,7 +70,7 @@ func (request UpdateDrgRouteTableRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateDrgRouteTableRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 11a74b9d59..c33a55c9c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnection.go.html to see an example of how to use UpdateIPSecConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnection.go.html to see an example of how to use UpdateIPSecConnectionRequest. type UpdateIPSecConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateIPSecConnectionRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateIPSecConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 5fc9dc1fb6..b9715b79cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnectionTunnel.go.html to see an example of how to use UpdateIPSecConnectionTunnelRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnectionTunnel.go.html to see an example of how to use UpdateIPSecConnectionTunnelRequest. type UpdateIPSecConnectionTunnelRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. TunnelId *string `mandatory:"true" contributesTo:"path" name:"tunnelId"` // Details object for updating a IPSecConnection tunnel's details. @@ -73,7 +73,7 @@ func (request UpdateIPSecConnectionTunnelRequest) RetryPolicy() *common.RetryPol func (request UpdateIPSecConnectionTunnelRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 38704184e9..94771c724a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnectionTunnelSharedSecret.go.html to see an example of how to use UpdateIPSecConnectionTunnelSharedSecretRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIPSecConnectionTunnelSharedSecret.go.html to see an example of how to use UpdateIPSecConnectionTunnelSharedSecretRequest. type UpdateIPSecConnectionTunnelSharedSecretRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. TunnelId *string `mandatory:"true" contributesTo:"path" name:"tunnelId"` // Details object for updating a IPSec connection tunnel's sharedSecret. @@ -73,7 +73,7 @@ func (request UpdateIPSecConnectionTunnelSharedSecretRequest) RetryPolicy() *com func (request UpdateIPSecConnectionTunnelSharedSecretRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c01585577f..f30e7a4c26 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateImageDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -58,7 +58,7 @@ func (m UpdateImageDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_request_response.go index 8ad4b9dc29..3c5c6f05eb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateImage.go.html to see an example of how to use UpdateImageRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateImage.go.html to see an example of how to use UpdateImageRequest. type UpdateImageRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image. ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // Updates the image display name field. Avoid entering confidential information. @@ -77,7 +77,7 @@ func (request UpdateImageRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateImageRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_agent_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_agent_config_details.go index df9b666ce6..a1f9cab435 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_agent_config_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_agent_config_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -54,7 +54,7 @@ type UpdateInstanceAgentConfigDetails struct { // 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). + // Managing Plugins with Oracle Cloud Agent (https://docs.oracle.com/iaas/Content/Compute/Tasks/manage-plugins.htm). AreAllPluginsDisabled *bool `mandatory:"false" json:"areAllPluginsDisabled"` // The configuration of plugins associated with this instance. @@ -72,7 +72,7 @@ func (m UpdateInstanceAgentConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 46ca27d997..24524148dc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -51,7 +51,7 @@ func (m UpdateInstanceAvailabilityConfigDetails) ValidateEnumValue() (bool, erro 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1d617f5542..870ca717b0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateInstanceConfigurationDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -50,7 +50,7 @@ func (m UpdateInstanceConfigurationDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_request_response.go index 6277e796ca..8f5ab1638e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceConfiguration.go.html to see an example of how to use UpdateInstanceConfigurationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceConfiguration.go.html to see an example of how to use UpdateInstanceConfigurationRequest. type UpdateInstanceConfigurationRequest struct { // The OCID of the instance configuration. @@ -77,7 +77,7 @@ func (request UpdateInstanceConfigurationRequest) RetryPolicy() *common.RetryPol func (request UpdateInstanceConfigurationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 63241db18b..08ee1b32c0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,12 +25,12 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -46,7 +46,7 @@ func (m UpdateInstanceConsoleConnectionDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c61aa4bb17..b45c3aadcb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceConsoleConnection.go.html to see an example of how to use UpdateInstanceConsoleConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceConsoleConnection.go.html to see an example of how to use UpdateInstanceConsoleConnectionRequest. type UpdateInstanceConsoleConnectionRequest struct { // The OCID of the instance console connection. @@ -70,7 +70,7 @@ func (request UpdateInstanceConsoleConnectionRequest) RetryPolicy() *common.Retr func (request UpdateInstanceConsoleConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9c5967e9ef..eb828d0eb5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,17 +25,22 @@ import ( // UpdateInstanceDetails The representation of UpdateInstanceDetails type UpdateInstanceDetails struct { + // Whether to enable AI enterprise on the instance. + IsAIEnterpriseEnabled *bool `mandatory:"false" json:"isAIEnterpriseEnabled"` + // 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). + // For more information, see Capacity Reservations (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` @@ -44,7 +49,7 @@ type UpdateInstanceDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -76,9 +81,9 @@ type UpdateInstanceDetails struct { // 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). + // Editing an Instance (https://docs.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). + // Compute Shapes (https://docs.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. @@ -128,7 +133,7 @@ type UpdateInstanceDetails struct { // 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). + // Infrastructure Maintenance (https://docs.oracle.com/iaas/Content/Compute/References/infrastructure-maintenance.htm). // Example: `2018-05-25T21:10:29.600Z` TimeMaintenanceRebootDue *common.SDKTime `mandatory:"false" json:"timeMaintenanceRebootDue"` @@ -139,6 +144,9 @@ type UpdateInstanceDetails struct { DedicatedVmHostId *string `mandatory:"false" json:"dedicatedVmHostId"` PlatformConfig UpdateInstancePlatformConfig `mandatory:"false" json:"platformConfig"` + + // The list of liscensing configurations with target update values. + LicensingConfigs []UpdateInstanceLicensingConfig `mandatory:"false" json:"licensingConfigs"` } func (m UpdateInstanceDetails) String() string { @@ -155,7 +163,7 @@ func (m UpdateInstanceDetails) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateOperationConstraint: %s. Supported values are: %s.", m.UpdateOperationConstraint, strings.Join(GetUpdateInstanceDetailsUpdateOperationConstraintEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -163,6 +171,7 @@ func (m UpdateInstanceDetails) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *UpdateInstanceDetails) UnmarshalJSON(data []byte) (e error) { model := struct { + IsAIEnterpriseEnabled *bool `json:"isAIEnterpriseEnabled"` CapacityReservationId *string `json:"capacityReservationId"` DefinedTags map[string]map[string]interface{} `json:"definedTags"` SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` @@ -182,6 +191,7 @@ func (m *UpdateInstanceDetails) UnmarshalJSON(data []byte) (e error) { TimeMaintenanceRebootDue *common.SDKTime `json:"timeMaintenanceRebootDue"` DedicatedVmHostId *string `json:"dedicatedVmHostId"` PlatformConfig updateinstanceplatformconfig `json:"platformConfig"` + LicensingConfigs []updateinstancelicensingconfig `json:"licensingConfigs"` }{} e = json.Unmarshal(data, &model) @@ -189,6 +199,8 @@ func (m *UpdateInstanceDetails) UnmarshalJSON(data []byte) (e error) { return } var nn interface{} + m.IsAIEnterpriseEnabled = model.IsAIEnterpriseEnabled + m.CapacityReservationId = model.CapacityReservationId m.DefinedTags = model.DefinedTags @@ -243,6 +255,18 @@ func (m *UpdateInstanceDetails) UnmarshalJSON(data []byte) (e error) { m.PlatformConfig = nil } + m.LicensingConfigs = make([]UpdateInstanceLicensingConfig, len(model.LicensingConfigs)) + for i, n := range model.LicensingConfigs { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.LicensingConfigs[i] = nn.(UpdateInstanceLicensingConfig) + } else { + m.LicensingConfigs[i] = nil + } + } return } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_licensing_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_licensing_config.go new file mode 100644 index 0000000000..76f68599aa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_licensing_config.go @@ -0,0 +1,178 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstanceLicensingConfig The target license config to be updated on the instance. +type UpdateInstanceLicensingConfig interface { + + // License Type for the OS license. + // * `OCI_PROVIDED` - OCI provided license (e.g. metered $/OCPU-hour). + // * `BRING_YOUR_OWN_LICENSE` - Bring your own license. + GetLicenseType() UpdateInstanceLicensingConfigLicenseTypeEnum +} + +type updateinstancelicensingconfig struct { + JsonData []byte + LicenseType UpdateInstanceLicensingConfigLicenseTypeEnum `mandatory:"false" json:"licenseType,omitempty"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *updateinstancelicensingconfig) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerupdateinstancelicensingconfig updateinstancelicensingconfig + s := struct { + Model Unmarshalerupdateinstancelicensingconfig + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.LicenseType = s.Model.LicenseType + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *updateinstancelicensingconfig) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "WINDOWS": + mm := UpdateInstanceWindowsLicensingConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for UpdateInstanceLicensingConfig: %s.", m.Type) + return *m, nil + } +} + +// GetLicenseType returns LicenseType +func (m updateinstancelicensingconfig) GetLicenseType() UpdateInstanceLicensingConfigLicenseTypeEnum { + return m.LicenseType +} + +func (m updateinstancelicensingconfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m updateinstancelicensingconfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateInstanceLicensingConfigLicenseTypeEnum(string(m.LicenseType)); !ok && m.LicenseType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LicenseType: %s. Supported values are: %s.", m.LicenseType, strings.Join(GetUpdateInstanceLicensingConfigLicenseTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateInstanceLicensingConfigLicenseTypeEnum Enum with underlying type: string +type UpdateInstanceLicensingConfigLicenseTypeEnum string + +// Set of constants representing the allowable values for UpdateInstanceLicensingConfigLicenseTypeEnum +const ( + UpdateInstanceLicensingConfigLicenseTypeOciProvided UpdateInstanceLicensingConfigLicenseTypeEnum = "OCI_PROVIDED" + UpdateInstanceLicensingConfigLicenseTypeBringYourOwnLicense UpdateInstanceLicensingConfigLicenseTypeEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingUpdateInstanceLicensingConfigLicenseTypeEnum = map[string]UpdateInstanceLicensingConfigLicenseTypeEnum{ + "OCI_PROVIDED": UpdateInstanceLicensingConfigLicenseTypeOciProvided, + "BRING_YOUR_OWN_LICENSE": UpdateInstanceLicensingConfigLicenseTypeBringYourOwnLicense, +} + +var mappingUpdateInstanceLicensingConfigLicenseTypeEnumLowerCase = map[string]UpdateInstanceLicensingConfigLicenseTypeEnum{ + "oci_provided": UpdateInstanceLicensingConfigLicenseTypeOciProvided, + "bring_your_own_license": UpdateInstanceLicensingConfigLicenseTypeBringYourOwnLicense, +} + +// GetUpdateInstanceLicensingConfigLicenseTypeEnumValues Enumerates the set of values for UpdateInstanceLicensingConfigLicenseTypeEnum +func GetUpdateInstanceLicensingConfigLicenseTypeEnumValues() []UpdateInstanceLicensingConfigLicenseTypeEnum { + values := make([]UpdateInstanceLicensingConfigLicenseTypeEnum, 0) + for _, v := range mappingUpdateInstanceLicensingConfigLicenseTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateInstanceLicensingConfigLicenseTypeEnumStringValues Enumerates the set of values in String for UpdateInstanceLicensingConfigLicenseTypeEnum +func GetUpdateInstanceLicensingConfigLicenseTypeEnumStringValues() []string { + return []string{ + "OCI_PROVIDED", + "BRING_YOUR_OWN_LICENSE", + } +} + +// GetMappingUpdateInstanceLicensingConfigLicenseTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateInstanceLicensingConfigLicenseTypeEnum(val string) (UpdateInstanceLicensingConfigLicenseTypeEnum, bool) { + enum, ok := mappingUpdateInstanceLicensingConfigLicenseTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateInstanceLicensingConfigTypeEnum Enum with underlying type: string +type UpdateInstanceLicensingConfigTypeEnum string + +// Set of constants representing the allowable values for UpdateInstanceLicensingConfigTypeEnum +const ( + UpdateInstanceLicensingConfigTypeWindows UpdateInstanceLicensingConfigTypeEnum = "WINDOWS" +) + +var mappingUpdateInstanceLicensingConfigTypeEnum = map[string]UpdateInstanceLicensingConfigTypeEnum{ + "WINDOWS": UpdateInstanceLicensingConfigTypeWindows, +} + +var mappingUpdateInstanceLicensingConfigTypeEnumLowerCase = map[string]UpdateInstanceLicensingConfigTypeEnum{ + "windows": UpdateInstanceLicensingConfigTypeWindows, +} + +// GetUpdateInstanceLicensingConfigTypeEnumValues Enumerates the set of values for UpdateInstanceLicensingConfigTypeEnum +func GetUpdateInstanceLicensingConfigTypeEnumValues() []UpdateInstanceLicensingConfigTypeEnum { + values := make([]UpdateInstanceLicensingConfigTypeEnum, 0) + for _, v := range mappingUpdateInstanceLicensingConfigTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateInstanceLicensingConfigTypeEnumStringValues Enumerates the set of values in String for UpdateInstanceLicensingConfigTypeEnum +func GetUpdateInstanceLicensingConfigTypeEnumStringValues() []string { + return []string{ + "WINDOWS", + } +} + +// GetMappingUpdateInstanceLicensingConfigTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateInstanceLicensingConfigTypeEnum(val string) (UpdateInstanceLicensingConfigTypeEnum, bool) { + enum, ok := mappingUpdateInstanceLicensingConfigTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_maintenance_event_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_maintenance_event_details.go index dadc83ce99..0d2ea0c259 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_maintenance_event_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_maintenance_event_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -43,12 +43,12 @@ type UpdateInstanceMaintenanceEventDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -67,7 +67,7 @@ func (m UpdateInstanceMaintenanceEventDetails) ValidateEnumValue() (bool, error) errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AlternativeResolutionAction: %s. Supported values are: %s.", m.AlternativeResolutionAction, strings.Join(GetInstanceMaintenanceAlternativeResolutionActionsEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_maintenance_event_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_maintenance_event_request_response.go index b8ad80ee87..d22322ffe5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_maintenance_event_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_maintenance_event_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceMaintenanceEvent.go.html to see an example of how to use UpdateInstanceMaintenanceEventRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstanceMaintenanceEvent.go.html to see an example of how to use UpdateInstanceMaintenanceEventRequest. type UpdateInstanceMaintenanceEventRequest struct { // The OCID of the instance maintenance event. @@ -77,7 +77,7 @@ func (request UpdateInstanceMaintenanceEventRequest) RetryPolicy() *common.Retry func (request UpdateInstanceMaintenanceEventRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,8 +92,8 @@ type UpdateInstanceMaintenanceEventResponse 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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_platform_config.go index 806989d08e..f0039e637a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_platform_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_platform_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -65,7 +65,7 @@ func (m *updateinstanceplatformconfig) UnmarshalPolymorphicJSON(data []byte) (in err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for UpdateInstancePlatformConfig: %s.", m.Type) + common.Logf("Received unsupported enum value for UpdateInstancePlatformConfig: %s.", m.Type) return *m, nil } } @@ -81,7 +81,7 @@ func (m updateinstanceplatformconfig) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go index 6eda427d44..0d105b4ea8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( type UpdateInstancePoolDetails 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,11 +34,11 @@ type UpdateInstancePoolDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 instance configuration associated with the + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated with the // instance pool. InstanceConfigurationId *string `mandatory:"false" json:"instanceConfigurationId"` @@ -62,6 +62,8 @@ type UpdateInstancePoolDetails struct { // 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"` + + LifecycleManagement *InstancePoolLifecycleManagementDetails `mandatory:"false" json:"lifecycleManagement"` } func (m UpdateInstancePoolDetails) String() string { @@ -75,7 +77,7 @@ func (m UpdateInstancePoolDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index ee66dff780..faf3fc7ccf 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ type UpdateInstancePoolPlacementConfigurationDetails struct { // Example: `[FAULT-DOMAIN-1, FAULT-DOMAIN-2, FAULT-DOMAIN-3]` FaultDomains []string `mandatory:"false" json:"faultDomains"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet in which to place instances. This field is deprecated. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet in which to place instances. This field is deprecated. // Use `primaryVnicSubnets` instead to set VNIC data for instances in the pool. PrimarySubnetId *string `mandatory:"false" json:"primarySubnetId"` @@ -61,7 +61,7 @@ func (m UpdateInstancePoolPlacementConfigurationDetails) ValidateEnumValue() (bo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_request_response.go index 8373bfb581..c786a4a0be 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstancePool.go.html to see an example of how to use UpdateInstancePoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstancePool.go.html to see an example of how to use UpdateInstancePoolRequest. type UpdateInstancePoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` // Update instance pool configuration @@ -77,7 +77,7 @@ func (request UpdateInstancePoolRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateInstancePoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_request_response.go index a4f512a303..56432af338 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstance.go.html to see an example of how to use UpdateInstanceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInstance.go.html to see an example of how to use UpdateInstanceRequest. type UpdateInstanceRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` // Update instance fields @@ -77,7 +77,7 @@ func (request UpdateInstanceRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateInstanceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -98,8 +98,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index e4b12ae499..ea9ebf7708 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -51,6 +51,9 @@ type UpdateInstanceShapeConfigDetails struct { // The number of NVMe drives to be used for storage. A single drive has 6.8 TB available. Nvmes *int `mandatory:"false" json:"nvmes"` + + // This field is reserved for internal use. + ResourceManagement UpdateInstanceShapeConfigDetailsResourceManagementEnum `mandatory:"false" json:"resourceManagement,omitempty"` } func (m UpdateInstanceShapeConfigDetails) String() string { @@ -66,8 +69,11 @@ func (m UpdateInstanceShapeConfigDetails) ValidateEnumValue() (bool, error) { 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 _, ok := GetMappingUpdateInstanceShapeConfigDetailsResourceManagementEnum(string(m.ResourceManagement)); !ok && m.ResourceManagement != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceManagement: %s. Supported values are: %s.", m.ResourceManagement, strings.Join(GetUpdateInstanceShapeConfigDetailsResourceManagementEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -117,3 +123,45 @@ func GetMappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum(val s enum, ok := mappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// UpdateInstanceShapeConfigDetailsResourceManagementEnum Enum with underlying type: string +type UpdateInstanceShapeConfigDetailsResourceManagementEnum string + +// Set of constants representing the allowable values for UpdateInstanceShapeConfigDetailsResourceManagementEnum +const ( + UpdateInstanceShapeConfigDetailsResourceManagementDynamic UpdateInstanceShapeConfigDetailsResourceManagementEnum = "DYNAMIC" + UpdateInstanceShapeConfigDetailsResourceManagementStatic UpdateInstanceShapeConfigDetailsResourceManagementEnum = "STATIC" +) + +var mappingUpdateInstanceShapeConfigDetailsResourceManagementEnum = map[string]UpdateInstanceShapeConfigDetailsResourceManagementEnum{ + "DYNAMIC": UpdateInstanceShapeConfigDetailsResourceManagementDynamic, + "STATIC": UpdateInstanceShapeConfigDetailsResourceManagementStatic, +} + +var mappingUpdateInstanceShapeConfigDetailsResourceManagementEnumLowerCase = map[string]UpdateInstanceShapeConfigDetailsResourceManagementEnum{ + "dynamic": UpdateInstanceShapeConfigDetailsResourceManagementDynamic, + "static": UpdateInstanceShapeConfigDetailsResourceManagementStatic, +} + +// GetUpdateInstanceShapeConfigDetailsResourceManagementEnumValues Enumerates the set of values for UpdateInstanceShapeConfigDetailsResourceManagementEnum +func GetUpdateInstanceShapeConfigDetailsResourceManagementEnumValues() []UpdateInstanceShapeConfigDetailsResourceManagementEnum { + values := make([]UpdateInstanceShapeConfigDetailsResourceManagementEnum, 0) + for _, v := range mappingUpdateInstanceShapeConfigDetailsResourceManagementEnum { + values = append(values, v) + } + return values +} + +// GetUpdateInstanceShapeConfigDetailsResourceManagementEnumStringValues Enumerates the set of values in String for UpdateInstanceShapeConfigDetailsResourceManagementEnum +func GetUpdateInstanceShapeConfigDetailsResourceManagementEnumStringValues() []string { + return []string{ + "DYNAMIC", + "STATIC", + } +} + +// GetMappingUpdateInstanceShapeConfigDetailsResourceManagementEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateInstanceShapeConfigDetailsResourceManagementEnum(val string) (UpdateInstanceShapeConfigDetailsResourceManagementEnum, bool) { + enum, ok := mappingUpdateInstanceShapeConfigDetailsResourceManagementEnumLowerCase[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 index 303ba2b62d..a2e195bdec 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -70,7 +70,7 @@ func (m *updateinstancesourcedetails) UnmarshalPolymorphicJSON(data []byte) (int err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for UpdateInstanceSourceDetails: %s.", m.SourceType) + common.Logf("Received unsupported enum value for UpdateInstanceSourceDetails: %s.", m.SourceType) return *m, nil } } @@ -91,7 +91,7 @@ func (m updateinstancesourcedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f9430b594a..282a24ddd8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -48,7 +48,7 @@ func (m UpdateInstanceSourceViaBootVolumeDetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 98f733fc40..50c896cb2c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -54,7 +54,7 @@ func (m UpdateInstanceSourceViaImageDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_windows_licensing_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_windows_licensing_config.go new file mode 100644 index 0000000000..19c2761c76 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_windows_licensing_config.go @@ -0,0 +1,70 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstanceWindowsLicensingConfig The default windows licensing config. +type UpdateInstanceWindowsLicensingConfig struct { + + // License Type for the OS license. + // * `OCI_PROVIDED` - OCI provided license (e.g. metered $/OCPU-hour). + // * `BRING_YOUR_OWN_LICENSE` - Bring your own license. + LicenseType UpdateInstanceLicensingConfigLicenseTypeEnum `mandatory:"false" json:"licenseType,omitempty"` +} + +// GetLicenseType returns LicenseType +func (m UpdateInstanceWindowsLicensingConfig) GetLicenseType() UpdateInstanceLicensingConfigLicenseTypeEnum { + return m.LicenseType +} + +func (m UpdateInstanceWindowsLicensingConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstanceWindowsLicensingConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateInstanceLicensingConfigLicenseTypeEnum(string(m.LicenseType)); !ok && m.LicenseType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LicenseType: %s. Supported values are: %s.", m.LicenseType, strings.Join(GetUpdateInstanceLicensingConfigLicenseTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m UpdateInstanceWindowsLicensingConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeUpdateInstanceWindowsLicensingConfig UpdateInstanceWindowsLicensingConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeUpdateInstanceWindowsLicensingConfig + }{ + "WINDOWS", + (MarshalTypeUpdateInstanceWindowsLicensingConfig)(m), + } + + return json.Marshal(&s) +} 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 index 9c50deae04..fa14d4fcd9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,14 +34,14 @@ type UpdateInternetGatewayDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the Internet Gateway is using. RouteTableId *string `mandatory:"false" json:"routeTableId"` } @@ -56,7 +56,7 @@ func (m UpdateInternetGatewayDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_request_response.go index f59a2e8785..2a12f95fa6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInternetGateway.go.html to see an example of how to use UpdateInternetGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateInternetGateway.go.html to see an example of how to use UpdateInternetGatewayRequest. type UpdateInternetGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internet gateway. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateInternetGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateInternetGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index dfd98be0b3..1954434055 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateIpSecConnectionDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -42,7 +42,7 @@ type UpdateIpSecConnectionDetails struct { // 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). + // If Your CPE Is Behind a NAT Device (https://docs.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"` @@ -55,7 +55,7 @@ type UpdateIpSecConnectionDetails struct { // 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). + // See IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). // Example: `10.0.1.0/24` // Example: `2001:db8::/32` StaticRoutes []string `mandatory:"false" json:"staticRoutes"` @@ -75,7 +75,7 @@ func (m UpdateIpSecConnectionDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index db6b78ba23..f7bf22e280 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -79,7 +79,7 @@ func (m UpdateIpSecConnectionTunnelDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 92ad8f8311..d331a9410e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m UpdateIpSecConnectionTunnelSharedSecretDetails) ValidateEnumValue() (boo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 05c2845093..796f1258fa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -87,7 +87,7 @@ func (m UpdateIpSecTunnelBgpSessionDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 6851a4a8d1..ff14551230 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( // 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. +// tunnels (https://docs.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. @@ -44,7 +44,7 @@ func (m UpdateIpSecTunnelEncryptionDomainDetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d03429c2a7..affee72a2a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,13 +34,23 @@ type UpdateIpv6Details struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 OCID (https://docs.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"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see + // Per-resource Routing (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // Lifetime of the IP address. + // There are two types of IPs: + // - Ephemeral + // - Reserved + Lifetime UpdateIpv6DetailsLifetimeEnum `mandatory:"false" json:"lifetime,omitempty"` } func (m UpdateIpv6Details) String() string { @@ -53,8 +63,53 @@ func (m UpdateIpv6Details) String() string { func (m UpdateIpv6Details) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingUpdateIpv6DetailsLifetimeEnum(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(GetUpdateIpv6DetailsLifetimeEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } + +// UpdateIpv6DetailsLifetimeEnum Enum with underlying type: string +type UpdateIpv6DetailsLifetimeEnum string + +// Set of constants representing the allowable values for UpdateIpv6DetailsLifetimeEnum +const ( + UpdateIpv6DetailsLifetimeEphemeral UpdateIpv6DetailsLifetimeEnum = "EPHEMERAL" + UpdateIpv6DetailsLifetimeReserved UpdateIpv6DetailsLifetimeEnum = "RESERVED" +) + +var mappingUpdateIpv6DetailsLifetimeEnum = map[string]UpdateIpv6DetailsLifetimeEnum{ + "EPHEMERAL": UpdateIpv6DetailsLifetimeEphemeral, + "RESERVED": UpdateIpv6DetailsLifetimeReserved, +} + +var mappingUpdateIpv6DetailsLifetimeEnumLowerCase = map[string]UpdateIpv6DetailsLifetimeEnum{ + "ephemeral": UpdateIpv6DetailsLifetimeEphemeral, + "reserved": UpdateIpv6DetailsLifetimeReserved, +} + +// GetUpdateIpv6DetailsLifetimeEnumValues Enumerates the set of values for UpdateIpv6DetailsLifetimeEnum +func GetUpdateIpv6DetailsLifetimeEnumValues() []UpdateIpv6DetailsLifetimeEnum { + values := make([]UpdateIpv6DetailsLifetimeEnum, 0) + for _, v := range mappingUpdateIpv6DetailsLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateIpv6DetailsLifetimeEnumStringValues Enumerates the set of values in String for UpdateIpv6DetailsLifetimeEnum +func GetUpdateIpv6DetailsLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingUpdateIpv6DetailsLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateIpv6DetailsLifetimeEnum(val string) (UpdateIpv6DetailsLifetimeEnum, bool) { + enum, ok := mappingUpdateIpv6DetailsLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_request_response.go index 49616a827a..31aa1241d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIpv6.go.html to see an example of how to use UpdateIpv6Request. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateIpv6.go.html to see an example of how to use UpdateIpv6Request. type UpdateIpv6Request struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6. Ipv6Id *string `mandatory:"true" contributesTo:"path" name:"ipv6Id"` // IPv6 details to be updated. @@ -70,7 +70,7 @@ func (request UpdateIpv6Request) RetryPolicy() *common.RetryPolicy { func (request UpdateIpv6Request) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 093c48c91b..a430216d2d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -43,7 +43,7 @@ type UpdateLaunchOptions struct { // 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). + // Editing an Instance (https://docs.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 @@ -57,7 +57,7 @@ type UpdateLaunchOptions struct { // 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). + // For more information, see Block Volume Encryption (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm#Encrypti). IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` } @@ -78,7 +78,7 @@ func (m UpdateLaunchOptions) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cf43309ba3..8ed2104666 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,13 +34,19 @@ type UpdateLocalPeeringGatewayDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. + // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` + SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` + + // The OCID (https://docs.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). + // Transit Routing: Access to Multiple VCNs in Same Region (https://docs.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm). RouteTableId *string `mandatory:"false" json:"routeTableId"` } @@ -55,7 +61,7 @@ func (m UpdateLocalPeeringGatewayDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index b8fae10968..8ffab86680 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateLocalPeeringGateway.go.html to see an example of how to use UpdateLocalPeeringGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateLocalPeeringGateway.go.html to see an example of how to use UpdateLocalPeeringGatewayRequest. type UpdateLocalPeeringGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering gateway. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateLocalPeeringGatewayRequest) RetryPolicy() *common.RetryPolic func (request UpdateLocalPeeringGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2c73f45cc7..117d14c5ea 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,13 +24,13 @@ import ( // 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. + // Secret OCID (https://docs.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. + // Secret OCID (https://docs.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. @@ -48,7 +48,7 @@ func (m UpdateMacsecKey) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index fb27f749e2..0062e223c4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -53,7 +53,7 @@ func (m UpdateMacsecProperties) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index f792383010..ce77c4de35 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateNatGatewayDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -42,7 +42,7 @@ type UpdateNatGatewayDetails struct { // 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. + // The OCID (https://docs.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. @@ -60,7 +60,7 @@ func (m UpdateNatGatewayDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_request_response.go index 250c12b08e..d2a59f5eed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNatGateway.go.html to see an example of how to use UpdateNatGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNatGateway.go.html to see an example of how to use UpdateNatGatewayRequest. type UpdateNatGatewayRequest struct { - // The NAT gateway's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The NAT gateway's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). NatGatewayId *string `mandatory:"true" contributesTo:"path" name:"natGatewayId"` // Details object for updating a NAT gateway. @@ -70,7 +70,7 @@ func (request UpdateNatGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateNatGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e33a34c106..a11d50c158 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateNetworkSecurityGroupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -50,7 +50,7 @@ func (m UpdateNetworkSecurityGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 865ef93bed..ebdc6a572f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNetworkSecurityGroup.go.html to see an example of how to use UpdateNetworkSecurityGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNetworkSecurityGroup.go.html to see an example of how to use UpdateNetworkSecurityGroupRequest. type UpdateNetworkSecurityGroupRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` // Details object for updating a network security group. @@ -70,7 +70,7 @@ func (request UpdateNetworkSecurityGroupRequest) RetryPolicy() *common.RetryPoli func (request UpdateNetworkSecurityGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 429fe52f48..0d7d2a7cc4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m UpdateNetworkSecurityGroupSecurityRulesDetails) ValidateEnumValue() (boo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 650c257933..aeab3ce396 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNetworkSecurityGroupSecurityRules.go.html to see an example of how to use UpdateNetworkSecurityGroupSecurityRulesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateNetworkSecurityGroupSecurityRules.go.html to see an example of how to use UpdateNetworkSecurityGroupSecurityRulesRequest. type UpdateNetworkSecurityGroupSecurityRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` // Request with one or more security rules associated with the network security group that @@ -66,7 +66,7 @@ func (request UpdateNetworkSecurityGroupSecurityRulesRequest) RetryPolicy() *com func (request UpdateNetworkSecurityGroupSecurityRulesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 34968b6736..8f94d48a74 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdatePrivateIpDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -45,13 +45,23 @@ type UpdatePrivateIpDetails struct { // 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). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // Example: `bminstance1` 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 + // The OCID (https://docs.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"` + + // Lifetime of the IP address. + // There are two types of IPs: + // - Ephemeral + // - Reserved + Lifetime UpdatePrivateIpDetailsLifetimeEnum `mandatory:"false" json:"lifetime,omitempty"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see + // Per-resource Routing (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). + RouteTableId *string `mandatory:"false" json:"routeTableId"` } func (m UpdatePrivateIpDetails) String() string { @@ -64,8 +74,53 @@ func (m UpdatePrivateIpDetails) String() string { func (m UpdatePrivateIpDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingUpdatePrivateIpDetailsLifetimeEnum(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(GetUpdatePrivateIpDetailsLifetimeEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } + +// UpdatePrivateIpDetailsLifetimeEnum Enum with underlying type: string +type UpdatePrivateIpDetailsLifetimeEnum string + +// Set of constants representing the allowable values for UpdatePrivateIpDetailsLifetimeEnum +const ( + UpdatePrivateIpDetailsLifetimeEphemeral UpdatePrivateIpDetailsLifetimeEnum = "EPHEMERAL" + UpdatePrivateIpDetailsLifetimeReserved UpdatePrivateIpDetailsLifetimeEnum = "RESERVED" +) + +var mappingUpdatePrivateIpDetailsLifetimeEnum = map[string]UpdatePrivateIpDetailsLifetimeEnum{ + "EPHEMERAL": UpdatePrivateIpDetailsLifetimeEphemeral, + "RESERVED": UpdatePrivateIpDetailsLifetimeReserved, +} + +var mappingUpdatePrivateIpDetailsLifetimeEnumLowerCase = map[string]UpdatePrivateIpDetailsLifetimeEnum{ + "ephemeral": UpdatePrivateIpDetailsLifetimeEphemeral, + "reserved": UpdatePrivateIpDetailsLifetimeReserved, +} + +// GetUpdatePrivateIpDetailsLifetimeEnumValues Enumerates the set of values for UpdatePrivateIpDetailsLifetimeEnum +func GetUpdatePrivateIpDetailsLifetimeEnumValues() []UpdatePrivateIpDetailsLifetimeEnum { + values := make([]UpdatePrivateIpDetailsLifetimeEnum, 0) + for _, v := range mappingUpdatePrivateIpDetailsLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetUpdatePrivateIpDetailsLifetimeEnumStringValues Enumerates the set of values in String for UpdatePrivateIpDetailsLifetimeEnum +func GetUpdatePrivateIpDetailsLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingUpdatePrivateIpDetailsLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdatePrivateIpDetailsLifetimeEnum(val string) (UpdatePrivateIpDetailsLifetimeEnum, bool) { + enum, ok := mappingUpdatePrivateIpDetailsLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_request_response.go index c513467d9a..08ee3db89a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePrivateIp.go.html to see an example of how to use UpdatePrivateIpRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePrivateIp.go.html to see an example of how to use UpdatePrivateIpRequest. type UpdatePrivateIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP or IPv6. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdatePrivateIpRequest) RetryPolicy() *common.RetryPolicy { func (request UpdatePrivateIpRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 999bf13326..d14e76b800 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,11 +34,11 @@ type UpdatePublicIpDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.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 @@ -57,7 +57,7 @@ func (m UpdatePublicIpDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index deb1bad747..421ca622df 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdatePublicIpPoolDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -50,7 +50,7 @@ func (m UpdatePublicIpPoolDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 2928f64ceb..7449d42fa9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePublicIpPool.go.html to see an example of how to use UpdatePublicIpPoolRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePublicIpPool.go.html to see an example of how to use UpdatePublicIpPoolRequest. type UpdatePublicIpPoolRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. PublicIpPoolId *string `mandatory:"true" contributesTo:"path" name:"publicIpPoolId"` // Public IP pool details. @@ -70,7 +70,7 @@ func (request UpdatePublicIpPoolRequest) RetryPolicy() *common.RetryPolicy { func (request UpdatePublicIpPoolRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_request_response.go index 01c4c38009..0655755cbc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePublicIp.go.html to see an example of how to use UpdatePublicIpRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdatePublicIp.go.html to see an example of how to use UpdatePublicIpRequest. type UpdatePublicIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP. PublicIpId *string `mandatory:"true" contributesTo:"path" name:"publicIpId"` // Public IP details. @@ -70,7 +70,7 @@ func (request UpdatePublicIpRequest) RetryPolicy() *common.RetryPolicy { func (request UpdatePublicIpRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9e1576f818..1d3a710910 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateRemotePeeringConnectionDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -50,7 +50,7 @@ func (m UpdateRemotePeeringConnectionDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index cbfa1c180b..b8d6fc970f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateRemotePeeringConnection.go.html to see an example of how to use UpdateRemotePeeringConnectionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateRemotePeeringConnection.go.html to see an example of how to use UpdateRemotePeeringConnectionRequest. type UpdateRemotePeeringConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). + // The OCID (https://docs.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 @@ -70,7 +70,7 @@ func (request UpdateRemotePeeringConnectionRequest) RetryPolicy() *common.RetryP func (request UpdateRemotePeeringConnectionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 25036e88cf..6cbcaaa9e5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateRouteTableDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -53,7 +53,7 @@ func (m UpdateRouteTableDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_request_response.go index 2c296425f2..50c083a06d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateRouteTable.go.html to see an example of how to use UpdateRouteTableRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateRouteTable.go.html to see an example of how to use UpdateRouteTableRequest. type UpdateRouteTableRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateRouteTableRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateRouteTableRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1d4ef1404a..ad32d4b6de 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -37,7 +37,7 @@ type UpdateSecurityListDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -56,7 +56,7 @@ func (m UpdateSecurityListDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_request_response.go index 673102e3c0..adc3fcf3f3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateSecurityList.go.html to see an example of how to use UpdateSecurityListRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateSecurityList.go.html to see an example of how to use UpdateSecurityListRequest. type UpdateSecurityListRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the security list. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateSecurityListRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateSecurityListRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ac50778156..eacf5d8485 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -46,11 +46,11 @@ type UpdateSecurityRuleDetails struct { // 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). + // IPv6 Addresses (https://docs.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 + // * The OCID (https://docs.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"` @@ -61,7 +61,7 @@ type UpdateSecurityRuleDetails struct { // * `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 + // * `NETWORK_SECURITY_GROUP`: If the rule's `destination` is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a // NetworkSecurityGroup. DestinationType UpdateSecurityRuleDetailsDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` @@ -79,11 +79,11 @@ type UpdateSecurityRuleDetails struct { // 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). + // IPv6 Addresses (https://docs.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 + // * The OCID (https://docs.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"` @@ -93,7 +93,7 @@ type UpdateSecurityRuleDetails struct { // * `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 + // * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a // NetworkSecurityGroup. SourceType UpdateSecurityRuleDetailsSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` @@ -122,7 +122,7 @@ func (m UpdateSecurityRuleDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_details.go index 121d17fb73..1d7976cbbd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -30,7 +30,7 @@ type UpdateServiceGatewayDetails struct { BlockTraffic *bool `mandatory:"false" json:"blockTraffic"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -39,13 +39,13 @@ type UpdateServiceGatewayDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 will use. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the service gateway will use. // 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). + // Transit Routing: Private Access to Oracle Services (https://docs.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm). RouteTableId *string `mandatory:"false" json:"routeTableId"` // List of all the `Service` objects you want enabled on this service gateway. Sending an empty list @@ -71,7 +71,7 @@ func (m UpdateServiceGatewayDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_request_response.go index 7080b4055d..e60334347e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateServiceGateway.go.html to see an example of how to use UpdateServiceGatewayRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateServiceGateway.go.html to see an example of how to use UpdateServiceGatewayRequest. type UpdateServiceGatewayRequest struct { - // The service gateway's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // The service gateway's OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). ServiceGatewayId *string `mandatory:"true" contributesTo:"path" name:"serviceGatewayId"` // Details object for updating a service gateway. @@ -70,7 +70,7 @@ func (request UpdateServiceGatewayRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateServiceGatewayRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_details.go index 229dda6d02..855f35a811 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,11 +25,11 @@ import ( type UpdateSubnetDetails 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/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/iaas/Content/General/Concepts/identifiers.htm) of the set of DHCP options the subnet will use. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the set of DHCP options the subnet will use. DhcpOptionsId *string `mandatory:"false" json:"dhcpOptionsId"` // A user-friendly name. Does not have to be unique, and it's changeable. @@ -37,11 +37,11 @@ type UpdateSubnetDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 subnet will use. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the subnet will use. RouteTableId *string `mandatory:"false" json:"routeTableId"` // The OCIDs of the security list or lists the subnet will use. This @@ -62,7 +62,7 @@ type UpdateSubnetDetails struct { // This is the IPv6 prefix for the subnet's IP address space. // The subnet size is always /64. - // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // See IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). // The provided prefix must maintain the following rules - // a. The IPv6 prefix is valid and correctly formatted. // b. The IPv6 prefix is within the parent VCN IPv6 range. @@ -87,7 +87,7 @@ func (m UpdateSubnetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_request_response.go index b8e5b1a814..9c66397639 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateSubnet.go.html to see an example of how to use UpdateSubnetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateSubnet.go.html to see an example of how to use UpdateSubnetRequest. type UpdateSubnetRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + // Specify the OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateSubnetRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateSubnetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1a8a74ef36..90ea8c7623 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m UpdateTunnelCpeDeviceConfigDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 20e370982a..85e20990be 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateTunnelCpeDeviceConfig.go.html to see an example of how to use UpdateTunnelCpeDeviceConfigRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateTunnelCpeDeviceConfig.go.html to see an example of how to use UpdateTunnelCpeDeviceConfigRequest. type UpdateTunnelCpeDeviceConfigRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. TunnelId *string `mandatory:"true" contributesTo:"path" name:"tunnelId"` // Request to input the tunnel's cpe configuration parameters @@ -80,7 +80,7 @@ func (request UpdateTunnelCpeDeviceConfigRequest) RetryPolicy() *common.RetryPol func (request UpdateTunnelCpeDeviceConfigRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d4f665c487..d775c402fb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,13 +34,18 @@ type UpdateVcnDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` + + // Indicates whether ZPR Only mode is enforced. + IsZprOnly *bool `mandatory:"false" json:"isZprOnly"` } func (m UpdateVcnDetails) String() string { @@ -54,7 +59,7 @@ func (m UpdateVcnDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_request_response.go index d6d27ddc3d..8a776e1f96 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVcn.go.html to see an example of how to use UpdateVcnRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVcn.go.html to see an example of how to use UpdateVcnRequest. type UpdateVcnRequest struct { - // Specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // Specify the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` // Details object for updating a VCN. @@ -70,7 +70,7 @@ func (request UpdateVcnRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVcnRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cc47f557e8..de88185b13 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ type UpdateVirtualCircuitDetails struct { // 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. + // See Route Filtering (https://docs.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"` @@ -68,7 +68,7 @@ type UpdateVirtualCircuitDetails struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -77,11 +77,11 @@ type UpdateVirtualCircuitDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 + // The OCID (https://docs.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"` @@ -132,7 +132,7 @@ func (m UpdateVirtualCircuitDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_request_response.go index efc3d6a02a..20812d0688 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVirtualCircuit.go.html to see an example of how to use UpdateVirtualCircuitRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVirtualCircuit.go.html to see an example of how to use UpdateVirtualCircuitRequest. type UpdateVirtualCircuitRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` // Update VirtualCircuit fields. @@ -70,7 +70,7 @@ func (request UpdateVirtualCircuitRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVirtualCircuitRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_details.go index 490810827e..be2a1d2fce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( type UpdateVlanDetails 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateVlanDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -44,7 +44,7 @@ type UpdateVlanDetails struct { // NetworkSecurityGroup. NsgIds []string `mandatory:"false" json:"nsgIds"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the VLAN will use. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the VLAN will use. RouteTableId *string `mandatory:"false" json:"routeTableId"` // The CIDR block of the VLAN. The new CIDR block must meet the following criteria: @@ -68,7 +68,7 @@ func (m UpdateVlanDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_request_response.go index 859d6678e8..d4fefbae95 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVlan.go.html to see an example of how to use UpdateVlanRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVlan.go.html to see an example of how to use UpdateVlanRequest. type UpdateVlanRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. VlanId *string `mandatory:"true" contributesTo:"path" name:"vlanId"` // Details object for updating a subnet. @@ -70,7 +70,7 @@ func (request UpdateVlanRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVlanRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_details.go index c8577750ff..82ba455dcf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( type UpdateVnicDetails 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,11 +34,13 @@ type UpdateVnicDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` @@ -48,12 +50,12 @@ type UpdateVnicDetails struct { // 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 + // 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). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` // A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. Setting this as @@ -68,12 +70,16 @@ type UpdateVnicDetails struct { // 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). + // Using a Private IP as a Route Target (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip). // If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of // belonging to a subnet), the value of the `skipSourceDestCheck` attribute is ignored. // This is because the source/destination check is always disabled for VNICs in a VLAN. // Example: `true` SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see + // Per-resource Routing (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). + RouteTableId *string `mandatory:"false" json:"routeTableId"` } func (m UpdateVnicDetails) String() string { @@ -87,7 +93,7 @@ func (m UpdateVnicDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_request_response.go index c60d010275..8417f4fde2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVnic.go.html to see an example of how to use UpdateVnicRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVnic.go.html to see an example of how to use UpdateVnicRequest. type UpdateVnicRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateVnicRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVnicRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d6d02f28cf..72ff888093 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -43,7 +43,7 @@ func (m UpdateVolumeAttachmentDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_request_response.go index be2663bcf5..eb65987172 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeAttachment.go.html to see an example of how to use UpdateVolumeAttachmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeAttachment.go.html to see an example of how to use UpdateVolumeAttachmentRequest. type UpdateVolumeAttachmentRequest struct { // The OCID of the volume attachment. @@ -70,7 +70,7 @@ func (request UpdateVolumeAttachmentRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVolumeAttachmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d1af3ffd75..38c8de5a2b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,14 +34,14 @@ type UpdateVolumeBackupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -56,7 +56,7 @@ func (m UpdateVolumeBackupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_policy_details.go index 033a60dc6c..485cffe3f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_policy_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,8 +23,8 @@ import ( // UpdateVolumeBackupPolicyDetails Specifies the properties for updating a user defined backup policy. // For more information about user defined backup policies, -// see User Defined Policies (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#UserDefinedBackupPolicies) in -// Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). +// see User Defined Policies (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#UserDefinedBackupPolicies) in +// Policy-Based Backups (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). type UpdateVolumeBackupPolicyDetails struct { // A user-friendly name. Does not have to be unique, and it's changeable. @@ -33,21 +33,21 @@ type UpdateVolumeBackupPolicyDetails struct { // The paired destination region for copying scheduled backups to. Example: `us-ashburn-1`. // Specify `none` to reset the `destinationRegion` parameter. - // See Region Pairs (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#RegionPairs) for details about paired regions. + // See Region Pairs (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#RegionPairs) for details about paired regions. DestinationRegion *string `mandatory:"false" json:"destinationRegion"` // The collection of schedules for the volume backup policy. See - // see Schedules (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#schedules) in - // Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm) for more information. + // see Schedules (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#schedules) in + // Policy-Based Backups (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm) for more information. Schedules []VolumeBackupSchedule `mandatory:"false" json:"schedules"` // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -63,7 +63,7 @@ func (m UpdateVolumeBackupPolicyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index cdc02caf85..e5c826e174 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeBackupPolicy.go.html to see an example of how to use UpdateVolumeBackupPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeBackupPolicy.go.html to see an example of how to use UpdateVolumeBackupPolicyRequest. type UpdateVolumeBackupPolicyRequest struct { // The OCID of the volume backup policy. @@ -77,7 +77,7 @@ func (request UpdateVolumeBackupPolicyRequest) RetryPolicy() *common.RetryPolicy func (request UpdateVolumeBackupPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_request_response.go index efb3a96809..0b86a2e5a9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeBackup.go.html to see an example of how to use UpdateVolumeBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeBackup.go.html to see an example of how to use UpdateVolumeBackupRequest. type UpdateVolumeBackupRequest struct { // The OCID of the volume backup. @@ -70,7 +70,7 @@ func (request UpdateVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVolumeBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ac17ec7374..3510e4c452 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -35,13 +35,13 @@ type UpdateVolumeDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // See Block Volume Performance Levels (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. // Allowed values: // * `0`: Represents Lower Cost option. // * `10`: Represents Balanced option. @@ -63,6 +63,10 @@ type UpdateVolumeDetails struct { // The list of autotune policies enabled for this volume. AutotunePolicies []AutotunePolicy `mandatory:"false" json:"autotunePolicies"` + + // When set to true, enables SCSI Persistent Reservation (SCSI PR) for the volume. For more information, see + // Persistent Reservations (https://docs.oracle.com/iaas/Content/Block/Concepts/persistent-reservations.htm). + IsReservationsEnabled *bool `mandatory:"false" json:"isReservationsEnabled"` } func (m UpdateVolumeDetails) String() string { @@ -76,7 +80,7 @@ func (m UpdateVolumeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -84,14 +88,15 @@ func (m UpdateVolumeDetails) ValidateEnumValue() (bool, error) { // 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"` + 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"` + IsReservationsEnabled *bool `json:"isReservationsEnabled"` }{} e = json.Unmarshal(data, &model) @@ -125,5 +130,7 @@ func (m *UpdateVolumeDetails) UnmarshalJSON(data []byte) (e error) { m.AutotunePolicies[i] = nil } } + m.IsReservationsEnabled = model.IsReservationsEnabled + 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 index 4b0d4184ec..af7136d1ca 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateVolumeGroupBackupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -50,7 +50,7 @@ func (m UpdateVolumeGroupBackupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index be18c7c667..3a7399ce49 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeGroupBackup.go.html to see an example of how to use UpdateVolumeGroupBackupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeGroupBackup.go.html to see an example of how to use UpdateVolumeGroupBackupRequest. type UpdateVolumeGroupBackupRequest struct { // The Oracle Cloud ID (OCID) that uniquely identifies the volume group backup. @@ -70,7 +70,7 @@ func (request UpdateVolumeGroupBackupRequest) RetryPolicy() *common.RetryPolicy func (request UpdateVolumeGroupBackupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3fb15935d2..d286de5733 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,7 +34,7 @@ type UpdateVolumeGroupDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -57,7 +57,7 @@ func (m UpdateVolumeGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_request_response.go index 29da70b502..5752f4db6d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeGroup.go.html to see an example of how to use UpdateVolumeGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeGroup.go.html to see an example of how to use UpdateVolumeGroupRequest. type UpdateVolumeGroupRequest struct { // The Oracle Cloud ID (OCID) that uniquely identifies the volume group. @@ -75,7 +75,7 @@ func (request UpdateVolumeGroupRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVolumeGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9064834425..5e609c0e5f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -41,7 +41,7 @@ func (m UpdateVolumeKmsKeyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 220820ab60..6b9f58aba3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeKmsKey.go.html to see an example of how to use UpdateVolumeKmsKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolumeKmsKey.go.html to see an example of how to use UpdateVolumeKmsKeyRequest. type UpdateVolumeKmsKeyRequest struct { // The OCID of the volume. @@ -70,7 +70,7 @@ func (request UpdateVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_request_response.go index fdfabcce18..1f6361afb1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolume.go.html to see an example of how to use UpdateVolumeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVolume.go.html to see an example of how to use UpdateVolumeRequest. type UpdateVolumeRequest struct { // The OCID of the volume. @@ -70,7 +70,7 @@ func (request UpdateVolumeRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVolumeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 570f01265a..f9eac580a5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -34,20 +34,20 @@ type UpdateVtapDetails struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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)). + // The capture filter's Oracle ID (OCID (https://docs.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. @@ -70,7 +70,7 @@ type UpdateVtapDetails struct { // 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. + // The OCID (https://docs.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. @@ -103,7 +103,7 @@ func (m UpdateVtapDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5bf58a45e1..b5b6ee23ec 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVtap.go.html to see an example of how to use UpdateVtapRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpdateVtap.go.html to see an example of how to use UpdateVtapRequest. type UpdateVtapRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP. + // The OCID (https://docs.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. @@ -70,7 +70,7 @@ func (request UpdateVtapRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateVtapRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -91,8 +91,8 @@ type UpdateVtapResponse 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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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/updated_network_security_group_security_rules.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/updated_network_security_group_security_rules.go index fc09a8c452..8a763332c0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m UpdatedNetworkSecurityGroupSecurityRules) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_drg_request_response.go index 3a141dd1e1..621ec52ba2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_drg_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpgradeDrg.go.html to see an example of how to use UpgradeDrgRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/UpgradeDrg.go.html to see an example of how to use UpgradeDrgRequest. type UpgradeDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -69,7 +69,7 @@ func (request UpgradeDrgRequest) RetryPolicy() *common.RetryPolicy { func (request UpgradeDrgRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -84,8 +84,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 index 6839313145..f4ce928e75 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -48,7 +48,7 @@ func (m UpgradeStatus) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoasn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoasn_request_response.go new file mode 100644 index 0000000000..81900d77d2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoasn_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 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" +) + +// ValidateByoasnRequest wrapper for the ValidateByoasn operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ValidateByoasn.go.html to see an example of how to use ValidateByoasnRequest. +type ValidateByoasnRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Byoasn` resource. + ByoasnId *string `mandatory:"true" contributesTo:"path" name:"byoasnId"` + + // 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"` + + // 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 ValidateByoasnRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ValidateByoasnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ValidateByoasnRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ValidateByoasnRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ValidateByoasnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ValidateByoasnResponse wrapper for the ValidateByoasn operation +type ValidateByoasnResponse 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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 ValidateByoasnResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ValidateByoasnResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoip_range_request_response.go index 151336ba7c..d31512ee0f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoip_range_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ValidateByoipRange.go.html to see an example of how to use ValidateByoipRangeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/ValidateByoipRange.go.html to see an example of how to use ValidateByoipRangeRequest. type ValidateByoipRangeRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource containing the BYOIP CIDR block. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request ValidateByoipRangeRequest) RetryPolicy() *common.RetryPolicy { func (request ValidateByoipRangeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -77,8 +77,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/iaas/Content/General/Concepts/identifiers.htm) of the work request. - // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.oracle.com/iaas/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/vcn.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn.go index 1d2ead3a61..00a9861a37 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,10 +22,10 @@ import ( ) // 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). +// Overview of the Networking Service (https://docs.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). +// Getting Started with Policies (https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). type Vcn struct { // Deprecated. The first CIDR IP address from cidrBlocks. @@ -35,10 +35,10 @@ type Vcn struct { // 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. + // The OCID (https://docs.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)). + // The VCN's Oracle ID (OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). Id *string `mandatory:"true" json:"id"` // The VCN's current state. @@ -50,17 +50,17 @@ type Vcn struct { // For an IPv6-enabled VCN, this is the list of Private IPv6 prefixes 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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. + // The OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -76,16 +76,18 @@ type Vcn struct { // 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). + // DNS in Your Virtual Cloud Network (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` @@ -100,9 +102,12 @@ type Vcn struct { // 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). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // Example: `vcn1.oraclevcn.com` VcnDomainName *string `mandatory:"false" json:"vcnDomainName"` + + // Indicates whether ZPR Only mode is enforced. + IsZprOnly *bool `mandatory:"false" json:"isZprOnly"` } func (m Vcn) String() string { @@ -119,7 +124,7 @@ func (m Vcn) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 39b3e0d477..e96292a8e3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,13 +24,13 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DNS resolver in the association. DnsResolverId *string `mandatory:"false" json:"dnsResolverId"` } @@ -48,7 +48,7 @@ func (m VcnDnsResolverAssociation) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b79daf43aa..3344509f65 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,15 +25,15 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. Id *string `mandatory:"false" 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. + // This is the OCID (https://docs.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). + // Advanced Scenario: Transit Routing (https://docs.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) + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.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. @@ -60,7 +60,7 @@ func (m VcnDrgAttachmentNetworkCreateDetails) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bffeae914c..a8afed5864 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,13 +25,13 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. Id *string `mandatory:"false" json:"id"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the DRG attachment is using. + // The OCID (https://docs.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) + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.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. @@ -58,7 +58,7 @@ func (m VcnDrgAttachmentNetworkDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d997159b3d..89bbf61086 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,10 +25,10 @@ import ( // 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. + // This is the OCID (https://docs.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) + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.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. @@ -50,7 +50,7 @@ func (m VcnDrgAttachmentNetworkUpdateDetails) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_topology.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_topology.go index 542ff4b6d2..f150451be5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_topology.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_topology.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( ) // VcnTopology Defines the representation of a virtual network topology for a VCN. -// See Network Visualizer Documentation (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/network_visualizer.htm) for more information, including +// See Network Visualizer Documentation (https://docs.oracle.com/iaas/Content/Network/Concepts/network_visualizer.htm) for more information, including // conventions and pictures of symbols. type VcnTopology struct { @@ -41,7 +41,7 @@ type VcnTopology struct { // 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 VCN for which the topology is generated. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN for which the topology is generated. VcnId *string `mandatory:"false" json:"vcnId"` } @@ -76,7 +76,7 @@ func (m VcnTopology) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cab04c9cab..7dee2eb5ab 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ import ( // 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). +// public peering. For more information, see FastConnect Overview (https://docs.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 @@ -36,7 +36,7 @@ import ( // 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). +// Getting Started with Policies (https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). type VirtualCircuit struct { // The provisioned data rate of the connection. To get a list of the @@ -55,7 +55,7 @@ type VirtualCircuit struct { // 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. + // The OCID (https://docs.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 @@ -65,7 +65,7 @@ type VirtualCircuit struct { // 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. + // See Route Filtering (https://docs.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"` @@ -91,7 +91,7 @@ type VirtualCircuit struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -100,20 +100,20 @@ type VirtualCircuit struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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 + // The OCID (https://docs.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)). + // The virtual circuit's Oracle ID (OCID (https://docs.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). + // FastConnect Overview (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). LifecycleState VirtualCircuitLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The Oracle BGP ASN. @@ -122,7 +122,7 @@ type VirtualCircuit struct { // 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). + // The OCID (https://docs.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). @@ -159,7 +159,7 @@ type VirtualCircuit struct { 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). + // see FastConnect Overview (https://docs.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. @@ -212,7 +212,7 @@ func (m VirtualCircuit) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_associated_tunnel_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_associated_tunnel_details.go index 262446f41f..d871c93dd2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_associated_tunnel_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_associated_tunnel_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -27,10 +27,10 @@ type VirtualCircuitAssociatedTunnelDetails struct { // The type of the tunnel associated with the virtual circuit. TunnelType VirtualCircuitAssociatedTunnelDetailsTunnelTypeEnum `mandatory:"true" json:"tunnelType"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec tunnel associated with the virtual circuit. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec tunnel associated with the virtual circuit. TunnelId *string `mandatory:"true" json:"tunnelId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of IPSec connection associated with the virtual circuit. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of IPSec connection associated with the virtual circuit. IpsecConnectionId *string `mandatory:"false" json:"ipsecConnectionId"` } @@ -48,7 +48,7 @@ func (m VirtualCircuitAssociatedTunnelDetails) ValidateEnumValue() (bool, error) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 678f99c52e..1caf1f6c46 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -44,7 +44,7 @@ func (m VirtualCircuitBandwidthShape) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4c2735335a..ec72fada58 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -25,7 +25,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. Id *string `mandatory:"false" json:"id"` // Boolean flag that determines wether all traffic over the virtual circuits is encrypted. @@ -49,7 +49,7 @@ func (m VirtualCircuitDrgAttachmentNetworkDetails) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 77ef454b47..81c00ba155 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core 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 index 53a837db0d..a1405b799f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( // 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). +// For more information, see FastConnect Overview (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). type VirtualCircuitPublicPrefix struct { // Publix IP prefix (CIDR) that the customer specified. @@ -51,7 +51,7 @@ func (m VirtualCircuitPublicPrefix) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_redundancy_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_redundancy_metadata.go index ae667d46dc..4650d5885f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_redundancy_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_redundancy_metadata.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -21,16 +21,16 @@ import ( "strings" ) -// VirtualCircuitRedundancyMetadata Redundancy level details of the virtual circuit +// VirtualCircuitRedundancyMetadata This resource provides redundancy level details for the virtual circuit. For more about redundancy, see FastConnect Redundancy Best Practices (https://docs.oracle.com/iaas/Content/Network/Concepts/fastconnectresiliency.htm). type VirtualCircuitRedundancyMetadata struct { - // The configured redundancy level of the virtual circuit + // The configured redundancy level of the virtual circuit. ConfiguredRedundancyLevel VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum `mandatory:"false" json:"configuredRedundancyLevel,omitempty"` - // IPV4 BGP redundancy status indicates if the configured redundancy level is met + // Indicates if the configured level is met for IPv4 BGP redundancy. Ipv4bgpSessionRedundancyStatus VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum `mandatory:"false" json:"ipv4bgpSessionRedundancyStatus,omitempty"` - // IPV6 BGP redundancy status indicates if the configured redundancy level is met + // Indicates if the configured level is met for IPv6 BGP redundancy. Ipv6bgpSessionRedundancyStatus VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum `mandatory:"false" json:"ipv6bgpSessionRedundancyStatus,omitempty"` } @@ -54,7 +54,7 @@ func (m VirtualCircuitRedundancyMetadata) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Ipv6bgpSessionRedundancyStatus: %s. Supported values are: %s.", m.Ipv6bgpSessionRedundancyStatus, strings.Join(GetVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d9cf98d1d9..3989d602d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/vlan.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vlan.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -36,16 +36,16 @@ type Vlan struct { // 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. + // The OCID (https://docs.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)). + // The VLAN's Oracle ID (OCID (https://docs.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. + // The OCID (https://docs.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 @@ -54,7 +54,7 @@ type Vlan struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -63,7 +63,7 @@ type Vlan struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -77,7 +77,7 @@ type Vlan struct { // 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. + // The OCID (https://docs.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). @@ -99,7 +99,7 @@ func (m Vlan) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic.go index 08d4c58ba7..e4c512f7f9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,11 +26,11 @@ import ( // through that subnet. Each instance has a *primary VNIC* that is automatically // created and attached during launch. You can add *secondary VNICs* to an // instance after it's launched. For more information, see -// Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). +// Virtual Network Interface Cards (VNICs) (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). // Each VNIC has a *primary private IP* that is automatically assigned during launch. // You can add *secondary private IPs* to a VNIC after it's created. For more // information, see CreatePrivateIp and -// IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingIPaddresses.htm). +// IP Addresses (https://docs.oracle.com/iaas/Content/Network/Tasks/managingIPaddresses.htm). // // If you are an Oracle Cloud VMware Solution customer, you will have secondary VNICs // that reside in a VLAN instead of a subnet. These VNICs have other differences, which @@ -38,17 +38,17 @@ import ( // Also see Vlan. // 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). +// Getting Started with Policies (https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). type Vnic struct { // The VNIC's availability domain. // 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 VNIC. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VNIC. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. Id *string `mandatory:"true" json:"id"` // The current state of the VNIC. @@ -59,7 +59,7 @@ type Vnic struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -67,12 +67,14 @@ type Vnic struct { // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` - // Security Attributes for this resource. This is unique to ZPR, and helps identify which resources are allowed to be accessed by what permission controls. + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. // Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -83,7 +85,7 @@ type Vnic struct { // 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). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // Example: `bminstance1` HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` @@ -107,7 +109,7 @@ type Vnic struct { NsgIds []string `mandatory:"false" json:"nsgIds"` // If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of - // belonging to a subnet), the `vlanId` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN the VNIC is in. See + // belonging to a subnet), the `vlanId` is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN the VNIC is in. See // Vlan. If the VNIC is instead in a subnet, `subnetId` has a value. VlanId *string `mandatory:"false" json:"vlanId"` @@ -122,7 +124,7 @@ type Vnic struct { // 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). + // Using a Private IP as a Route Target (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip). // // If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of // belonging to a subnet), the `skipSourceDestCheck` attribute is `true`. @@ -130,12 +132,16 @@ type Vnic struct { // Example: `true` SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the VNIC is in. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the VNIC is in. SubnetId *string `mandatory:"false" json:"subnetId"` // List of IPv6 addresses assigned to the VNIC. // Example: `2001:DB8::` Ipv6Addresses []string `mandatory:"false" json:"ipv6Addresses"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see + // Per-resource Routing (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). + RouteTableId *string `mandatory:"false" json:"routeTableId"` } func (m Vnic) String() string { @@ -152,7 +158,7 @@ func (m Vnic) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 029db0177b..90936613ae 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,7 +22,7 @@ import ( ) // 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). +// Virtual Network Interface Cards (VNICs) (https://docs.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 { @@ -56,7 +56,7 @@ type VnicAttachment struct { // 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). + // Virtual Network Interface Cards (VNICs) (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). NicIndex *int `mandatory:"false" json:"nicIndex"` // The OCID of the subnet to create the VNIC in. @@ -94,7 +94,7 @@ func (m VnicAttachment) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 7f6dba0dac..6f5da8af8f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -24,10 +24,10 @@ import ( // 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). +// Overview of Cloud Volume Storage (https://docs.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). +// Getting Started with Policies (https://docs.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 { @@ -57,12 +57,12 @@ type Volume struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -78,7 +78,7 @@ type Volume struct { // 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. + // See Block Volume Performance Levels (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. // Allowed values: // * `0`: Represents Lower Cost option. // * `10`: Represents Balanced option. @@ -110,6 +110,10 @@ type Volume struct { // The list of autotune policies enabled for this volume. AutotunePolicies []AutotunePolicy `mandatory:"false" json:"autotunePolicies"` + + // When set to true, enables SCSI Persistent Reservation (SCSI PR) for the volume. For more information, see + // Persistent Reservations (https://docs.oracle.com/iaas/Content/Block/Concepts/persistent-reservations.htm). + IsReservationsEnabled *bool `mandatory:"false" json:"isReservationsEnabled"` } func (m Volume) String() string { @@ -126,7 +130,7 @@ func (m Volume) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -148,6 +152,7 @@ func (m *Volume) UnmarshalJSON(data []byte) (e error) { AutoTunedVpusPerGB *int64 `json:"autoTunedVpusPerGB"` BlockVolumeReplicas []BlockVolumeReplicaInfo `json:"blockVolumeReplicas"` AutotunePolicies []autotunepolicy `json:"autotunePolicies"` + IsReservationsEnabled *bool `json:"isReservationsEnabled"` AvailabilityDomain *string `json:"availabilityDomain"` CompartmentId *string `json:"compartmentId"` DisplayName *string `json:"displayName"` @@ -208,6 +213,8 @@ func (m *Volume) UnmarshalJSON(data []byte) (e error) { m.AutotunePolicies[i] = nil } } + m.IsReservationsEnabled = model.IsReservationsEnabled + m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId 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 index 9039ac97ec..98f0c9d258 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,7 +26,7 @@ import ( // 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). +// Overview of Block Volume Storage (https://docs.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 { @@ -158,7 +158,7 @@ func (m *volumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{}, e err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for VolumeAttachment: %s.", m.AttachmentType) + common.Logf("Received unsupported enum value for VolumeAttachment: %s.", m.AttachmentType) return *m, nil } } @@ -255,7 +255,7 @@ func (m volumeattachment) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3feab46ce1..c20ce6e1f0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,10 +23,10 @@ import ( // 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). +// Overview of Cloud Volume Storage (https://docs.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). +// Getting Started with Policies (https://docs.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 { @@ -52,7 +52,7 @@ type VolumeBackup struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -68,14 +68,14 @@ type VolumeBackup struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` // The size of the volume, in GBs. @@ -127,7 +127,7 @@ func (m VolumeBackup) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8ff001fdb2..ea8137cb3d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,19 +42,19 @@ type VolumeBackupPolicy struct { 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. + // See Region Pairs (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -70,7 +70,7 @@ func (m VolumeBackupPolicy) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 871de28e4f..eb4a2c26d2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( // 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). +// see Policy-Based Backups (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). type VolumeBackupPolicyAssignment struct { // The OCID of the volume the policy has been assigned to. @@ -41,8 +41,8 @@ type VolumeBackupPolicyAssignment struct { // The OCID of the Vault service key which is the master encryption key for the block / boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). XrcKmsKeyId *string `mandatory:"false" json:"xrcKmsKeyId"` } @@ -57,7 +57,7 @@ func (m VolumeBackupPolicyAssignment) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index b65ec72668..b8f936d64b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,7 +22,7 @@ import ( ) // 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). +// see Policy-Based Backups (https://docs.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). type VolumeBackupSchedule struct { // The type of volume backup to create. @@ -102,7 +102,7 @@ func (m VolumeBackupSchedule) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c410b6b1eb..446d89a0c2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -23,7 +23,7 @@ import ( ) // 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). +// volumes. For more information, see Volume Groups (https://docs.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 { @@ -54,12 +54,12 @@ type VolumeGroup struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -90,7 +90,7 @@ func (m VolumeGroup) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 11ecfa2172..ebef8e53da 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,10 +22,10 @@ import ( ) // 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). +// or restore a volume group. For more information, see Volume Groups (https://docs.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). +// Getting Started with Policies (https://docs.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 { @@ -54,7 +54,7 @@ type VolumeGroupBackup struct { 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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -66,7 +66,7 @@ type VolumeGroupBackup struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -120,7 +120,7 @@ func (m VolumeGroupBackup) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a0e0b6ef6b..a538c43bb5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -22,10 +22,10 @@ import ( ) // 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). +// or recover a volume group. For more information, see Volume Group Replication (https://docs.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). +// Getting Started with Policies (https://docs.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 { @@ -63,12 +63,12 @@ type VolumeGroupReplica struct { 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). + // namespace. For more information, see Resource Tags (https://docs.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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } @@ -87,7 +87,7 @@ func (m VolumeGroupReplica) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7dfae065a9..b29fc7dd7d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -34,8 +34,8 @@ type VolumeGroupReplicaDetails struct { // The OCID of the Vault service key which is the master encryption key for the cross region volume group's replicas, which will be used in the destination region to encrypt the volume group's replicas encryption keys. // 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). XrrKmsKeyId *string `mandatory:"false" json:"xrrKmsKeyId"` } @@ -50,7 +50,7 @@ func (m VolumeGroupReplicaDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 2d5a8cdae2..c9081bdca8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -36,8 +36,8 @@ type VolumeGroupReplicaInfo struct { AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` // The OCID of the Vault service key to assign as the master encryption key for the block volume replica, 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). + // Overview of Vault service (https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } @@ -52,7 +52,7 @@ func (m VolumeGroupReplicaInfo) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9b7781efd9..791c420353 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -73,7 +73,7 @@ func (m *volumegroupsourcedetails) UnmarshalPolymorphicJSON(data []byte) (interf err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for VolumeGroupSourceDetails: %s.", m.Type) + common.Logf("Received unsupported enum value for VolumeGroupSourceDetails: %s.", m.Type) return *m, nil } } @@ -89,7 +89,7 @@ func (m volumegroupsourcedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index fabffd7f7c..b8a2d9ce9b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m VolumeGroupSourceFromVolumeGroupBackupDetails) ValidateEnumValue() (bool errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_details.go index 6c255c5b9a..9b52a07788 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m VolumeGroupSourceFromVolumeGroupDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_replica_details.go index 02e1b7b4e8..e7313a725d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m VolumeGroupSourceFromVolumeGroupReplicaDetails) ValidateEnumValue() (boo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 26e57157b1..df45ccd78b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m VolumeGroupSourceFromVolumesDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e76bc3bd59..6186c0a060 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -39,7 +39,7 @@ func (m VolumeKmsKey) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8d8538519a..d945b463ac 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -75,7 +75,7 @@ func (m *volumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{} err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for VolumeSourceDetails: %s.", m.Type) + common.Logf("Received unsupported enum value for VolumeSourceDetails: %s.", m.Type) return *m, nil } } @@ -91,7 +91,7 @@ func (m volumesourcedetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e7ebaba722..d708ac9906 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -42,7 +42,7 @@ func (m VolumeSourceFromBlockVolumeReplicaDetails) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_backup_delta_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_backup_delta_details.go index b3223d6369..a258a01992 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_backup_delta_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_backup_delta_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -46,7 +46,7 @@ func (m VolumeSourceFromVolumeBackupDeltaDetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a6bb9918ba..bd6cb277d6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m VolumeSourceFromVolumeBackupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0fbc79284a..7c11c6d9b0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -40,7 +40,7 @@ func (m VolumeSourceFromVolumeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1a49da101c..b39f146374 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/vtap.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vtap.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -26,26 +26,26 @@ import ( // 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. + // The OCID (https://docs.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. + // The OCID (https://docs.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)). + // The VTAP's Oracle ID (OCID (https://docs.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. + // The OCID (https://docs.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)). + // The capture filter's Oracle ID (OCID (https://docs.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). + // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -54,7 +54,7 @@ type Vtap struct { 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). + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -65,7 +65,7 @@ type Vtap struct { // 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. + // The OCID (https://docs.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. @@ -97,7 +97,7 @@ type Vtap struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet that source private endpoint belongs to. SourcePrivateEndpointSubnetId *string `mandatory:"false" json:"sourcePrivateEndpointSubnetId"` } @@ -130,7 +130,7 @@ func (m Vtap) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7047ac7086..3540817fbd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -6,11 +6,11 @@ // // Use the Core Services API to manage resources such as virtual cloud networks (VCNs), // compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. // package core @@ -67,7 +67,7 @@ func (m VtapCaptureFilterRuleDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/withdraw_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/withdraw_byoip_range_request_response.go index 6041373577..9f171ec37a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/withdraw_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/withdraw_byoip_range_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/WithdrawByoipRange.go.html to see an example of how to use WithdrawByoipRangeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/core/WithdrawByoipRange.go.html to see an example of how to use WithdrawByoipRangeRequest. type WithdrawByoipRangeRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource containing the BYOIP CIDR block. + // The OCID (https://docs.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. @@ -62,7 +62,7 @@ func (request WithdrawByoipRangeRequest) RetryPolicy() *common.RetryPolicy { func (request WithdrawByoipRangeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_export_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_export_lock_request_response.go index 42c4cd60dd..4303786cfa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_export_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_export_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddExportLock.go.html to see an example of how to use AddExportLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddExportLock.go.html to see an example of how to use AddExportLockRequest. type AddExportLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the export. ExportId *string `mandatory:"true" contributesTo:"path" name:"exportId"` // The details to be updated for the AddLock. @@ -72,7 +72,7 @@ func (request AddExportLockRequest) RetryPolicy() *common.RetryPolicy { func (request AddExportLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_file_system_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_file_system_lock_request_response.go index 6de74b469c..d1716cc174 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_file_system_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_file_system_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFileSystemLock.go.html to see an example of how to use AddFileSystemLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFileSystemLock.go.html to see an example of how to use AddFileSystemLockRequest. type AddFileSystemLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` // The details to be updated for the AddLock. @@ -72,7 +72,7 @@ func (request AddFileSystemLockRequest) RetryPolicy() *common.RetryPolicy { func (request AddFileSystemLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_filesystem_snapshot_policy_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_filesystem_snapshot_policy_lock_request_response.go index f659174507..bfaa417b6d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_filesystem_snapshot_policy_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_filesystem_snapshot_policy_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFilesystemSnapshotPolicyLock.go.html to see an example of how to use AddFilesystemSnapshotPolicyLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFilesystemSnapshotPolicyLock.go.html to see an example of how to use AddFilesystemSnapshotPolicyLockRequest. type AddFilesystemSnapshotPolicyLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` // The details to be updated for the AddLock. @@ -72,7 +72,7 @@ func (request AddFilesystemSnapshotPolicyLockRequest) RetryPolicy() *common.Retr func (request AddFilesystemSnapshotPolicyLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_mount_target_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_mount_target_lock_request_response.go index 2077500374..1d96d52d6e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_mount_target_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_mount_target_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddMountTargetLock.go.html to see an example of how to use AddMountTargetLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddMountTargetLock.go.html to see an example of how to use AddMountTargetLockRequest. type AddMountTargetLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target. MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` // The details to be updated for the AddLock. @@ -72,7 +72,7 @@ func (request AddMountTargetLockRequest) RetryPolicy() *common.RetryPolicy { func (request AddMountTargetLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_outbound_connector_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_outbound_connector_lock_request_response.go index e046726c21..7b1d62a5d0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_outbound_connector_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_outbound_connector_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddOutboundConnectorLock.go.html to see an example of how to use AddOutboundConnectorLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddOutboundConnectorLock.go.html to see an example of how to use AddOutboundConnectorLockRequest. type AddOutboundConnectorLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the outbound connector. OutboundConnectorId *string `mandatory:"true" contributesTo:"path" name:"outboundConnectorId"` // The details to be updated for the AddLock. @@ -72,7 +72,7 @@ func (request AddOutboundConnectorLockRequest) RetryPolicy() *common.RetryPolicy func (request AddOutboundConnectorLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_replication_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_replication_lock_request_response.go index ba5ed04295..cefc414fb2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_replication_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_replication_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddReplicationLock.go.html to see an example of how to use AddReplicationLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddReplicationLock.go.html to see an example of how to use AddReplicationLockRequest. type AddReplicationLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication. ReplicationId *string `mandatory:"true" contributesTo:"path" name:"replicationId"` // The details to be updated for the AddLock. @@ -72,7 +72,7 @@ func (request AddReplicationLockRequest) RetryPolicy() *common.RetryPolicy { func (request AddReplicationLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_snapshot_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_snapshot_lock_request_response.go index b77cf23704..cddbd37e09 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_snapshot_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_snapshot_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddSnapshotLock.go.html to see an example of how to use AddSnapshotLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddSnapshotLock.go.html to see an example of how to use AddSnapshotLockRequest. type AddSnapshotLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the snapshot. SnapshotId *string `mandatory:"true" contributesTo:"path" name:"snapshotId"` // The details to be updated for the AddLock. @@ -72,7 +72,7 @@ func (request AddSnapshotLockRequest) RetryPolicy() *common.RetryPolicy { func (request AddSnapshotLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/cancel_downgrade_shape_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/cancel_downgrade_shape_mount_target_request_response.go index dba810d901..e1674dcd46 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/cancel_downgrade_shape_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/cancel_downgrade_shape_mount_target_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CancelDowngradeShapeMountTarget.go.html to see an example of how to use CancelDowngradeShapeMountTargetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CancelDowngradeShapeMountTarget.go.html to see an example of how to use CancelDowngradeShapeMountTargetRequest. type CancelDowngradeShapeMountTargetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + // The OCID (https://docs.oracle.com/iaas/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 @@ -69,7 +69,7 @@ func (request CancelDowngradeShapeMountTargetRequest) RetryPolicy() *common.Retr func (request CancelDowngradeShapeMountTargetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bd95c8ddbd..07a3abbbd1 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the file system to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -34,7 +34,7 @@ func (m ChangeFileSystemCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 6cbea7b402..d1e09f43f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFileSystemCompartment.go.html to see an example of how to use ChangeFileSystemCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFileSystemCompartment.go.html to see an example of how to use ChangeFileSystemCompartmentRequest. type ChangeFileSystemCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` // Details for changing the compartment. @@ -75,7 +75,7 @@ func (request ChangeFileSystemCompartmentRequest) RetryPolicy() *common.RetryPol func (request ChangeFileSystemCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4d5ba3fa6f..8bdc3bbc43 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // ChangeFilesystemSnapshotPolicyCompartmentDetails Details for changing the compartment of a file system snapshot policy. type ChangeFilesystemSnapshotPolicyCompartmentDetails struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the file system snapshot policy to. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the file system snapshot policy to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -34,7 +34,7 @@ func (m ChangeFilesystemSnapshotPolicyCompartmentDetails) ValidateEnumValue() (b errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d85de64c02..d1faf261d6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFilesystemSnapshotPolicyCompartment.go.html to see an example of how to use ChangeFilesystemSnapshotPolicyCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFilesystemSnapshotPolicyCompartment.go.html to see an example of how to use ChangeFilesystemSnapshotPolicyCompartmentRequest. type ChangeFilesystemSnapshotPolicyCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` // Details for changing the compartment of a file system snapshot policy. @@ -75,7 +75,7 @@ func (request ChangeFilesystemSnapshotPolicyCompartmentRequest) RetryPolicy() *c func (request ChangeFilesystemSnapshotPolicyCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 09b0ad36cb..6bfefd69c6 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the mount target to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -34,7 +34,7 @@ func (m ChangeMountTargetCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index e0e735268a..903f482d39 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeMountTargetCompartment.go.html to see an example of how to use ChangeMountTargetCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeMountTargetCompartment.go.html to see an example of how to use ChangeMountTargetCompartmentRequest. type ChangeMountTargetCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target. MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` // Details for changing the compartment. @@ -75,7 +75,7 @@ func (request ChangeMountTargetCompartmentRequest) RetryPolicy() *common.RetryPo func (request ChangeMountTargetCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2f3623b1f6..102673627b 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // ChangeOutboundConnectorCompartmentDetails Details for changing the compartment of the outbound connector. type ChangeOutboundConnectorCompartmentDetails struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment // to move the outbound connector to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -35,7 +35,7 @@ func (m ChangeOutboundConnectorCompartmentDetails) ValidateEnumValue() (bool, er errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 8d70d5087e..e4f2797859 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeOutboundConnectorCompartment.go.html to see an example of how to use ChangeOutboundConnectorCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeOutboundConnectorCompartment.go.html to see an example of how to use ChangeOutboundConnectorCompartmentRequest. type ChangeOutboundConnectorCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the outbound connector. OutboundConnectorId *string `mandatory:"true" contributesTo:"path" name:"outboundConnectorId"` // Details for changing the compartment. @@ -75,7 +75,7 @@ func (request ChangeOutboundConnectorCompartmentRequest) RetryPolicy() *common.R func (request ChangeOutboundConnectorCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 21d076c799..e4be08ce2d 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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"` } @@ -34,7 +34,7 @@ func (m ChangeReplicationCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go index f9410eda97..bddf46436a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeReplicationCompartment.go.html to see an example of how to use ChangeReplicationCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeReplicationCompartment.go.html to see an example of how to use ChangeReplicationCompartmentRequest. type ChangeReplicationCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication. ReplicationId *string `mandatory:"true" contributesTo:"path" name:"replicationId"` // Details for changing the compartment. @@ -75,7 +75,7 @@ func (request ChangeReplicationCompartmentRequest) RetryPolicy() *common.RetryPo func (request ChangeReplicationCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3728815677..bb8a9ae329 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -88,7 +88,7 @@ func (m ClientOptions) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index dcdbfd2f3b..0ff3589293 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,10 +19,10 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -76,7 +76,7 @@ func (m CreateExportDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_request_response.go index c22789b354..15debb6b85 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateExport.go.html to see an example of how to use CreateExportRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateExport.go.html to see an example of how to use CreateExportRequest. type CreateExportRequest struct { // Details for creating a new export. @@ -69,7 +69,7 @@ func (request CreateExportRequest) RetryPolicy() *common.RetryPolicy { func (request CreateExportRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bd5a52473d..205d0e51f7 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -23,7 +23,7 @@ type CreateFileSystemDetails struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -33,23 +33,23 @@ type CreateFileSystemDetails 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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 []ResourceLock `mandatory:"false" json:"locks"` - // 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. + // The OCID (https://docs.oracle.com/iaas/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). + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the snapshot used to create a cloned file system. + // See Cloning a File System (https://docs.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). SourceSnapshotId *string `mandatory:"false" json:"sourceSnapshotId"` // Specifies whether the clone file system is attached to its parent file system. @@ -57,10 +57,13 @@ type CreateFileSystemDetails struct { // specified by sourceSnapshotId, else will remain attached to its parent. CloneAttachStatus CreateFileSystemDetailsCloneAttachStatusEnum `mandatory:"false" json:"cloneAttachStatus,omitempty"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated file system snapshot policy, which + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated file system snapshot policy, which // controls the frequency of snapshot creation and retention period of the taken snapshots. // May be unset as a blank value. FilesystemSnapshotPolicyId *string `mandatory:"false" json:"filesystemSnapshotPolicyId"` + + // Specifies the enforcement of quota rules on the file system. + AreQuotaRulesEnabled *bool `mandatory:"false" json:"areQuotaRulesEnabled"` } func (m CreateFileSystemDetails) String() string { @@ -77,7 +80,7 @@ func (m CreateFileSystemDetails) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CloneAttachStatus: %s. Supported values are: %s.", m.CloneAttachStatus, strings.Join(GetCreateFileSystemDetailsCloneAttachStatusEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_request_response.go index f327600733..5743c5d88c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFileSystem.go.html to see an example of how to use CreateFileSystemRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFileSystem.go.html to see an example of how to use CreateFileSystemRequest. type CreateFileSystemRequest struct { // Details for creating a new file system. @@ -69,7 +69,7 @@ func (request CreateFileSystemRequest) RetryPolicy() *common.RetryPolicy { func (request CreateFileSystemRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 829b2f0e47..d5d30ee02b 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -23,7 +23,7 @@ type CreateFilesystemSnapshotPolicyDetails struct { // 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 file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the file system snapshot policy. CompartmentId *string `mandatory:"true" json:"compartmentId"` // A user-friendly name. It does not have to be unique, and it is changeable. @@ -45,12 +45,12 @@ type CreateFilesystemSnapshotPolicyDetails 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -69,7 +69,7 @@ func (m CreateFilesystemSnapshotPolicyDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f3ccc131d5..64123a23c0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFilesystemSnapshotPolicy.go.html to see an example of how to use CreateFilesystemSnapshotPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFilesystemSnapshotPolicy.go.html to see an example of how to use CreateFilesystemSnapshotPolicyRequest. type CreateFilesystemSnapshotPolicyRequest struct { // Details for creating a new file system snapshot policy. @@ -69,7 +69,7 @@ func (request CreateFilesystemSnapshotPolicyRequest) RetryPolicy() *common.Retry func (request CreateFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c770444f75..ed2389b989 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -22,7 +22,7 @@ type CreateKerberosDetails struct { // The Kerberos realm that the mount target will join. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -46,7 +46,7 @@ func (m CreateKerberosDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9198fc3ebd..15c6c16109 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -25,7 +25,7 @@ type CreateLdapBindAccountDetails struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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 when connecting with the LDAP bind account. @@ -41,19 +41,19 @@ type CreateLdapBindAccountDetails 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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 []ResourceLock `mandatory:"false" json:"locks"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the password for the LDAP bind account in the Vault. + // The OCID (https://docs.oracle.com/iaas/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. @@ -101,7 +101,7 @@ func (m CreateLdapBindAccountDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c99f5b1c5e..3d71cd013b 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -39,10 +39,10 @@ type CreateLdapIdmapDetails struct { // Example: `CN=Group,DC=domain,DC=com` GroupSearchBase *string `mandatory:"false" json:"groupSearchBase"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the first connector to use to communicate with the LDAP server. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first connector to use to communicate with the LDAP server. OutboundConnector1Id *string `mandatory:"false" json:"outboundConnector1Id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the second connector to use to communicate with the LDAP server. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second connector to use to communicate with the LDAP server. OutboundConnector2Id *string `mandatory:"false" json:"outboundConnector2Id"` } @@ -60,7 +60,7 @@ func (m CreateLdapIdmapDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -70,15 +70,18 @@ type CreateLdapIdmapDetailsSchemaTypeEnum string // Set of constants representing the allowable values for CreateLdapIdmapDetailsSchemaTypeEnum const ( - CreateLdapIdmapDetailsSchemaTypeRfc2307 CreateLdapIdmapDetailsSchemaTypeEnum = "RFC2307" + CreateLdapIdmapDetailsSchemaTypeRfc2307 CreateLdapIdmapDetailsSchemaTypeEnum = "RFC2307" + CreateLdapIdmapDetailsSchemaTypeRfc2307bis CreateLdapIdmapDetailsSchemaTypeEnum = "RFC2307BIS" ) var mappingCreateLdapIdmapDetailsSchemaTypeEnum = map[string]CreateLdapIdmapDetailsSchemaTypeEnum{ - "RFC2307": CreateLdapIdmapDetailsSchemaTypeRfc2307, + "RFC2307": CreateLdapIdmapDetailsSchemaTypeRfc2307, + "RFC2307BIS": CreateLdapIdmapDetailsSchemaTypeRfc2307bis, } var mappingCreateLdapIdmapDetailsSchemaTypeEnumLowerCase = map[string]CreateLdapIdmapDetailsSchemaTypeEnum{ - "rfc2307": CreateLdapIdmapDetailsSchemaTypeRfc2307, + "rfc2307": CreateLdapIdmapDetailsSchemaTypeRfc2307, + "rfc2307bis": CreateLdapIdmapDetailsSchemaTypeRfc2307bis, } // GetCreateLdapIdmapDetailsSchemaTypeEnumValues Enumerates the set of values for CreateLdapIdmapDetailsSchemaTypeEnum @@ -94,6 +97,7 @@ func GetCreateLdapIdmapDetailsSchemaTypeEnumValues() []CreateLdapIdmapDetailsSch func GetCreateLdapIdmapDetailsSchemaTypeEnumStringValues() []string { return []string{ "RFC2307", + "RFC2307BIS", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go index 87ef6b2816..dd8ab71e9f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -23,10 +23,10 @@ type CreateMountTargetDetails struct { // 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 in which to create the mount target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to create the mount target. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet in which to create the mount target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet in which to create the mount target. SubnetId *string `mandatory:"true" json:"subnetId"` // A user-friendly name. It does not have to be unique, and it is changeable. @@ -41,15 +41,16 @@ type CreateMountTargetDetails struct { // 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). - // Note: This attribute value is stored in the PrivateIp (https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/) resource, + // Note: + // This attribute value is stored in the PrivateIp (https://docs.oracle.com/iaas/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/) resource, // not in the `mountTarget` resource. // To update the `hostnameLabel`, use `GetMountTarget` to obtain the - // OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target's + // OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target's // private IPs (`privateIpIds`). Then, you can use - // UpdatePrivateIp (https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/UpdatePrivateIp) + // UpdatePrivateIp (https://docs.oracle.com/iaas/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/UpdatePrivateIp) // to update the `hostnameLabel` value. // For more information, see - // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/Content/Network/Concepts/dns.htm). + // DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm). // Example: `files-1` HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` @@ -64,25 +65,31 @@ type CreateMountTargetDetails struct { LdapIdmap *CreateLdapIdmapDetails `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 list of Network Security Group OCIDs (https://docs.oracle.com/iaas/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). + // For more information about NSGs, see Security Rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). NsgIds []string `mandatory:"false" json:"nsgIds"` Kerberos *CreateKerberosDetails `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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. + // Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}` + SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` + // Locks associated with this resource. Locks []ResourceLock `mandatory:"false" json:"locks"` @@ -105,7 +112,7 @@ func (m CreateMountTargetDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go index a35cd4dffe..5e37f79010 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateMountTarget.go.html to see an example of how to use CreateMountTargetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateMountTarget.go.html to see an example of how to use CreateMountTargetRequest. type CreateMountTargetRequest struct { // Details for creating a new mount target. @@ -72,7 +72,7 @@ func (request CreateMountTargetRequest) RetryPolicy() *common.RetryPolicy { func (request CreateMountTargetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go index 60a04b8b1d..3cd95963a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -25,7 +25,7 @@ type CreateOutboundConnectorDetails interface { // Example: `Uocm:PHX-AD-1` GetAvailabilityDomain() *string - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. GetCompartmentId() *string // A user-friendly name. It does not have to be unique, and it is changeable. @@ -35,12 +35,12 @@ type CreateOutboundConnectorDetails interface { // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` GetDefinedTags() map[string]map[string]interface{} @@ -95,7 +95,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) + common.Logf("Received unsupported enum value for CreateOutboundConnectorDetails: %s.", m.ConnectorType) return *m, nil } } @@ -141,7 +141,7 @@ func (m createoutboundconnectordetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_request_response.go index 1d07f2614e..5747071582 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateOutboundConnector.go.html to see an example of how to use CreateOutboundConnectorRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateOutboundConnector.go.html to see an example of how to use CreateOutboundConnectorRequest. type CreateOutboundConnectorRequest struct { // Details for creating a new outbound connector. @@ -69,7 +69,7 @@ func (request CreateOutboundConnectorRequest) RetryPolicy() *common.RetryPolicy func (request CreateOutboundConnectorRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_quota_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_quota_rule_details.go new file mode 100644 index 0000000000..59e4bd77a2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_quota_rule_details.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateQuotaRuleDetails Details for creating a quota rule in the file system. +type CreateQuotaRuleDetails struct { + + // The type of the owner of this quota rule and usage. + PrincipalType CreateQuotaRuleDetailsPrincipalTypeEnum `mandatory:"true" json:"principalType"` + + // Whether the quota rule will be enforced. + // If `isHardQuota` is true, the quota rule is enforced so that the write is blocked if usage + // exceeds the hard quota limit. + // If `isHardQuota` is false, writes succeed even if usage exceeds the soft quota limit, but the quota rule is violated. + IsHardQuota *bool `mandatory:"true" json:"isHardQuota"` + + // The value of the quota rule in gigabytes. + QuotaLimitInGigabytes *int `mandatory:"true" json:"quotaLimitInGigabytes"` + + // An identifier for the user or the group associated with quota rule and usage. UNIX-like operating systems use this integer value to + // identify a user or group to manage access control. + PrincipalId *int `mandatory:"false" json:"principalId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `UserXYZ's quota` + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m CreateQuotaRuleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateQuotaRuleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateQuotaRuleDetailsPrincipalTypeEnum(string(m.PrincipalType)); !ok && m.PrincipalType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PrincipalType: %s. Supported values are: %s.", m.PrincipalType, strings.Join(GetCreateQuotaRuleDetailsPrincipalTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateQuotaRuleDetailsPrincipalTypeEnum Enum with underlying type: string +type CreateQuotaRuleDetailsPrincipalTypeEnum string + +// Set of constants representing the allowable values for CreateQuotaRuleDetailsPrincipalTypeEnum +const ( + CreateQuotaRuleDetailsPrincipalTypeFileSystemLevel CreateQuotaRuleDetailsPrincipalTypeEnum = "FILE_SYSTEM_LEVEL" + CreateQuotaRuleDetailsPrincipalTypeDefaultGroup CreateQuotaRuleDetailsPrincipalTypeEnum = "DEFAULT_GROUP" + CreateQuotaRuleDetailsPrincipalTypeDefaultUser CreateQuotaRuleDetailsPrincipalTypeEnum = "DEFAULT_USER" + CreateQuotaRuleDetailsPrincipalTypeIndividualGroup CreateQuotaRuleDetailsPrincipalTypeEnum = "INDIVIDUAL_GROUP" + CreateQuotaRuleDetailsPrincipalTypeIndividualUser CreateQuotaRuleDetailsPrincipalTypeEnum = "INDIVIDUAL_USER" +) + +var mappingCreateQuotaRuleDetailsPrincipalTypeEnum = map[string]CreateQuotaRuleDetailsPrincipalTypeEnum{ + "FILE_SYSTEM_LEVEL": CreateQuotaRuleDetailsPrincipalTypeFileSystemLevel, + "DEFAULT_GROUP": CreateQuotaRuleDetailsPrincipalTypeDefaultGroup, + "DEFAULT_USER": CreateQuotaRuleDetailsPrincipalTypeDefaultUser, + "INDIVIDUAL_GROUP": CreateQuotaRuleDetailsPrincipalTypeIndividualGroup, + "INDIVIDUAL_USER": CreateQuotaRuleDetailsPrincipalTypeIndividualUser, +} + +var mappingCreateQuotaRuleDetailsPrincipalTypeEnumLowerCase = map[string]CreateQuotaRuleDetailsPrincipalTypeEnum{ + "file_system_level": CreateQuotaRuleDetailsPrincipalTypeFileSystemLevel, + "default_group": CreateQuotaRuleDetailsPrincipalTypeDefaultGroup, + "default_user": CreateQuotaRuleDetailsPrincipalTypeDefaultUser, + "individual_group": CreateQuotaRuleDetailsPrincipalTypeIndividualGroup, + "individual_user": CreateQuotaRuleDetailsPrincipalTypeIndividualUser, +} + +// GetCreateQuotaRuleDetailsPrincipalTypeEnumValues Enumerates the set of values for CreateQuotaRuleDetailsPrincipalTypeEnum +func GetCreateQuotaRuleDetailsPrincipalTypeEnumValues() []CreateQuotaRuleDetailsPrincipalTypeEnum { + values := make([]CreateQuotaRuleDetailsPrincipalTypeEnum, 0) + for _, v := range mappingCreateQuotaRuleDetailsPrincipalTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateQuotaRuleDetailsPrincipalTypeEnumStringValues Enumerates the set of values in String for CreateQuotaRuleDetailsPrincipalTypeEnum +func GetCreateQuotaRuleDetailsPrincipalTypeEnumStringValues() []string { + return []string{ + "FILE_SYSTEM_LEVEL", + "DEFAULT_GROUP", + "DEFAULT_USER", + "INDIVIDUAL_GROUP", + "INDIVIDUAL_USER", + } +} + +// GetMappingCreateQuotaRuleDetailsPrincipalTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateQuotaRuleDetailsPrincipalTypeEnum(val string) (CreateQuotaRuleDetailsPrincipalTypeEnum, bool) { + enum, ok := mappingCreateQuotaRuleDetailsPrincipalTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_quota_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_quota_rule_request_response.go new file mode 100644 index 0000000000..ad0c1174e9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_quota_rule_request_response.go @@ -0,0 +1,112 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 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" +) + +// CreateQuotaRuleRequest wrapper for the CreateQuotaRule operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateQuotaRule.go.html to see an example of how to use CreateQuotaRuleRequest. +type CreateQuotaRuleRequest struct { + + // Details for adding a new quota rule. + CreateQuotaRuleDetails `contributesTo:"body"` + + // The OCID (https://docs.oracle.com/iaas/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"` + + // 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"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateQuotaRuleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateQuotaRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateQuotaRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateQuotaRuleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateQuotaRuleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateQuotaRuleResponse wrapper for the CreateQuotaRule operation +type CreateQuotaRuleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The QuotaRule instance + QuotaRule `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 CreateQuotaRuleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateQuotaRuleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 516114bf1f..d3daed6435 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,13 +19,13 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -39,12 +39,12 @@ type CreateReplicationDetails 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -63,7 +63,7 @@ func (m CreateReplicationDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_request_response.go index 6dd6801030..8a3a0336a3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateReplication.go.html to see an example of how to use CreateReplicationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateReplication.go.html to see an example of how to use CreateReplicationRequest. type CreateReplicationRequest struct { // Details for creating a new replication. @@ -69,7 +69,7 @@ func (request CreateReplicationRequest) RetryPolicy() *common.RetryPolicy { func (request CreateReplicationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b1529cdd41..509d05b8dc 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -34,12 +34,12 @@ type CreateSnapshotDetails 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -58,7 +58,7 @@ func (m CreateSnapshotDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_request_response.go index cc78f4b4ee..91297ae78c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateSnapshot.go.html to see an example of how to use CreateSnapshotRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateSnapshot.go.html to see an example of how to use CreateSnapshotRequest. type CreateSnapshotRequest struct { // Details for creating a new snapshot. @@ -69,7 +69,7 @@ func (request CreateSnapshotRequest) RetryPolicy() *common.RetryPolicy { func (request CreateSnapshotRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go index cedba5807a..c210d2a76c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteExport.go.html to see an example of how to use DeleteExportRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteExport.go.html to see an example of how to use DeleteExportRequest. type DeleteExportRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the export. ExportId *string `mandatory:"true" contributesTo:"path" name:"exportId"` // For optimistic concurrency control. In the PUT or DELETE call @@ -72,7 +72,7 @@ func (request DeleteExportRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteExportRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go index 85293a1630..19e928124f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFileSystem.go.html to see an example of how to use DeleteFileSystemRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFileSystem.go.html to see an example of how to use DeleteFileSystemRequest. type DeleteFileSystemRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + // The OCID (https://docs.oracle.com/iaas/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 @@ -76,7 +76,7 @@ func (request DeleteFileSystemRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteFileSystemRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 55ac5578a1..4181e88d32 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFilesystemSnapshotPolicy.go.html to see an example of how to use DeleteFilesystemSnapshotPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFilesystemSnapshotPolicy.go.html to see an example of how to use DeleteFilesystemSnapshotPolicyRequest. type DeleteFilesystemSnapshotPolicyRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` // For optimistic concurrency control. In the PUT or DELETE call @@ -72,7 +72,7 @@ func (request DeleteFilesystemSnapshotPolicyRequest) RetryPolicy() *common.Retry func (request DeleteFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go index 48fb9a77eb..e53ba03bd5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteMountTarget.go.html to see an example of how to use DeleteMountTargetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteMountTarget.go.html to see an example of how to use DeleteMountTargetRequest. type DeleteMountTargetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + // The OCID (https://docs.oracle.com/iaas/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 @@ -72,7 +72,7 @@ func (request DeleteMountTargetRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteMountTargetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go index 92327b0cd0..afa1960daf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteOutboundConnector.go.html to see an example of how to use DeleteOutboundConnectorRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteOutboundConnector.go.html to see an example of how to use DeleteOutboundConnectorRequest. type DeleteOutboundConnectorRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the outbound connector. OutboundConnectorId *string `mandatory:"true" contributesTo:"path" name:"outboundConnectorId"` // For optimistic concurrency control. In the PUT or DELETE call @@ -72,7 +72,7 @@ func (request DeleteOutboundConnectorRequest) RetryPolicy() *common.RetryPolicy func (request DeleteOutboundConnectorRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_quota_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_quota_rule_request_response.go new file mode 100644 index 0000000000..84d8345c86 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_quota_rule_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 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" +) + +// DeleteQuotaRuleRequest wrapper for the DeleteQuotaRule operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteQuotaRule.go.html to see an example of how to use DeleteQuotaRuleRequest. +type DeleteQuotaRuleRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` + + // The identifier of the quota rule. It is the base64 encoded string of the tuple . + QuotaRuleId *string `mandatory:"true" contributesTo:"path" name:"quotaRuleId"` + + // 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 DeleteQuotaRuleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteQuotaRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteQuotaRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteQuotaRuleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteQuotaRuleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteQuotaRuleResponse wrapper for the DeleteQuotaRule operation +type DeleteQuotaRuleResponse 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 DeleteQuotaRuleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteQuotaRuleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index afe8e9c8d3..9040ca9055 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplication.go.html to see an example of how to use DeleteReplicationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplication.go.html to see an example of how to use DeleteReplicationRequest. type DeleteReplicationRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + // The OCID (https://docs.oracle.com/iaas/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 @@ -81,7 +81,7 @@ func (request DeleteReplicationRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go index 16aa15b76c..59aa83b811 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplicationTarget.go.html to see an example of how to use DeleteReplicationTargetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplicationTarget.go.html to see an example of how to use DeleteReplicationTargetRequest. type DeleteReplicationTargetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication target. ReplicationTargetId *string `mandatory:"true" contributesTo:"path" name:"replicationTargetId"` // For optimistic concurrency control. In the PUT or DELETE call @@ -72,7 +72,7 @@ func (request DeleteReplicationTargetRequest) RetryPolicy() *common.RetryPolicy func (request DeleteReplicationTargetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go index 3dcebf4e7e..26609eba29 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteSnapshot.go.html to see an example of how to use DeleteSnapshotRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteSnapshot.go.html to see an example of how to use DeleteSnapshotRequest. type DeleteSnapshotRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the snapshot. SnapshotId *string `mandatory:"true" contributesTo:"path" name:"snapshotId"` // For optimistic concurrency control. In the PUT or DELETE call @@ -72,7 +72,7 @@ func (request DeleteSnapshotRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteSnapshotRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/detach_clone_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/detach_clone_request_response.go index 786738814d..51af651c19 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/detach_clone_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/detach_clone_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DetachClone.go.html to see an example of how to use DetachCloneRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DetachClone.go.html to see an example of how to use DetachCloneRequest. type DetachCloneRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + // The OCID (https://docs.oracle.com/iaas/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 @@ -69,7 +69,7 @@ func (request DetachCloneRequest) RetryPolicy() *common.RetryPolicy { func (request DetachCloneRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1f69253708..5688159fb6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/endpoint.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/endpoint.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -37,7 +37,7 @@ func (m Endpoint) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 473a802bea..5efc893c9d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/EstimateReplication.go.html to see an example of how to use EstimateReplicationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/EstimateReplication.go.html to see an example of how to use EstimateReplicationRequest. type EstimateReplicationRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + // The OCID (https://docs.oracle.com/iaas/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 @@ -72,7 +72,7 @@ func (request EstimateReplicationRequest) RetryPolicy() *common.RetryPolicy { func (request EstimateReplicationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 21f9d14551..1737a92808 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -42,7 +42,7 @@ import ( // 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). +// Export Options (https://docs.oracle.com/iaas/Content/File/Tasks/exportoptions.htm). type Export struct { // Policies that apply to NFS requests made through this @@ -68,13 +68,13 @@ type Export struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this export. Id *string `mandatory:"true" json:"id"` // The current state of this export. @@ -111,7 +111,7 @@ func (m Export) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 387645745f..c35334dfc4 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -20,7 +20,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -28,7 +28,7 @@ type ExportSet struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the export set. Id *string `mandatory:"true" json:"id"` // The current state of the export set. @@ -39,7 +39,7 @@ type ExportSet struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -84,7 +84,7 @@ func (m ExportSet) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a45662fc08..9fb14817db 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -27,7 +27,7 @@ type ExportSetSummary struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the export set. Id *string `mandatory:"true" json:"id"` // The current state of the export set. @@ -38,7 +38,7 @@ type ExportSetSummary struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -61,7 +61,7 @@ func (m ExportSetSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c2f837f87b..b342648a1b 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,13 +19,13 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this export. Id *string `mandatory:"true" json:"id"` // The current state of this export. @@ -62,7 +62,7 @@ func (m ExportSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 34d1071163..0de866d1d7 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -24,17 +24,17 @@ import ( // 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). +// Policies (https://docs.oracle.com/iaas/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). + // For more information, see File System Usage and Metering (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -42,7 +42,7 @@ type FileSystem struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. Id *string `mandatory:"true" json:"id"` // The current state of the file system. @@ -60,28 +60,32 @@ type FileSystem 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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. + // System tags for this resource. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The OCID (https://docs.oracle.com/iaas/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). + // See Cloning a File System (https://docs.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). + // See Cloning a File System (https://docs.oracle.com/iaas/Content/File/Tasks/cloningFS.htm#hydration). IsHydrated *bool `mandatory:"false" json:"isHydrated"` // Specifies the total number of children of a file system. @@ -97,16 +101,25 @@ type FileSystem struct { LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` // Specifies whether the file system can be used as a target file system for replication. The system sets this value to `true` if the file system is unexported, hasn't yet been specified as a target file system in any replication resource, and has no user snapshots. After the file system has been specified as a target in a replication, or if the file system contains user snapshots, the system sets this value to `false`. - // For more information, see Using Replication (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/using-replication.htm). + // For more information, see Using Replication (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/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 file system snapshot policy, which + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated file system snapshot policy, which // controls the frequency of snapshot creation and retention period of the taken snapshots. FilesystemSnapshotPolicyId *string `mandatory:"false" json:"filesystemSnapshotPolicyId"` + + // Specifies the enforcement of quota rules on the file system. + AreQuotaRulesEnabled *bool `mandatory:"false" json:"areQuotaRulesEnabled"` + + // Displays the state of enforcement of quota rules on the file system. + QuotaEnforcementState FileSystemQuotaEnforcementStateEnum `mandatory:"false" json:"quotaEnforcementState,omitempty"` + + // Specifies the total number of replications for which this file system is a source. + ReplicationSourceCount *int `mandatory:"false" json:"replicationSourceCount"` } func (m FileSystem) String() string { @@ -125,8 +138,11 @@ func (m FileSystem) ValidateEnumValue() (bool, error) { if _, ok := GetMappingFileSystemCloneAttachStatusEnum(string(m.CloneAttachStatus)); !ok && m.CloneAttachStatus != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CloneAttachStatus: %s. Supported values are: %s.", m.CloneAttachStatus, strings.Join(GetFileSystemCloneAttachStatusEnumStringValues(), ","))) } + if _, ok := GetMappingFileSystemQuotaEnforcementStateEnum(string(m.QuotaEnforcementState)); !ok && m.QuotaEnforcementState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for QuotaEnforcementState: %s. Supported values are: %s.", m.QuotaEnforcementState, strings.Join(GetFileSystemQuotaEnforcementStateEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -234,3 +250,61 @@ func GetMappingFileSystemCloneAttachStatusEnum(val string) (FileSystemCloneAttac enum, ok := mappingFileSystemCloneAttachStatusEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// FileSystemQuotaEnforcementStateEnum Enum with underlying type: string +type FileSystemQuotaEnforcementStateEnum string + +// Set of constants representing the allowable values for FileSystemQuotaEnforcementStateEnum +const ( + FileSystemQuotaEnforcementStateEnabling FileSystemQuotaEnforcementStateEnum = "ENABLING" + FileSystemQuotaEnforcementStateEnabled FileSystemQuotaEnforcementStateEnum = "ENABLED" + FileSystemQuotaEnforcementStateDisabling FileSystemQuotaEnforcementStateEnum = "DISABLING" + FileSystemQuotaEnforcementStateDisabled FileSystemQuotaEnforcementStateEnum = "DISABLED" + FileSystemQuotaEnforcementStateSyncing FileSystemQuotaEnforcementStateEnum = "SYNCING" + FileSystemQuotaEnforcementStateFailed FileSystemQuotaEnforcementStateEnum = "FAILED" +) + +var mappingFileSystemQuotaEnforcementStateEnum = map[string]FileSystemQuotaEnforcementStateEnum{ + "ENABLING": FileSystemQuotaEnforcementStateEnabling, + "ENABLED": FileSystemQuotaEnforcementStateEnabled, + "DISABLING": FileSystemQuotaEnforcementStateDisabling, + "DISABLED": FileSystemQuotaEnforcementStateDisabled, + "SYNCING": FileSystemQuotaEnforcementStateSyncing, + "FAILED": FileSystemQuotaEnforcementStateFailed, +} + +var mappingFileSystemQuotaEnforcementStateEnumLowerCase = map[string]FileSystemQuotaEnforcementStateEnum{ + "enabling": FileSystemQuotaEnforcementStateEnabling, + "enabled": FileSystemQuotaEnforcementStateEnabled, + "disabling": FileSystemQuotaEnforcementStateDisabling, + "disabled": FileSystemQuotaEnforcementStateDisabled, + "syncing": FileSystemQuotaEnforcementStateSyncing, + "failed": FileSystemQuotaEnforcementStateFailed, +} + +// GetFileSystemQuotaEnforcementStateEnumValues Enumerates the set of values for FileSystemQuotaEnforcementStateEnum +func GetFileSystemQuotaEnforcementStateEnumValues() []FileSystemQuotaEnforcementStateEnum { + values := make([]FileSystemQuotaEnforcementStateEnum, 0) + for _, v := range mappingFileSystemQuotaEnforcementStateEnum { + values = append(values, v) + } + return values +} + +// GetFileSystemQuotaEnforcementStateEnumStringValues Enumerates the set of values in String for FileSystemQuotaEnforcementStateEnum +func GetFileSystemQuotaEnforcementStateEnumStringValues() []string { + return []string{ + "ENABLING", + "ENABLED", + "DISABLING", + "DISABLED", + "SYNCING", + "FAILED", + } +} + +// GetMappingFileSystemQuotaEnforcementStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFileSystemQuotaEnforcementStateEnum(val string) (FileSystemQuotaEnforcementStateEnum, bool) { + enum, ok := mappingFileSystemQuotaEnforcementStateEnumLowerCase[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 index 3d89974438..a57cc5af59 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -25,7 +25,7 @@ type FileSystemSummary struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -33,7 +33,7 @@ type FileSystemSummary struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. Id *string `mandatory:"true" json:"id"` // The current state of the file system. @@ -54,28 +54,35 @@ type FileSystemSummary 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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. + // System tags for this resource. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // Specifies the total number of replications for which this file system is a source. + ReplicationSourceCount *int `mandatory:"false" json:"replicationSourceCount"` + + // The OCID (https://docs.oracle.com/iaas/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). + // See Cloning a File System (https://docs.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). + // See Cloning a File System (https://docs.oracle.com/iaas/Content/File/Tasks/cloningFS.htm#hydration). IsHydrated *bool `mandatory:"false" json:"isHydrated"` // Additional information about the current 'lifecycleState'. @@ -83,6 +90,9 @@ type FileSystemSummary struct { // Specifies whether the file system is attached to its parent file system. CloneAttachStatus FileSystemSummaryCloneAttachStatusEnum `mandatory:"false" json:"cloneAttachStatus,omitempty"` + + // Displays the state of enforcement of quota rules on the file system. + QuotaEnforcementState FileSystemSummaryQuotaEnforcementStateEnum `mandatory:"false" json:"quotaEnforcementState,omitempty"` } func (m FileSystemSummary) String() string { @@ -101,8 +111,11 @@ func (m FileSystemSummary) ValidateEnumValue() (bool, error) { if _, ok := GetMappingFileSystemSummaryCloneAttachStatusEnum(string(m.CloneAttachStatus)); !ok && m.CloneAttachStatus != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CloneAttachStatus: %s. Supported values are: %s.", m.CloneAttachStatus, strings.Join(GetFileSystemSummaryCloneAttachStatusEnumStringValues(), ","))) } + if _, ok := GetMappingFileSystemSummaryQuotaEnforcementStateEnum(string(m.QuotaEnforcementState)); !ok && m.QuotaEnforcementState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for QuotaEnforcementState: %s. Supported values are: %s.", m.QuotaEnforcementState, strings.Join(GetFileSystemSummaryQuotaEnforcementStateEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -210,3 +223,61 @@ func GetMappingFileSystemSummaryCloneAttachStatusEnum(val string) (FileSystemSum enum, ok := mappingFileSystemSummaryCloneAttachStatusEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// FileSystemSummaryQuotaEnforcementStateEnum Enum with underlying type: string +type FileSystemSummaryQuotaEnforcementStateEnum string + +// Set of constants representing the allowable values for FileSystemSummaryQuotaEnforcementStateEnum +const ( + FileSystemSummaryQuotaEnforcementStateEnabling FileSystemSummaryQuotaEnforcementStateEnum = "ENABLING" + FileSystemSummaryQuotaEnforcementStateEnabled FileSystemSummaryQuotaEnforcementStateEnum = "ENABLED" + FileSystemSummaryQuotaEnforcementStateDisabling FileSystemSummaryQuotaEnforcementStateEnum = "DISABLING" + FileSystemSummaryQuotaEnforcementStateDisabled FileSystemSummaryQuotaEnforcementStateEnum = "DISABLED" + FileSystemSummaryQuotaEnforcementStateSyncing FileSystemSummaryQuotaEnforcementStateEnum = "SYNCING" + FileSystemSummaryQuotaEnforcementStateFailed FileSystemSummaryQuotaEnforcementStateEnum = "FAILED" +) + +var mappingFileSystemSummaryQuotaEnforcementStateEnum = map[string]FileSystemSummaryQuotaEnforcementStateEnum{ + "ENABLING": FileSystemSummaryQuotaEnforcementStateEnabling, + "ENABLED": FileSystemSummaryQuotaEnforcementStateEnabled, + "DISABLING": FileSystemSummaryQuotaEnforcementStateDisabling, + "DISABLED": FileSystemSummaryQuotaEnforcementStateDisabled, + "SYNCING": FileSystemSummaryQuotaEnforcementStateSyncing, + "FAILED": FileSystemSummaryQuotaEnforcementStateFailed, +} + +var mappingFileSystemSummaryQuotaEnforcementStateEnumLowerCase = map[string]FileSystemSummaryQuotaEnforcementStateEnum{ + "enabling": FileSystemSummaryQuotaEnforcementStateEnabling, + "enabled": FileSystemSummaryQuotaEnforcementStateEnabled, + "disabling": FileSystemSummaryQuotaEnforcementStateDisabling, + "disabled": FileSystemSummaryQuotaEnforcementStateDisabled, + "syncing": FileSystemSummaryQuotaEnforcementStateSyncing, + "failed": FileSystemSummaryQuotaEnforcementStateFailed, +} + +// GetFileSystemSummaryQuotaEnforcementStateEnumValues Enumerates the set of values for FileSystemSummaryQuotaEnforcementStateEnum +func GetFileSystemSummaryQuotaEnforcementStateEnumValues() []FileSystemSummaryQuotaEnforcementStateEnum { + values := make([]FileSystemSummaryQuotaEnforcementStateEnum, 0) + for _, v := range mappingFileSystemSummaryQuotaEnforcementStateEnum { + values = append(values, v) + } + return values +} + +// GetFileSystemSummaryQuotaEnforcementStateEnumStringValues Enumerates the set of values in String for FileSystemSummaryQuotaEnforcementStateEnum +func GetFileSystemSummaryQuotaEnforcementStateEnumStringValues() []string { + return []string{ + "ENABLING", + "ENABLED", + "DISABLING", + "DISABLED", + "SYNCING", + "FAILED", + } +} + +// GetMappingFileSystemSummaryQuotaEnforcementStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFileSystemSummaryQuotaEnforcementStateEnum(val string) (FileSystemSummaryQuotaEnforcementStateEnum, bool) { + enum, ok := mappingFileSystemSummaryQuotaEnforcementStateEnumLowerCase[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 index a5512733f9..ad22fb7697 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -68,7 +68,7 @@ func newFileStorageClientFromBaseClient(baseClient common.BaseClient, configProv // SetRegion overrides the region of this client. func (client *FileStorageClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("filestorage", "https://filestorage.{region}.{secondLevelDomain}") + client.Host, _ = common.StringToRegion(region).EndpointForTemplateDottedRegion("filestorage", "https://filestorage.{region}.{secondLevelDomain}", "filestorage") } // SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid @@ -96,7 +96,7 @@ func (client *FileStorageClient) ConfigurationProvider() *common.ConfigurationPr // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddExportLock.go.html to see an example of how to use AddExportLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddExportLock.go.html to see an example of how to use AddExportLock API. func (client FileStorageClient) AddExportLock(ctx context.Context, request AddExportLockRequest) (response AddExportLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -153,7 +153,7 @@ func (client FileStorageClient) addExportLock(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFileSystemLock.go.html to see an example of how to use AddFileSystemLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFileSystemLock.go.html to see an example of how to use AddFileSystemLock API. func (client FileStorageClient) AddFileSystemLock(ctx context.Context, request AddFileSystemLockRequest) (response AddFileSystemLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -210,7 +210,7 @@ func (client FileStorageClient) addFileSystemLock(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFilesystemSnapshotPolicyLock.go.html to see an example of how to use AddFilesystemSnapshotPolicyLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFilesystemSnapshotPolicyLock.go.html to see an example of how to use AddFilesystemSnapshotPolicyLock API. func (client FileStorageClient) AddFilesystemSnapshotPolicyLock(ctx context.Context, request AddFilesystemSnapshotPolicyLockRequest) (response AddFilesystemSnapshotPolicyLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -267,7 +267,7 @@ func (client FileStorageClient) addFilesystemSnapshotPolicyLock(ctx context.Cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddMountTargetLock.go.html to see an example of how to use AddMountTargetLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddMountTargetLock.go.html to see an example of how to use AddMountTargetLock API. func (client FileStorageClient) AddMountTargetLock(ctx context.Context, request AddMountTargetLockRequest) (response AddMountTargetLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -324,7 +324,7 @@ func (client FileStorageClient) addMountTargetLock(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddOutboundConnectorLock.go.html to see an example of how to use AddOutboundConnectorLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddOutboundConnectorLock.go.html to see an example of how to use AddOutboundConnectorLock API. func (client FileStorageClient) AddOutboundConnectorLock(ctx context.Context, request AddOutboundConnectorLockRequest) (response AddOutboundConnectorLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -381,7 +381,7 @@ func (client FileStorageClient) addOutboundConnectorLock(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddReplicationLock.go.html to see an example of how to use AddReplicationLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddReplicationLock.go.html to see an example of how to use AddReplicationLock API. func (client FileStorageClient) AddReplicationLock(ctx context.Context, request AddReplicationLockRequest) (response AddReplicationLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -438,7 +438,7 @@ func (client FileStorageClient) addReplicationLock(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddSnapshotLock.go.html to see an example of how to use AddSnapshotLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddSnapshotLock.go.html to see an example of how to use AddSnapshotLock API. func (client FileStorageClient) AddSnapshotLock(ctx context.Context, request AddSnapshotLockRequest) (response AddSnapshotLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -495,7 +495,7 @@ func (client FileStorageClient) addSnapshotLock(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CancelDowngradeShapeMountTarget.go.html to see an example of how to use CancelDowngradeShapeMountTarget API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CancelDowngradeShapeMountTarget.go.html to see an example of how to use CancelDowngradeShapeMountTarget API. func (client FileStorageClient) CancelDowngradeShapeMountTarget(ctx context.Context, request CancelDowngradeShapeMountTargetRequest) (response CancelDowngradeShapeMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -548,11 +548,11 @@ func (client FileStorageClient) cancelDowngradeShapeMountTarget(ctx context.Cont return response, err } -// 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) +// 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.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFileSystemCompartment.go.html to see an example of how to use ChangeFileSystemCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFileSystemCompartment.go.html to see an example of how to use ChangeFileSystemCompartment API. func (client FileStorageClient) ChangeFileSystemCompartment(ctx context.Context, request ChangeFileSystemCompartmentRequest) (response ChangeFileSystemCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -605,11 +605,11 @@ func (client FileStorageClient) changeFileSystemCompartment(ctx context.Context, return response, err } -// ChangeFilesystemSnapshotPolicyCompartment Moves a file system 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). +// ChangeFilesystemSnapshotPolicyCompartment Moves a file system 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.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFilesystemSnapshotPolicyCompartment.go.html to see an example of how to use ChangeFilesystemSnapshotPolicyCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFilesystemSnapshotPolicyCompartment.go.html to see an example of how to use ChangeFilesystemSnapshotPolicyCompartment API. func (client FileStorageClient) ChangeFilesystemSnapshotPolicyCompartment(ctx context.Context, request ChangeFilesystemSnapshotPolicyCompartmentRequest) (response ChangeFilesystemSnapshotPolicyCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -662,11 +662,11 @@ func (client FileStorageClient) changeFilesystemSnapshotPolicyCompartment(ctx co return response, err } -// ChangeMountTargetCompartment Moves a mount target and its associated export set or share 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) +// ChangeMountTargetCompartment Moves a mount target and its associated export set or share 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.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeMountTargetCompartment.go.html to see an example of how to use ChangeMountTargetCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeMountTargetCompartment.go.html to see an example of how to use ChangeMountTargetCompartment API. func (client FileStorageClient) ChangeMountTargetCompartment(ctx context.Context, request ChangeMountTargetCompartmentRequest) (response ChangeMountTargetCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -721,11 +721,11 @@ func (client FileStorageClient) changeMountTargetCompartment(ctx context.Context // ChangeOutboundConnectorCompartment Moves an 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) +// Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeOutboundConnectorCompartment.go.html to see an example of how to use ChangeOutboundConnectorCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeOutboundConnectorCompartment.go.html to see an example of how to use ChangeOutboundConnectorCompartment API. func (client FileStorageClient) ChangeOutboundConnectorCompartment(ctx context.Context, request ChangeOutboundConnectorCompartmentRequest) (response ChangeOutboundConnectorCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -779,11 +779,11 @@ func (client FileStorageClient) changeOutboundConnectorCompartment(ctx context.C } // 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). +// For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeReplicationCompartment.go.html to see an example of how to use ChangeReplicationCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeReplicationCompartment.go.html to see an example of how to use ChangeReplicationCompartment API. func (client FileStorageClient) ChangeReplicationCompartment(ctx context.Context, request ChangeReplicationCompartmentRequest) (response ChangeReplicationCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -841,7 +841,7 @@ func (client FileStorageClient) changeReplicationCompartment(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateExport.go.html to see an example of how to use CreateExport API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateExport.go.html to see an example of how to use CreateExport API. func (client FileStorageClient) CreateExport(ctx context.Context, request CreateExportRequest) (response CreateExportResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -909,24 +909,24 @@ func (client FileStorageClient) createExport(ctx context.Context, request common // 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). +// Overview of the IAM Service (https://docs.oracle.com/iaas/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). +// Network Security Groups (https://docs.oracle.com/iaas/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). +// Availability Domains (https://docs.oracle.com/iaas/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)). +// Cloud Identifier (OCID (https://docs.oracle.com/iaas/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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFileSystem.go.html to see an example of how to use CreateFileSystem API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFileSystem.go.html to see an example of how to use CreateFileSystem API. func (client FileStorageClient) CreateFileSystem(ctx context.Context, request CreateFileSystemRequest) (response CreateFileSystemResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -991,7 +991,7 @@ func (client FileStorageClient) createFileSystem(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFilesystemSnapshotPolicy.go.html to see an example of how to use CreateFilesystemSnapshotPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFilesystemSnapshotPolicy.go.html to see an example of how to use CreateFilesystemSnapshotPolicy API. func (client FileStorageClient) CreateFilesystemSnapshotPolicy(ctx context.Context, request CreateFilesystemSnapshotPolicyRequest) (response CreateFilesystemSnapshotPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1065,22 +1065,22 @@ func (client FileStorageClient) createFilesystemSnapshotPolicy(ctx context.Conte // 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). +// Service (https://docs.oracle.com/iaas/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). +// Availability Domains (https://docs.oracle.com/iaas/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)). +// Oracle Cloud Identifier (OCID (https://docs.oracle.com/iaas/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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateMountTarget.go.html to see an example of how to use CreateMountTarget API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateMountTarget.go.html to see an example of how to use CreateMountTarget API. func (client FileStorageClient) CreateMountTarget(ctx context.Context, request CreateMountTargetRequest) (response CreateMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1143,22 +1143,22 @@ func (client FileStorageClient) createMountTarget(ctx context.Context, request c // 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). +// Service (https://docs.oracle.com/iaas/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). +// Availability Domains (https://docs.oracle.com/iaas/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)). +// Oracle Cloud Identifier (OCID (https://docs.oracle.com/iaas/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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateOutboundConnector.go.html to see an example of how to use CreateOutboundConnector API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateOutboundConnector.go.html to see an example of how to use CreateOutboundConnector API. func (client FileStorageClient) CreateOutboundConnector(ctx context.Context, request CreateOutboundConnectorRequest) (response CreateOutboundConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1216,6 +1216,69 @@ func (client FileStorageClient) createOutboundConnector(ctx context.Context, req return response, err } +// CreateQuotaRule Create a file system, user, or group quota rule given the `fileSystemId`, `principalId`, `principalType` and +// `isHardQuota` parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateQuotaRule.go.html to see an example of how to use CreateQuotaRule API. +func (client FileStorageClient) CreateQuotaRule(ctx context.Context, request CreateQuotaRuleRequest) (response CreateQuotaRuleResponse, 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.createQuotaRule, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateQuotaRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateQuotaRuleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateQuotaRuleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateQuotaRuleResponse") + } + return +} + +// createQuotaRule implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createQuotaRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/quotaRules", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateQuotaRuleResponse + 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/CreateQuotaRule" + err = common.PostProcessServiceError(err, "FileStorage", "CreateQuotaRule", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + 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 @@ -1225,25 +1288,25 @@ func (client FileStorageClient) createOutboundConnector(ctx context.Context, req // 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 more information, see Using Replication (https://docs.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). +// Service (https://docs.oracle.com/iaas/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). +// Availability Domains (https://docs.oracle.com/iaas/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)). +// Oracle Cloud Identifier (OCID (https://docs.oracle.com/iaas/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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateReplication.go.html to see an example of how to use CreateReplication API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateReplication.go.html to see an example of how to use CreateReplication API. func (client FileStorageClient) CreateReplication(ctx context.Context, request CreateReplicationRequest) (response CreateReplicationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1306,7 +1369,7 @@ func (client FileStorageClient) createReplication(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateSnapshot.go.html to see an example of how to use CreateSnapshot API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateSnapshot.go.html to see an example of how to use CreateSnapshot API. func (client FileStorageClient) CreateSnapshot(ctx context.Context, request CreateSnapshotRequest) (response CreateSnapshotResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1368,7 +1431,7 @@ func (client FileStorageClient) createSnapshot(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteExport.go.html to see an example of how to use DeleteExport API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteExport.go.html to see an example of how to use DeleteExport API. func (client FileStorageClient) DeleteExport(ctx context.Context, request DeleteExportRequest) (response DeleteExportResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1427,7 +1490,7 @@ func (client FileStorageClient) deleteExport(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFileSystem.go.html to see an example of how to use DeleteFileSystem API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFileSystem.go.html to see an example of how to use DeleteFileSystem API. func (client FileStorageClient) DeleteFileSystem(ctx context.Context, request DeleteFileSystemRequest) (response DeleteFileSystemResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1484,7 +1547,7 @@ func (client FileStorageClient) deleteFileSystem(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFilesystemSnapshotPolicy.go.html to see an example of how to use DeleteFilesystemSnapshotPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFilesystemSnapshotPolicy.go.html to see an example of how to use DeleteFilesystemSnapshotPolicy API. func (client FileStorageClient) DeleteFilesystemSnapshotPolicy(ctx context.Context, request DeleteFilesystemSnapshotPolicyRequest) (response DeleteFilesystemSnapshotPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1542,7 +1605,7 @@ func (client FileStorageClient) deleteFilesystemSnapshotPolicy(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteMountTarget.go.html to see an example of how to use DeleteMountTarget API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteMountTarget.go.html to see an example of how to use DeleteMountTarget API. func (client FileStorageClient) DeleteMountTarget(ctx context.Context, request DeleteMountTargetRequest) (response DeleteMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1599,7 +1662,7 @@ func (client FileStorageClient) deleteMountTarget(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteOutboundConnector.go.html to see an example of how to use DeleteOutboundConnector API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteOutboundConnector.go.html to see an example of how to use DeleteOutboundConnector API. func (client FileStorageClient) DeleteOutboundConnector(ctx context.Context, request DeleteOutboundConnectorRequest) (response DeleteOutboundConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1652,11 +1715,68 @@ func (client FileStorageClient) deleteOutboundConnector(ctx context.Context, req return response, err } +// DeleteQuotaRule Remove a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteQuotaRule.go.html to see an example of how to use DeleteQuotaRule API. +func (client FileStorageClient) DeleteQuotaRule(ctx context.Context, request DeleteQuotaRuleRequest) (response DeleteQuotaRuleResponse, 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.deleteQuotaRule, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteQuotaRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteQuotaRuleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteQuotaRuleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteQuotaRuleResponse") + } + return +} + +// deleteQuotaRule implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteQuotaRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteQuotaRuleResponse + 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/DeleteQuotaRule" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteQuotaRule", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeleteReplication Deletes the specified replication and the the associated replication target. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplication.go.html to see an example of how to use DeleteReplication API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplication.go.html to see an example of how to use DeleteReplication API. func (client FileStorageClient) DeleteReplication(ctx context.Context, request DeleteReplicationRequest) (response DeleteReplicationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1716,7 +1836,7 @@ func (client FileStorageClient) deleteReplication(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplicationTarget.go.html to see an example of how to use DeleteReplicationTarget API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplicationTarget.go.html to see an example of how to use DeleteReplicationTarget API. func (client FileStorageClient) DeleteReplicationTarget(ctx context.Context, request DeleteReplicationTargetRequest) (response DeleteReplicationTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1773,7 +1893,7 @@ func (client FileStorageClient) deleteReplicationTarget(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteSnapshot.go.html to see an example of how to use DeleteSnapshot API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteSnapshot.go.html to see an example of how to use DeleteSnapshot API. func (client FileStorageClient) DeleteSnapshot(ctx context.Context, request DeleteSnapshotRequest) (response DeleteSnapshotResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1830,7 +1950,7 @@ func (client FileStorageClient) deleteSnapshot(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DetachClone.go.html to see an example of how to use DetachClone API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DetachClone.go.html to see an example of how to use DetachClone API. func (client FileStorageClient) DetachClone(ctx context.Context, request DetachCloneRequest) (response DetachCloneResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1887,7 +2007,7 @@ func (client FileStorageClient) detachClone(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/EstimateReplication.go.html to see an example of how to use EstimateReplication API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/EstimateReplication.go.html to see an example of how to use EstimateReplication API. func (client FileStorageClient) EstimateReplication(ctx context.Context, request EstimateReplicationRequest) (response EstimateReplicationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1944,7 +2064,7 @@ func (client FileStorageClient) estimateReplication(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExport.go.html to see an example of how to use GetExport API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExport.go.html to see an example of how to use GetExport API. func (client FileStorageClient) GetExport(ctx context.Context, request GetExportRequest) (response GetExportResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2001,7 +2121,7 @@ func (client FileStorageClient) getExport(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExportSet.go.html to see an example of how to use GetExportSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExportSet.go.html to see an example of how to use GetExportSet API. func (client FileStorageClient) GetExportSet(ctx context.Context, request GetExportSetRequest) (response GetExportSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2058,7 +2178,7 @@ func (client FileStorageClient) getExportSet(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFileSystem.go.html to see an example of how to use GetFileSystem API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFileSystem.go.html to see an example of how to use GetFileSystem API. func (client FileStorageClient) GetFileSystem(ctx context.Context, request GetFileSystemRequest) (response GetFileSystemResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2115,7 +2235,7 @@ func (client FileStorageClient) getFileSystem(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFilesystemSnapshotPolicy.go.html to see an example of how to use GetFilesystemSnapshotPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFilesystemSnapshotPolicy.go.html to see an example of how to use GetFilesystemSnapshotPolicy API. func (client FileStorageClient) GetFilesystemSnapshotPolicy(ctx context.Context, request GetFilesystemSnapshotPolicyRequest) (response GetFilesystemSnapshotPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2172,7 +2292,7 @@ func (client FileStorageClient) getFilesystemSnapshotPolicy(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetMountTarget.go.html to see an example of how to use GetMountTarget API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetMountTarget.go.html to see an example of how to use GetMountTarget API. func (client FileStorageClient) GetMountTarget(ctx context.Context, request GetMountTargetRequest) (response GetMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2229,7 +2349,7 @@ func (client FileStorageClient) getMountTarget(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetOutboundConnector.go.html to see an example of how to use GetOutboundConnector API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetOutboundConnector.go.html to see an example of how to use GetOutboundConnector API. func (client FileStorageClient) GetOutboundConnector(ctx context.Context, request GetOutboundConnectorRequest) (response GetOutboundConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2282,11 +2402,68 @@ func (client FileStorageClient) getOutboundConnector(ctx context.Context, reques return response, err } +// GetQuotaRule Get a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetQuotaRule.go.html to see an example of how to use GetQuotaRule API. +func (client FileStorageClient) GetQuotaRule(ctx context.Context, request GetQuotaRuleRequest) (response GetQuotaRuleResponse, 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.getQuotaRule, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetQuotaRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetQuotaRuleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetQuotaRuleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetQuotaRuleResponse") + } + return +} + +// getQuotaRule implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getQuotaRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetQuotaRuleResponse + 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/GetQuotaRule" + err = common.PostProcessServiceError(err, "FileStorage", "GetQuotaRule", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetReplication Gets the specified replication's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplication.go.html to see an example of how to use GetReplication API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplication.go.html to see an example of how to use GetReplication API. func (client FileStorageClient) GetReplication(ctx context.Context, request GetReplicationRequest) (response GetReplicationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2343,7 +2520,7 @@ func (client FileStorageClient) getReplication(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplicationTarget.go.html to see an example of how to use GetReplicationTarget API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplicationTarget.go.html to see an example of how to use GetReplicationTarget API. func (client FileStorageClient) GetReplicationTarget(ctx context.Context, request GetReplicationTargetRequest) (response GetReplicationTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2400,7 +2577,7 @@ func (client FileStorageClient) getReplicationTarget(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetSnapshot.go.html to see an example of how to use GetSnapshot API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetSnapshot.go.html to see an example of how to use GetSnapshot API. func (client FileStorageClient) GetSnapshot(ctx context.Context, request GetSnapshotRequest) (response GetSnapshotResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2457,7 +2634,7 @@ func (client FileStorageClient) getSnapshot(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExportSets.go.html to see an example of how to use ListExportSets API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExportSets.go.html to see an example of how to use ListExportSets API. func (client FileStorageClient) ListExportSets(ctx context.Context, request ListExportSetsRequest) (response ListExportSetsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2516,7 +2693,7 @@ func (client FileStorageClient) listExportSets(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExports.go.html to see an example of how to use ListExports API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExports.go.html to see an example of how to use ListExports API. func (client FileStorageClient) ListExports(ctx context.Context, request ListExportsRequest) (response ListExportsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2574,7 +2751,7 @@ func (client FileStorageClient) listExports(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFileSystems.go.html to see an example of how to use ListFileSystems API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFileSystems.go.html to see an example of how to use ListFileSystems API. func (client FileStorageClient) ListFileSystems(ctx context.Context, request ListFileSystemsRequest) (response ListFileSystemsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2631,7 +2808,7 @@ func (client FileStorageClient) listFileSystems(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFilesystemSnapshotPolicies.go.html to see an example of how to use ListFilesystemSnapshotPolicies API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFilesystemSnapshotPolicies.go.html to see an example of how to use ListFilesystemSnapshotPolicies API. func (client FileStorageClient) ListFilesystemSnapshotPolicies(ctx context.Context, request ListFilesystemSnapshotPoliciesRequest) (response ListFilesystemSnapshotPoliciesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2688,7 +2865,7 @@ func (client FileStorageClient) listFilesystemSnapshotPolicies(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListMountTargets.go.html to see an example of how to use ListMountTargets API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListMountTargets.go.html to see an example of how to use ListMountTargets API. func (client FileStorageClient) ListMountTargets(ctx context.Context, request ListMountTargetsRequest) (response ListMountTargetsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2761,7 +2938,7 @@ func (m *listoutboundconnectorsummary) UnmarshalPolymorphicJSON(data []byte) (in // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListOutboundConnectors.go.html to see an example of how to use ListOutboundConnectors API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListOutboundConnectors.go.html to see an example of how to use ListOutboundConnectors API. func (client FileStorageClient) ListOutboundConnectors(ctx context.Context, request ListOutboundConnectorsRequest) (response ListOutboundConnectorsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2814,11 +2991,68 @@ func (client FileStorageClient) listOutboundConnectors(ctx context.Context, requ return response, err } +// ListQuotaRules List user or group usages and their quota rules by certain principal type. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListQuotaRules.go.html to see an example of how to use ListQuotaRules API. +func (client FileStorageClient) ListQuotaRules(ctx context.Context, request ListQuotaRulesRequest) (response ListQuotaRulesResponse, 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.listQuotaRules, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListQuotaRulesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListQuotaRulesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListQuotaRulesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListQuotaRulesResponse") + } + return +} + +// listQuotaRules implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listQuotaRules(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems/{fileSystemId}/quotaRules", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListQuotaRulesResponse + 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/ListQuotaRules" + err = common.PostProcessServiceError(err, "FileStorage", "ListQuotaRules", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListReplicationTargets Lists the replication target resources in the specified compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplicationTargets.go.html to see an example of how to use ListReplicationTargets API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplicationTargets.go.html to see an example of how to use ListReplicationTargets API. func (client FileStorageClient) ListReplicationTargets(ctx context.Context, request ListReplicationTargetsRequest) (response ListReplicationTargetsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2875,7 +3109,7 @@ func (client FileStorageClient) listReplicationTargets(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplications.go.html to see an example of how to use ListReplications API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplications.go.html to see an example of how to use ListReplications API. func (client FileStorageClient) ListReplications(ctx context.Context, request ListReplicationsRequest) (response ListReplicationsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2936,7 +3170,7 @@ func (client FileStorageClient) listReplications(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListSnapshots.go.html to see an example of how to use ListSnapshots API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListSnapshots.go.html to see an example of how to use ListSnapshots API. func (client FileStorageClient) ListSnapshots(ctx context.Context, request ListSnapshotsRequest) (response ListSnapshotsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2997,7 +3231,7 @@ func (client FileStorageClient) listSnapshots(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/PauseFilesystemSnapshotPolicy.go.html to see an example of how to use PauseFilesystemSnapshotPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/PauseFilesystemSnapshotPolicy.go.html to see an example of how to use PauseFilesystemSnapshotPolicy API. func (client FileStorageClient) PauseFilesystemSnapshotPolicy(ctx context.Context, request PauseFilesystemSnapshotPolicyRequest) (response PauseFilesystemSnapshotPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3054,7 +3288,7 @@ func (client FileStorageClient) pauseFilesystemSnapshotPolicy(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveExportLock.go.html to see an example of how to use RemoveExportLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveExportLock.go.html to see an example of how to use RemoveExportLock API. func (client FileStorageClient) RemoveExportLock(ctx context.Context, request RemoveExportLockRequest) (response RemoveExportLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3111,7 +3345,7 @@ func (client FileStorageClient) removeExportLock(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFileSystemLock.go.html to see an example of how to use RemoveFileSystemLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFileSystemLock.go.html to see an example of how to use RemoveFileSystemLock API. func (client FileStorageClient) RemoveFileSystemLock(ctx context.Context, request RemoveFileSystemLockRequest) (response RemoveFileSystemLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3168,7 +3402,7 @@ func (client FileStorageClient) removeFileSystemLock(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFilesystemSnapshotPolicyLock.go.html to see an example of how to use RemoveFilesystemSnapshotPolicyLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFilesystemSnapshotPolicyLock.go.html to see an example of how to use RemoveFilesystemSnapshotPolicyLock API. func (client FileStorageClient) RemoveFilesystemSnapshotPolicyLock(ctx context.Context, request RemoveFilesystemSnapshotPolicyLockRequest) (response RemoveFilesystemSnapshotPolicyLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3225,7 +3459,7 @@ func (client FileStorageClient) removeFilesystemSnapshotPolicyLock(ctx context.C // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveMountTargetLock.go.html to see an example of how to use RemoveMountTargetLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveMountTargetLock.go.html to see an example of how to use RemoveMountTargetLock API. func (client FileStorageClient) RemoveMountTargetLock(ctx context.Context, request RemoveMountTargetLockRequest) (response RemoveMountTargetLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3282,7 +3516,7 @@ func (client FileStorageClient) removeMountTargetLock(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveOutboundConnectorLock.go.html to see an example of how to use RemoveOutboundConnectorLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveOutboundConnectorLock.go.html to see an example of how to use RemoveOutboundConnectorLock API. func (client FileStorageClient) RemoveOutboundConnectorLock(ctx context.Context, request RemoveOutboundConnectorLockRequest) (response RemoveOutboundConnectorLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3339,7 +3573,7 @@ func (client FileStorageClient) removeOutboundConnectorLock(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveReplicationLock.go.html to see an example of how to use RemoveReplicationLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveReplicationLock.go.html to see an example of how to use RemoveReplicationLock API. func (client FileStorageClient) RemoveReplicationLock(ctx context.Context, request RemoveReplicationLockRequest) (response RemoveReplicationLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3396,7 +3630,7 @@ func (client FileStorageClient) removeReplicationLock(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveSnapshotLock.go.html to see an example of how to use RemoveSnapshotLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveSnapshotLock.go.html to see an example of how to use RemoveSnapshotLock API. func (client FileStorageClient) RemoveSnapshotLock(ctx context.Context, request RemoveSnapshotLockRequest) (response RemoveSnapshotLockResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3453,7 +3687,7 @@ func (client FileStorageClient) removeSnapshotLock(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ScheduleDowngradeShapeMountTarget.go.html to see an example of how to use ScheduleDowngradeShapeMountTarget API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ScheduleDowngradeShapeMountTarget.go.html to see an example of how to use ScheduleDowngradeShapeMountTarget API. func (client FileStorageClient) ScheduleDowngradeShapeMountTarget(ctx context.Context, request ScheduleDowngradeShapeMountTargetRequest) (response ScheduleDowngradeShapeMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3506,6 +3740,70 @@ func (client FileStorageClient) scheduleDowngradeShapeMountTarget(ctx context.Co return response, err } +// ToggleQuotaRules Enable or disable quota enforcement for the file system. +// If `areQuotaRulesEnabled` = `true`, then the quota enforcement will be enabled. +// If `areQuotaRulesEnabled` = `false`, then the quota enforcement will be disabled. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ToggleQuotaRules.go.html to see an example of how to use ToggleQuotaRules API. +func (client FileStorageClient) ToggleQuotaRules(ctx context.Context, request ToggleQuotaRulesRequest) (response ToggleQuotaRulesResponse, 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.toggleQuotaRules, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ToggleQuotaRulesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ToggleQuotaRulesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ToggleQuotaRulesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ToggleQuotaRulesResponse") + } + return +} + +// toggleQuotaRules implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) toggleQuotaRules(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/toggleQuotaRules", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ToggleQuotaRulesResponse + 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/ToggleQuotaRules" + err = common.PostProcessServiceError(err, "FileStorage", "ToggleQuotaRules", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UnpauseFilesystemSnapshotPolicy This operation unpauses a paused file system snapshot policy and updates the lifecycle state of the file system snapshot policy from // INACTIVE to ACTIVE. By default, file system snapshot policies are in the ACTIVE state. When a file system snapshot policy is not paused, or in the ACTIVE state, file systems that are associated with the // policy will have snapshots created and deleted according to the schedules defined in the policy. @@ -3513,7 +3811,7 @@ func (client FileStorageClient) scheduleDowngradeShapeMountTarget(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UnpauseFilesystemSnapshotPolicy.go.html to see an example of how to use UnpauseFilesystemSnapshotPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UnpauseFilesystemSnapshotPolicy.go.html to see an example of how to use UnpauseFilesystemSnapshotPolicy API. func (client FileStorageClient) UnpauseFilesystemSnapshotPolicy(ctx context.Context, request UnpauseFilesystemSnapshotPolicyRequest) (response UnpauseFilesystemSnapshotPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3570,7 +3868,7 @@ func (client FileStorageClient) unpauseFilesystemSnapshotPolicy(ctx context.Cont // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateExport.go.html to see an example of how to use UpdateExport API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateExport.go.html to see an example of how to use UpdateExport API. func (client FileStorageClient) UpdateExport(ctx context.Context, request UpdateExportRequest) (response UpdateExportResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3627,7 +3925,7 @@ func (client FileStorageClient) updateExport(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateExportSet.go.html to see an example of how to use UpdateExportSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateExportSet.go.html to see an example of how to use UpdateExportSet API. func (client FileStorageClient) UpdateExportSet(ctx context.Context, request UpdateExportSetRequest) (response UpdateExportSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3685,7 +3983,7 @@ func (client FileStorageClient) updateExportSet(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateFileSystem.go.html to see an example of how to use UpdateFileSystem API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateFileSystem.go.html to see an example of how to use UpdateFileSystem API. func (client FileStorageClient) UpdateFileSystem(ctx context.Context, request UpdateFileSystemRequest) (response UpdateFileSystemResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3742,7 +4040,7 @@ func (client FileStorageClient) updateFileSystem(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateFilesystemSnapshotPolicy.go.html to see an example of how to use UpdateFilesystemSnapshotPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateFilesystemSnapshotPolicy.go.html to see an example of how to use UpdateFilesystemSnapshotPolicy API. func (client FileStorageClient) UpdateFilesystemSnapshotPolicy(ctx context.Context, request UpdateFilesystemSnapshotPolicyRequest) (response UpdateFilesystemSnapshotPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3799,7 +4097,7 @@ func (client FileStorageClient) updateFilesystemSnapshotPolicy(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateMountTarget.go.html to see an example of how to use UpdateMountTarget API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateMountTarget.go.html to see an example of how to use UpdateMountTarget API. func (client FileStorageClient) UpdateMountTarget(ctx context.Context, request UpdateMountTargetRequest) (response UpdateMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3856,7 +4154,7 @@ func (client FileStorageClient) updateMountTarget(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateOutboundConnector.go.html to see an example of how to use UpdateOutboundConnector API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateOutboundConnector.go.html to see an example of how to use UpdateOutboundConnector API. func (client FileStorageClient) UpdateOutboundConnector(ctx context.Context, request UpdateOutboundConnectorRequest) (response UpdateOutboundConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3909,11 +4207,68 @@ func (client FileStorageClient) updateOutboundConnector(ctx context.Context, req return response, err } +// UpdateQuotaRule Edit a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateQuotaRule.go.html to see an example of how to use UpdateQuotaRule API. +func (client FileStorageClient) UpdateQuotaRule(ctx context.Context, request UpdateQuotaRuleRequest) (response UpdateQuotaRuleResponse, 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.updateQuotaRule, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateQuotaRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateQuotaRuleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateQuotaRuleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateQuotaRuleResponse") + } + return +} + +// updateQuotaRule implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateQuotaRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateQuotaRuleResponse + 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/UpdateQuotaRule" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateQuotaRule", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateReplication Updates the information for the specified replication and its associated replication target. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateReplication.go.html to see an example of how to use UpdateReplication API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateReplication.go.html to see an example of how to use UpdateReplication API. func (client FileStorageClient) UpdateReplication(ctx context.Context, request UpdateReplicationRequest) (response UpdateReplicationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3970,7 +4325,7 @@ func (client FileStorageClient) updateReplication(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateSnapshot.go.html to see an example of how to use UpdateSnapshot API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateSnapshot.go.html to see an example of how to use UpdateSnapshot API. func (client FileStorageClient) UpdateSnapshot(ctx context.Context, request UpdateSnapshotRequest) (response UpdateSnapshotResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4027,7 +4382,7 @@ func (client FileStorageClient) updateSnapshot(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpgradeShapeMountTarget.go.html to see an example of how to use UpgradeShapeMountTarget API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpgradeShapeMountTarget.go.html to see an example of how to use UpgradeShapeMountTarget API. func (client FileStorageClient) UpgradeShapeMountTarget(ctx context.Context, request UpgradeShapeMountTargetRequest) (response UpgradeShapeMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4086,7 +4441,7 @@ func (client FileStorageClient) upgradeShapeMountTarget(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ValidateKeyTabs.go.html to see an example of how to use ValidateKeyTabs API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ValidateKeyTabs.go.html to see an example of how to use ValidateKeyTabs API. func (client FileStorageClient) ValidateKeyTabs(ctx context.Context, request ValidateKeyTabsRequest) (response ValidateKeyTabsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() 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 index 3f7407aac5..587fe029fc 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,18 +19,18 @@ import ( // FilesystemSnapshotPolicy A file system snapshot policy is used to automate snapshot creation and deletion. // It contains a list of snapshot schedules that define the frequency of // snapshot creation for the associated file systems and the retention period of snapshots taken on schedule. -// For more information, see Snapshot Scheduling (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/snapshot-policies-and-schedules.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). +// For more information, see Snapshot Scheduling (https://docs.oracle.com/iaas/Content/File/Tasks/snapshot-policies-and-schedules.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.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). type FilesystemSnapshotPolicy struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the file system snapshot policy. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The availability domain that the file system snapshot policy is in. May be unset using 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 file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. Id *string `mandatory:"true" json:"id"` // The current state of the file system snapshot policy. @@ -58,14 +58,18 @@ type FilesystemSnapshotPolicy 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` } func (m FilesystemSnapshotPolicy) String() string { @@ -82,7 +86,7 @@ func (m FilesystemSnapshotPolicy) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e71c3268fd..80bb68101d 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -23,10 +23,10 @@ type FilesystemSnapshotPolicySummary struct { // 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 file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the file system snapshot policy. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. Id *string `mandatory:"true" json:"id"` // The current state of this file system snapshot policy. @@ -51,14 +51,18 @@ type FilesystemSnapshotPolicySummary 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` } func (m FilesystemSnapshotPolicySummary) String() string { @@ -75,7 +79,7 @@ func (m FilesystemSnapshotPolicySummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_request_response.go index 519ebbf106..2566597767 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExport.go.html to see an example of how to use GetExportRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExport.go.html to see an example of how to use GetExportRequest. type GetExportRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the export. ExportId *string `mandatory:"true" contributesTo:"path" name:"exportId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetExportRequest) RetryPolicy() *common.RetryPolicy { func (request GetExportRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_set_request_response.go index 0610ac0264..3a84b22bd4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_set_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExportSet.go.html to see an example of how to use GetExportSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExportSet.go.html to see an example of how to use GetExportSetRequest. type GetExportSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export set. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the export set. ExportSetId *string `mandatory:"true" contributesTo:"path" name:"exportSetId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetExportSetRequest) RetryPolicy() *common.RetryPolicy { func (request GetExportSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_file_system_request_response.go index c6236dc735..1807f0ed37 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_file_system_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFileSystem.go.html to see an example of how to use GetFileSystemRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFileSystem.go.html to see an example of how to use GetFileSystemRequest. type GetFileSystemRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetFileSystemRequest) RetryPolicy() *common.RetryPolicy { func (request GetFileSystemRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9ed979be73..27009f2387 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFilesystemSnapshotPolicy.go.html to see an example of how to use GetFilesystemSnapshotPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFilesystemSnapshotPolicy.go.html to see an example of how to use GetFilesystemSnapshotPolicyRequest. type GetFilesystemSnapshotPolicyRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetFilesystemSnapshotPolicyRequest) RetryPolicy() *common.RetryPol func (request GetFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_mount_target_request_response.go index 31d25b8131..4650b1634d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_mount_target_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetMountTarget.go.html to see an example of how to use GetMountTargetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetMountTarget.go.html to see an example of how to use GetMountTargetRequest. type GetMountTargetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target. MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetMountTargetRequest) RetryPolicy() *common.RetryPolicy { func (request GetMountTargetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_outbound_connector_request_response.go index ded9f1761b..3d2feef9cb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_outbound_connector_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetOutboundConnector.go.html to see an example of how to use GetOutboundConnectorRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetOutboundConnector.go.html to see an example of how to use GetOutboundConnectorRequest. type GetOutboundConnectorRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the outbound connector. OutboundConnectorId *string `mandatory:"true" contributesTo:"path" name:"outboundConnectorId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetOutboundConnectorRequest) RetryPolicy() *common.RetryPolicy { func (request GetOutboundConnectorRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_quota_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_quota_rule_request_response.go new file mode 100644 index 0000000000..89d34400fe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_quota_rule_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 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" +) + +// GetQuotaRuleRequest wrapper for the GetQuotaRule operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetQuotaRule.go.html to see an example of how to use GetQuotaRuleRequest. +type GetQuotaRuleRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` + + // The identifier of the quota rule. It is the base64 encoded string of the tuple . + QuotaRuleId *string `mandatory:"true" contributesTo:"path" name:"quotaRuleId"` + + // 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 GetQuotaRuleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetQuotaRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetQuotaRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetQuotaRuleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetQuotaRuleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetQuotaRuleResponse wrapper for the GetQuotaRule operation +type GetQuotaRuleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The QuotaRule instance + QuotaRule `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 GetQuotaRuleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetQuotaRuleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_request_response.go index 57e2137d89..777baf26fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplication.go.html to see an example of how to use GetReplicationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplication.go.html to see an example of how to use GetReplicationRequest. type GetReplicationRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication. ReplicationId *string `mandatory:"true" contributesTo:"path" name:"replicationId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetReplicationRequest) RetryPolicy() *common.RetryPolicy { func (request GetReplicationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_request_response.go index 0fa5c2441a..00590f9c77 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplicationTarget.go.html to see an example of how to use GetReplicationTargetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplicationTarget.go.html to see an example of how to use GetReplicationTargetRequest. type GetReplicationTargetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication target. ReplicationTargetId *string `mandatory:"true" contributesTo:"path" name:"replicationTargetId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetReplicationTargetRequest) RetryPolicy() *common.RetryPolicy { func (request GetReplicationTargetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_snapshot_request_response.go index 57cb2d8599..a1f9a46d57 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_snapshot_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_snapshot_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetSnapshot.go.html to see an example of how to use GetSnapshotRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetSnapshot.go.html to see an example of how to use GetSnapshotRequest. type GetSnapshotRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the snapshot. SnapshotId *string `mandatory:"true" contributesTo:"path" name:"snapshotId"` // Unique identifier for the request. @@ -62,7 +62,7 @@ func (request GetSnapshotRequest) RetryPolicy() *common.RetryPolicy { func (request GetSnapshotRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1b111abadd..766dee62c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/kerberos.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/kerberos.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -22,7 +22,7 @@ type Kerberos struct { // The Kerberos realm that the mount target will join. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -46,7 +46,7 @@ func (m Kerberos) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 90f9bed859..54c5456b5a 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -47,7 +47,7 @@ func (m KerberosKeytabEntry) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b2b76d6208..9ddbcc1e73 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -40,7 +40,7 @@ func (m KeyTabSecretDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index ff6dab2133..1a907710cf 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -20,10 +20,10 @@ import ( // LdapBindAccount Account details for the LDAP bind account used by the 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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -52,16 +52,20 @@ type LdapBindAccount 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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. + // System tags for this resource. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The OCID (https://docs.oracle.com/iaas/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. @@ -116,6 +120,11 @@ func (m LdapBindAccount) GetDefinedTags() map[string]map[string]interface{} { return m.DefinedTags } +// GetSystemTags returns SystemTags +func (m LdapBindAccount) GetSystemTags() map[string]map[string]interface{} { + return m.SystemTags +} + func (m LdapBindAccount) String() string { return common.PointerString(m) } @@ -130,7 +139,7 @@ func (m LdapBindAccount) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go index 32dff3d6f7..cd26256337 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -20,10 +20,10 @@ import ( // LdapBindAccountSummary Summary information for the LDAP bind account used by the outbound connector. type LdapBindAccountSummary struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -52,15 +52,19 @@ type LdapBindAccountSummary 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + // The current state of this outbound connector. LifecycleState OutboundConnectorSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` } @@ -110,6 +114,11 @@ func (m LdapBindAccountSummary) GetDefinedTags() map[string]map[string]interface return m.DefinedTags } +// GetSystemTags returns SystemTags +func (m LdapBindAccountSummary) GetSystemTags() map[string]map[string]interface{} { + return m.SystemTags +} + func (m LdapBindAccountSummary) String() string { return common.PointerString(m) } @@ -124,7 +133,7 @@ func (m LdapBindAccountSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7048552cae..abc25e3a60 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -39,10 +39,10 @@ type LdapIdmap struct { // Example: `CN=Group,DC=domain,DC=com` GroupSearchBase *string `mandatory:"false" json:"groupSearchBase"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the first connector to use to communicate with the LDAP server. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first connector to use to communicate with the LDAP server. OutboundConnector1Id *string `mandatory:"false" json:"outboundConnector1Id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the second connector to use to communicate with the LDAP server. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second connector to use to communicate with the LDAP server. OutboundConnector2Id *string `mandatory:"false" json:"outboundConnector2Id"` } @@ -60,7 +60,7 @@ func (m LdapIdmap) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -70,15 +70,18 @@ type LdapIdmapSchemaTypeEnum string // Set of constants representing the allowable values for LdapIdmapSchemaTypeEnum const ( - LdapIdmapSchemaTypeRfc2307 LdapIdmapSchemaTypeEnum = "RFC2307" + LdapIdmapSchemaTypeRfc2307 LdapIdmapSchemaTypeEnum = "RFC2307" + LdapIdmapSchemaTypeRfc2307bis LdapIdmapSchemaTypeEnum = "RFC2307BIS" ) var mappingLdapIdmapSchemaTypeEnum = map[string]LdapIdmapSchemaTypeEnum{ - "RFC2307": LdapIdmapSchemaTypeRfc2307, + "RFC2307": LdapIdmapSchemaTypeRfc2307, + "RFC2307BIS": LdapIdmapSchemaTypeRfc2307bis, } var mappingLdapIdmapSchemaTypeEnumLowerCase = map[string]LdapIdmapSchemaTypeEnum{ - "rfc2307": LdapIdmapSchemaTypeRfc2307, + "rfc2307": LdapIdmapSchemaTypeRfc2307, + "rfc2307bis": LdapIdmapSchemaTypeRfc2307bis, } // GetLdapIdmapSchemaTypeEnumValues Enumerates the set of values for LdapIdmapSchemaTypeEnum @@ -94,6 +97,7 @@ func GetLdapIdmapSchemaTypeEnumValues() []LdapIdmapSchemaTypeEnum { func GetLdapIdmapSchemaTypeEnumStringValues() []string { return []string{ "RFC2307", + "RFC2307BIS", } } 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 index e89b223dad..107eb3c932 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExportSets.go.html to see an example of how to use ListExportSetsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExportSets.go.html to see an example of how to use ListExportSetsRequest. type ListExportSetsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -29,14 +29,14 @@ type ListExportSetsRequest struct { // or items to return in a paginated "List" call. // 1 is the minimum, 4096 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). + // see List Pagination (https://docs.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). + // see List Pagination (https://docs.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. @@ -47,7 +47,7 @@ type ListExportSetsRequest struct { // 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 + // Filter results by OCID (https://docs.oracle.com/iaas/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"` @@ -112,7 +112,7 @@ func (request ListExportSetsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -129,7 +129,7 @@ type ListExportSetsResponse struct { // 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). + // see List Pagination (https://docs.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 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 index 49fac638ee..94bf964a54 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,37 +15,37 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExports.go.html to see an example of how to use ListExportsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExports.go.html to see an example of how to use ListExportsRequest. type ListExportsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. // 1 is the minimum, 4096 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). + // see List Pagination (https://docs.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). + // see List Pagination (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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 + // Filter results by OCID (https://docs.oracle.com/iaas/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"` @@ -110,7 +110,7 @@ func (request ListExportsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -127,7 +127,7 @@ type ListExportsResponse struct { // 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). + // see List Pagination (https://docs.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 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 index 856d7d5d01..eda9ba35e8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFileSystems.go.html to see an example of how to use ListFileSystemsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFileSystems.go.html to see an example of how to use ListFileSystemsRequest. type ListFileSystemsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -29,14 +29,14 @@ type ListFileSystemsRequest struct { // or items to return in a paginated "List" call. // 1 is the minimum, 4096 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). + // see List Pagination (https://docs.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). + // see List Pagination (https://docs.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. @@ -47,17 +47,17 @@ type ListFileSystemsRequest struct { // 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 + // Filter results by OCID (https://docs.oracle.com/iaas/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). + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the snapshot used to create a cloned file system. See Cloning a File System (https://docs.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). + // The OCID (https://docs.oracle.com/iaas/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.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 file system snapshot policy + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy // that is associated with the file systems. FilesystemSnapshotPolicyId *string `mandatory:"false" contributesTo:"query" name:"filesystemSnapshotPolicyId"` @@ -122,7 +122,7 @@ func (request ListFileSystemsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -139,7 +139,7 @@ type ListFileSystemsResponse struct { // 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). + // see List Pagination (https://docs.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 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 index ab4b8fd53d..40ced276cf 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFilesystemSnapshotPolicies.go.html to see an example of how to use ListFilesystemSnapshotPoliciesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFilesystemSnapshotPolicies.go.html to see an example of how to use ListFilesystemSnapshotPoliciesRequest. type ListFilesystemSnapshotPoliciesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -29,14 +29,14 @@ type ListFilesystemSnapshotPoliciesRequest struct { // or items to return in a paginated "List" call. // 1 is the minimum, 4096 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). + // see List Pagination (https://docs.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). + // see List Pagination (https://docs.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. @@ -47,7 +47,7 @@ type ListFilesystemSnapshotPoliciesRequest struct { // 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 + // Filter results by OCID (https://docs.oracle.com/iaas/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"` @@ -112,7 +112,7 @@ func (request ListFilesystemSnapshotPoliciesRequest) ValidateEnumValue() (bool, 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -129,7 +129,7 @@ type ListFilesystemSnapshotPoliciesResponse struct { // 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). + // see List Pagination (https://docs.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 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 index b33852c919..fe5627ef8b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListMountTargets.go.html to see an example of how to use ListMountTargetsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListMountTargets.go.html to see an example of how to use ListMountTargetsRequest. type ListMountTargetsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -29,28 +29,28 @@ type ListMountTargetsRequest struct { // or items to return in a paginated "List" call. // 1 is the minimum, 4096 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). + // see List Pagination (https://docs.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). + // see List Pagination (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/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 + // Filter results by OCID (https://docs.oracle.com/iaas/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"` @@ -115,7 +115,7 @@ func (request ListMountTargetsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -132,7 +132,7 @@ type ListMountTargetsResponse struct { // 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). + // see List Pagination (https://docs.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 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 index d054125987..9b4d06773c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListOutboundConnectors.go.html to see an example of how to use ListOutboundConnectorsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListOutboundConnectors.go.html to see an example of how to use ListOutboundConnectorsRequest. type ListOutboundConnectorsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -29,14 +29,14 @@ type ListOutboundConnectorsRequest struct { // or items to return in a paginated "List" call. // 1 is the minimum, 4096 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). + // see List Pagination (https://docs.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). + // see List Pagination (https://docs.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 @@ -47,7 +47,7 @@ type ListOutboundConnectorsRequest struct { // 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 + // Filter results by OCID (https://docs.oracle.com/iaas/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"` @@ -112,7 +112,7 @@ func (request ListOutboundConnectorsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -129,7 +129,7 @@ type ListOutboundConnectorsResponse struct { // 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). + // see List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_quota_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_quota_rules_request_response.go new file mode 100644 index 0000000000..73966620e8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_quota_rules_request_response.go @@ -0,0 +1,239 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 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" +) + +// ListQuotaRulesRequest wrapper for the ListQuotaRules operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListQuotaRules.go.html to see an example of how to use ListQuotaRulesRequest. +type ListQuotaRulesRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` + + // The type of the owner of this quota rule and usage. + PrincipalType ListQuotaRulesPrincipalTypeEnum `mandatory:"true" contributesTo:"query" name:"principalType" omitEmpty:"true"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 4096 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // An identifier for the user or the group associated with quota rule and usage. UNIX-like operating systems use this integer value to + // identify a user or group to manage access control. + PrincipalId *int `mandatory:"false" contributesTo:"query" name:"principalId"` + + // An option to display only the users or groups that violate their quota rules. + // If `areViolatorsOnly` is false, results report all the quota and usage. + // If `areViolatorsOnly` is true, results only report the quota and usage for + // the users or groups that violate their quota rules. + AreViolatorsOnly *bool `mandatory:"false" contributesTo:"query" name:"areViolatorsOnly"` + + // 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 ListQuotaRulesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // 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 ListQuotaRulesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListQuotaRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListQuotaRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListQuotaRulesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListQuotaRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListQuotaRulesPrincipalTypeEnum(string(request.PrincipalType)); !ok && request.PrincipalType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PrincipalType: %s. Supported values are: %s.", request.PrincipalType, strings.Join(GetListQuotaRulesPrincipalTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingListQuotaRulesSortOrderEnum(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(GetListQuotaRulesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListQuotaRulesResponse wrapper for the ListQuotaRules operation +type ListQuotaRulesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []QuotaRuleSummary instances + Items []QuotaRuleSummary `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.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 ListQuotaRulesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListQuotaRulesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListQuotaRulesPrincipalTypeEnum Enum with underlying type: string +type ListQuotaRulesPrincipalTypeEnum string + +// Set of constants representing the allowable values for ListQuotaRulesPrincipalTypeEnum +const ( + ListQuotaRulesPrincipalTypeFileSystemLevel ListQuotaRulesPrincipalTypeEnum = "FILE_SYSTEM_LEVEL" + ListQuotaRulesPrincipalTypeDefaultGroup ListQuotaRulesPrincipalTypeEnum = "DEFAULT_GROUP" + ListQuotaRulesPrincipalTypeDefaultUser ListQuotaRulesPrincipalTypeEnum = "DEFAULT_USER" + ListQuotaRulesPrincipalTypeIndividualGroup ListQuotaRulesPrincipalTypeEnum = "INDIVIDUAL_GROUP" + ListQuotaRulesPrincipalTypeIndividualUser ListQuotaRulesPrincipalTypeEnum = "INDIVIDUAL_USER" +) + +var mappingListQuotaRulesPrincipalTypeEnum = map[string]ListQuotaRulesPrincipalTypeEnum{ + "FILE_SYSTEM_LEVEL": ListQuotaRulesPrincipalTypeFileSystemLevel, + "DEFAULT_GROUP": ListQuotaRulesPrincipalTypeDefaultGroup, + "DEFAULT_USER": ListQuotaRulesPrincipalTypeDefaultUser, + "INDIVIDUAL_GROUP": ListQuotaRulesPrincipalTypeIndividualGroup, + "INDIVIDUAL_USER": ListQuotaRulesPrincipalTypeIndividualUser, +} + +var mappingListQuotaRulesPrincipalTypeEnumLowerCase = map[string]ListQuotaRulesPrincipalTypeEnum{ + "file_system_level": ListQuotaRulesPrincipalTypeFileSystemLevel, + "default_group": ListQuotaRulesPrincipalTypeDefaultGroup, + "default_user": ListQuotaRulesPrincipalTypeDefaultUser, + "individual_group": ListQuotaRulesPrincipalTypeIndividualGroup, + "individual_user": ListQuotaRulesPrincipalTypeIndividualUser, +} + +// GetListQuotaRulesPrincipalTypeEnumValues Enumerates the set of values for ListQuotaRulesPrincipalTypeEnum +func GetListQuotaRulesPrincipalTypeEnumValues() []ListQuotaRulesPrincipalTypeEnum { + values := make([]ListQuotaRulesPrincipalTypeEnum, 0) + for _, v := range mappingListQuotaRulesPrincipalTypeEnum { + values = append(values, v) + } + return values +} + +// GetListQuotaRulesPrincipalTypeEnumStringValues Enumerates the set of values in String for ListQuotaRulesPrincipalTypeEnum +func GetListQuotaRulesPrincipalTypeEnumStringValues() []string { + return []string{ + "FILE_SYSTEM_LEVEL", + "DEFAULT_GROUP", + "DEFAULT_USER", + "INDIVIDUAL_GROUP", + "INDIVIDUAL_USER", + } +} + +// GetMappingListQuotaRulesPrincipalTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListQuotaRulesPrincipalTypeEnum(val string) (ListQuotaRulesPrincipalTypeEnum, bool) { + enum, ok := mappingListQuotaRulesPrincipalTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListQuotaRulesSortOrderEnum Enum with underlying type: string +type ListQuotaRulesSortOrderEnum string + +// Set of constants representing the allowable values for ListQuotaRulesSortOrderEnum +const ( + ListQuotaRulesSortOrderAsc ListQuotaRulesSortOrderEnum = "ASC" + ListQuotaRulesSortOrderDesc ListQuotaRulesSortOrderEnum = "DESC" +) + +var mappingListQuotaRulesSortOrderEnum = map[string]ListQuotaRulesSortOrderEnum{ + "ASC": ListQuotaRulesSortOrderAsc, + "DESC": ListQuotaRulesSortOrderDesc, +} + +var mappingListQuotaRulesSortOrderEnumLowerCase = map[string]ListQuotaRulesSortOrderEnum{ + "asc": ListQuotaRulesSortOrderAsc, + "desc": ListQuotaRulesSortOrderDesc, +} + +// GetListQuotaRulesSortOrderEnumValues Enumerates the set of values for ListQuotaRulesSortOrderEnum +func GetListQuotaRulesSortOrderEnumValues() []ListQuotaRulesSortOrderEnum { + values := make([]ListQuotaRulesSortOrderEnum, 0) + for _, v := range mappingListQuotaRulesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListQuotaRulesSortOrderEnumStringValues Enumerates the set of values in String for ListQuotaRulesSortOrderEnum +func GetListQuotaRulesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListQuotaRulesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListQuotaRulesSortOrderEnum(val string) (ListQuotaRulesSortOrderEnum, bool) { + enum, ok := mappingListQuotaRulesSortOrderEnumLowerCase[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 index b2198900b8..3fd2e0a5e5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplicationTargets.go.html to see an example of how to use ListReplicationTargetsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplicationTargets.go.html to see an example of how to use ListReplicationTargetsRequest. type ListReplicationTargetsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -29,14 +29,14 @@ type ListReplicationTargetsRequest struct { // or items to return in a paginated "List" call. // 1 is the minimum, 4096 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). + // see List Pagination (https://docs.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). + // see List Pagination (https://docs.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 @@ -47,7 +47,7 @@ type ListReplicationTargetsRequest struct { // 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 + // Filter results by OCID (https://docs.oracle.com/iaas/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"` @@ -112,7 +112,7 @@ func (request ListReplicationTargetsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -129,7 +129,7 @@ type ListReplicationTargetsResponse struct { // 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). + // see List Pagination (https://docs.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 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 index 5ddf9c398c..30d872bceb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplications.go.html to see an example of how to use ListReplicationsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplications.go.html to see an example of how to use ListReplicationsRequest. type ListReplicationsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + // The OCID (https://docs.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. @@ -29,14 +29,14 @@ type ListReplicationsRequest struct { // or items to return in a paginated "List" call. // 1 is the minimum, 4096 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). + // see List Pagination (https://docs.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). + // see List Pagination (https://docs.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 @@ -47,7 +47,7 @@ type ListReplicationsRequest struct { // 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 + // Filter results by OCID (https://docs.oracle.com/iaas/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"` @@ -66,7 +66,7 @@ type ListReplicationsRequest struct { // If 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -115,7 +115,7 @@ func (request ListReplicationsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -132,7 +132,7 @@ type ListReplicationsResponse struct { // 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). + // see List Pagination (https://docs.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 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 index 1b896654fa..416adf168c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,39 +15,39 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListSnapshots.go.html to see an example of how to use ListSnapshotsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListSnapshots.go.html to see an example of how to use ListSnapshotsRequest. 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). + // see List Pagination (https://docs.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). + // see List Pagination (https://docs.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 + // Filter results by OCID (https://docs.oracle.com/iaas/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 file system snapshot policy + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy // that is 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. + // The OCID (https://docs.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/Content/General/Concepts/identifiers.htm) of the file system. + // The OCID (https://docs.oracle.com/iaas/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 @@ -102,7 +102,7 @@ func (request ListSnapshotsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -119,7 +119,7 @@ type ListSnapshotsResponse struct { // 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). + // see List Pagination (https://docs.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 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 index ea4973ae80..7675f63dec 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -21,7 +21,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -29,7 +29,7 @@ type MountTarget struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target. Id *string `mandatory:"true" json:"id"` // Additional information about the current 'lifecycleState'. @@ -41,7 +41,7 @@ type MountTarget struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -54,7 +54,7 @@ type MountTarget struct { // 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 + // The OCID (https://docs.oracle.com/iaas/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"` @@ -64,10 +64,10 @@ type MountTarget struct { 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 list of Network Security Group OCIDs (https://docs.oracle.com/iaas/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). + // For more information about NSGs, see Security Rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). NsgIds []string `mandatory:"false" json:"nsgIds"` Kerberos *Kerberos `mandatory:"false" json:"kerberos"` @@ -93,14 +93,24 @@ type MountTarget 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. + // Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}` + SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` } func (m MountTarget) String() string { @@ -120,7 +130,7 @@ func (m MountTarget) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1e2ce1dd60..d89b99b9ff 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -27,7 +27,7 @@ type MountTargetSummary struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target. Id *string `mandatory:"true" json:"id"` // The current state of the mount target. @@ -36,7 +36,7 @@ type MountTargetSummary struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -49,15 +49,15 @@ type MountTargetSummary struct { // 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 + // The OCID (https://docs.oracle.com/iaas/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"` - // A list of Network Security Group OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with this mount target. + // A list of Network Security Group OCIDs (https://docs.oracle.com/iaas/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). + // For more information about NSGs, see Security Rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). NsgIds []string `mandatory:"false" json:"nsgIds"` // The date and time the mount target current billing cycle will end, expressed in @@ -82,14 +82,24 @@ type MountTargetSummary 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. + // Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}` + SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` } func (m MountTargetSummary) String() string { @@ -106,7 +116,7 @@ func (m MountTargetSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index feb2cc8065..b3c9ce9331 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -21,10 +21,10 @@ import ( // An outbound connector contains 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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the outbound connector. GetId() *string // The current state of this outbound connector. @@ -50,14 +50,18 @@ type OutboundConnector interface { // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` GetDefinedTags() map[string]map[string]interface{} + + // System tags for this resource. + // System tags are applied to resources by internal OCI services. + GetSystemTags() map[string]map[string]interface{} } type outboundconnector struct { @@ -66,6 +70,7 @@ type outboundconnector struct { Locks []ResourceLock `mandatory:"false" json:"locks"` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` CompartmentId *string `mandatory:"true" json:"compartmentId"` Id *string `mandatory:"true" json:"id"` LifecycleState OutboundConnectorLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` @@ -94,6 +99,7 @@ func (m *outboundconnector) UnmarshalJSON(data []byte) error { m.Locks = s.Model.Locks m.FreeformTags = s.Model.FreeformTags m.DefinedTags = s.Model.DefinedTags + m.SystemTags = s.Model.SystemTags m.ConnectorType = s.Model.ConnectorType return err @@ -113,7 +119,7 @@ func (m *outboundconnector) UnmarshalPolymorphicJSON(data []byte) (interface{}, err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for OutboundConnector: %s.", m.ConnectorType) + common.Logf("Received unsupported enum value for OutboundConnector: %s.", m.ConnectorType) return *m, nil } } @@ -138,6 +144,11 @@ func (m outboundconnector) GetDefinedTags() map[string]map[string]interface{} { return m.DefinedTags } +// GetSystemTags returns SystemTags +func (m outboundconnector) GetSystemTags() map[string]map[string]interface{} { + return m.SystemTags +} + // GetCompartmentId returns CompartmentId func (m outboundconnector) GetCompartmentId() *string { return m.CompartmentId @@ -177,7 +188,7 @@ func (m outboundconnector) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4e99ad99eb..00d2ec51fa 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -20,10 +20,10 @@ import ( // OutboundConnectorSummary Summary information for an 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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the outbound connector. GetId() *string // The current state of this outbound connector. @@ -49,14 +49,18 @@ type OutboundConnectorSummary interface { // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` GetDefinedTags() map[string]map[string]interface{} + + // System tags for this resource. + // System tags are applied to resources by internal OCI services. + GetSystemTags() map[string]map[string]interface{} } type outboundconnectorsummary struct { @@ -65,6 +69,7 @@ type outboundconnectorsummary struct { Locks []ResourceLock `mandatory:"false" json:"locks"` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` CompartmentId *string `mandatory:"true" json:"compartmentId"` Id *string `mandatory:"true" json:"id"` LifecycleState OutboundConnectorSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` @@ -93,6 +98,7 @@ func (m *outboundconnectorsummary) UnmarshalJSON(data []byte) error { m.Locks = s.Model.Locks m.FreeformTags = s.Model.FreeformTags m.DefinedTags = s.Model.DefinedTags + m.SystemTags = s.Model.SystemTags m.ConnectorType = s.Model.ConnectorType return err @@ -112,7 +118,7 @@ func (m *outboundconnectorsummary) UnmarshalPolymorphicJSON(data []byte) (interf err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for OutboundConnectorSummary: %s.", m.ConnectorType) + common.Logf("Received unsupported enum value for OutboundConnectorSummary: %s.", m.ConnectorType) return *m, nil } } @@ -137,6 +143,11 @@ func (m outboundconnectorsummary) GetDefinedTags() map[string]map[string]interfa return m.DefinedTags } +// GetSystemTags returns SystemTags +func (m outboundconnectorsummary) GetSystemTags() map[string]map[string]interface{} { + return m.SystemTags +} + // GetCompartmentId returns CompartmentId func (m outboundconnectorsummary) GetCompartmentId() *string { return m.CompartmentId @@ -176,7 +187,7 @@ func (m outboundconnectorsummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ed055a261b..95b280a3ee 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/PauseFilesystemSnapshotPolicy.go.html to see an example of how to use PauseFilesystemSnapshotPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/PauseFilesystemSnapshotPolicy.go.html to see an example of how to use PauseFilesystemSnapshotPolicyRequest. type PauseFilesystemSnapshotPolicyRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` // For optimistic concurrency control. In the PUT or DELETE call @@ -72,7 +72,7 @@ func (request PauseFilesystemSnapshotPolicyRequest) RetryPolicy() *common.RetryP func (request PauseFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/quota_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/quota_rule.go new file mode 100644 index 0000000000..c4ba1f1596 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/quota_rule.go @@ -0,0 +1,131 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// QuotaRule A rule that can restrict the logical space that a user or group can consume in a file system. +type QuotaRule struct { + + // The identifier of the quota rule. It is the base64 encoded string of the tuple . + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file System. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // Whether the quota rule will be enforced. + // If `isHardQuota` is true, the quota rule is enforced so that the write is blocked if usage + // exceeds the hard quota limit. + // If `isHardQuota` is false, writes succeed even if usage exceeds the soft quota limit, but the quota rule is violated. + IsHardQuota *bool `mandatory:"true" json:"isHardQuota"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `UserXYZ's quota` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The value of the quota rule in gigabytes. + QuotaLimitInGigabytes *int `mandatory:"true" json:"quotaLimitInGigabytes"` + + // The date and time the quota rule 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 date and time the quota rule was last updated, expressed in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // The type of the owner of this quota rule and usage. + PrincipalType QuotaRulePrincipalTypeEnum `mandatory:"false" json:"principalType,omitempty"` + + // An identifier for the user or the group associated with quota rule and usage. UNIX-like operating systems use this integer value to + // identify a user or group to manage access control. + PrincipalId *int `mandatory:"false" json:"principalId"` +} + +func (m QuotaRule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m QuotaRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingQuotaRulePrincipalTypeEnum(string(m.PrincipalType)); !ok && m.PrincipalType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PrincipalType: %s. Supported values are: %s.", m.PrincipalType, strings.Join(GetQuotaRulePrincipalTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// QuotaRulePrincipalTypeEnum Enum with underlying type: string +type QuotaRulePrincipalTypeEnum string + +// Set of constants representing the allowable values for QuotaRulePrincipalTypeEnum +const ( + QuotaRulePrincipalTypeFileSystemLevel QuotaRulePrincipalTypeEnum = "FILE_SYSTEM_LEVEL" + QuotaRulePrincipalTypeDefaultGroup QuotaRulePrincipalTypeEnum = "DEFAULT_GROUP" + QuotaRulePrincipalTypeDefaultUser QuotaRulePrincipalTypeEnum = "DEFAULT_USER" + QuotaRulePrincipalTypeIndividualGroup QuotaRulePrincipalTypeEnum = "INDIVIDUAL_GROUP" + QuotaRulePrincipalTypeIndividualUser QuotaRulePrincipalTypeEnum = "INDIVIDUAL_USER" +) + +var mappingQuotaRulePrincipalTypeEnum = map[string]QuotaRulePrincipalTypeEnum{ + "FILE_SYSTEM_LEVEL": QuotaRulePrincipalTypeFileSystemLevel, + "DEFAULT_GROUP": QuotaRulePrincipalTypeDefaultGroup, + "DEFAULT_USER": QuotaRulePrincipalTypeDefaultUser, + "INDIVIDUAL_GROUP": QuotaRulePrincipalTypeIndividualGroup, + "INDIVIDUAL_USER": QuotaRulePrincipalTypeIndividualUser, +} + +var mappingQuotaRulePrincipalTypeEnumLowerCase = map[string]QuotaRulePrincipalTypeEnum{ + "file_system_level": QuotaRulePrincipalTypeFileSystemLevel, + "default_group": QuotaRulePrincipalTypeDefaultGroup, + "default_user": QuotaRulePrincipalTypeDefaultUser, + "individual_group": QuotaRulePrincipalTypeIndividualGroup, + "individual_user": QuotaRulePrincipalTypeIndividualUser, +} + +// GetQuotaRulePrincipalTypeEnumValues Enumerates the set of values for QuotaRulePrincipalTypeEnum +func GetQuotaRulePrincipalTypeEnumValues() []QuotaRulePrincipalTypeEnum { + values := make([]QuotaRulePrincipalTypeEnum, 0) + for _, v := range mappingQuotaRulePrincipalTypeEnum { + values = append(values, v) + } + return values +} + +// GetQuotaRulePrincipalTypeEnumStringValues Enumerates the set of values in String for QuotaRulePrincipalTypeEnum +func GetQuotaRulePrincipalTypeEnumStringValues() []string { + return []string{ + "FILE_SYSTEM_LEVEL", + "DEFAULT_GROUP", + "DEFAULT_USER", + "INDIVIDUAL_GROUP", + "INDIVIDUAL_USER", + } +} + +// GetMappingQuotaRulePrincipalTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingQuotaRulePrincipalTypeEnum(val string) (QuotaRulePrincipalTypeEnum, bool) { + enum, ok := mappingQuotaRulePrincipalTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/quota_rule_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/quota_rule_summary.go new file mode 100644 index 0000000000..5abb884067 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/quota_rule_summary.go @@ -0,0 +1,140 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// QuotaRuleSummary Summary information for a principal's usage and quota rule. +type QuotaRuleSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // The type of the owner of this quota rule and usage. + PrincipalType QuotaRuleSummaryPrincipalTypeEnum `mandatory:"true" json:"principalType"` + + // An identifier for the user or the group associated with quota rule and usage. UNIX-like operating systems use this integer value to + // identify a user or group to manage access control. + PrincipalId *int `mandatory:"true" json:"principalId"` + + // The usage value corresponding to this principal in bytes. + UsageInBytes *int64 `mandatory:"true" json:"usageInBytes"` + + // The identifier of the quota rule. It is the base64 encoded string of the tuple . + Id *string `mandatory:"false" json:"id"` + + // Whether the quota rule will be enforced. + // If `isHardQuota` is true, the quota rule is enforced so that the write is blocked if usage + // exceeds the hard quota limit. + // If `isHardQuota` is false, writes succeed even if usage exceeds the soft quota limit, but the quota rule is violated. + IsHardQuota *bool `mandatory:"false" json:"isHardQuota"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `UserXYZ's quota` + DisplayName *string `mandatory:"false" json:"displayName"` + + // The value of the quota rule in gigabytes. + QuotaLimitInGigabytes *int `mandatory:"false" json:"quotaLimitInGigabytes"` + + // The date and time the quota rule 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:"false" json:"timeCreated"` + + // The date and time the quota rule was last updated, expressed in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // An option to display only the users or groups that violate their quota rules. + // If `areViolatorsOnly` is false, results report all the quota and usage. + // If `areViolatorsOnly` is true, results only report the quota and usage for + // the users or groups that violate their quota rules. + AreViolatorsOnly *bool `mandatory:"false" json:"areViolatorsOnly"` +} + +func (m QuotaRuleSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m QuotaRuleSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingQuotaRuleSummaryPrincipalTypeEnum(string(m.PrincipalType)); !ok && m.PrincipalType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PrincipalType: %s. Supported values are: %s.", m.PrincipalType, strings.Join(GetQuotaRuleSummaryPrincipalTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// QuotaRuleSummaryPrincipalTypeEnum Enum with underlying type: string +type QuotaRuleSummaryPrincipalTypeEnum string + +// Set of constants representing the allowable values for QuotaRuleSummaryPrincipalTypeEnum +const ( + QuotaRuleSummaryPrincipalTypeFileSystemLevel QuotaRuleSummaryPrincipalTypeEnum = "FILE_SYSTEM_LEVEL" + QuotaRuleSummaryPrincipalTypeDefaultGroup QuotaRuleSummaryPrincipalTypeEnum = "DEFAULT_GROUP" + QuotaRuleSummaryPrincipalTypeDefaultUser QuotaRuleSummaryPrincipalTypeEnum = "DEFAULT_USER" + QuotaRuleSummaryPrincipalTypeIndividualGroup QuotaRuleSummaryPrincipalTypeEnum = "INDIVIDUAL_GROUP" + QuotaRuleSummaryPrincipalTypeIndividualUser QuotaRuleSummaryPrincipalTypeEnum = "INDIVIDUAL_USER" +) + +var mappingQuotaRuleSummaryPrincipalTypeEnum = map[string]QuotaRuleSummaryPrincipalTypeEnum{ + "FILE_SYSTEM_LEVEL": QuotaRuleSummaryPrincipalTypeFileSystemLevel, + "DEFAULT_GROUP": QuotaRuleSummaryPrincipalTypeDefaultGroup, + "DEFAULT_USER": QuotaRuleSummaryPrincipalTypeDefaultUser, + "INDIVIDUAL_GROUP": QuotaRuleSummaryPrincipalTypeIndividualGroup, + "INDIVIDUAL_USER": QuotaRuleSummaryPrincipalTypeIndividualUser, +} + +var mappingQuotaRuleSummaryPrincipalTypeEnumLowerCase = map[string]QuotaRuleSummaryPrincipalTypeEnum{ + "file_system_level": QuotaRuleSummaryPrincipalTypeFileSystemLevel, + "default_group": QuotaRuleSummaryPrincipalTypeDefaultGroup, + "default_user": QuotaRuleSummaryPrincipalTypeDefaultUser, + "individual_group": QuotaRuleSummaryPrincipalTypeIndividualGroup, + "individual_user": QuotaRuleSummaryPrincipalTypeIndividualUser, +} + +// GetQuotaRuleSummaryPrincipalTypeEnumValues Enumerates the set of values for QuotaRuleSummaryPrincipalTypeEnum +func GetQuotaRuleSummaryPrincipalTypeEnumValues() []QuotaRuleSummaryPrincipalTypeEnum { + values := make([]QuotaRuleSummaryPrincipalTypeEnum, 0) + for _, v := range mappingQuotaRuleSummaryPrincipalTypeEnum { + values = append(values, v) + } + return values +} + +// GetQuotaRuleSummaryPrincipalTypeEnumStringValues Enumerates the set of values in String for QuotaRuleSummaryPrincipalTypeEnum +func GetQuotaRuleSummaryPrincipalTypeEnumStringValues() []string { + return []string{ + "FILE_SYSTEM_LEVEL", + "DEFAULT_GROUP", + "DEFAULT_USER", + "INDIVIDUAL_GROUP", + "INDIVIDUAL_USER", + } +} + +// GetMappingQuotaRuleSummaryPrincipalTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingQuotaRuleSummaryPrincipalTypeEnum(val string) (QuotaRuleSummaryPrincipalTypeEnum, bool) { + enum, ok := mappingQuotaRuleSummaryPrincipalTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_export_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_export_lock_request_response.go index 9eb7c4c578..1d4b06bfa4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_export_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_export_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveExportLock.go.html to see an example of how to use RemoveExportLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveExportLock.go.html to see an example of how to use RemoveExportLockRequest. type RemoveExportLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the export. ExportId *string `mandatory:"true" contributesTo:"path" name:"exportId"` // The details to be updated for the RemoveLock. @@ -72,7 +72,7 @@ func (request RemoveExportLockRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveExportLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_file_system_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_file_system_lock_request_response.go index ca3ebc5e43..f64d6fe7fb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_file_system_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_file_system_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFileSystemLock.go.html to see an example of how to use RemoveFileSystemLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFileSystemLock.go.html to see an example of how to use RemoveFileSystemLockRequest. type RemoveFileSystemLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` // The details to be updated for the RemoveLock. @@ -72,7 +72,7 @@ func (request RemoveFileSystemLockRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveFileSystemLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_filesystem_snapshot_policy_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_filesystem_snapshot_policy_lock_request_response.go index 5cb3d00bd8..3d480a6a7a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_filesystem_snapshot_policy_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_filesystem_snapshot_policy_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFilesystemSnapshotPolicyLock.go.html to see an example of how to use RemoveFilesystemSnapshotPolicyLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFilesystemSnapshotPolicyLock.go.html to see an example of how to use RemoveFilesystemSnapshotPolicyLockRequest. type RemoveFilesystemSnapshotPolicyLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` // The details to be updated for the RemoveLock. @@ -72,7 +72,7 @@ func (request RemoveFilesystemSnapshotPolicyLockRequest) RetryPolicy() *common.R func (request RemoveFilesystemSnapshotPolicyLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_mount_target_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_mount_target_lock_request_response.go index d2a4204175..385adb8f5f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_mount_target_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_mount_target_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveMountTargetLock.go.html to see an example of how to use RemoveMountTargetLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveMountTargetLock.go.html to see an example of how to use RemoveMountTargetLockRequest. type RemoveMountTargetLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target. MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` // The details to be updated for the RemoveLock. @@ -72,7 +72,7 @@ func (request RemoveMountTargetLockRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveMountTargetLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_outbound_connector_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_outbound_connector_lock_request_response.go index b6693a29a7..ad15ea39ef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_outbound_connector_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_outbound_connector_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveOutboundConnectorLock.go.html to see an example of how to use RemoveOutboundConnectorLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveOutboundConnectorLock.go.html to see an example of how to use RemoveOutboundConnectorLockRequest. type RemoveOutboundConnectorLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the outbound connector. OutboundConnectorId *string `mandatory:"true" contributesTo:"path" name:"outboundConnectorId"` // The details to be updated for the RemoveLock. @@ -72,7 +72,7 @@ func (request RemoveOutboundConnectorLockRequest) RetryPolicy() *common.RetryPol func (request RemoveOutboundConnectorLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_replication_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_replication_lock_request_response.go index cc4b29ac48..30a330bd2b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_replication_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_replication_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveReplicationLock.go.html to see an example of how to use RemoveReplicationLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveReplicationLock.go.html to see an example of how to use RemoveReplicationLockRequest. type RemoveReplicationLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication. ReplicationId *string `mandatory:"true" contributesTo:"path" name:"replicationId"` // The details to be updated for the RemoveLock. @@ -72,7 +72,7 @@ func (request RemoveReplicationLockRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveReplicationLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_snapshot_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_snapshot_lock_request_response.go index 64e3626df2..1b000da7b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_snapshot_lock_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_snapshot_lock_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveSnapshotLock.go.html to see an example of how to use RemoveSnapshotLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveSnapshotLock.go.html to see an example of how to use RemoveSnapshotLockRequest. type RemoveSnapshotLockRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the snapshot. SnapshotId *string `mandatory:"true" contributesTo:"path" name:"snapshotId"` // The details to be updated for the RemoveLock. @@ -72,7 +72,7 @@ func (request RemoveSnapshotLockRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveSnapshotLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 612c367e67..a7882fdd40 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -21,13 +21,13 @@ import ( // 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). +// file system. For more information, see File System Replication (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication. Id *string `mandatory:"true" json:"id"` // The current lifecycle state of the replication. @@ -43,13 +43,13 @@ type Replication struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -59,7 +59,7 @@ type Replication struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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"` @@ -82,14 +82,18 @@ type Replication 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` } func (m Replication) String() string { @@ -109,7 +113,7 @@ func (m Replication) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2eecfdf928..da8a1529c2 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -46,7 +46,7 @@ func (m ReplicationEstimate) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5504f28c75..e4b2eceeab 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // ReplicationSummary Summary information for a replication. type ReplicationSummary struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication. Id *string `mandatory:"true" json:"id"` // The current state of this replication. @@ -40,7 +40,7 @@ type ReplicationSummary struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. CompartmentId *string `mandatory:"false" json:"compartmentId"` // Locks associated with this resource. @@ -51,15 +51,19 @@ type ReplicationSummary 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + // Additional information about the current `lifecycleState`. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` @@ -83,7 +87,7 @@ func (m ReplicationSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 029232bc0c..254768acf3 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -24,13 +24,13 @@ import ( // 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). +// For more information, see File System Replication (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication. Id *string `mandatory:"true" json:"id"` // The current state of this replication. @@ -45,13 +45,13 @@ type ReplicationTarget struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of replication. ReplicationId *string `mandatory:"true" json:"replicationId"` // The availability domain the replication resource is in. May be unset @@ -59,7 +59,7 @@ type ReplicationTarget struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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"` @@ -76,15 +76,19 @@ type ReplicationTarget 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + // Additional information about the current `lifecycleState`. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` } @@ -106,7 +110,7 @@ func (m ReplicationTarget) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7d1b447568..733403fd9e 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication target. Id *string `mandatory:"true" json:"id"` // The current state of this replication. @@ -38,20 +38,24 @@ type ReplicationTargetSummary struct { // 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. + // The OCID (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + // Additional information about the current 'lifecycleState'. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` @@ -75,7 +79,7 @@ func (m ReplicationTargetSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/resource_lock.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/resource_lock.go index 36a36b7adf..86ba536095 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/resource_lock.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/resource_lock.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -49,7 +49,7 @@ func (m ResourceLock) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/schedule_downgrade_shape_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/schedule_downgrade_shape_mount_target_details.go index 5e66852fcb..d390374759 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/schedule_downgrade_shape_mount_target_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/schedule_downgrade_shape_mount_target_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -35,7 +35,7 @@ func (m ScheduleDowngradeShapeMountTargetDetails) ValidateEnumValue() (bool, err errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/schedule_downgrade_shape_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/schedule_downgrade_shape_mount_target_request_response.go index e8cdb2eb03..a02822116a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/schedule_downgrade_shape_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/schedule_downgrade_shape_mount_target_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ScheduleDowngradeShapeMountTarget.go.html to see an example of how to use ScheduleDowngradeShapeMountTargetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ScheduleDowngradeShapeMountTarget.go.html to see an example of how to use ScheduleDowngradeShapeMountTargetRequest. type ScheduleDowngradeShapeMountTargetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target. MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` // Details for changing the shape of mount target. @@ -72,7 +72,7 @@ func (request ScheduleDowngradeShapeMountTargetRequest) RetryPolicy() *common.Re func (request ScheduleDowngradeShapeMountTargetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index ca62c6f2df..380e748f62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,11 +19,11 @@ import ( // 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 + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the snapshot. Id *string `mandatory:"true" json:"id"` // The current state of the snapshot. @@ -52,14 +52,14 @@ type Snapshot struct { // 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. + // An OCID (https://docs.oracle.com/iaas/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). + // See Cloning a File System (https://docs.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). + // See Cloning a File System (https://docs.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). IsCloneSource *bool `mandatory:"false" json:"isCloneSource"` // Additional information about the current `lifecycleState`. @@ -70,19 +70,23 @@ type Snapshot 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + // 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 file system snapshot policy that created this snapshot. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy that created this snapshot. FilesystemSnapshotPolicyId *string `mandatory:"false" json:"filesystemSnapshotPolicyId"` } @@ -103,7 +107,7 @@ func (m Snapshot) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e2daa3da78..c85b19058e 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -83,7 +83,7 @@ func (m SnapshotSchedule) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a25e128306..03a1044c9b 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,10 +19,10 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the snapshot. Id *string `mandatory:"true" json:"id"` // The current state of the snapshot. @@ -57,14 +57,14 @@ type SnapshotSummary struct { // The time when this snapshot will be deleted. ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` - // An OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) identifying the parent from which this snapshot was cloned. + // An OCID (https://docs.oracle.com/iaas/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). + // See Cloning a File System (https://docs.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). + // See Cloning a File System (https://docs.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). IsCloneSource *bool `mandatory:"false" json:"isCloneSource"` // Additional information about the current `lifecycleState`. @@ -72,14 +72,18 @@ type SnapshotSummary 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.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. + // System tags are applied to resources by internal OCI services. + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` } func (m SnapshotSummary) String() string { @@ -99,7 +103,7 @@ func (m SnapshotSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1a81f5bc00..8abd10b3f9 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,12 +19,12 @@ import ( // 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). + // The OCID (https://docs.oracle.com/iaas/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.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). + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the source snapshot used to create a cloned file system. + // See Cloning a File System (https://docs.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). SourceSnapshotId *string `mandatory:"false" json:"sourceSnapshotId"` } @@ -39,7 +39,7 @@ func (m SourceDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/toggle_quota_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/toggle_quota_rules_details.go new file mode 100644 index 0000000000..08bef7b89d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/toggle_quota_rules_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ToggleQuotaRulesDetails Details for enabling or disabling quota enforcement in the file system. +type ToggleQuotaRulesDetails struct { + + // Specifies the enforcement of quota rules on the file system. + AreQuotaRulesEnabled *bool `mandatory:"true" json:"areQuotaRulesEnabled"` +} + +func (m ToggleQuotaRulesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ToggleQuotaRulesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/toggle_quota_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/toggle_quota_rules_request_response.go new file mode 100644 index 0000000000..747a257e1d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/toggle_quota_rules_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 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" +) + +// ToggleQuotaRulesRequest wrapper for the ToggleQuotaRules operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ToggleQuotaRules.go.html to see an example of how to use ToggleQuotaRulesRequest. +type ToggleQuotaRulesRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` + + // Details for toggling quota enforcement in the file system. + ToggleQuotaRulesDetails `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"` + + // 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 ToggleQuotaRulesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ToggleQuotaRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ToggleQuotaRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ToggleQuotaRulesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ToggleQuotaRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ToggleQuotaRulesResponse wrapper for the ToggleQuotaRules operation +type ToggleQuotaRulesResponse 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 ToggleQuotaRulesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ToggleQuotaRulesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 407ad8c133..f5cc2e3b09 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UnpauseFilesystemSnapshotPolicy.go.html to see an example of how to use UnpauseFilesystemSnapshotPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UnpauseFilesystemSnapshotPolicy.go.html to see an example of how to use UnpauseFilesystemSnapshotPolicyRequest. type UnpauseFilesystemSnapshotPolicyRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` // For optimistic concurrency control. In the PUT or DELETE call @@ -72,7 +72,7 @@ func (request UnpauseFilesystemSnapshotPolicyRequest) RetryPolicy() *common.Retr func (request UnpauseFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 593aefa408..124e884fcb 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -39,7 +39,7 @@ func (m UpdateExportDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go index 6e44994da2..0d92f7ff4b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateExport.go.html to see an example of how to use UpdateExportRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateExport.go.html to see an example of how to use UpdateExportRequest. type UpdateExportRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the export. ExportId *string `mandatory:"true" contributesTo:"path" name:"exportId"` // Details object for updating an export. @@ -75,7 +75,7 @@ func (request UpdateExportRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateExportRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0a1265f9ed..b4ff6025c5 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -58,7 +58,7 @@ func (m UpdateExportSetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_request_response.go index 2f1a9ba687..3af8edb9b9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateExportSet.go.html to see an example of how to use UpdateExportSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateExportSet.go.html to see an example of how to use UpdateExportSetRequest. type UpdateExportSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export set. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the export set. ExportSetId *string `mandatory:"true" contributesTo:"path" name:"exportSetId"` // Details object for updating an export set. @@ -72,7 +72,7 @@ func (request UpdateExportSetRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateExportSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0da1d83018..fe428fc000 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -26,23 +26,23 @@ type UpdateFileSystemDetails 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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. + // The OCID (https://docs.oracle.com/iaas/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). + // to be accessible. For more information, see Overview of Key Management (https://docs.oracle.com/iaas/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 file system snapshot policy, which + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated file system 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"` @@ -59,7 +59,7 @@ func (m UpdateFileSystemDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go index e09c5aa108..a2c2c07ba7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateFileSystem.go.html to see an example of how to use UpdateFileSystemRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateFileSystem.go.html to see an example of how to use UpdateFileSystemRequest. type UpdateFileSystemRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` // Details object for updating a file system. @@ -75,7 +75,7 @@ func (request UpdateFileSystemRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateFileSystemRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index feb8cd09ea..170367fd1b 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -38,12 +38,12 @@ type UpdateFilesystemSnapshotPolicyDetails 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -59,7 +59,7 @@ func (m UpdateFilesystemSnapshotPolicyDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d3d09bc855..5e11b12ea8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateFilesystemSnapshotPolicy.go.html to see an example of how to use UpdateFilesystemSnapshotPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateFilesystemSnapshotPolicy.go.html to see an example of how to use UpdateFilesystemSnapshotPolicyRequest. type UpdateFilesystemSnapshotPolicyRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` // Details object for updating a file system snapshot policy. @@ -75,7 +75,7 @@ func (request UpdateFilesystemSnapshotPolicyRequest) RetryPolicy() *common.Retry func (request UpdateFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 812b4f6594..8be6ef0f4a 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -22,7 +22,7 @@ type UpdateKerberosDetails struct { // Kerberos realm that this mount target will join. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -46,7 +46,7 @@ func (m UpdateKerberosDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 3197ab6552..ebb9f5e859 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -39,10 +39,10 @@ type UpdateLdapIdmapDetails struct { // Example: `CN=Group,DC=domain,DC=com` GroupSearchBase *string `mandatory:"false" json:"groupSearchBase"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the first connector to use to communicate with the LDAP server. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first connector to use to communicate with the LDAP server. OutboundConnector1Id *string `mandatory:"false" json:"outboundConnector1Id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the second connector to use to communicate with the LDAP server. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second connector to use to communicate with the LDAP server. OutboundConnector2Id *string `mandatory:"false" json:"outboundConnector2Id"` } @@ -60,7 +60,7 @@ func (m UpdateLdapIdmapDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -70,15 +70,18 @@ type UpdateLdapIdmapDetailsSchemaTypeEnum string // Set of constants representing the allowable values for UpdateLdapIdmapDetailsSchemaTypeEnum const ( - UpdateLdapIdmapDetailsSchemaTypeRfc2307 UpdateLdapIdmapDetailsSchemaTypeEnum = "RFC2307" + UpdateLdapIdmapDetailsSchemaTypeRfc2307 UpdateLdapIdmapDetailsSchemaTypeEnum = "RFC2307" + UpdateLdapIdmapDetailsSchemaTypeRfc2307bis UpdateLdapIdmapDetailsSchemaTypeEnum = "RFC2307BIS" ) var mappingUpdateLdapIdmapDetailsSchemaTypeEnum = map[string]UpdateLdapIdmapDetailsSchemaTypeEnum{ - "RFC2307": UpdateLdapIdmapDetailsSchemaTypeRfc2307, + "RFC2307": UpdateLdapIdmapDetailsSchemaTypeRfc2307, + "RFC2307BIS": UpdateLdapIdmapDetailsSchemaTypeRfc2307bis, } var mappingUpdateLdapIdmapDetailsSchemaTypeEnumLowerCase = map[string]UpdateLdapIdmapDetailsSchemaTypeEnum{ - "rfc2307": UpdateLdapIdmapDetailsSchemaTypeRfc2307, + "rfc2307": UpdateLdapIdmapDetailsSchemaTypeRfc2307, + "rfc2307bis": UpdateLdapIdmapDetailsSchemaTypeRfc2307bis, } // GetUpdateLdapIdmapDetailsSchemaTypeEnumValues Enumerates the set of values for UpdateLdapIdmapDetailsSchemaTypeEnum @@ -94,6 +97,7 @@ func GetUpdateLdapIdmapDetailsSchemaTypeEnumValues() []UpdateLdapIdmapDetailsSch func GetUpdateLdapIdmapDetailsSchemaTypeEnumStringValues() []string { return []string{ "RFC2307", + "RFC2307BIS", } } 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 index b96dd9ee9f..9a9c3739f4 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -29,24 +29,30 @@ type UpdateMountTargetDetails struct { 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 list of Network Security Group OCIDs (https://docs.oracle.com/iaas/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). + // For more information about NSGs, see Security Rules (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels + // for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + // (ZPR) policy to control access to ZPR-supported resources. + // Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}` + SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` } func (m UpdateMountTargetDetails) String() string { @@ -63,7 +69,7 @@ func (m UpdateMountTargetDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go index 3eae72f885..ca5a037a2a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateMountTarget.go.html to see an example of how to use UpdateMountTargetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateMountTarget.go.html to see an example of how to use UpdateMountTargetRequest. type UpdateMountTargetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target. MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` // Details object for updating a mount target. @@ -75,7 +75,7 @@ func (request UpdateMountTargetRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateMountTargetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3e957ca3d9..8c614bbb0b 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -26,12 +26,12 @@ type UpdateOutboundConnectorDetails 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -47,7 +47,7 @@ func (m UpdateOutboundConnectorDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go index 66fbb7ca42..16a089fd09 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateOutboundConnector.go.html to see an example of how to use UpdateOutboundConnectorRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateOutboundConnector.go.html to see an example of how to use UpdateOutboundConnectorRequest. type UpdateOutboundConnectorRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the outbound connector. OutboundConnectorId *string `mandatory:"true" contributesTo:"path" name:"outboundConnectorId"` // Details object for updating a outbound connector. @@ -75,7 +75,7 @@ func (request UpdateOutboundConnectorRequest) RetryPolicy() *common.RetryPolicy func (request UpdateOutboundConnectorRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_quota_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_quota_rule_details.go new file mode 100644 index 0000000000..f967a1d396 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_quota_rule_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateQuotaRuleDetails Details for updating a quota rule in the file system. +type UpdateQuotaRuleDetails struct { + + // A user-friendly name that the quota rule will be renamed to. It does not have to be unique. + // Avoid entering confidential information. + // Example: `UserXYZ's quota` + DisplayName *string `mandatory:"false" json:"displayName"` + + // An updated value of the quota rule in gigabytes. + QuotaLimitInGigabytes *int `mandatory:"false" json:"quotaLimitInGigabytes"` +} + +func (m UpdateQuotaRuleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateQuotaRuleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_quota_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_quota_rule_request_response.go new file mode 100644 index 0000000000..ec7f57f91c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_quota_rule_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 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" +) + +// UpdateQuotaRuleRequest wrapper for the UpdateQuotaRule operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateQuotaRule.go.html to see an example of how to use UpdateQuotaRuleRequest. +type UpdateQuotaRuleRequest struct { + + // Details for editing a quota rule. + UpdateQuotaRuleDetails `contributesTo:"body"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` + + // The identifier of the quota rule. It is the base64 encoded string of the tuple . + QuotaRuleId *string `mandatory:"true" contributesTo:"path" name:"quotaRuleId"` + + // 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 UpdateQuotaRuleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateQuotaRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateQuotaRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateQuotaRuleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateQuotaRuleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateQuotaRuleResponse wrapper for the UpdateQuotaRule operation +type UpdateQuotaRuleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The QuotaRule instance + QuotaRule `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 UpdateQuotaRuleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateQuotaRuleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 index 577eb8010b..db18907228 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -30,12 +30,12 @@ type UpdateReplicationDetails 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -51,7 +51,7 @@ func (m UpdateReplicationDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go index 8cc15818f5..9e4fc2c11a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateReplication.go.html to see an example of how to use UpdateReplicationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateReplication.go.html to see an example of how to use UpdateReplicationRequest. type UpdateReplicationRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication. ReplicationId *string `mandatory:"true" contributesTo:"path" name:"replicationId"` // Details object for updating a replication. @@ -75,7 +75,7 @@ func (request UpdateReplicationRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateReplicationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 13b1e1841b..a88613a55a 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -21,12 +21,12 @@ 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -46,7 +46,7 @@ func (m UpdateSnapshotDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go index cf958813b8..63e31585b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateSnapshot.go.html to see an example of how to use UpdateSnapshotRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpdateSnapshot.go.html to see an example of how to use UpdateSnapshotRequest. type UpdateSnapshotRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the snapshot. SnapshotId *string `mandatory:"true" contributesTo:"path" name:"snapshotId"` // Details object for updating a snapshot. @@ -75,7 +75,7 @@ func (request UpdateSnapshotRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateSnapshotRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upgrade_shape_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upgrade_shape_mount_target_details.go index 2540522308..380bed8e03 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upgrade_shape_mount_target_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upgrade_shape_mount_target_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -35,7 +35,7 @@ func (m UpgradeShapeMountTargetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upgrade_shape_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upgrade_shape_mount_target_request_response.go index aef83d3fff..da3f29c8d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upgrade_shape_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upgrade_shape_mount_target_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpgradeShapeMountTarget.go.html to see an example of how to use UpgradeShapeMountTargetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/UpgradeShapeMountTarget.go.html to see an example of how to use UpgradeShapeMountTargetRequest. type UpgradeShapeMountTargetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target. MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` // Details for changing the shape of mount target. @@ -72,7 +72,7 @@ func (request UpgradeShapeMountTargetRequest) RetryPolicy() *common.RetryPolicy func (request UpgradeShapeMountTargetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 99c6acfd51..320b99ac21 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -19,7 +19,7 @@ import ( // ValidateKeyTabsDetails Validate keytabs request details. type ValidateKeyTabsDetails struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target whose keytabs are to be validated. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the mount target whose keytabs are to be validated. MountTargetId *string `mandatory:"false" json:"mountTargetId"` KeyTabSecretDetails *KeyTabSecretDetails `mandatory:"false" json:"keyTabSecretDetails"` @@ -36,7 +36,7 @@ func (m ValidateKeyTabsDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index c6768cd93f..cf21631e28 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ValidateKeyTabs.go.html to see an example of how to use ValidateKeyTabsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ValidateKeyTabs.go.html to see an example of how to use ValidateKeyTabsRequest. type ValidateKeyTabsRequest struct { // Keytab secret details or mount target ID for validating keytabs. @@ -62,7 +62,7 @@ func (request ValidateKeyTabsRequest) RetryPolicy() *common.RetryPolicy { func (request ValidateKeyTabsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 82610681a2..c0eebdc8ab 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// For more information, see Overview of File Storage (https://docs.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage @@ -37,7 +37,7 @@ func (m ValidateKeyTabsResponseDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/activate_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/activate_domain_request_response.go index 943c9cfa99..6eaece102d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/activate_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/activate_domain_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ActivateDomain.go.html to see an example of how to use ActivateDomainRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ActivateDomain.go.html to see an example of how to use ActivateDomainRequest. type ActivateDomainRequest struct { // The OCID of the identity domain. @@ -74,7 +74,7 @@ func (request ActivateDomainRequest) RetryPolicy() *common.RetryPolicy { func (request ActivateDomainRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ActivateDomainResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index f13ae687a2..e7d7744f48 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ActivateMfaTotpDevice.go.html to see an example of how to use ActivateMfaTotpDeviceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ActivateMfaTotpDevice.go.html to see an example of how to use ActivateMfaTotpDeviceRequest. type ActivateMfaTotpDeviceRequest struct { // The OCID of the user. @@ -80,7 +80,7 @@ func (request ActivateMfaTotpDeviceRequest) RetryPolicy() *common.RetryPolicy { func (request ActivateMfaTotpDeviceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e832227290..ecca234605 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -43,7 +43,7 @@ func (m AddLockDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f547b3c667..3d5f7c764c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddTagDefaultLock.go.html to see an example of how to use AddTagDefaultLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddTagDefaultLock.go.html to see an example of how to use AddTagDefaultLockRequest. type AddTagDefaultLockRequest struct { // The OCID of the tag default. @@ -77,7 +77,7 @@ func (request AddTagDefaultLockRequest) RetryPolicy() *common.RetryPolicy { func (request AddTagDefaultLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 160eabc550..93a6d2a2cb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddTagNamespaceLock.go.html to see an example of how to use AddTagNamespaceLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddTagNamespaceLock.go.html to see an example of how to use AddTagNamespaceLockRequest. type AddTagNamespaceLockRequest struct { // The OCID of the tag namespace. @@ -77,7 +77,7 @@ func (request AddTagNamespaceLockRequest) RetryPolicy() *common.RetryPolicy { func (request AddTagNamespaceLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a20545b966..e455abf979 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -36,7 +36,7 @@ func (m AddUserToGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ea5db08875..b29896be7a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddUserToGroup.go.html to see an example of how to use AddUserToGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddUserToGroup.go.html to see an example of how to use AddUserToGroupRequest. type AddUserToGroupRequest struct { // Request object for adding a user to a group. @@ -69,7 +69,7 @@ func (request AddUserToGroupRequest) RetryPolicy() *common.RetryPolicy { func (request AddUserToGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index fbbc485db3..8fca61daa7 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -41,7 +41,7 @@ func (m AllowedDomainLicenseTypeSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 1e1536fe43..462acc3c77 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -18,10 +18,10 @@ import ( // 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). +// in the required PEM format, see Required Keys and OCIDs (https://docs.oracle.com/iaas/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). +// For more information about user credentials, see User Credentials (https://docs.oracle.com/iaas/Content/Identity/Concepts/usercredentials.htm). type ApiKey struct { // An Oracle-assigned identifier for the key, in this format: @@ -63,7 +63,7 @@ func (m ApiKey) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index b6c75e7bf3..6d5ef752c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AssembleEffectiveTagSet.go.html to see an example of how to use AssembleEffectiveTagSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AssembleEffectiveTagSet.go.html to see an example of how to use AssembleEffectiveTagSetRequest. type AssembleEffectiveTagSetRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -68,7 +68,7 @@ func (request AssembleEffectiveTagSetRequest) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8e7185c391..a297855934 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -21,7 +21,7 @@ import ( // 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). +// For more information, see Managing User Credentials (https://docs.oracle.com/iaas/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 @@ -69,7 +69,7 @@ func (m AuthToken) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index dd26a437d0..9259d9f462 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -36,7 +36,7 @@ func (m AuthenticationPolicy) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 212b7b3cc0..5957d393ef 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -17,7 +17,7 @@ import ( // 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). +// Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). type AvailabilityDomain struct { // The name of the Availability Domain. @@ -41,7 +41,7 @@ func (m AvailabilityDomain) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index b0f913165f..62a86609ff 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -18,13 +18,13 @@ import ( // 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). +// Limits on Tags (https://docs.oracle.com/iaas/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). +// DefaultTagDefinitionValidator (https://docs.oracle.com/iaas/api/#/en/identity/latest/datatypes/DefaultTagDefinitionValidator). type BaseTagDefinitionValidator interface { } @@ -67,7 +67,7 @@ func (m *basetagdefinitionvalidator) UnmarshalPolymorphicJSON(data []byte) (inte err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for BaseTagDefinitionValidator: %s.", m.ValidatorType) + common.Logf("Received unsupported enum value for BaseTagDefinitionValidator: %s.", m.ValidatorType) return *m, nil } } @@ -83,7 +83,7 @@ func (m basetagdefinitionvalidator) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3a5e422096..499f9bb9d4 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -60,7 +60,7 @@ func (m BulkActionResource) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 890aafdccb..6cd6582c5a 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -37,7 +37,7 @@ func (m BulkActionResourceType) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 0388d75306..fc11c53d0c 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m BulkActionResourceTypeCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 668cdb03e1..113996e03b 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m BulkDeleteResourcesDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_request_response.go index 818490d4b3..4b3068fa5a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkDeleteResources.go.html to see an example of how to use BulkDeleteResourcesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkDeleteResources.go.html to see an example of how to use BulkDeleteResourcesRequest. type BulkDeleteResourcesRequest struct { // The OCID of the compartment. @@ -72,7 +72,7 @@ func (request BulkDeleteResourcesRequest) RetryPolicy() *common.RetryPolicy { func (request BulkDeleteResourcesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -87,7 +87,7 @@ type BulkDeleteResourcesResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index bd0f045567..d55dd52d6d 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m BulkDeleteTagsDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_request_response.go index 2253831699..c4e70c307f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkDeleteTags.go.html to see an example of how to use BulkDeleteTagsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkDeleteTags.go.html to see an example of how to use BulkDeleteTagsRequest. type BulkDeleteTagsRequest struct { // Request object for deleting tags in bulk. @@ -72,7 +72,7 @@ func (request BulkDeleteTagsRequest) RetryPolicy() *common.RetryPolicy { func (request BulkDeleteTagsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -87,7 +87,7 @@ type BulkDeleteTagsResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index 16249ed3ba..e3d2470a0b 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -27,7 +27,7 @@ type BulkEditOperationDetails struct { 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` } @@ -46,7 +46,7 @@ func (m BulkEditOperationDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2d9152aded..f01224a1fc 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -39,7 +39,7 @@ func (m BulkEditResource) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e1d9bb05db..69c004c95b 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -39,7 +39,7 @@ func (m BulkEditTagsDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_request_response.go index 4d2ef3c969..e46cd1f5cc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkEditTags.go.html to see an example of how to use BulkEditTagsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkEditTags.go.html to see an example of how to use BulkEditTagsRequest. type BulkEditTagsRequest struct { // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -69,7 +69,7 @@ func (request BulkEditTagsRequest) RetryPolicy() *common.RetryPolicy { func (request BulkEditTagsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -84,7 +84,7 @@ type BulkEditTagsResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index 89fd9c80e8..68cfbfd137 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -24,8 +24,8 @@ type BulkEditTagsResourceType struct { // 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). + // See UpdateBucket (https://docs.oracle.com/iaas/api/#/en/objectstorage/latest/Bucket/UpdateBucket) and + // DeleteBucket (https://docs.oracle.com/iaas/api/#/en/objectstorage/latest/Bucket/DeleteBucket). MetadataKeys []string `mandatory:"false" json:"metadataKeys"` } @@ -40,7 +40,7 @@ func (m BulkEditTagsResourceType) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 93e36747fd..d1b8dd201a 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m BulkEditTagsResourceTypeCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 86af0c59b8..b94149d108 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -21,7 +21,7 @@ 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment // into which to move the resources. TargetCompartmentId *string `mandatory:"true" json:"targetCompartmentId"` } @@ -37,7 +37,7 @@ func (m BulkMoveResourcesDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_request_response.go index 907f19a08e..06e133d9e0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkMoveResources.go.html to see an example of how to use BulkMoveResourcesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkMoveResources.go.html to see an example of how to use BulkMoveResourcesRequest. type BulkMoveResourcesRequest struct { // The OCID of the compartment. @@ -72,7 +72,7 @@ func (request BulkMoveResourcesRequest) RetryPolicy() *common.RetryPolicy { func (request BulkMoveResourcesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -87,7 +87,7 @@ type BulkMoveResourcesResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ab8b555fa6..9526648325 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CascadeDeleteTagNamespace.go.html to see an example of how to use CascadeDeleteTagNamespaceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CascadeDeleteTagNamespace.go.html to see an example of how to use CascadeDeleteTagNamespaceRequest. type CascadeDeleteTagNamespaceRequest struct { // The OCID of the tag namespace. @@ -77,7 +77,7 @@ func (request CascadeDeleteTagNamespaceRequest) RetryPolicy() *common.RetryPolic func (request CascadeDeleteTagNamespaceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type CascadeDeleteTagNamespaceResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index e4954a04a6..e46cc68ee4 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -18,7 +18,7 @@ import ( // ChangeDomainCompartmentDetails The representation of ChangeDomainCompartmentDetails type ChangeDomainCompartmentDetails struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination compartment + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment // into which to move the identity domain. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -34,7 +34,7 @@ func (m ChangeDomainCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_request_response.go index 9d754b1748..7aff67c28b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeDomainCompartment.go.html to see an example of how to use ChangeDomainCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeDomainCompartment.go.html to see an example of how to use ChangeDomainCompartmentRequest. type ChangeDomainCompartmentRequest struct { // The OCID of the identity domain. @@ -77,7 +77,7 @@ func (request ChangeDomainCompartmentRequest) RetryPolicy() *common.RetryPolicy func (request ChangeDomainCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type ChangeDomainCompartmentResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index e011137052..7b9ee102f6 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m ChangeDomainLicenseTypeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 086c6cfa3f..707ed829f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeDomainLicenseType.go.html to see an example of how to use ChangeDomainLicenseTypeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeDomainLicenseType.go.html to see an example of how to use ChangeDomainLicenseTypeRequest. type ChangeDomainLicenseTypeRequest struct { // The OCID of the identity domain. @@ -77,7 +77,7 @@ func (request ChangeDomainLicenseTypeRequest) RetryPolicy() *common.RetryPolicy func (request ChangeDomainLicenseTypeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type ChangeDomainLicenseTypeResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index c51af22b78..2e435a4af6 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m ChangeTagNamespaceCompartmentDetail) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 2210d99a62..b6f5b86bfd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeTagNamespaceCompartment.go.html to see an example of how to use ChangeTagNamespaceCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeTagNamespaceCompartment.go.html to see an example of how to use ChangeTagNamespaceCompartmentRequest. type ChangeTagNamespaceCompartmentRequest struct { // The OCID of the tag namespace. @@ -75,7 +75,7 @@ func (request ChangeTagNamespaceCompartmentRequest) RetryPolicy() *common.RetryP func (request ChangeTagNamespaceCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b363973c95..88f4321c0d 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m ChangeTasDomainLicenseTypeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 5bd0665fab..b5f19ad1a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/compartment.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/compartment.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -20,15 +20,15 @@ import ( // 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). +// Overview of IAM (https://docs.oracle.com/iaas//Content/Identity/getstarted/identity-domains.htm) and also +// Setting Up Your Tenancy (https://docs.oracle.com/iaas/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). +// see Get Started with Policies (https://docs.oracle.com/iaas/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 { @@ -63,12 +63,12 @@ type Compartment struct { IsAccessible *bool `mandatory:"false" json:"isAccessible"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -87,7 +87,7 @@ func (m Compartment) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 97d1e66d00..140212fad4 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m CreateApiKeyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index bb8fafa383..5c70c95933 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -34,7 +34,7 @@ func (m CreateAuthTokenDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_request_response.go index f0bf197920..220692f1c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateAuthToken.go.html to see an example of how to use CreateAuthTokenRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateAuthToken.go.html to see an example of how to use CreateAuthTokenRequest. type CreateAuthTokenRequest struct { // Request object for creating a new auth token. @@ -72,7 +72,7 @@ func (request CreateAuthTokenRequest) RetryPolicy() *common.RetryPolicy { func (request CreateAuthTokenRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go index 8b48a24904..8b7adcbe81 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -29,12 +29,12 @@ type CreateCompartmentDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -50,7 +50,7 @@ func (m CreateCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_request_response.go index 4ce59e4f52..f4230da5fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateCompartment.go.html to see an example of how to use CreateCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateCompartment.go.html to see an example of how to use CreateCompartmentRequest. type CreateCompartmentRequest struct { // Request object for creating a new compartment. @@ -69,7 +69,7 @@ func (request CreateCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request CreateCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c69eb19de2..3dc09d644f 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m CreateCustomerSecretKeyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 216d935712..0cb350a510 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateCustomerSecretKey.go.html to see an example of how to use CreateCustomerSecretKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateCustomerSecretKey.go.html to see an example of how to use CreateCustomerSecretKeyRequest. type CreateCustomerSecretKeyRequest struct { // Request object for creating a new secret key. @@ -72,7 +72,7 @@ func (request CreateCustomerSecretKeyRequest) RetryPolicy() *common.RetryPolicy func (request CreateCustomerSecretKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 94c2b59f24..dfcc199a65 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -37,7 +37,7 @@ func (m CreateDbCredentialDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_request_response.go index 44f5a9e0dd..133e5b2d88 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDbCredential.go.html to see an example of how to use CreateDbCredentialRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDbCredential.go.html to see an example of how to use CreateDbCredentialRequest. type CreateDbCredentialRequest struct { // Request object for creating a new DB credential with the user. @@ -72,7 +72,7 @@ func (request CreateDbCredentialRequest) RetryPolicy() *common.RetryPolicy { func (request CreateDbCredentialRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b04fc0817f..da1090ca64 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -27,7 +27,7 @@ type CreateDomainDetails struct { // 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) + // The region's name identifier. See Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) // for the full list of supported region names. // Example: `us-phoenix-1` HomeRegion *string `mandatory:"true" json:"homeRegion"` @@ -58,12 +58,12 @@ type CreateDomainDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -79,7 +79,7 @@ func (m CreateDomainDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_request_response.go index e16f0ad1a6..817c79b00d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDomain.go.html to see an example of how to use CreateDomainRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDomain.go.html to see an example of how to use CreateDomainRequest. type CreateDomainRequest struct { // The request object for creating a new identity domain. @@ -69,7 +69,7 @@ func (request CreateDomainRequest) RetryPolicy() *common.RetryPolicy { func (request CreateDomainRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -84,7 +84,7 @@ type CreateDomainResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index 455f29691c..6208e1ed9a 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -26,7 +26,7 @@ type CreateDynamicGroupDetails struct { 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). + // For rule syntax, see Managing Dynamic Groups (https://docs.oracle.com/iaas/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. @@ -34,12 +34,12 @@ type CreateDynamicGroupDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -55,7 +55,7 @@ func (m CreateDynamicGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_request_response.go index 1ca4dde527..384301fd75 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDynamicGroup.go.html to see an example of how to use CreateDynamicGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDynamicGroup.go.html to see an example of how to use CreateDynamicGroupRequest. type CreateDynamicGroupRequest struct { // Request object for creating a new dynamic group. @@ -69,7 +69,7 @@ func (request CreateDynamicGroupRequest) RetryPolicy() *common.RetryPolicy { func (request CreateDynamicGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 92c71ab29b..2d3a705b75 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -30,12 +30,12 @@ type CreateGroupDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -51,7 +51,7 @@ func (m CreateGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_request_response.go index 3918e1571b..cbff20f061 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateGroup.go.html to see an example of how to use CreateGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateGroup.go.html to see an example of how to use CreateGroupRequest. type CreateGroupRequest struct { // Request object for creating a new group. @@ -69,7 +69,7 @@ func (request CreateGroupRequest) RetryPolicy() *common.RetryPolicy { func (request CreateGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 980d60b7ca..76834a8d2c 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -38,12 +38,12 @@ type CreateIdentityProviderDetails interface { 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` GetDefinedTags() map[string]map[string]interface{} } @@ -95,7 +95,7 @@ func (m *createidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (i err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for CreateIdentityProviderDetails: %s.", m.Protocol) + common.Logf("Received unsupported enum value for CreateIdentityProviderDetails: %s.", m.Protocol) return *m, nil } } @@ -144,7 +144,7 @@ func (m createidentityproviderdetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_request_response.go index 402d75da54..7b262ab75a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateIdentityProvider.go.html to see an example of how to use CreateIdentityProviderRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateIdentityProvider.go.html to see an example of how to use CreateIdentityProviderRequest. type CreateIdentityProviderRequest struct { // Request object for creating a new SAML2 identity provider. @@ -69,7 +69,7 @@ func (request CreateIdentityProviderRequest) RetryPolicy() *common.RetryPolicy { func (request CreateIdentityProviderRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ec9f4cd525..dcc1c93de8 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -37,7 +37,7 @@ func (m CreateIdpGroupMappingDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 083c70e98a..aee3e14860 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateIdpGroupMapping.go.html to see an example of how to use CreateIdpGroupMappingRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateIdpGroupMapping.go.html to see an example of how to use CreateIdpGroupMappingRequest. type CreateIdpGroupMappingRequest struct { // Add a mapping from an SAML2.0 identity provider group to a BMC group. @@ -72,7 +72,7 @@ func (request CreateIdpGroupMappingRequest) RetryPolicy() *common.RetryPolicy { func (request CreateIdpGroupMappingRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index bbce7a9a3b..c9ca40af31 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateMfaTotpDevice.go.html to see an example of how to use CreateMfaTotpDeviceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateMfaTotpDevice.go.html to see an example of how to use CreateMfaTotpDeviceRequest. type CreateMfaTotpDeviceRequest struct { // The OCID of the user. @@ -69,7 +69,7 @@ func (request CreateMfaTotpDeviceRequest) RetryPolicy() *common.RetryPolicy { func (request CreateMfaTotpDeviceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go index d699c1cd55..90fc561fe1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -39,12 +39,12 @@ type CreateNetworkSourceDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -60,7 +60,7 @@ func (m CreateNetworkSourceDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_request_response.go index 6326e44612..5ee8aa47fb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateNetworkSource.go.html to see an example of how to use CreateNetworkSourceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateNetworkSource.go.html to see an example of how to use CreateNetworkSourceRequest. type CreateNetworkSourceRequest struct { // Request object for creating a new network source. @@ -69,7 +69,7 @@ func (request CreateNetworkSourceRequest) RetryPolicy() *common.RetryPolicy { func (request CreateNetworkSourceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cd80dbafed..bd91642ea7 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -39,7 +39,7 @@ func (m CreateOAuth2ClientCredentialDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 6abf1b5887..ecc7274fc7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateOAuthClientCredential.go.html to see an example of how to use CreateOAuthClientCredentialRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateOAuthClientCredential.go.html to see an example of how to use CreateOAuthClientCredentialRequest. type CreateOAuthClientCredentialRequest struct { // The OCID of the user. @@ -72,7 +72,7 @@ func (request CreateOAuthClientCredentialRequest) RetryPolicy() *common.RetryPol func (request CreateOAuthClientCredentialRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index f6e678c5f8..07349fe088 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateOrResetUIPassword.go.html to see an example of how to use CreateOrResetUIPasswordRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateOrResetUIPassword.go.html to see an example of how to use CreateOrResetUIPasswordRequest. type CreateOrResetUIPasswordRequest struct { // The OCID of the user. @@ -69,7 +69,7 @@ func (request CreateOrResetUIPasswordRequest) RetryPolicy() *common.RetryPolicy func (request CreateOrResetUIPasswordRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go index 7cd450243c..673bea5742 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -26,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/policieshow/how-policies-work.htm) and - // Common Policies (https://docs.cloud.oracle.com/Content/Identity/policiescommon/commonpolicies.htm). + // How Policies Work (https://docs.oracle.com/iaas/Content/Identity/policieshow/how-policies-work.htm) and + // Common Policies (https://docs.oracle.com/iaas/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. @@ -39,12 +39,12 @@ type CreatePolicyDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -60,7 +60,7 @@ func (m CreatePolicyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_request_response.go index ee7f474bb6..0e1f238d88 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreatePolicy.go.html to see an example of how to use CreatePolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreatePolicy.go.html to see an example of how to use CreatePolicyRequest. type CreatePolicyRequest struct { // Request object for creating a new policy. @@ -69,7 +69,7 @@ func (request CreatePolicyRequest) RetryPolicy() *common.RetryPolicy { func (request CreatePolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f1a6560383..186d839238 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -18,7 +18,7 @@ import ( // 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 regions's key. See Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) for // the full list of supported 3-letter region codes. // Example: `PHX` RegionKey *string `mandatory:"true" json:"regionKey"` @@ -35,7 +35,7 @@ func (m CreateRegionSubscriptionDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_request_response.go index b31efe302d..a61f014ca2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateRegionSubscription.go.html to see an example of how to use CreateRegionSubscriptionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateRegionSubscription.go.html to see an example of how to use CreateRegionSubscriptionRequest. type CreateRegionSubscriptionRequest struct { // Request object for activate a new region. @@ -72,7 +72,7 @@ func (request CreateRegionSubscriptionRequest) RetryPolicy() *common.RetryPolicy func (request CreateRegionSubscriptionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go index 57a7ba3979..a26f3df626 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -39,12 +39,12 @@ type CreateSaml2IdentityProviderDetails struct { Metadata *string `mandatory:"true" json:"metadata"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -103,7 +103,7 @@ func (m CreateSaml2IdentityProviderDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1223391a46..12c5a1f944 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -34,7 +34,7 @@ func (m CreateSmtpCredentialDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_request_response.go index 27d51f4314..dde495752f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateSmtpCredential.go.html to see an example of how to use CreateSmtpCredentialRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateSmtpCredential.go.html to see an example of how to use CreateSmtpCredentialRequest. type CreateSmtpCredentialRequest struct { // Request object for creating a new SMTP credential with the user. @@ -72,7 +72,7 @@ func (request CreateSmtpCredentialRequest) RetryPolicy() *common.RetryPolicy { func (request CreateSmtpCredentialRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5e367129bf..ba26d10fa6 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -34,7 +34,7 @@ func (m CreateSwiftPasswordDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_request_response.go index 94716a5ce8..10d3d7c9bd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateSwiftPassword.go.html to see an example of how to use CreateSwiftPasswordRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateSwiftPassword.go.html to see an example of how to use CreateSwiftPasswordRequest. type CreateSwiftPasswordRequest struct { // Request object for creating a new swift password. @@ -72,7 +72,7 @@ func (request CreateSwiftPasswordRequest) RetryPolicy() *common.RetryPolicy { func (request CreateSwiftPasswordRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d54533a87b..6bda7978eb 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -50,7 +50,7 @@ func (m CreateTagDefaultDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_request_response.go index b212775cfd..ddb77c4b4e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTagDefault.go.html to see an example of how to use CreateTagDefaultRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTagDefault.go.html to see an example of how to use CreateTagDefaultRequest. type CreateTagDefaultRequest struct { // Request object for creating a new tag default. @@ -69,7 +69,7 @@ func (request CreateTagDefaultRequest) RetryPolicy() *common.RetryPolicy { func (request CreateTagDefaultRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go index 00c5440df1..988c079838 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -27,12 +27,12 @@ type CreateTagDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -53,7 +53,7 @@ func (m CreateTagDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f6353dc6d4..9c08996c15 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -28,12 +28,12 @@ type CreateTagNamespaceDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -52,7 +52,7 @@ func (m CreateTagNamespaceDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_request_response.go index b509a179a6..2e55f68843 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTagNamespace.go.html to see an example of how to use CreateTagNamespaceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTagNamespace.go.html to see an example of how to use CreateTagNamespaceRequest. type CreateTagNamespaceRequest struct { // Request object for creating a new tag namespace. @@ -69,7 +69,7 @@ func (request CreateTagNamespaceRequest) RetryPolicy() *common.RetryPolicy { func (request CreateTagNamespaceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_request_response.go index f19472cbb6..2183ce52b2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTag.go.html to see an example of how to use CreateTagRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTag.go.html to see an example of how to use CreateTagRequest. type CreateTagRequest struct { // The OCID of the tag namespace. @@ -75,7 +75,7 @@ func (request CreateTagRequest) RetryPolicy() *common.RetryPolicy { func (request CreateTagRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b4973195bd..55e9d627d5 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -34,12 +34,12 @@ type CreateUserDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -55,7 +55,7 @@ func (m CreateUserDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_request_response.go index cbae8dbdec..fea104422c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateUser.go.html to see an example of how to use CreateUserRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateUser.go.html to see an example of how to use CreateUserRequest. type CreateUserRequest struct { // Request object for creating a new user. @@ -69,7 +69,7 @@ func (request CreateUserRequest) RetryPolicy() *common.RetryPolicy { func (request CreateUserRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b47b2dad6f..908d1befa3 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -16,10 +16,10 @@ import ( ) // 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 +// Amazon S3 compatible API (https://docs.oracle.com/iaas/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). +// For more information, see Managing User Credentials (https://docs.oracle.com/iaas/Content/Identity/access/managing-user-credentials.htm). type CustomerSecretKey struct { // The secret key. @@ -65,7 +65,7 @@ func (m CustomerSecretKey) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4ffbc4d279..a1aba8bb21 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -59,7 +59,7 @@ func (m CustomerSecretKeySummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a8bdf1e1c1..24ed856ca2 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -56,7 +56,7 @@ func (m DbCredential) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f8a0c8b7ca..31484d9879 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -58,7 +58,7 @@ func (m DbCredentialSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/deactivate_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/deactivate_domain_request_response.go index 8728ab93fb..98cfcba422 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/deactivate_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/deactivate_domain_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeactivateDomain.go.html to see an example of how to use DeactivateDomainRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeactivateDomain.go.html to see an example of how to use DeactivateDomainRequest. type DeactivateDomainRequest struct { // The OCID of the identity domain. @@ -74,7 +74,7 @@ func (request DeactivateDomainRequest) RetryPolicy() *common.RetryPolicy { func (request DeactivateDomainRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type DeactivateDomainResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index 43bc7dab14..edb14f50f1 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m DefaultTagDefinitionValidator) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_api_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_api_key_request_response.go index 76049a1587..66f70a42c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_api_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_api_key_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteApiKey.go.html to see an example of how to use DeleteApiKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteApiKey.go.html to see an example of how to use DeleteApiKeyRequest. type DeleteApiKeyRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request DeleteApiKeyRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteApiKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_auth_token_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_auth_token_request_response.go index 4bc4c27ead..44a5fd259c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_auth_token_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_auth_token_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteAuthToken.go.html to see an example of how to use DeleteAuthTokenRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteAuthToken.go.html to see an example of how to use DeleteAuthTokenRequest. type DeleteAuthTokenRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request DeleteAuthTokenRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteAuthTokenRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_compartment_request_response.go index 8e01e47b01..8a924f1efc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteCompartment.go.html to see an example of how to use DeleteCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteCompartment.go.html to see an example of how to use DeleteCompartmentRequest. type DeleteCompartmentRequest struct { // The OCID of the compartment. @@ -67,7 +67,7 @@ func (request DeleteCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -82,7 +82,7 @@ type DeleteCompartmentResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 4d8edd75b1..6183005de7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteCustomerSecretKey.go.html to see an example of how to use DeleteCustomerSecretKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteCustomerSecretKey.go.html to see an example of how to use DeleteCustomerSecretKeyRequest. type DeleteCustomerSecretKeyRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request DeleteCustomerSecretKeyRequest) RetryPolicy() *common.RetryPolicy func (request DeleteCustomerSecretKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_db_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_db_credential_request_response.go index 167e237ecf..e6c56bd92e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_db_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_db_credential_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDbCredential.go.html to see an example of how to use DeleteDbCredentialRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDbCredential.go.html to see an example of how to use DeleteDbCredentialRequest. type DeleteDbCredentialRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request DeleteDbCredentialRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteDbCredentialRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_domain_request_response.go index a875782603..5d0728f371 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_domain_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDomain.go.html to see an example of how to use DeleteDomainRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDomain.go.html to see an example of how to use DeleteDomainRequest. type DeleteDomainRequest struct { // The OCID of the identity domain. @@ -67,7 +67,7 @@ func (request DeleteDomainRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteDomainRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -82,7 +82,7 @@ type DeleteDomainResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_dynamic_group_request_response.go index 553a002a42..0593a76888 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_dynamic_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_dynamic_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDynamicGroup.go.html to see an example of how to use DeleteDynamicGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDynamicGroup.go.html to see an example of how to use DeleteDynamicGroupRequest. type DeleteDynamicGroupRequest struct { // The OCID of the dynamic group. @@ -67,7 +67,7 @@ func (request DeleteDynamicGroupRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteDynamicGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_group_request_response.go index 461a89dd13..4d47f93387 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteGroup.go.html to see an example of how to use DeleteGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteGroup.go.html to see an example of how to use DeleteGroupRequest. type DeleteGroupRequest struct { // The OCID of the group. @@ -67,7 +67,7 @@ func (request DeleteGroupRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_identity_provider_request_response.go index ec20b404db..bd6e9977c5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_identity_provider_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteIdentityProvider.go.html to see an example of how to use DeleteIdentityProviderRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteIdentityProvider.go.html to see an example of how to use DeleteIdentityProviderRequest. type DeleteIdentityProviderRequest struct { // The OCID of the identity provider. @@ -67,7 +67,7 @@ func (request DeleteIdentityProviderRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteIdentityProviderRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 81ade7efb1..f14c6f5877 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteIdpGroupMapping.go.html to see an example of how to use DeleteIdpGroupMappingRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteIdpGroupMapping.go.html to see an example of how to use DeleteIdpGroupMappingRequest. type DeleteIdpGroupMappingRequest struct { // The OCID of the identity provider. @@ -70,7 +70,7 @@ func (request DeleteIdpGroupMappingRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteIdpGroupMappingRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 811befbc95..69ac432ee1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteMfaTotpDevice.go.html to see an example of how to use DeleteMfaTotpDeviceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteMfaTotpDevice.go.html to see an example of how to use DeleteMfaTotpDeviceRequest. type DeleteMfaTotpDeviceRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request DeleteMfaTotpDeviceRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteMfaTotpDeviceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_network_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_network_source_request_response.go index 5928a31b82..c5ea7bfabc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_network_source_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_network_source_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteNetworkSource.go.html to see an example of how to use DeleteNetworkSourceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteNetworkSource.go.html to see an example of how to use DeleteNetworkSourceRequest. type DeleteNetworkSourceRequest struct { // The OCID of the network source. @@ -67,7 +67,7 @@ func (request DeleteNetworkSourceRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteNetworkSourceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 5419cd82aa..8f625dc97a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteOAuthClientCredential.go.html to see an example of how to use DeleteOAuthClientCredentialRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteOAuthClientCredential.go.html to see an example of how to use DeleteOAuthClientCredentialRequest. type DeleteOAuthClientCredentialRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request DeleteOAuthClientCredentialRequest) RetryPolicy() *common.RetryPol func (request DeleteOAuthClientCredentialRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_policy_request_response.go index 79a6eefab9..187a4385e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_policy_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeletePolicy.go.html to see an example of how to use DeletePolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeletePolicy.go.html to see an example of how to use DeletePolicyRequest. type DeletePolicyRequest struct { // The OCID of the policy. @@ -67,7 +67,7 @@ func (request DeletePolicyRequest) RetryPolicy() *common.RetryPolicy { func (request DeletePolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_smtp_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_smtp_credential_request_response.go index e2690bae5a..3f0fd6e1f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_smtp_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_smtp_credential_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteSmtpCredential.go.html to see an example of how to use DeleteSmtpCredentialRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteSmtpCredential.go.html to see an example of how to use DeleteSmtpCredentialRequest. type DeleteSmtpCredentialRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request DeleteSmtpCredentialRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteSmtpCredentialRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_swift_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_swift_password_request_response.go index 00aaed0835..2dbf0acc52 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_swift_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_swift_password_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteSwiftPassword.go.html to see an example of how to use DeleteSwiftPasswordRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteSwiftPassword.go.html to see an example of how to use DeleteSwiftPasswordRequest. type DeleteSwiftPasswordRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request DeleteSwiftPasswordRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteSwiftPasswordRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_default_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_default_request_response.go index 69f550ec07..a7da4f3def 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_default_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_default_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTagDefault.go.html to see an example of how to use DeleteTagDefaultRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTagDefault.go.html to see an example of how to use DeleteTagDefaultRequest. type DeleteTagDefaultRequest struct { // The OCID of the tag default. @@ -70,7 +70,7 @@ func (request DeleteTagDefaultRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteTagDefaultRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_namespace_request_response.go index a27fde4c3c..102e072b97 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_namespace_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_namespace_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTagNamespace.go.html to see an example of how to use DeleteTagNamespaceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTagNamespace.go.html to see an example of how to use DeleteTagNamespaceRequest. type DeleteTagNamespaceRequest struct { // The OCID of the tag namespace. @@ -70,7 +70,7 @@ func (request DeleteTagNamespaceRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteTagNamespaceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_request_response.go index efa6579597..a23d4af02b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTag.go.html to see an example of how to use DeleteTagRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTag.go.html to see an example of how to use DeleteTagRequest. type DeleteTagRequest struct { // The OCID of the tag namespace. @@ -73,7 +73,7 @@ func (request DeleteTagRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteTagRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -88,7 +88,7 @@ type DeleteTagResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_user_request_response.go index ded087a9e8..f75b8d8f81 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_user_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteUser.go.html to see an example of how to use DeleteUserRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteUser.go.html to see an example of how to use DeleteUserRequest. type DeleteUserRequest struct { // The OCID of the user. @@ -67,7 +67,7 @@ func (request DeleteUserRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteUserRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 69e4add219..9a656e9f69 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -37,7 +37,7 @@ type Domain struct { 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) + // See Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) // for the full list of supported region names. // Example: `us-phoenix-1` HomeRegion *string `mandatory:"true" json:"homeRegion"` @@ -65,12 +65,12 @@ type Domain struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -95,7 +95,7 @@ func (m Domain) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ea5b71dbc9..97bbcf7a8f 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -39,7 +39,7 @@ func (m DomainReplication) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 55b666ae5c..debc91e06a 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -42,7 +42,7 @@ func (m DomainReplicationStates) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index c9d6b6b739..6bc9a220a4 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -62,12 +62,12 @@ type DomainSummary struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -92,7 +92,7 @@ func (m DomainSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1b27ddccb5..0977ebbedc 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -22,7 +22,7 @@ import ( // 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). +// For more information, see Managing Dynamic Groups (https://docs.oracle.com/iaas/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 { @@ -42,7 +42,7 @@ type DynamicGroup struct { 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). + // For syntax, see Managing Dynamic Groups (https://docs.oracle.com/iaas/Content/Identity/dynamicgroups/managingdynamicgroups.htm). MatchingRule *string `mandatory:"true" json:"matchingRule"` // Date and time the group was created, in the format defined by RFC3339. @@ -57,12 +57,12 @@ type DynamicGroup struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -81,7 +81,7 @@ func (m DynamicGroup) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 58dc800212..cbebb2ba15 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -19,7 +19,7 @@ import ( 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) + // See Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) // for the full list of supported region names. // Example: `us-phoenix-1` ReplicaRegion *string `mandatory:"false" json:"replicaRegion"` @@ -36,7 +36,7 @@ func (m EnableReplicationToRegionDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 1932c83e33..c157d6eda8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/EnableReplicationToRegion.go.html to see an example of how to use EnableReplicationToRegionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/EnableReplicationToRegion.go.html to see an example of how to use EnableReplicationToRegionRequest. type EnableReplicationToRegionRequest struct { // The OCID of the identity domain. @@ -77,7 +77,7 @@ func (request EnableReplicationToRegionRequest) RetryPolicy() *common.RetryPolic func (request EnableReplicationToRegionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type EnableReplicationToRegionResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index 70d89832d1..476cea6ed5 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -36,7 +36,7 @@ func (m EnumTagDefinitionValidator) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 07253419fd..004bc3ac1d 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -44,7 +44,7 @@ func (m FaultDomain) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8cb78ccf80..74e9b93a8c 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -36,7 +36,7 @@ func (m FullyQualifiedScope) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/generate_totp_seed_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/generate_totp_seed_request_response.go index b5622feca2..424158ff99 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/generate_totp_seed_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/generate_totp_seed_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GenerateTotpSeed.go.html to see an example of how to use GenerateTotpSeedRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GenerateTotpSeed.go.html to see an example of how to use GenerateTotpSeedRequest. type GenerateTotpSeedRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request GenerateTotpSeedRequest) RetryPolicy() *common.RetryPolicy { func (request GenerateTotpSeedRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_authentication_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_authentication_policy_request_response.go index 666525c228..13746cc1c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_authentication_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_authentication_policy_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetAuthenticationPolicy.go.html to see an example of how to use GetAuthenticationPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetAuthenticationPolicy.go.html to see an example of how to use GetAuthenticationPolicyRequest. type GetAuthenticationPolicyRequest struct { // The OCID of the compartment. @@ -62,7 +62,7 @@ func (request GetAuthenticationPolicyRequest) RetryPolicy() *common.RetryPolicy func (request GetAuthenticationPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c2c0ae8191..8d02f1d2c1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetCompartment.go.html to see an example of how to use GetCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetCompartment.go.html to see an example of how to use GetCompartmentRequest. type GetCompartmentRequest struct { // The OCID of the compartment. @@ -62,7 +62,7 @@ func (request GetCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request GetCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_domain_request_response.go index 92c7d4a4c1..5355d7b803 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_domain_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetDomain.go.html to see an example of how to use GetDomainRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetDomain.go.html to see an example of how to use GetDomainRequest. type GetDomainRequest struct { // The OCID of the identity domain. @@ -62,7 +62,7 @@ func (request GetDomainRequest) RetryPolicy() *common.RetryPolicy { func (request GetDomainRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_dynamic_group_request_response.go index 0d0fa74062..24e6f00a1b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_dynamic_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_dynamic_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetDynamicGroup.go.html to see an example of how to use GetDynamicGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetDynamicGroup.go.html to see an example of how to use GetDynamicGroupRequest. type GetDynamicGroupRequest struct { // The OCID of the dynamic group. @@ -62,7 +62,7 @@ func (request GetDynamicGroupRequest) RetryPolicy() *common.RetryPolicy { func (request GetDynamicGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_group_request_response.go index 6924e43543..b72ac36eef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetGroup.go.html to see an example of how to use GetGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetGroup.go.html to see an example of how to use GetGroupRequest. type GetGroupRequest struct { // The OCID of the group. @@ -62,7 +62,7 @@ func (request GetGroupRequest) RetryPolicy() *common.RetryPolicy { func (request GetGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 42f42000a3..addddb0a22 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIamWorkRequest.go.html to see an example of how to use GetIamWorkRequestRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIamWorkRequest.go.html to see an example of how to use GetIamWorkRequestRequest. type GetIamWorkRequestRequest struct { // The OCID of the IAM work request. @@ -62,7 +62,7 @@ func (request GetIamWorkRequestRequest) RetryPolicy() *common.RetryPolicy { func (request GetIamWorkRequestRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_identity_provider_request_response.go index 832314018d..3b9867ae57 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_identity_provider_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIdentityProvider.go.html to see an example of how to use GetIdentityProviderRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIdentityProvider.go.html to see an example of how to use GetIdentityProviderRequest. type GetIdentityProviderRequest struct { // The OCID of the identity provider. @@ -62,7 +62,7 @@ func (request GetIdentityProviderRequest) RetryPolicy() *common.RetryPolicy { func (request GetIdentityProviderRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index cd44a410b8..df7ef57d65 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIdpGroupMapping.go.html to see an example of how to use GetIdpGroupMappingRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIdpGroupMapping.go.html to see an example of how to use GetIdpGroupMappingRequest. type GetIdpGroupMappingRequest struct { // The OCID of the identity provider. @@ -65,7 +65,7 @@ func (request GetIdpGroupMappingRequest) RetryPolicy() *common.RetryPolicy { func (request GetIdpGroupMappingRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 45d10ad196..cf2683f5a1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetMfaTotpDevice.go.html to see an example of how to use GetMfaTotpDeviceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetMfaTotpDevice.go.html to see an example of how to use GetMfaTotpDeviceRequest. type GetMfaTotpDeviceRequest struct { // The OCID of the user. @@ -65,7 +65,7 @@ func (request GetMfaTotpDeviceRequest) RetryPolicy() *common.RetryPolicy { func (request GetMfaTotpDeviceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_network_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_network_source_request_response.go index d373e300fd..c40bbcda37 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_network_source_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_network_source_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetNetworkSource.go.html to see an example of how to use GetNetworkSourceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetNetworkSource.go.html to see an example of how to use GetNetworkSourceRequest. type GetNetworkSourceRequest struct { // The OCID of the network source. @@ -62,7 +62,7 @@ func (request GetNetworkSourceRequest) RetryPolicy() *common.RetryPolicy { func (request GetNetworkSourceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_policy_request_response.go index 03fc57179b..7333449a62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_policy_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetPolicy.go.html to see an example of how to use GetPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetPolicy.go.html to see an example of how to use GetPolicyRequest. type GetPolicyRequest struct { // The OCID of the policy. @@ -62,7 +62,7 @@ func (request GetPolicyRequest) RetryPolicy() *common.RetryPolicy { func (request GetPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ba707b0dfd..1bcbfa15d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetStandardTagTemplate.go.html to see an example of how to use GetStandardTagTemplateRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetStandardTagTemplate.go.html to see an example of how to use GetStandardTagTemplateRequest. type GetStandardTagTemplateRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -65,7 +65,7 @@ func (request GetStandardTagTemplateRequest) RetryPolicy() *common.RetryPolicy { func (request GetStandardTagTemplateRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_default_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_default_request_response.go index 2bd2839486..95594f5049 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_default_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_default_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTagDefault.go.html to see an example of how to use GetTagDefaultRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTagDefault.go.html to see an example of how to use GetTagDefaultRequest. type GetTagDefaultRequest struct { // The OCID of the tag default. @@ -62,7 +62,7 @@ func (request GetTagDefaultRequest) RetryPolicy() *common.RetryPolicy { func (request GetTagDefaultRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_namespace_request_response.go index 8f9376da6d..bdb3d5742c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_namespace_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_namespace_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTagNamespace.go.html to see an example of how to use GetTagNamespaceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTagNamespace.go.html to see an example of how to use GetTagNamespaceRequest. type GetTagNamespaceRequest struct { // The OCID of the tag namespace. @@ -62,7 +62,7 @@ func (request GetTagNamespaceRequest) RetryPolicy() *common.RetryPolicy { func (request GetTagNamespaceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_request_response.go index 6772d79331..21e6e4dd95 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTag.go.html to see an example of how to use GetTagRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTag.go.html to see an example of how to use GetTagRequest. type GetTagRequest struct { // The OCID of the tag namespace. @@ -65,7 +65,7 @@ func (request GetTagRequest) RetryPolicy() *common.RetryPolicy { func (request GetTagRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 390f4f3a0e..52cc3b254d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTaggingWorkRequest.go.html to see an example of how to use GetTaggingWorkRequestRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTaggingWorkRequest.go.html to see an example of how to use GetTaggingWorkRequestRequest. type GetTaggingWorkRequestRequest struct { // The OCID of the work request. @@ -62,7 +62,7 @@ func (request GetTaggingWorkRequestRequest) RetryPolicy() *common.RetryPolicy { func (request GetTaggingWorkRequestRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tenancy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tenancy_request_response.go index ba608383b2..7039642214 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tenancy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tenancy_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTenancy.go.html to see an example of how to use GetTenancyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTenancy.go.html to see an example of how to use GetTenancyRequest. type GetTenancyRequest struct { // The OCID of the tenancy. @@ -62,7 +62,7 @@ func (request GetTenancyRequest) RetryPolicy() *common.RetryPolicy { func (request GetTenancyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 2b569c32bc..4e1a162a6f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUserGroupMembership.go.html to see an example of how to use GetUserGroupMembershipRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUserGroupMembership.go.html to see an example of how to use GetUserGroupMembershipRequest. type GetUserGroupMembershipRequest struct { // The OCID of the userGroupMembership. @@ -62,7 +62,7 @@ func (request GetUserGroupMembershipRequest) RetryPolicy() *common.RetryPolicy { func (request GetUserGroupMembershipRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_request_response.go index 5d2f3cac25..3a5be3edee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUser.go.html to see an example of how to use GetUserRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUser.go.html to see an example of how to use GetUserRequest. type GetUserRequest struct { // The OCID of the user. @@ -62,7 +62,7 @@ func (request GetUserRequest) RetryPolicy() *common.RetryPolicy { func (request GetUserRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 56286a231d..0ac6395ab2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUserUIPasswordInformation.go.html to see an example of how to use GetUserUIPasswordInformationRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUserUIPasswordInformation.go.html to see an example of how to use GetUserUIPasswordInformationRequest. type GetUserUIPasswordInformationRequest struct { // The OCID of the user. @@ -62,7 +62,7 @@ func (request GetUserUIPasswordInformationRequest) RetryPolicy() *common.RetryPo func (request GetUserUIPasswordInformationRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2fc658b7b6..d7412e6ffa 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. type GetWorkRequestRequest struct { // The OCID of the work request. @@ -62,7 +62,7 @@ func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b7421e1a68..615f05dff0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/group.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -17,15 +17,15 @@ import ( // 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). +// Overview of IAM (https://docs.oracle.com/iaas/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 +// Identity Providers and Federation (https://docs.oracle.com/iaas/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). +// see Get Started with Policies (https://docs.oracle.com/iaas/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 { @@ -56,12 +56,12 @@ type Group struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -80,7 +80,7 @@ func (m Group) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9df135fde3..d74ab55b3d 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -66,7 +66,7 @@ func (m IamWorkRequest) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 97dc31c908..10772f1273 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -39,7 +39,7 @@ func (m IamWorkRequestErrorSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index fe3d2ed82e..1b1e1f4d27 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -37,7 +37,7 @@ func (m IamWorkRequestLogSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 47e4125d42..0745ec7569 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -48,7 +48,7 @@ func (m IamWorkRequestResource) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 010eb7490a..c9a69dd7fd 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -66,7 +66,7 @@ func (m IamWorkRequestSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_client.go index 9211106d36..6e8fbbc73b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -100,7 +100,7 @@ func (client *IdentityClient) ConfigurationProvider() *common.ConfigurationProvi // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ActivateDomain.go.html to see an example of how to use ActivateDomain API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ActivateDomain.go.html to see an example of how to use ActivateDomain API. // 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 @@ -164,7 +164,7 @@ func (client IdentityClient) activateDomain(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ActivateMfaTotpDevice.go.html to see an example of how to use ActivateMfaTotpDevice API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ActivateMfaTotpDevice.go.html to see an example of how to use ActivateMfaTotpDevice API. // 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 @@ -228,7 +228,7 @@ func (client IdentityClient) activateMfaTotpDevice(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddTagDefaultLock.go.html to see an example of how to use AddTagDefaultLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddTagDefaultLock.go.html to see an example of how to use AddTagDefaultLock API. // 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 @@ -292,7 +292,7 @@ func (client IdentityClient) addTagDefaultLock(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddTagNamespaceLock.go.html to see an example of how to use AddTagNamespaceLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddTagNamespaceLock.go.html to see an example of how to use AddTagNamespaceLock API. // 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 @@ -358,7 +358,7 @@ func (client IdentityClient) addTagNamespaceLock(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddUserToGroup.go.html to see an example of how to use AddUserToGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AddUserToGroup.go.html to see an example of how to use AddUserToGroup API. // 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 @@ -425,7 +425,7 @@ func (client IdentityClient) addUserToGroup(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AssembleEffectiveTagSet.go.html to see an example of how to use AssembleEffectiveTagSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/AssembleEffectiveTagSet.go.html to see an example of how to use AssembleEffectiveTagSet API. // 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 @@ -481,13 +481,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/regions/managingregions.htm#Home). This operation creates a +// home region (https://docs.oracle.com/iaas/Content/Identity/regions/managingregions.htm#Home). This operation creates a // WorkRequest. Use the GetWorkRequest // API to monitor the status of the bulk action. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkDeleteResources.go.html to see an example of how to use BulkDeleteResources API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkDeleteResources.go.html to see an example of how to use BulkDeleteResources API. // 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 @@ -566,7 +566,7 @@ func (client IdentityClient) bulkDeleteResources(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkDeleteTags.go.html to see an example of how to use BulkDeleteTags API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkDeleteTags.go.html to see an example of how to use BulkDeleteTags API. // 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 @@ -641,7 +641,7 @@ func (client IdentityClient) bulkDeleteTags(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkEditTags.go.html to see an example of how to use BulkEditTags API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkEditTags.go.html to see an example of how to use BulkEditTags API. // 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 @@ -702,14 +702,14 @@ func (client IdentityClient) bulkEditTags(ctx context.Context, request common.OC } // 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/regions/managingregions.htm#Home). +// This API can only be invoked from the tenancy's home region (https://docs.oracle.com/iaas/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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkMoveResources.go.html to see an example of how to use BulkMoveResources API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/BulkMoveResources.go.html to see an example of how to use BulkMoveResources API. // 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 @@ -786,7 +786,7 @@ func (client IdentityClient) bulkMoveResources(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CascadeDeleteTagNamespace.go.html to see an example of how to use CascadeDeleteTagNamespace API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CascadeDeleteTagNamespace.go.html to see an example of how to use CascadeDeleteTagNamespace API. // 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 @@ -852,7 +852,7 @@ func (client IdentityClient) cascadeDeleteTagNamespace(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeDomainCompartment.go.html to see an example of how to use ChangeDomainCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeDomainCompartment.go.html to see an example of how to use ChangeDomainCompartment API. // 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 @@ -922,7 +922,7 @@ func (client IdentityClient) changeDomainCompartment(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeDomainLicenseType.go.html to see an example of how to use ChangeDomainLicenseType API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeDomainLicenseType.go.html to see an example of how to use ChangeDomainLicenseType API. // 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 @@ -984,12 +984,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/policyreference/iampolicyreference.htm). +// For more information about IAM policies, see Details for IAM (https://docs.oracle.com/iaas/Content/Identity/policyreference/iampolicyreference.htm). // Moving a tag namespace moves all the tag key definitions contained in the tag namespace. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeTagNamespaceCompartment.go.html to see an example of how to use ChangeTagNamespaceCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ChangeTagNamespaceCompartment.go.html to see an example of how to use ChangeTagNamespaceCompartment API. // 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 @@ -1050,7 +1050,7 @@ 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/access/managing-user-credentials.htm). +// Managing User Credentials (https://docs.oracle.com/iaas/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. @@ -1060,7 +1060,7 @@ func (client IdentityClient) changeTagNamespaceCompartment(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateAuthToken.go.html to see an example of how to use CreateAuthToken API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateAuthToken.go.html to see an example of how to use CreateAuthToken API. // 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 @@ -1123,11 +1123,11 @@ func (client IdentityClient) createAuthToken(ctx context.Context, request common // CreateCompartment Creates a new compartment in the specified compartment. // 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). +// Resource Identifiers (https://docs.oracle.com/iaas/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/policieshow/how-policies-work.htm). +// How Policies Work (https://docs.oracle.com/iaas/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. @@ -1136,7 +1136,7 @@ func (client IdentityClient) createAuthToken(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateCompartment.go.html to see an example of how to use CreateCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateCompartment.go.html to see an example of how to use CreateCompartment API. // 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 @@ -1198,7 +1198,7 @@ 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/access/managing-user-credentials.htm). +// Managing User Credentials (https://docs.oracle.com/iaas/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. @@ -1208,7 +1208,7 @@ func (client IdentityClient) createCompartment(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateCustomerSecretKey.go.html to see an example of how to use CreateCustomerSecretKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateCustomerSecretKey.go.html to see an example of how to use CreateCustomerSecretKey API. // 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 @@ -1272,7 +1272,7 @@ func (client IdentityClient) createCustomerSecretKey(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDbCredential.go.html to see an example of how to use CreateDbCredential API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDbCredential.go.html to see an example of how to use CreateDbCredential API. // 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 @@ -1341,7 +1341,7 @@ func (client IdentityClient) createDbCredential(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDomain.go.html to see an example of how to use CreateDomain API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDomain.go.html to see an example of how to use CreateDomain API. // 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 @@ -1406,11 +1406,11 @@ func (client IdentityClient) createDomain(ctx context.Context, request common.OC // 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, which typically // reside within compartments inside the tenancy. For information about OCIDs, see -// Resource Identifiers (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). +// Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // 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/policieshow/how-policies-work.htm). +// about policies, see How Policies Work (https://docs.oracle.com/iaas/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 @@ -1418,7 +1418,7 @@ func (client IdentityClient) createDomain(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDynamicGroup.go.html to see an example of how to use CreateDynamicGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateDynamicGroup.go.html to see an example of how to use CreateDynamicGroup API. // 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 @@ -1483,10 +1483,10 @@ func (client IdentityClient) createDynamicGroup(ctx context.Context, request com // 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, which typically // reside within compartments inside the tenancy. For information about OCIDs, see -// Resource Identifiers (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). +// Resource Identifiers (https://docs.oracle.com/iaas/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/policieshow/how-policies-work.htm). +// information about policies, see How Policies Work (https://docs.oracle.com/iaas/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 @@ -1497,7 +1497,7 @@ func (client IdentityClient) createDynamicGroup(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateGroup.go.html to see an example of how to use CreateGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateGroup.go.html to see an example of how to use CreateGroup API. // 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 @@ -1557,12 +1557,12 @@ func (client IdentityClient) createGroup(ctx context.Context, request common.OCI return response, err } -// CreateIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// CreateIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Creates a new identity provider in your tenancy. For more information, see -// Identity Providers and Federation (https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm). +// Identity Providers and Federation (https://docs.oracle.com/iaas/Content/Identity/Concepts/federation.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. For information about -// OCIDs, see Resource Identifiers (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). +// OCIDs, see Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You must also specify a *name* for the `IdentityProvider`, which must be unique // across all `IdentityProvider` objects in your tenancy and cannot be changed. // You must also specify a *description* for the `IdentityProvider` (although @@ -1575,7 +1575,7 @@ func (client IdentityClient) createGroup(ctx context.Context, request common.OCI // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateIdentityProvider.go.html to see an example of how to use CreateIdentityProvider API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateIdentityProvider.go.html to see an example of how to use CreateIdentityProvider API. // 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 @@ -1635,13 +1635,13 @@ func (client IdentityClient) createIdentityProvider(ctx context.Context, request return response, err } -// CreateIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// CreateIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Creates a single mapping between an IdP group and an IAM Service // Group. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateIdpGroupMapping.go.html to see an example of how to use CreateIdpGroupMapping API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateIdpGroupMapping.go.html to see an example of how to use CreateIdpGroupMapping API. // 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 @@ -1705,7 +1705,7 @@ func (client IdentityClient) createIdpGroupMapping(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateMfaTotpDevice.go.html to see an example of how to use CreateMfaTotpDevice API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateMfaTotpDevice.go.html to see an example of how to use CreateMfaTotpDevice API. // 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 @@ -1770,21 +1770,21 @@ func (client IdentityClient) createMfaTotpDevice(ctx context.Context, request co // 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, which typically // reside within compartments inside the tenancy. For information about OCIDs, see -// Resource Identifiers (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). +// Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // 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/policieshow/how-policies-work.htm). +// about policies, see How Policies Work (https://docs.oracle.com/iaas/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). +// IP address specified in your network source. For more information, see Managing Network Sources (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingnetworksources.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateNetworkSource.go.html to see an example of how to use CreateNetworkSource API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateNetworkSource.go.html to see an example of how to use CreateNetworkSource API. // 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 @@ -1848,7 +1848,7 @@ func (client IdentityClient) createNetworkSource(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateOAuthClientCredential.go.html to see an example of how to use CreateOAuthClientCredential API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateOAuthClientCredential.go.html to see an example of how to use CreateOAuthClientCredential API. // 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 @@ -1909,7 +1909,7 @@ 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/usercred/usercredentials.htm). +// credentials, see User Credentials (https://docs.oracle.com/iaas/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 @@ -1923,7 +1923,7 @@ func (client IdentityClient) createOAuthClientCredential(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateOrResetUIPassword.go.html to see an example of how to use CreateOrResetUIPassword API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateOrResetUIPassword.go.html to see an example of how to use CreateOrResetUIPassword API. // 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 @@ -1984,21 +1984,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 Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). +// If you're new to policies, see Get Started with Policies (https://docs.oracle.com/iaas/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/policieshow/how-policies-work.htm) and -// Common Policies (https://docs.cloud.oracle.com/Content/Identity/policiescommon/commonpolicies.htm). +// policies, see How Policies Work (https://docs.oracle.com/iaas/Content/Identity/policieshow/how-policies-work.htm) and +// Common Policies (https://docs.oracle.com/iaas/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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreatePolicy.go.html to see an example of how to use CreatePolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreatePolicy.go.html to see an example of how to use CreatePolicy API. // 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 @@ -2062,7 +2062,7 @@ func (client IdentityClient) createPolicy(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateRegionSubscription.go.html to see an example of how to use CreateRegionSubscription API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateRegionSubscription.go.html to see an example of how to use CreateRegionSubscription API. // 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 @@ -2129,7 +2129,7 @@ func (client IdentityClient) createRegionSubscription(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateSmtpCredential.go.html to see an example of how to use CreateSmtpCredential API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateSmtpCredential.go.html to see an example of how to use CreateSmtpCredential API. // 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 @@ -2191,7 +2191,7 @@ func (client IdentityClient) createSmtpCredential(ctx context.Context, request c // CreateSwiftPassword **Deprecated. Use CreateAuthToken instead.** // Creates a new Swift password for the specified user. For information about what Swift passwords are for, see -// Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm). +// Managing User Credentials (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcredentials.htm). // You must specify a *description* for the Swift password (although it can be an empty string). It does not // have to be unique, and you can change it anytime with // UpdateSwiftPassword. @@ -2201,7 +2201,7 @@ func (client IdentityClient) createSmtpCredential(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateSwiftPassword.go.html to see an example of how to use CreateSwiftPassword API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateSwiftPassword.go.html to see an example of how to use CreateSwiftPassword API. // 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 @@ -2281,7 +2281,7 @@ func (client IdentityClient) createSwiftPassword(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTag.go.html to see an example of how to use CreateTag API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTag.go.html to see an example of how to use CreateTag API. // 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 @@ -2350,7 +2350,7 @@ func (client IdentityClient) createTag(ctx context.Context, request common.OCIRe // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTagDefault.go.html to see an example of how to use CreateTagDefault API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTagDefault.go.html to see an example of how to use CreateTagDefault API. // 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 @@ -2424,7 +2424,7 @@ func (client IdentityClient) createTagDefault(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTagNamespace.go.html to see an example of how to use CreateTagNamespace API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateTagNamespace.go.html to see an example of how to use CreateTagNamespace API. // 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 @@ -2485,12 +2485,12 @@ func (client IdentityClient) createTagNamespace(ctx context.Context, request com } // CreateUser Creates a new user in your tenancy. For conceptual information about users, your tenancy, and other -// IAM Service components, see Overview of IAM (https://docs.cloud.oracle.com/Content/Identity/getstarted/identity-domains.htm). +// IAM Service components, see Overview of IAM (https://docs.oracle.com/iaas/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, // which typically reside within compartments inside the tenancy. For information about OCIDs, see -// Resource Identifiers (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). +// Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You must also specify a *name* for the user, which must be unique across all users in your tenancy // and cannot be changed. Allowed characters: No spaces. Only letters, numerals, hyphens, periods, // underscores, +, and @. If you specify a name that's already in use, you'll get a 409 error. @@ -2510,13 +2510,13 @@ func (client IdentityClient) createTagNamespace(ctx context.Context, request com // CreateOrResetUIPassword). // If the user needs to access the Oracle Cloud Infrastructure REST API, you need to upload a // public API signing key for that user (see -// Required Keys and OCIDs (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm) and also +// Required Keys and OCIDs (https://docs.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm) and also // UploadApiKey). // **Important:** Make sure to inform the new user which compartment(s) they have access to. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateUser.go.html to see an example of how to use CreateUser API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/CreateUser.go.html to see an example of how to use CreateUser API. // 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 @@ -2586,7 +2586,7 @@ func (client IdentityClient) createUser(ctx context.Context, request common.OCIR // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeactivateDomain.go.html to see an example of how to use DeactivateDomain API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeactivateDomain.go.html to see an example of how to use DeactivateDomain API. // 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 @@ -2654,7 +2654,7 @@ func (client IdentityClient) deactivateDomain(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteApiKey.go.html to see an example of how to use DeleteApiKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteApiKey.go.html to see an example of how to use DeleteApiKey API. // 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 @@ -2712,7 +2712,7 @@ func (client IdentityClient) deleteApiKey(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteAuthToken.go.html to see an example of how to use DeleteAuthToken API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteAuthToken.go.html to see an example of how to use DeleteAuthToken API. // 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 @@ -2770,7 +2770,7 @@ func (client IdentityClient) deleteAuthToken(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteCompartment.go.html to see an example of how to use DeleteCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteCompartment.go.html to see an example of how to use DeleteCompartment API. // 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 @@ -2828,7 +2828,7 @@ func (client IdentityClient) deleteCompartment(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteCustomerSecretKey.go.html to see an example of how to use DeleteCustomerSecretKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteCustomerSecretKey.go.html to see an example of how to use DeleteCustomerSecretKey API. // 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 @@ -2886,7 +2886,7 @@ func (client IdentityClient) deleteCustomerSecretKey(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDbCredential.go.html to see an example of how to use DeleteDbCredential API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDbCredential.go.html to see an example of how to use DeleteDbCredential API. // 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 @@ -2950,7 +2950,7 @@ func (client IdentityClient) deleteDbCredential(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDomain.go.html to see an example of how to use DeleteDomain API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDomain.go.html to see an example of how to use DeleteDomain API. // 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 @@ -3008,7 +3008,7 @@ func (client IdentityClient) deleteDomain(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDynamicGroup.go.html to see an example of how to use DeleteDynamicGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteDynamicGroup.go.html to see an example of how to use DeleteDynamicGroup API. // 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 @@ -3066,7 +3066,7 @@ func (client IdentityClient) deleteDynamicGroup(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteGroup.go.html to see an example of how to use DeleteGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteGroup.go.html to see an example of how to use DeleteGroup API. // 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 @@ -3120,13 +3120,13 @@ func (client IdentityClient) deleteGroup(ctx context.Context, request common.OCI return response, err } -// DeleteIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// DeleteIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Deletes the specified identity provider. The identity provider must not have // any group mappings (see IdpGroupMapping). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteIdentityProvider.go.html to see an example of how to use DeleteIdentityProvider API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteIdentityProvider.go.html to see an example of how to use DeleteIdentityProvider API. // 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 @@ -3180,12 +3180,12 @@ func (client IdentityClient) deleteIdentityProvider(ctx context.Context, request return response, err } -// DeleteIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// DeleteIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Deletes the specified group mapping. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteIdpGroupMapping.go.html to see an example of how to use DeleteIdpGroupMapping API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteIdpGroupMapping.go.html to see an example of how to use DeleteIdpGroupMapping API. // 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 @@ -3243,7 +3243,7 @@ func (client IdentityClient) deleteIdpGroupMapping(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteMfaTotpDevice.go.html to see an example of how to use DeleteMfaTotpDevice API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteMfaTotpDevice.go.html to see an example of how to use DeleteMfaTotpDevice API. // 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 @@ -3301,7 +3301,7 @@ func (client IdentityClient) deleteMfaTotpDevice(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteNetworkSource.go.html to see an example of how to use DeleteNetworkSource API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteNetworkSource.go.html to see an example of how to use DeleteNetworkSource API. // 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 @@ -3359,7 +3359,7 @@ func (client IdentityClient) deleteNetworkSource(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteOAuthClientCredential.go.html to see an example of how to use DeleteOAuthClientCredential API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteOAuthClientCredential.go.html to see an example of how to use DeleteOAuthClientCredential API. // 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 @@ -3417,7 +3417,7 @@ func (client IdentityClient) deleteOAuthClientCredential(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeletePolicy.go.html to see an example of how to use DeletePolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeletePolicy.go.html to see an example of how to use DeletePolicy API. // 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 @@ -3475,7 +3475,7 @@ func (client IdentityClient) deletePolicy(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteSmtpCredential.go.html to see an example of how to use DeleteSmtpCredential API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteSmtpCredential.go.html to see an example of how to use DeleteSmtpCredential API. // 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 @@ -3534,7 +3534,7 @@ func (client IdentityClient) deleteSmtpCredential(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteSwiftPassword.go.html to see an example of how to use DeleteSwiftPassword API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteSwiftPassword.go.html to see an example of how to use DeleteSwiftPassword API. // 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 @@ -3607,7 +3607,7 @@ func (client IdentityClient) deleteSwiftPassword(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTag.go.html to see an example of how to use DeleteTag API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTag.go.html to see an example of how to use DeleteTag API. // 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 @@ -3665,7 +3665,7 @@ func (client IdentityClient) deleteTag(ctx context.Context, request common.OCIRe // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTagDefault.go.html to see an example of how to use DeleteTagDefault API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTagDefault.go.html to see an example of how to use DeleteTagDefault API. // 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 @@ -3727,7 +3727,7 @@ func (client IdentityClient) deleteTagDefault(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTagNamespace.go.html to see an example of how to use DeleteTagNamespace API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteTagNamespace.go.html to see an example of how to use DeleteTagNamespace API. // 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 @@ -3785,7 +3785,7 @@ func (client IdentityClient) deleteTagNamespace(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteUser.go.html to see an example of how to use DeleteUser API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/DeleteUser.go.html to see an example of how to use DeleteUser API. // 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 @@ -3850,7 +3850,7 @@ func (client IdentityClient) deleteUser(ctx context.Context, request common.OCIR // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/EnableReplicationToRegion.go.html to see an example of how to use EnableReplicationToRegion API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/EnableReplicationToRegion.go.html to see an example of how to use EnableReplicationToRegion API. // 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 @@ -3914,7 +3914,7 @@ func (client IdentityClient) enableReplicationToRegion(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GenerateTotpSeed.go.html to see an example of how to use GenerateTotpSeed API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GenerateTotpSeed.go.html to see an example of how to use GenerateTotpSeed API. // 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 @@ -3974,7 +3974,7 @@ func (client IdentityClient) generateTotpSeed(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetAuthenticationPolicy.go.html to see an example of how to use GetAuthenticationPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetAuthenticationPolicy.go.html to see an example of how to use GetAuthenticationPolicy API. // 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 @@ -4038,7 +4038,7 @@ func (client IdentityClient) getAuthenticationPolicy(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetCompartment.go.html to see an example of how to use GetCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetCompartment.go.html to see an example of how to use GetCompartment API. // 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 @@ -4096,7 +4096,7 @@ func (client IdentityClient) getCompartment(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetDomain.go.html to see an example of how to use GetDomain API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetDomain.go.html to see an example of how to use GetDomain API. // 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 @@ -4154,7 +4154,7 @@ func (client IdentityClient) getDomain(ctx context.Context, request common.OCIRe // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetDynamicGroup.go.html to see an example of how to use GetDynamicGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetDynamicGroup.go.html to see an example of how to use GetDynamicGroup API. // 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 @@ -4215,7 +4215,7 @@ func (client IdentityClient) getDynamicGroup(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetGroup.go.html to see an example of how to use GetGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetGroup.go.html to see an example of how to use GetGroup API. // 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 @@ -4273,7 +4273,7 @@ func (client IdentityClient) getGroup(ctx context.Context, request common.OCIReq // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIamWorkRequest.go.html to see an example of how to use GetIamWorkRequest API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIamWorkRequest.go.html to see an example of how to use GetIamWorkRequest API. // 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 @@ -4327,12 +4327,12 @@ func (client IdentityClient) getIamWorkRequest(ctx context.Context, request comm return response, err } -// GetIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// GetIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Gets the specified identity provider's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIdentityProvider.go.html to see an example of how to use GetIdentityProvider API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIdentityProvider.go.html to see an example of how to use GetIdentityProvider API. // 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 @@ -4386,12 +4386,12 @@ func (client IdentityClient) getIdentityProvider(ctx context.Context, request co return response, err } -// GetIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// GetIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Gets the specified group mapping. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIdpGroupMapping.go.html to see an example of how to use GetIdpGroupMapping API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetIdpGroupMapping.go.html to see an example of how to use GetIdpGroupMapping API. // 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 @@ -4449,7 +4449,7 @@ func (client IdentityClient) getIdpGroupMapping(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetMfaTotpDevice.go.html to see an example of how to use GetMfaTotpDevice API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetMfaTotpDevice.go.html to see an example of how to use GetMfaTotpDevice API. // 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 @@ -4507,7 +4507,7 @@ func (client IdentityClient) getMfaTotpDevice(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetNetworkSource.go.html to see an example of how to use GetNetworkSource API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetNetworkSource.go.html to see an example of how to use GetNetworkSource API. // 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 @@ -4565,7 +4565,7 @@ func (client IdentityClient) getNetworkSource(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetPolicy.go.html to see an example of how to use GetPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetPolicy.go.html to see an example of how to use GetPolicy API. // 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 @@ -4623,7 +4623,7 @@ func (client IdentityClient) getPolicy(ctx context.Context, request common.OCIRe // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetStandardTagTemplate.go.html to see an example of how to use GetStandardTagTemplate API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetStandardTagTemplate.go.html to see an example of how to use GetStandardTagTemplate API. // 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 @@ -4681,7 +4681,7 @@ func (client IdentityClient) getStandardTagTemplate(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTag.go.html to see an example of how to use GetTag API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTag.go.html to see an example of how to use GetTag API. // 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 @@ -4739,7 +4739,7 @@ func (client IdentityClient) getTag(ctx context.Context, request common.OCIReque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTagDefault.go.html to see an example of how to use GetTagDefault API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTagDefault.go.html to see an example of how to use GetTagDefault API. // 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 @@ -4797,7 +4797,7 @@ func (client IdentityClient) getTagDefault(ctx context.Context, request common.O // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTagNamespace.go.html to see an example of how to use GetTagNamespace API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTagNamespace.go.html to see an example of how to use GetTagNamespace API. // 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 @@ -4856,7 +4856,7 @@ func (client IdentityClient) getTagNamespace(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTaggingWorkRequest.go.html to see an example of how to use GetTaggingWorkRequest API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTaggingWorkRequest.go.html to see an example of how to use GetTaggingWorkRequest API. // 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 @@ -4914,7 +4914,7 @@ func (client IdentityClient) getTaggingWorkRequest(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTenancy.go.html to see an example of how to use GetTenancy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetTenancy.go.html to see an example of how to use GetTenancy API. // 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 @@ -4972,7 +4972,7 @@ func (client IdentityClient) getTenancy(ctx context.Context, request common.OCIR // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUser.go.html to see an example of how to use GetUser API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUser.go.html to see an example of how to use GetUser API. // 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 @@ -5030,7 +5030,7 @@ func (client IdentityClient) getUser(ctx context.Context, request common.OCIRequ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUserGroupMembership.go.html to see an example of how to use GetUserGroupMembership API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUserGroupMembership.go.html to see an example of how to use GetUserGroupMembership API. // 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 @@ -5089,7 +5089,7 @@ func (client IdentityClient) getUserGroupMembership(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUserUIPasswordInformation.go.html to see an example of how to use GetUserUIPasswordInformation API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetUserUIPasswordInformation.go.html to see an example of how to use GetUserUIPasswordInformation API. // 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 @@ -5148,7 +5148,7 @@ func (client IdentityClient) getUserUIPasswordInformation(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. // 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 @@ -5207,7 +5207,7 @@ func (client IdentityClient) getWorkRequest(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ImportStandardTags.go.html to see an example of how to use ImportStandardTags API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ImportStandardTags.go.html to see an example of how to use ImportStandardTags API. // 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 @@ -5274,7 +5274,7 @@ func (client IdentityClient) importStandardTags(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAllowedDomainLicenseTypes.go.html to see an example of how to use ListAllowedDomainLicenseTypes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAllowedDomainLicenseTypes.go.html to see an example of how to use ListAllowedDomainLicenseTypes API. // 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 @@ -5334,7 +5334,7 @@ func (client IdentityClient) listAllowedDomainLicenseTypes(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListApiKeys.go.html to see an example of how to use ListApiKeys API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListApiKeys.go.html to see an example of how to use ListApiKeys API. // 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 @@ -5393,7 +5393,7 @@ func (client IdentityClient) listApiKeys(ctx context.Context, request common.OCI // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAuthTokens.go.html to see an example of how to use ListAuthTokens API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAuthTokens.go.html to see an example of how to use ListAuthTokens API. // 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 @@ -5449,13 +5449,13 @@ func (client IdentityClient) listAuthTokens(ctx context.Context, request common. // ListAvailabilityDomains Lists the availability 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). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.oracle.com/iaas/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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAvailabilityDomains.go.html to see an example of how to use ListAvailabilityDomains API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAvailabilityDomains.go.html to see an example of how to use ListAvailabilityDomains API. // 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 @@ -5514,12 +5514,12 @@ func (client IdentityClient) listAvailabilityDomains(ctx context.Context, reques // and BulkMoveResources operations. The returned list of // resource-types provides the appropriate resource-type names to use with the bulk action operations along with // 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, +// require an OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to identify a specific resource, but some resource-types, // such as buckets, require you to provide other identifying information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListBulkActionResourceTypes.go.html to see an example of how to use ListBulkActionResourceTypes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListBulkActionResourceTypes.go.html to see an example of how to use ListBulkActionResourceTypes API. // 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 @@ -5577,7 +5577,7 @@ func (client IdentityClient) listBulkActionResourceTypes(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListBulkEditTagsResourceTypes.go.html to see an example of how to use ListBulkEditTagsResourceTypes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListBulkEditTagsResourceTypes.go.html to see an example of how to use ListBulkEditTagsResourceTypes API. // 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 @@ -5644,11 +5644,11 @@ func (client IdentityClient) listBulkEditTagsResourceTypes(ctx context.Context, // tenancy (root compartment). When set to true, the entire hierarchy of compartments can be returned. // 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). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCompartments.go.html to see an example of how to use ListCompartments API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCompartments.go.html to see an example of how to use ListCompartments API. // 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 @@ -5703,11 +5703,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/Tagging/Tasks/usingcosttrackingtags.htm). +// cost-tracking tags, see Using Cost-tracking Tags (https://docs.oracle.com/iaas/Content/Tagging/Tasks/usingcosttrackingtags.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCostTrackingTags.go.html to see an example of how to use ListCostTrackingTags API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCostTrackingTags.go.html to see an example of how to use ListCostTrackingTags API. // 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 @@ -5766,7 +5766,7 @@ func (client IdentityClient) listCostTrackingTags(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCustomerSecretKeys.go.html to see an example of how to use ListCustomerSecretKeys API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCustomerSecretKeys.go.html to see an example of how to use ListCustomerSecretKeys API. // 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 @@ -5824,7 +5824,7 @@ func (client IdentityClient) listCustomerSecretKeys(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDbCredentials.go.html to see an example of how to use ListDbCredentials API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDbCredentials.go.html to see an example of how to use ListDbCredentials API. // 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 @@ -5882,7 +5882,7 @@ func (client IdentityClient) listDbCredentials(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDomains.go.html to see an example of how to use ListDomains API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDomains.go.html to see an example of how to use ListDomains API. // 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 @@ -5938,11 +5938,11 @@ 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). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDynamicGroups.go.html to see an example of how to use ListDynamicGroups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDynamicGroups.go.html to see an example of how to use ListDynamicGroups API. // 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 @@ -5998,11 +5998,11 @@ 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). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListFaultDomains.go.html to see an example of how to use ListFaultDomains API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListFaultDomains.go.html to see an example of how to use ListFaultDomains API. // 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 @@ -6058,11 +6058,11 @@ 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). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListGroups.go.html to see an example of how to use ListGroups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListGroups.go.html to see an example of how to use ListGroups API. // 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 @@ -6120,7 +6120,7 @@ func (client IdentityClient) listGroups(ctx context.Context, request common.OCIR // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequestErrors.go.html to see an example of how to use ListIamWorkRequestErrors API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequestErrors.go.html to see an example of how to use ListIamWorkRequestErrors API. // 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 @@ -6178,7 +6178,7 @@ func (client IdentityClient) listIamWorkRequestErrors(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequestLogs.go.html to see an example of how to use ListIamWorkRequestLogs API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequestLogs.go.html to see an example of how to use ListIamWorkRequestLogs API. // 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 @@ -6236,7 +6236,7 @@ func (client IdentityClient) listIamWorkRequestLogs(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequests.go.html to see an example of how to use ListIamWorkRequests API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequests.go.html to see an example of how to use ListIamWorkRequests API. // 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 @@ -6290,12 +6290,12 @@ func (client IdentityClient) listIamWorkRequests(ctx context.Context, request co return response, err } -// ListIdentityProviderGroups **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// ListIdentityProviderGroups **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Lists the identity provider groups. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdentityProviderGroups.go.html to see an example of how to use ListIdentityProviderGroups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdentityProviderGroups.go.html to see an example of how to use ListIdentityProviderGroups API. // 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 @@ -6365,15 +6365,15 @@ func (m *listidentityprovider) UnmarshalPolymorphicJSON(data []byte) (interface{ return res, nil } -// ListIdentityProviders **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// ListIdentityProviders **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Lists all the identity providers in your tenancy. You must specify the identity provider type (e.g., `SAML2` for // 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). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdentityProviders.go.html to see an example of how to use ListIdentityProviders API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdentityProviders.go.html to see an example of how to use ListIdentityProviders API. // 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 @@ -6427,12 +6427,12 @@ func (client IdentityClient) listIdentityProviders(ctx context.Context, request return response, err } -// ListIdpGroupMappings **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// ListIdpGroupMappings **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Lists the group mappings for the specified identity provider. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdpGroupMappings.go.html to see an example of how to use ListIdpGroupMappings API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdpGroupMappings.go.html to see an example of how to use ListIdpGroupMappings API. // 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 @@ -6491,7 +6491,7 @@ func (client IdentityClient) listIdpGroupMappings(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListMfaTotpDevices.go.html to see an example of how to use ListMfaTotpDevices API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListMfaTotpDevices.go.html to see an example of how to use ListMfaTotpDevices API. // 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 @@ -6547,11 +6547,11 @@ 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). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListNetworkSources.go.html to see an example of how to use ListNetworkSources API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListNetworkSources.go.html to see an example of how to use ListNetworkSources API. // 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 @@ -6609,7 +6609,7 @@ func (client IdentityClient) listNetworkSources(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListOAuthClientCredentials.go.html to see an example of how to use ListOAuthClientCredentials API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListOAuthClientCredentials.go.html to see an example of how to use ListOAuthClientCredentials API. // 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 @@ -6664,13 +6664,13 @@ func (client IdentityClient) listOAuthClientCredentials(ctx context.Context, req } // ListPolicies Lists the policies in the specified compartment (either the tenancy or another of your compartments). -// See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.oracle.com/iaas/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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListPolicies.go.html to see an example of how to use ListPolicies API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListPolicies.go.html to see an example of how to use ListPolicies 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 @@ -6728,7 +6728,7 @@ func (client IdentityClient) listPolicies(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListRegionSubscriptions.go.html to see an example of how to use ListRegionSubscriptions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListRegionSubscriptions.go.html to see an example of how to use ListRegionSubscriptions API. // 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 @@ -6786,7 +6786,7 @@ func (client IdentityClient) listRegionSubscriptions(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListRegions.go.html to see an example of how to use ListRegions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListRegions.go.html to see an example of how to use ListRegions API. // A default retry strategy applies to this operation ListRegions() func (client IdentityClient) ListRegions(ctx context.Context) (response ListRegionsResponse, err error) { var ociResponse common.OCIResponse @@ -6812,6 +6812,7 @@ func (client IdentityClient) ListRegions(ctx context.Context) (response ListRegi // listRegions performs the request (retry policy is not enabled without a request object) func (client IdentityClient) listRegions(ctx context.Context) (common.OCIResponse, error) { + httpRequest := common.MakeDefaultHTTPRequest(http.MethodGet, "/regions") var err error @@ -6835,7 +6836,7 @@ func (client IdentityClient) listRegions(ctx context.Context) (common.OCIRespons // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListSmtpCredentials.go.html to see an example of how to use ListSmtpCredentials API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListSmtpCredentials.go.html to see an example of how to use ListSmtpCredentials API. // 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 @@ -6893,7 +6894,7 @@ func (client IdentityClient) listSmtpCredentials(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListStandardTagNamespaces.go.html to see an example of how to use ListStandardTagNamespaces API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListStandardTagNamespaces.go.html to see an example of how to use ListStandardTagNamespaces API. // 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 @@ -6953,7 +6954,7 @@ func (client IdentityClient) listStandardTagNamespaces(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListSwiftPasswords.go.html to see an example of how to use ListSwiftPasswords API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListSwiftPasswords.go.html to see an example of how to use ListSwiftPasswords API. // 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 @@ -7011,7 +7012,7 @@ func (client IdentityClient) listSwiftPasswords(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTagDefaults.go.html to see an example of how to use ListTagDefaults API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTagDefaults.go.html to see an example of how to use ListTagDefaults API. // 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 @@ -7069,7 +7070,7 @@ func (client IdentityClient) listTagDefaults(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTagNamespaces.go.html to see an example of how to use ListTagNamespaces API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTagNamespaces.go.html to see an example of how to use ListTagNamespaces API. // 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 @@ -7127,7 +7128,7 @@ func (client IdentityClient) listTagNamespaces(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequestErrors.go.html to see an example of how to use ListTaggingWorkRequestErrors API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequestErrors.go.html to see an example of how to use ListTaggingWorkRequestErrors API. // 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 @@ -7185,7 +7186,7 @@ func (client IdentityClient) listTaggingWorkRequestErrors(ctx context.Context, r // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequestLogs.go.html to see an example of how to use ListTaggingWorkRequestLogs API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequestLogs.go.html to see an example of how to use ListTaggingWorkRequestLogs API. // 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 @@ -7243,7 +7244,7 @@ func (client IdentityClient) listTaggingWorkRequestLogs(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequests.go.html to see an example of how to use ListTaggingWorkRequests API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequests.go.html to see an example of how to use ListTaggingWorkRequests API. // 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 @@ -7301,7 +7302,7 @@ func (client IdentityClient) listTaggingWorkRequests(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTags.go.html to see an example of how to use ListTags API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTags.go.html to see an example of how to use ListTags API. // 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 @@ -7357,7 +7358,7 @@ func (client IdentityClient) listTags(ctx context.Context, request common.OCIReq // ListUserGroupMemberships Lists the `UserGroupMembership` objects in your tenancy. You must specify your tenancy's OCID // as the value for the compartment ID -// (see Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five)). +// (see Where to Get the Tenancy's OCID and User's OCID (https://docs.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five)). // You must also then filter the list in one of these ways: // - You can limit the results to just the memberships for a given user by specifying a `userId`. // - Similarly, you can limit the results to just the memberships for a given group by specifying a `groupId`. @@ -7367,7 +7368,7 @@ func (client IdentityClient) listTags(ctx context.Context, request common.OCIReq // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListUserGroupMemberships.go.html to see an example of how to use ListUserGroupMemberships API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListUserGroupMemberships.go.html to see an example of how to use ListUserGroupMemberships API. // 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 @@ -7423,11 +7424,11 @@ 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). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListUsers.go.html to see an example of how to use ListUsers API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListUsers.go.html to see an example of how to use ListUsers API. // 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 @@ -7485,7 +7486,7 @@ func (client IdentityClient) listUsers(ctx context.Context, request common.OCIRe // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. // 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 @@ -7545,11 +7546,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/compartments/managingcompartments.htm#MoveCompartment). +// information, see Moving a Compartment (https://docs.oracle.com/iaas/Content/Identity/compartments/managingcompartments.htm#MoveCompartment). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/MoveCompartment.go.html to see an example of how to use MoveCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/MoveCompartment.go.html to see an example of how to use MoveCompartment API. // 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 @@ -7613,7 +7614,7 @@ func (client IdentityClient) moveCompartment(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RecoverCompartment.go.html to see an example of how to use RecoverCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RecoverCompartment.go.html to see an example of how to use RecoverCompartment API. // 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 @@ -7672,7 +7673,7 @@ func (client IdentityClient) recoverCompartment(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveTagDefaultLock.go.html to see an example of how to use RemoveTagDefaultLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveTagDefaultLock.go.html to see an example of how to use RemoveTagDefaultLock API. // 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 @@ -7736,7 +7737,7 @@ func (client IdentityClient) removeTagDefaultLock(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveTagNamespaceLock.go.html to see an example of how to use RemoveTagNamespaceLock API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveTagNamespaceLock.go.html to see an example of how to use RemoveTagNamespaceLock API. // 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 @@ -7800,7 +7801,7 @@ func (client IdentityClient) removeTagNamespaceLock(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveUserFromGroup.go.html to see an example of how to use RemoveUserFromGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveUserFromGroup.go.html to see an example of how to use RemoveUserFromGroup API. // 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 @@ -7858,7 +7859,7 @@ func (client IdentityClient) removeUserFromGroup(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ResetIdpScimClient.go.html to see an example of how to use ResetIdpScimClient API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ResetIdpScimClient.go.html to see an example of how to use ResetIdpScimClient API. // 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 @@ -7917,7 +7918,7 @@ func (client IdentityClient) resetIdpScimClient(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateAuthToken.go.html to see an example of how to use UpdateAuthToken API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateAuthToken.go.html to see an example of how to use UpdateAuthToken API. // 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 @@ -7976,7 +7977,7 @@ func (client IdentityClient) updateAuthToken(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateAuthenticationPolicy.go.html to see an example of how to use UpdateAuthenticationPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateAuthenticationPolicy.go.html to see an example of how to use UpdateAuthenticationPolicy API. // 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 @@ -8035,7 +8036,7 @@ func (client IdentityClient) updateAuthenticationPolicy(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateCompartment.go.html to see an example of how to use UpdateCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateCompartment.go.html to see an example of how to use UpdateCompartment API. // 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 @@ -8094,7 +8095,7 @@ func (client IdentityClient) updateCompartment(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateCustomerSecretKey.go.html to see an example of how to use UpdateCustomerSecretKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateCustomerSecretKey.go.html to see an example of how to use UpdateCustomerSecretKey API. // 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 @@ -8155,7 +8156,7 @@ func (client IdentityClient) updateCustomerSecretKey(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateDomain.go.html to see an example of how to use UpdateDomain API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateDomain.go.html to see an example of how to use UpdateDomain API. // 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 @@ -8214,7 +8215,7 @@ func (client IdentityClient) updateDomain(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateDynamicGroup.go.html to see an example of how to use UpdateDynamicGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateDynamicGroup.go.html to see an example of how to use UpdateDynamicGroup API. // 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 @@ -8273,7 +8274,7 @@ func (client IdentityClient) updateDynamicGroup(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateGroup.go.html to see an example of how to use UpdateGroup API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateGroup.go.html to see an example of how to use UpdateGroup API. // 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 @@ -8328,12 +8329,12 @@ func (client IdentityClient) updateGroup(ctx context.Context, request common.OCI return response, err } -// UpdateIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// UpdateIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Updates the specified identity provider. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateIdentityProvider.go.html to see an example of how to use UpdateIdentityProvider API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateIdentityProvider.go.html to see an example of how to use UpdateIdentityProvider API. // 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 @@ -8388,12 +8389,12 @@ func (client IdentityClient) updateIdentityProvider(ctx context.Context, request return response, err } -// UpdateIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). +// UpdateIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.oracle.com/iaas/Content/Identity/Reference/deprecatediamapis.htm). // Updates the specified group mapping. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateIdpGroupMapping.go.html to see an example of how to use UpdateIdpGroupMapping API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateIdpGroupMapping.go.html to see an example of how to use UpdateIdpGroupMapping API. // 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 @@ -8452,7 +8453,7 @@ func (client IdentityClient) updateIdpGroupMapping(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateNetworkSource.go.html to see an example of how to use UpdateNetworkSource API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateNetworkSource.go.html to see an example of how to use UpdateNetworkSource API. // 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 @@ -8511,7 +8512,7 @@ func (client IdentityClient) updateNetworkSource(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateOAuthClientCredential.go.html to see an example of how to use UpdateOAuthClientCredential API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateOAuthClientCredential.go.html to see an example of how to use UpdateOAuthClientCredential API. // 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 @@ -8571,7 +8572,7 @@ func (client IdentityClient) updateOAuthClientCredential(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdatePolicy.go.html to see an example of how to use UpdatePolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdatePolicy.go.html to see an example of how to use UpdatePolicy API. // 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 @@ -8630,7 +8631,7 @@ func (client IdentityClient) updatePolicy(ctx context.Context, request common.OC // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateSmtpCredential.go.html to see an example of how to use UpdateSmtpCredential API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateSmtpCredential.go.html to see an example of how to use UpdateSmtpCredential API. // 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 @@ -8690,7 +8691,7 @@ func (client IdentityClient) updateSmtpCredential(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateSwiftPassword.go.html to see an example of how to use UpdateSwiftPassword API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateSwiftPassword.go.html to see an example of how to use UpdateSwiftPassword API. // 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 @@ -8756,7 +8757,7 @@ func (client IdentityClient) updateSwiftPassword(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTag.go.html to see an example of how to use UpdateTag API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTag.go.html to see an example of how to use UpdateTag API. // 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 @@ -8819,7 +8820,7 @@ func (client IdentityClient) updateTag(ctx context.Context, request common.OCIRe // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTagDefault.go.html to see an example of how to use UpdateTagDefault API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTagDefault.go.html to see an example of how to use UpdateTagDefault API. // 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 @@ -8879,12 +8880,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/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). +// Retiring Key Definitions and Namespace Definitions (https://docs.oracle.com/iaas/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). // You can't add a namespace with the same name as a retired namespace in the same tenancy. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTagNamespace.go.html to see an example of how to use UpdateTagNamespace API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTagNamespace.go.html to see an example of how to use UpdateTagNamespace API. // 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 @@ -8943,7 +8944,7 @@ func (client IdentityClient) updateTagNamespace(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUser.go.html to see an example of how to use UpdateUser API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUser.go.html to see an example of how to use UpdateUser API. // 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 @@ -9002,7 +9003,7 @@ func (client IdentityClient) updateUser(ctx context.Context, request common.OCIR // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUserCapabilities.go.html to see an example of how to use UpdateUserCapabilities API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUserCapabilities.go.html to see an example of how to use UpdateUserCapabilities API. // 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 @@ -9061,7 +9062,7 @@ func (client IdentityClient) updateUserCapabilities(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUserState.go.html to see an example of how to use UpdateUserState API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUserState.go.html to see an example of how to use UpdateUserState API. // 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 @@ -9131,7 +9132,7 @@ func (client IdentityClient) updateUserState(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UploadApiKey.go.html to see an example of how to use UploadApiKey API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UploadApiKey.go.html to see an example of how to use UploadApiKey API. // 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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go index 837114fc6b..dd441b2f9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -20,10 +20,10 @@ import ( // Saml2IdentityProvider // is a specific type of `IdentityProvider` that supports the SAML 2.0 protocol. Each // `IdentityProvider` object has its own OCID. For more information, see -// Identity Providers and Federation (https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm). +// Identity Providers and Federation (https://docs.oracle.com/iaas/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). +// see Get Started with Policies (https://docs.oracle.com/iaas/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 { @@ -66,12 +66,12 @@ type IdentityProvider interface { GetInactiveStatus() *int64 // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` GetDefinedTags() map[string]map[string]interface{} } @@ -131,7 +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) + common.Logf("Received unsupported enum value for IdentityProvider: %s.", m.Protocol) return *m, nil } } @@ -200,7 +200,7 @@ func (m identityprovider) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c4abea278b..0e058c2162 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -53,7 +53,7 @@ func (m IdentityProviderGroupSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 72c40060fd..3fb03292ce 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -18,7 +18,7 @@ import ( // 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). +// Identity Providers and Federation (https://docs.oracle.com/iaas/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. @@ -67,7 +67,7 @@ func (m IdpGroupMapping) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 70ddf64c77..d9733f8f40 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -36,7 +36,7 @@ func (m ImportStandardTagsDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d0dda2753d..75fc6f2788 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ImportStandardTags.go.html to see an example of how to use ImportStandardTagsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ImportStandardTags.go.html to see an example of how to use ImportStandardTagsRequest. type ImportStandardTagsRequest struct { // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -69,7 +69,7 @@ func (request ImportStandardTagsRequest) RetryPolicy() *common.RetryPolicy { func (request ImportStandardTagsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -84,7 +84,7 @@ type ImportStandardTagsResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index 0e1e3360d4..954ab98f7e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAllowedDomainLicenseTypes.go.html to see an example of how to use ListAllowedDomainLicenseTypesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAllowedDomainLicenseTypes.go.html to see an example of how to use ListAllowedDomainLicenseTypesRequest. type ListAllowedDomainLicenseTypesRequest struct { // The license type of the identity domain. @@ -62,7 +62,7 @@ func (request ListAllowedDomainLicenseTypesRequest) RetryPolicy() *common.RetryP func (request ListAllowedDomainLicenseTypesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_api_keys_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_api_keys_request_response.go index 00facb47c5..0eff798bc0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_api_keys_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_api_keys_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListApiKeys.go.html to see an example of how to use ListApiKeysRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListApiKeys.go.html to see an example of how to use ListApiKeysRequest. type ListApiKeysRequest struct { // The OCID of the user. @@ -62,7 +62,7 @@ func (request ListApiKeysRequest) RetryPolicy() *common.RetryPolicy { func (request ListApiKeysRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_auth_tokens_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_auth_tokens_request_response.go index 7cce2a6143..89a25bf064 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_auth_tokens_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_auth_tokens_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAuthTokens.go.html to see an example of how to use ListAuthTokensRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAuthTokens.go.html to see an example of how to use ListAuthTokensRequest. type ListAuthTokensRequest struct { // The OCID of the user. @@ -62,7 +62,7 @@ func (request ListAuthTokensRequest) RetryPolicy() *common.RetryPolicy { func (request ListAuthTokensRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_availability_domains_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_availability_domains_request_response.go index 8888be3c08..21f130f303 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_availability_domains_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_availability_domains_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAvailabilityDomains.go.html to see an example of how to use ListAvailabilityDomainsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListAvailabilityDomains.go.html to see an example of how to use ListAvailabilityDomainsRequest. type ListAvailabilityDomainsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -62,7 +62,7 @@ func (request ListAvailabilityDomainsRequest) RetryPolicy() *common.RetryPolicy func (request ListAvailabilityDomainsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5017bd3157..cfcd4908e9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListBulkActionResourceTypes.go.html to see an example of how to use ListBulkActionResourceTypesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListBulkActionResourceTypes.go.html to see an example of how to use ListBulkActionResourceTypesRequest. type ListBulkActionResourceTypesRequest struct { // The type of bulk action. @@ -71,7 +71,7 @@ func (request ListBulkActionResourceTypesRequest) ValidateEnumValue() (bool, err 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index eea8a0144b..7c831cc606 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListBulkEditTagsResourceTypes.go.html to see an example of how to use ListBulkEditTagsResourceTypesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListBulkEditTagsResourceTypes.go.html to see an example of how to use ListBulkEditTagsResourceTypesRequest. type ListBulkEditTagsResourceTypesRequest struct { // The value of the `opc-next-page` response header from the previous "List" call. @@ -65,7 +65,7 @@ func (request ListBulkEditTagsResourceTypesRequest) RetryPolicy() *common.RetryP func (request ListBulkEditTagsResourceTypesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 73e2fbbf05..ef7405016c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCompartments.go.html to see an example of how to use ListCompartmentsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCompartments.go.html to see an example of how to use ListCompartmentsRequest. type ListCompartmentsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -114,7 +114,7 @@ func (request ListCompartmentsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index f1d6883882..f9572b89ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCostTrackingTags.go.html to see an example of how to use ListCostTrackingTagsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCostTrackingTags.go.html to see an example of how to use ListCostTrackingTagsRequest. type ListCostTrackingTagsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -68,7 +68,7 @@ func (request ListCostTrackingTagsRequest) RetryPolicy() *common.RetryPolicy { func (request ListCostTrackingTagsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -89,7 +89,7 @@ type ListCostTrackingTagsResponse struct { // For pagination of a list of cost tracking tag. 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. For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 235d1c34f3..05d244a62c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCustomerSecretKeys.go.html to see an example of how to use ListCustomerSecretKeysRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListCustomerSecretKeys.go.html to see an example of how to use ListCustomerSecretKeysRequest. type ListCustomerSecretKeysRequest struct { // The OCID of the user. @@ -62,7 +62,7 @@ func (request ListCustomerSecretKeysRequest) RetryPolicy() *common.RetryPolicy { func (request ListCustomerSecretKeysRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1179bea369..fcd3b9b614 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDbCredentials.go.html to see an example of how to use ListDbCredentialsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDbCredentials.go.html to see an example of how to use ListDbCredentialsRequest. type ListDbCredentialsRequest struct { // The OCID of the user. @@ -96,7 +96,7 @@ func (request ListDbCredentialsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f42dc5185b..1bc1f7d71b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDomains.go.html to see an example of how to use ListDomainsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDomains.go.html to see an example of how to use ListDomainsRequest. type ListDomainsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -114,7 +114,7 @@ func (request ListDomainsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a2a3133184..cb350382ec 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDynamicGroups.go.html to see an example of how to use ListDynamicGroupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListDynamicGroups.go.html to see an example of how to use ListDynamicGroupsRequest. type ListDynamicGroupsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -96,7 +96,7 @@ func (request ListDynamicGroupsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_fault_domains_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_fault_domains_request_response.go index cf8253df99..3ac00b4396 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_fault_domains_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_fault_domains_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListFaultDomains.go.html to see an example of how to use ListFaultDomainsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListFaultDomains.go.html to see an example of how to use ListFaultDomainsRequest. type ListFaultDomainsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -65,7 +65,7 @@ func (request ListFaultDomainsRequest) RetryPolicy() *common.RetryPolicy { func (request ListFaultDomainsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ef5f2ff702..a1c38a3a81 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListGroups.go.html to see an example of how to use ListGroupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListGroups.go.html to see an example of how to use ListGroupsRequest. type ListGroupsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -96,7 +96,7 @@ func (request ListGroupsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 72620d2981..a6971a7def 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequestErrors.go.html to see an example of how to use ListIamWorkRequestErrorsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequestErrors.go.html to see an example of how to use ListIamWorkRequestErrorsRequest. type ListIamWorkRequestErrorsRequest struct { // The OCID of the IAM work request. @@ -75,7 +75,7 @@ func (request ListIamWorkRequestErrorsRequest) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -91,7 +91,7 @@ type ListIamWorkRequestErrorsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 616e44183d..919e63694f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequestLogs.go.html to see an example of how to use ListIamWorkRequestLogsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequestLogs.go.html to see an example of how to use ListIamWorkRequestLogsRequest. type ListIamWorkRequestLogsRequest struct { // The OCID of the IAM work request. @@ -75,7 +75,7 @@ func (request ListIamWorkRequestLogsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 5f4267a5d7..1aa78f67e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequests.go.html to see an example of how to use ListIamWorkRequestsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIamWorkRequests.go.html to see an example of how to use ListIamWorkRequestsRequest. type ListIamWorkRequestsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -71,7 +71,7 @@ func (request ListIamWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { func (request ListIamWorkRequestsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index cacc610771..16bf05a5e9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdentityProviderGroups.go.html to see an example of how to use ListIdentityProviderGroupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdentityProviderGroups.go.html to see an example of how to use ListIdentityProviderGroupsRequest. type ListIdentityProviderGroupsRequest struct { // The OCID of the identity provider. @@ -77,7 +77,7 @@ func (request ListIdentityProviderGroupsRequest) ValidateEnumValue() (bool, erro 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8bc5b68186..e3e4c489d4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdentityProviders.go.html to see an example of how to use ListIdentityProvidersRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdentityProviders.go.html to see an example of how to use ListIdentityProvidersRequest. type ListIdentityProvidersRequest struct { // The protocol used for federation. @@ -102,7 +102,7 @@ func (request ListIdentityProvidersRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 7131ce61e6..ed484f2345 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdpGroupMappings.go.html to see an example of how to use ListIdpGroupMappingsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListIdpGroupMappings.go.html to see an example of how to use ListIdpGroupMappingsRequest. type ListIdpGroupMappingsRequest struct { // The OCID of the identity provider. @@ -68,7 +68,7 @@ func (request ListIdpGroupMappingsRequest) RetryPolicy() *common.RetryPolicy { func (request ListIdpGroupMappingsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ba484dc6d2..8e2d14439f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListMfaTotpDevices.go.html to see an example of how to use ListMfaTotpDevicesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListMfaTotpDevices.go.html to see an example of how to use ListMfaTotpDevicesRequest. type ListMfaTotpDevicesRequest struct { // The OCID of the user. @@ -87,7 +87,7 @@ func (request ListMfaTotpDevicesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ff73da6ab3..20593dd409 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListNetworkSources.go.html to see an example of how to use ListNetworkSourcesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListNetworkSources.go.html to see an example of how to use ListNetworkSourcesRequest. type ListNetworkSourcesRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -96,7 +96,7 @@ func (request ListNetworkSourcesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 20e704fee5..dfa7f1833c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListOAuthClientCredentials.go.html to see an example of how to use ListOAuthClientCredentialsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListOAuthClientCredentials.go.html to see an example of how to use ListOAuthClientCredentialsRequest. type ListOAuthClientCredentialsRequest struct { // The OCID of the user. @@ -74,7 +74,7 @@ func (request ListOAuthClientCredentialsRequest) ValidateEnumValue() (bool, erro 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b1c8b500e4..f816ef87af 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListPolicies.go.html to see an example of how to use ListPoliciesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListPolicies.go.html to see an example of how to use ListPoliciesRequest. type ListPoliciesRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -96,7 +96,7 @@ func (request ListPoliciesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_region_subscriptions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_region_subscriptions_request_response.go index 2828ffa61f..ce6671354a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_region_subscriptions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_region_subscriptions_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListRegionSubscriptions.go.html to see an example of how to use ListRegionSubscriptionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListRegionSubscriptions.go.html to see an example of how to use ListRegionSubscriptionsRequest. type ListRegionSubscriptionsRequest struct { // The OCID of the tenancy. @@ -62,7 +62,7 @@ func (request ListRegionSubscriptionsRequest) RetryPolicy() *common.RetryPolicy func (request ListRegionSubscriptionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_regions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_regions_request_response.go index 231dc0056f..69f1d2b36a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_regions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_regions_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListRegions.go.html to see an example of how to use ListRegionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListRegions.go.html to see an example of how to use ListRegionsRequest. type ListRegionsRequest struct { // Unique Oracle-assigned identifier for the request. @@ -59,7 +59,7 @@ func (request ListRegionsRequest) RetryPolicy() *common.RetryPolicy { func (request ListRegionsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_smtp_credentials_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_smtp_credentials_request_response.go index 62c0c73085..4bda967e79 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_smtp_credentials_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_smtp_credentials_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListSmtpCredentials.go.html to see an example of how to use ListSmtpCredentialsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListSmtpCredentials.go.html to see an example of how to use ListSmtpCredentialsRequest. type ListSmtpCredentialsRequest struct { // The OCID of the user. @@ -62,7 +62,7 @@ func (request ListSmtpCredentialsRequest) RetryPolicy() *common.RetryPolicy { func (request ListSmtpCredentialsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c224880976..5b10d7f914 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListStandardTagNamespaces.go.html to see an example of how to use ListStandardTagNamespacesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListStandardTagNamespaces.go.html to see an example of how to use ListStandardTagNamespacesRequest. type ListStandardTagNamespacesRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -68,7 +68,7 @@ func (request ListStandardTagNamespacesRequest) RetryPolicy() *common.RetryPolic func (request ListStandardTagNamespacesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_swift_passwords_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_swift_passwords_request_response.go index 69ff22d823..a9242fddd2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_swift_passwords_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_swift_passwords_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListSwiftPasswords.go.html to see an example of how to use ListSwiftPasswordsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListSwiftPasswords.go.html to see an example of how to use ListSwiftPasswordsRequest. type ListSwiftPasswordsRequest struct { // The OCID of the user. @@ -62,7 +62,7 @@ func (request ListSwiftPasswordsRequest) RetryPolicy() *common.RetryPolicy { func (request ListSwiftPasswordsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_defaults_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_defaults_request_response.go index 1b14724745..5736eecdc0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_defaults_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_defaults_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTagDefaults.go.html to see an example of how to use ListTagDefaultsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTagDefaults.go.html to see an example of how to use ListTagDefaultsRequest. type ListTagDefaultsRequest struct { // The value of the `opc-next-page` response header from the previous "List" call. @@ -80,7 +80,7 @@ func (request ListTagDefaultsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_namespaces_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_namespaces_request_response.go index d82639a5d2..ffa9013974 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_namespaces_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_namespaces_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTagNamespaces.go.html to see an example of how to use ListTagNamespacesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTagNamespaces.go.html to see an example of how to use ListTagNamespacesRequest. type ListTagNamespacesRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -78,7 +78,7 @@ func (request ListTagNamespacesRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ccd6159c99..7b9cf087f9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequestErrors.go.html to see an example of how to use ListTaggingWorkRequestErrorsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequestErrors.go.html to see an example of how to use ListTaggingWorkRequestErrorsRequest. type ListTaggingWorkRequestErrorsRequest struct { // The OCID of the work request. @@ -68,7 +68,7 @@ func (request ListTaggingWorkRequestErrorsRequest) RetryPolicy() *common.RetryPo func (request ListTaggingWorkRequestErrorsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 4ae9548d5f..01c9a12583 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequestLogs.go.html to see an example of how to use ListTaggingWorkRequestLogsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequestLogs.go.html to see an example of how to use ListTaggingWorkRequestLogsRequest. type ListTaggingWorkRequestLogsRequest struct { // The OCID of the work request. @@ -68,7 +68,7 @@ func (request ListTaggingWorkRequestLogsRequest) RetryPolicy() *common.RetryPoli func (request ListTaggingWorkRequestLogsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index b62628a59f..f154831382 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequests.go.html to see an example of how to use ListTaggingWorkRequestsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTaggingWorkRequests.go.html to see an example of how to use ListTaggingWorkRequestsRequest. type ListTaggingWorkRequestsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -71,7 +71,7 @@ func (request ListTaggingWorkRequestsRequest) RetryPolicy() *common.RetryPolicy func (request ListTaggingWorkRequestsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tags_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tags_request_response.go index ba4a3ba9be..5f5c1f4b77 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tags_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tags_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTags.go.html to see an example of how to use ListTagsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListTags.go.html to see an example of how to use ListTagsRequest. type ListTagsRequest struct { // The OCID of the tag namespace. @@ -74,7 +74,7 @@ func (request ListTagsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ea7d538c84..b7f76cbe0c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListUserGroupMemberships.go.html to see an example of how to use ListUserGroupMembershipsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListUserGroupMemberships.go.html to see an example of how to use ListUserGroupMembershipsRequest. type ListUserGroupMembershipsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -74,7 +74,7 @@ func (request ListUserGroupMembershipsRequest) RetryPolicy() *common.RetryPolicy func (request ListUserGroupMembershipsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d131abc0d3..7a5e3e0d4d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListUsers.go.html to see an example of how to use ListUsersRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListUsers.go.html to see an example of how to use ListUsersRequest. type ListUsersRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -102,7 +102,7 @@ func (request ListUsersRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 72200b4bb9..f60e33171d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. type ListWorkRequestsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). @@ -71,7 +71,7 @@ func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 34faea12aa..7a453de07b 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -20,7 +20,7 @@ import ( // 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). +// Managing Multi-Factor Authentication (https://docs.oracle.com/iaas/Content/Identity/mfa/understand-multi-factor-authentication.htm). type MfaTotpDevice struct { // The OCID of the MFA TOTP device. @@ -71,7 +71,7 @@ func (m MfaTotpDevice) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a046bea684..bb0ee81fb5 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -62,7 +62,7 @@ func (m MfaTotpDeviceSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index fbe1c39ca2..a30a71e9a9 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m MfaTotpToken) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e64cd8563d..3ce187f1c4 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -18,7 +18,7 @@ import ( // MoveCompartmentDetails The representation of MoveCompartmentDetails type MoveCompartmentDetails struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination compartment + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment // into which to move the compartment. TargetCompartmentId *string `mandatory:"true" json:"targetCompartmentId"` } @@ -34,7 +34,7 @@ func (m MoveCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_request_response.go index 96ba79d5df..7a65ec00c8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/MoveCompartment.go.html to see an example of how to use MoveCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/MoveCompartment.go.html to see an example of how to use MoveCompartmentRequest. type MoveCompartmentRequest struct { // The OCID of the compartment. @@ -77,7 +77,7 @@ func (request MoveCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request MoveCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type MoveCompartmentResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index af32170569..a6e3991c94 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m NetworkPolicy) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9400b2d93b..a7e6746ef3 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -17,7 +17,7 @@ import ( // 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). +// For more information, see Managing Network Sources (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingnetworksources.htm). type NetworkSources struct { // The OCID of the network source. @@ -55,12 +55,12 @@ type NetworkSources struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -79,7 +79,7 @@ func (m NetworkSources) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go index 7208159db2..2b31918255 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -17,7 +17,7 @@ import ( // NetworkSourcesSummary 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). +// For more information, see Managing Network Sources (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingnetworksources.htm). type NetworkSourcesSummary struct { // The OCID of the network source. @@ -52,12 +52,12 @@ type NetworkSourcesSummary struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -76,7 +76,7 @@ func (m NetworkSourcesSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index cb09e51603..a6d11b8470 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m NetworkSourcesVirtualSourceList) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 5787cbb756..a5af34d6c4 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -67,7 +67,7 @@ func (m OAuth2ClientCredential) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0c1e9b53be..3a69cdc3aa 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -64,7 +64,7 @@ func (m OAuth2ClientCredentialSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 62d899ee32..17524452f6 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -48,7 +48,7 @@ func (m PasswordPolicy) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 44ee0bf501..ae8ecb6915 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/policy.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -17,8 +17,8 @@ import ( // 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). +// Overview of IAM (https://docs.oracle.com/iaas/Content/Identity/getstarted/identity-domains.htm). If you're new to policies, see +// Get Started with Policies (https://docs.oracle.com/iaas/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) @@ -63,12 +63,12 @@ type Policy struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -87,7 +87,7 @@ func (m Policy) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/recover_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/recover_compartment_request_response.go index 544cd9aa3d..bb9fc07da4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/recover_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/recover_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RecoverCompartment.go.html to see an example of how to use RecoverCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RecoverCompartment.go.html to see an example of how to use RecoverCompartmentRequest. type RecoverCompartmentRequest struct { // The OCID of the compartment. @@ -67,7 +67,7 @@ func (request RecoverCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request RecoverCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c81a35e907..8e4d2dd5d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/region.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/region.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -17,18 +17,18 @@ import ( // 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). +// located within a region. For more information, see Regions and Availability Domains (https://docs.oracle.com/iaas/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). +// see Get Started with Policies (https://docs.oracle.com/iaas/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 key of the region. See Regions and Availability Domains (https://docs.oracle.com/iaas/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) + // The name of the region. See Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) // for the full list of supported region names. // Example: `us-phoenix-1` Name *string `mandatory:"false" json:"name"` @@ -45,7 +45,7 @@ func (m Region) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 5d0db50a3f..5c057904b3 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -16,18 +16,18 @@ import ( ) // 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). +// access, and whether that region is the home region. For more information, see Managing Regions (https://docs.oracle.com/iaas/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). +// see Get Started with Policies (https://docs.oracle.com/iaas/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) + // The region's key. See Regions and Availability Domains (https://docs.oracle.com/iaas/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) + // The region's name. See Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) // for the full list of supported region names. // Example: `us-phoenix-1` RegionName *string `mandatory:"true" json:"regionName"` @@ -53,7 +53,7 @@ func (m RegionSubscription) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c85fda2237..80c92a8d36 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -36,7 +36,7 @@ func (m RemoveLockDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c4e0d73af0..bb3a2ae461 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveTagDefaultLock.go.html to see an example of how to use RemoveTagDefaultLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveTagDefaultLock.go.html to see an example of how to use RemoveTagDefaultLockRequest. type RemoveTagDefaultLockRequest struct { // The OCID of the tag default. @@ -77,7 +77,7 @@ func (request RemoveTagDefaultLockRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveTagDefaultLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8fb92bdb1f..d5d9ade618 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveTagNamespaceLock.go.html to see an example of how to use RemoveTagNamespaceLockRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveTagNamespaceLock.go.html to see an example of how to use RemoveTagNamespaceLockRequest. type RemoveTagNamespaceLockRequest struct { // The OCID of the tag namespace. @@ -77,7 +77,7 @@ func (request RemoveTagNamespaceLockRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveTagNamespaceLockRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ad7765980c..620cff9177 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveUserFromGroup.go.html to see an example of how to use RemoveUserFromGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/RemoveUserFromGroup.go.html to see an example of how to use RemoveUserFromGroupRequest. type RemoveUserFromGroupRequest struct { // The OCID of the userGroupMembership. @@ -67,7 +67,7 @@ func (request RemoveUserFromGroupRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveUserFromGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index abe2b10247..e2cee5480a 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -19,7 +19,7 @@ import ( 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) + // See Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm) // for the full list of supported region names. Region *string `mandatory:"false" json:"region"` @@ -47,7 +47,7 @@ func (m ReplicatedRegionDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index ef63428b55..b4bf896d21 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ResetIdpScimClient.go.html to see an example of how to use ResetIdpScimClientRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/ResetIdpScimClient.go.html to see an example of how to use ResetIdpScimClientRequest. type ResetIdpScimClientRequest struct { // The OCID of the identity provider. @@ -62,7 +62,7 @@ func (request ResetIdpScimClientRequest) RetryPolicy() *common.RetryPolicy { func (request ResetIdpScimClientRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bf22290584..7a873e58d8 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -51,7 +51,7 @@ func (m ResourceLock) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go index ef358a6267..c5b8caf2ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -18,7 +18,7 @@ import ( // Saml2IdentityProvider A special type of IdentityProvider that // supports the SAML 2.0 protocol. For more information, see -// Identity Providers and Federation (https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm). +// Identity Providers and Federation (https://docs.oracle.com/iaas/Content/Identity/Concepts/federation.htm). type Saml2IdentityProvider struct { // The OCID of the `IdentityProvider`. @@ -67,12 +67,12 @@ type Saml2IdentityProvider struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -152,7 +152,7 @@ func (m Saml2IdentityProvider) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 067c040e4f..35cc1ff011 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -36,7 +36,7 @@ func (m ScimClientCredentials) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2b83323037..2a38498415 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -20,7 +20,7 @@ import ( // 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). +// For more information, see Managing User Credentials (https://docs.oracle.com/iaas/Content/Identity/access/managing-user-credentials.htm#SMTP). type SmtpCredential struct { // The SMTP user name. @@ -70,7 +70,7 @@ func (m SmtpCredential) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 431923e06b..86a55aabeb 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -17,7 +17,7 @@ import ( // 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). +// the Email Delivery Service (https://docs.oracle.com/iaas/Content/Email/Concepts/overview.htm). type SmtpCredentialSummary struct { // The SMTP user name. @@ -64,7 +64,7 @@ func (m SmtpCredentialSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 27871eca89..8bb544052a 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -54,7 +54,7 @@ func (m StandardTagDefinitionTemplate) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 19d3fe31a1..163e0e46bf 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -42,7 +42,7 @@ func (m StandardTagNamespaceTemplate) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8f0daddbee..fe172b7a23 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -39,7 +39,7 @@ func (m StandardTagNamespaceTemplateSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 6ef916077e..14fed92a2c 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -20,7 +20,7 @@ import ( // 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). +// For more information, see Managing User Credentials (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcredentials.htm). type SwiftPassword struct { // The Swift password. The value is available only in the response for `CreateSwiftPassword`, and not @@ -67,7 +67,7 @@ func (m SwiftPassword) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go index a8922944e1..d34f4bf9fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -18,7 +18,7 @@ import ( // Tag A tag definition that belongs to a specific tag namespace. "Defined tags" must be set up in your tenancy before // you can apply them to resources. -// For more information, see Managing Tags and Tag Namespaces (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm). +// For more information, see Managing Tags and Tag Namespaces (https://docs.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm). // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values // using the API. type Tag struct { @@ -43,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/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). + // See Retiring Key Definitions and Namespace Definitions (https://docs.oracle.com/iaas/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. @@ -51,12 +51,12 @@ type Tag struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -83,7 +83,7 @@ func (m Tag) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1319bce764..62dd96f612 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -21,7 +21,7 @@ import ( // 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). +// using tag defaults, see Managing Tag Defaults (https://docs.oracle.com/iaas/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 { @@ -78,7 +78,7 @@ func (m TagDefault) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7f03d0e1d4..3975c50cf6 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -69,7 +69,7 @@ func (m TagDefaultSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d41c9afd19..304e527653 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -16,7 +16,7 @@ import ( ) // 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). +// see Managing Tags and Tag Namespaces (https://docs.oracle.com/iaas/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 { @@ -34,7 +34,7 @@ type TagNamespace struct { 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). + // See Retiring Key Definitions and Namespace Definitions (https://docs.oracle.com/iaas/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. @@ -42,12 +42,12 @@ type TagNamespace struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -72,7 +72,7 @@ func (m TagNamespace) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f146a00b21..9e49d178e8 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -31,17 +31,17 @@ type TagNamespaceSummary struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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). + // For more information, see Retiring Key Definitions and Namespace Definitions (https://docs.oracle.com/iaas/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. @@ -69,7 +69,7 @@ func (m TagNamespaceSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bfe32aaacd..42189ec319 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -32,17 +32,17 @@ type TagSummary struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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). + // See Retiring Key Definitions and Namespace Definitions (https://docs.oracle.com/iaas/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. @@ -70,7 +70,7 @@ func (m TagSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index f40c8a55d9..74253f7862 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -67,7 +67,7 @@ func (m TaggingWorkRequest) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index de669982a9..575e7a24b2 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -40,7 +40,7 @@ func (m TaggingWorkRequestErrorSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index efd4231414..f68f86a63f 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -37,7 +37,7 @@ func (m TaggingWorkRequestLogSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index fbeba89eab..7809eca56f 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -66,7 +66,7 @@ func (m TaggingWorkRequestSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go index 11f9b1b12f..1dbcfb1320 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -21,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 Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). +// see Get Started with Policies (https://docs.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm). type Tenancy struct { // The OCID of the tenancy. @@ -34,7 +34,7 @@ type Tenancy struct { Description *string `mandatory:"false" json:"description"` // The region key for the tenancy's home region. For the full list of supported regions, see - // Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). + // Regions and Availability Domains (https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). // Example: `PHX` HomeRegionKey *string `mandatory:"false" json:"homeRegionKey"` @@ -42,12 +42,12 @@ type Tenancy struct { UpiIdcsCompatibilityLayerEndpoint *string `mandatory:"false" json:"upiIdcsCompatibilityLayerEndpoint"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -63,7 +63,7 @@ func (m Tenancy) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 4d1f178a2a..7b02a41a89 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -17,7 +17,7 @@ import ( // 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). +// For more information about user credentials, see User Credentials (https://docs.oracle.com/iaas/Content/Identity/usercred/usercredentials.htm). type UiPassword struct { // The user's password for the Console. @@ -52,7 +52,7 @@ func (m UiPassword) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9b76b45512..15c31467cb 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -17,7 +17,7 @@ import ( // 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). +// For more information about user credentials, see User Credentials (https://docs.oracle.com/iaas/Content/Identity/Concepts/usercredentials.htm). type UiPasswordInformation struct { // The OCID of the user. @@ -46,7 +46,7 @@ func (m UiPasswordInformation) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3d6072c1ce..3ceb8d32c3 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -34,7 +34,7 @@ func (m UpdateAuthTokenDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_request_response.go index f96197f1eb..974caa1b72 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateAuthToken.go.html to see an example of how to use UpdateAuthTokenRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateAuthToken.go.html to see an example of how to use UpdateAuthTokenRequest. type UpdateAuthTokenRequest struct { // The OCID of the user. @@ -73,7 +73,7 @@ func (request UpdateAuthTokenRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateAuthTokenRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7c60dfb0d3..0574e2ff75 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m UpdateAuthenticationPolicyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_request_response.go index 041b6f058e..20830758ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateAuthenticationPolicy.go.html to see an example of how to use UpdateAuthenticationPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateAuthenticationPolicy.go.html to see an example of how to use UpdateAuthenticationPolicyRequest. type UpdateAuthenticationPolicyRequest struct { // The OCID of the compartment. @@ -70,7 +70,7 @@ func (request UpdateAuthenticationPolicyRequest) RetryPolicy() *common.RetryPoli func (request UpdateAuthenticationPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 18c791ef5f..a01c2ec618 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -26,12 +26,12 @@ type UpdateCompartmentDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -47,7 +47,7 @@ func (m UpdateCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_request_response.go index 9a48377578..166bcf07c5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateCompartment.go.html to see an example of how to use UpdateCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateCompartment.go.html to see an example of how to use UpdateCompartmentRequest. type UpdateCompartmentRequest struct { // The OCID of the compartment. @@ -70,7 +70,7 @@ func (request UpdateCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 58cec4337d..79b54bd142 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -34,7 +34,7 @@ func (m UpdateCustomerSecretKeyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c40494183e..5000fb1d20 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateCustomerSecretKey.go.html to see an example of how to use UpdateCustomerSecretKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateCustomerSecretKey.go.html to see an example of how to use UpdateCustomerSecretKeyRequest. type UpdateCustomerSecretKeyRequest struct { // The OCID of the user. @@ -73,7 +73,7 @@ func (request UpdateCustomerSecretKeyRequest) RetryPolicy() *common.RetryPolicy func (request UpdateCustomerSecretKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 860fcd7361..60f1479345 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -28,12 +28,12 @@ type UpdateDomainDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -49,7 +49,7 @@ func (m UpdateDomainDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_request_response.go index 34a300eb6d..c0a7331673 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateDomain.go.html to see an example of how to use UpdateDomainRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateDomain.go.html to see an example of how to use UpdateDomainRequest. type UpdateDomainRequest struct { // The OCID of the identity domain. @@ -70,7 +70,7 @@ func (request UpdateDomainRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateDomainRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -85,7 +85,7 @@ type UpdateDomainResponse struct { // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } 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 index 612996a780..725e93d133 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -23,16 +23,16 @@ type UpdateDynamicGroupDetails struct { 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). + // For rule syntax, see Managing Dynamic Groups (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -48,7 +48,7 @@ func (m UpdateDynamicGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_request_response.go index f929b75f14..23f668128f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateDynamicGroup.go.html to see an example of how to use UpdateDynamicGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateDynamicGroup.go.html to see an example of how to use UpdateDynamicGroupRequest. type UpdateDynamicGroupRequest struct { // The OCID of the dynamic group. @@ -70,7 +70,7 @@ func (request UpdateDynamicGroupRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateDynamicGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3e7a572461..8d4e59a137 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -23,12 +23,12 @@ type UpdateGroupDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -44,7 +44,7 @@ func (m UpdateGroupDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_request_response.go index 0df2799bfb..508ab9ccab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateGroup.go.html to see an example of how to use UpdateGroupRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateGroup.go.html to see an example of how to use UpdateGroupRequest. type UpdateGroupRequest struct { // The OCID of the group. @@ -70,7 +70,7 @@ func (request UpdateGroupRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateGroupRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d875f6be12..ff22399219 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -24,12 +24,12 @@ type UpdateIdentityProviderDetails interface { 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` GetDefinedTags() map[string]map[string]interface{} } @@ -75,7 +75,7 @@ func (m *updateidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (i err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for UpdateIdentityProviderDetails: %s.", m.Protocol) + common.Logf("Received unsupported enum value for UpdateIdentityProviderDetails: %s.", m.Protocol) return *m, nil } } @@ -106,7 +106,7 @@ func (m updateidentityproviderdetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_request_response.go index 7b31b3bcbd..ac359004ea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateIdentityProvider.go.html to see an example of how to use UpdateIdentityProviderRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateIdentityProvider.go.html to see an example of how to use UpdateIdentityProviderRequest. type UpdateIdentityProviderRequest struct { // The OCID of the identity provider. @@ -70,7 +70,7 @@ func (request UpdateIdentityProviderRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateIdentityProviderRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 084aa3f425..f57d56f0a2 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -36,7 +36,7 @@ func (m UpdateIdpGroupMappingDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index add37d182c..77d9fc51c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateIdpGroupMapping.go.html to see an example of how to use UpdateIdpGroupMappingRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateIdpGroupMapping.go.html to see an example of how to use UpdateIdpGroupMappingRequest. type UpdateIdpGroupMappingRequest struct { // The OCID of the identity provider. @@ -73,7 +73,7 @@ func (request UpdateIdpGroupMappingRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateIdpGroupMappingRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 25d3a85ed0..c38d4d31de 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -32,12 +32,12 @@ type UpdateNetworkSourceDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -53,7 +53,7 @@ func (m UpdateNetworkSourceDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_request_response.go index aa600d4f8a..2cb5d738fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateNetworkSource.go.html to see an example of how to use UpdateNetworkSourceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateNetworkSource.go.html to see an example of how to use UpdateNetworkSourceRequest. type UpdateNetworkSourceRequest struct { // The OCID of the network source. @@ -70,7 +70,7 @@ func (request UpdateNetworkSourceRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateNetworkSourceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f57f1c092f..8b4834fc32 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -39,7 +39,7 @@ func (m UpdateOAuth2ClientCredentialDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 4effa4db43..6115158b71 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateOAuthClientCredential.go.html to see an example of how to use UpdateOAuthClientCredentialRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateOAuthClientCredential.go.html to see an example of how to use UpdateOAuthClientCredentialRequest. type UpdateOAuthClientCredentialRequest struct { // The OCID of the user. @@ -73,7 +73,7 @@ func (request UpdateOAuthClientCredentialRequest) RetryPolicy() *common.RetryPol func (request UpdateOAuthClientCredentialRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c0e3cbbcdf..c3be93a3cd 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -22,8 +22,8 @@ type UpdatePolicyDetails struct { 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). + // How Policies Work (https://docs.oracle.com/iaas/Content/Identity/policieshow/how-policies-work.htm) and + // Common Policies (https://docs.oracle.com/iaas/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 @@ -32,12 +32,12 @@ type UpdatePolicyDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -53,7 +53,7 @@ func (m UpdatePolicyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_request_response.go index f875535056..38c02fad2f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdatePolicy.go.html to see an example of how to use UpdatePolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdatePolicy.go.html to see an example of how to use UpdatePolicyRequest. type UpdatePolicyRequest struct { // The OCID of the policy. @@ -70,7 +70,7 @@ func (request UpdatePolicyRequest) RetryPolicy() *common.RetryPolicy { func (request UpdatePolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go index 6200a16a20..f6a6ef586d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -24,12 +24,12 @@ type UpdateSaml2IdentityProviderDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -71,7 +71,7 @@ func (m UpdateSaml2IdentityProviderDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8042407144..57bfbd763c 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -34,7 +34,7 @@ func (m UpdateSmtpCredentialDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_request_response.go index e8bad66027..b66de331a4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateSmtpCredential.go.html to see an example of how to use UpdateSmtpCredentialRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateSmtpCredential.go.html to see an example of how to use UpdateSmtpCredentialRequest. type UpdateSmtpCredentialRequest struct { // The OCID of the user. @@ -73,7 +73,7 @@ func (request UpdateSmtpCredentialRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateSmtpCredentialRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 413b9cddd5..a3c5a7fb0b 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ func (m UpdateStateDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 333bcf591b..539ac89e0e 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -34,7 +34,7 @@ func (m UpdateSwiftPasswordDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_request_response.go index 17a0d1680e..97526b5175 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateSwiftPassword.go.html to see an example of how to use UpdateSwiftPasswordRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateSwiftPassword.go.html to see an example of how to use UpdateSwiftPasswordRequest. type UpdateSwiftPasswordRequest struct { // The OCID of the user. @@ -73,7 +73,7 @@ func (request UpdateSwiftPasswordRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateSwiftPasswordRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ddb5904017..fb9b5d17e2 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -41,7 +41,7 @@ func (m UpdateTagDefaultDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_request_response.go index 215f8533a9..f8c88e4728 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTagDefault.go.html to see an example of how to use UpdateTagDefaultRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTagDefault.go.html to see an example of how to use UpdateTagDefaultRequest. type UpdateTagDefaultRequest struct { // The OCID of the tag default. @@ -73,7 +73,7 @@ func (request UpdateTagDefaultRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateTagDefaultRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go index 55c1c8779b..42df3390e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -23,16 +23,16 @@ 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/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). + // See Retiring Key Definitions and Namespace Definitions (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -53,7 +53,7 @@ func (m UpdateTagDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index bad20e67ce..ee1f628414 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -22,16 +22,16 @@ type UpdateTagNamespaceDetails struct { 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). + // See Retiring Key Definitions and Namespace Definitions (https://docs.oracle.com/iaas/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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -47,7 +47,7 @@ func (m UpdateTagNamespaceDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_request_response.go index 3c151a8837..6fd0c7e06c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTagNamespace.go.html to see an example of how to use UpdateTagNamespaceRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTagNamespace.go.html to see an example of how to use UpdateTagNamespaceRequest. type UpdateTagNamespaceRequest struct { // The OCID of the tag namespace. @@ -68,7 +68,7 @@ func (request UpdateTagNamespaceRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateTagNamespaceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_request_response.go index 6efac826b7..423ca0fb62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTag.go.html to see an example of how to use UpdateTagRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateTag.go.html to see an example of how to use UpdateTagRequest. type UpdateTagRequest struct { // The OCID of the tag namespace. @@ -76,7 +76,7 @@ func (request UpdateTagRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateTagRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 507616519b..bde7ff3bd4 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -51,7 +51,7 @@ func (m UpdateUserCapabilitiesDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_request_response.go index dcf91a89cb..d5a85885f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUserCapabilities.go.html to see an example of how to use UpdateUserCapabilitiesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUserCapabilities.go.html to see an example of how to use UpdateUserCapabilitiesRequest. type UpdateUserCapabilitiesRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request UpdateUserCapabilitiesRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateUserCapabilitiesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 62c1e6bb2a..8d742769f0 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -30,12 +30,12 @@ type UpdateUserDetails struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -51,7 +51,7 @@ func (m UpdateUserDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_request_response.go index b33d4c655a..8fb764232e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUser.go.html to see an example of how to use UpdateUserRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUser.go.html to see an example of how to use UpdateUserRequest. type UpdateUserRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request UpdateUserRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateUserRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_state_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_state_request_response.go index 2811da2c3f..85bfb13883 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_state_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_state_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUserState.go.html to see an example of how to use UpdateUserStateRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UpdateUserState.go.html to see an example of how to use UpdateUserStateRequest. type UpdateUserStateRequest struct { // The OCID of the user. @@ -70,7 +70,7 @@ func (request UpdateUserStateRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateUserStateRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/upload_api_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/upload_api_key_request_response.go index 733fb1666c..30c290a47e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/upload_api_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/upload_api_key_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UploadApiKey.go.html to see an example of how to use UploadApiKeyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/identity/UploadApiKey.go.html to see an example of how to use UploadApiKeyRequest. type UploadApiKeyRequest struct { // The OCID of the user. @@ -72,7 +72,7 @@ func (request UploadApiKeyRequest) RetryPolicy() *common.RetryPolicy { func (request UploadApiKeyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1cd1f07f63..12f0525a0b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/user.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -20,16 +20,16 @@ import ( // 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 +// For more information, see User Credentials (https://docs.oracle.com/iaas/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). +// For conceptual information about users and other IAM Service components, see Overview of IAM (https://docs.oracle.com/iaas/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). +// Identity Providers and Federation (https://docs.oracle.com/iaas/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). +// see Get Started with Policies (https://docs.oracle.com/iaas/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 { @@ -84,12 +84,12 @@ type User struct { 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -130,7 +130,7 @@ func (m User) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d927abbe92..001d94d7b7 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -51,7 +51,7 @@ func (m UserCapabilities) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 07ae1ab13d..ac12b7a97a 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -57,7 +57,7 @@ func (m UserGroupMembership) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a9f9e24452..c5d033ff70 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -73,7 +73,7 @@ func (m WorkRequest) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 48aac2e50d..140dd4ab95 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -40,7 +40,7 @@ func (m WorkRequestError) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index beb3b9e296..f8ac68ef69 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -37,7 +37,7 @@ func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 786b16410c..dab6806d49 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -45,7 +45,7 @@ func (m WorkRequestResource) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a3ca2d35e6..5ea1a52c3a 100644 --- 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 @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -69,7 +69,7 @@ func (m WorkRequestSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 821342bb74..994113d238 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/action.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/action.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -56,7 +56,7 @@ func (m *action) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for Action: %s.", m.Name) + common.Logf("Received unsupported enum value for Action: %s.", m.Name) return *m, nil } } @@ -72,7 +72,7 @@ func (m action) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_request_header_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_request_header_rule.go index 0f40809e5d..8c69eb5556 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_request_header_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_request_header_rule.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -49,7 +49,7 @@ func (m AddHttpRequestHeaderRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_response_header_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_response_header_rule.go index e0f84a8df5..14f52d3e44 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_response_header_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_response_header_rule.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -50,7 +50,7 @@ func (m AddHttpResponseHeaderRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/allow_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/allow_rule.go index 6ef2883018..04f982c1cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/allow_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/allow_rule.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -46,7 +46,7 @@ func (m AllowRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b69e7fc309..a12b34d0c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -17,7 +17,7 @@ import ( ) // 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). +// For more information, see Managing Backend Servers (https://docs.oracle.com/iaas/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. @@ -36,7 +36,7 @@ type Backend struct { // 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). + // How Load Balancing Policies Work (https://docs.oracle.com/iaas/Content/Balance/Reference/lbpolicies.htm). // Example: `3` Weight *int `mandatory:"true" json:"weight"` @@ -57,8 +57,8 @@ type Backend struct { Offline *bool `mandatory:"true" json:"offline"` // The maximum number of simultaneous connections the load balancer can make to the backend. - // If this is not set then the maximum number of simultaneous connections the load balancer - // can make to the backend is unlimited. + // If this is not set or set to 0 then the maximum number of simultaneous connections the + // load balancer can make to the backend is unlimited. // Example: `300` MaxConnections *int `mandatory:"false" json:"maxConnections"` } @@ -74,7 +74,7 @@ func (m Backend) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index b6a42ad3f1..248d198ad4 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -31,13 +31,15 @@ type BackendDetails struct { // 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). + // How Load Balancing Policies Work (https://docs.oracle.com/iaas/Content/Balance/Reference/lbpolicies.htm). // Example: `3` Weight *int `mandatory:"false" json:"weight"` // The maximum number of simultaneous connections the load balancer can make to the backend. - // If this is not set then the maximum number of simultaneous connections the load balancer - // can make to the backend is unlimited. + // If this is not set or set to 0 then the maximum number of simultaneous connections the + // load balancer can make to the backend is unlimited. + // If setting maxConnections to some value other than 0 then that value must be greater + // or equal to 256. // Example: `300` MaxConnections *int `mandatory:"false" json:"maxConnections"` @@ -69,7 +71,7 @@ func (m BackendDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d8ea7a59ce..bf98be04d4 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -44,7 +44,7 @@ func (m BackendHealth) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 167d87e5ad..1dcbe0b156 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // 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). +// Managing Backend Sets (https://docs.oracle.com/iaas/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. @@ -42,8 +42,9 @@ type BackendSet struct { // The maximum number of simultaneous connections the load balancer can make to any backend // in the backend set unless the backend has its own maxConnections setting. If this is not - // set then the number of simultaneous connections the load balancer can make to any backend - // in the backend set unless the backend has its own maxConnections setting is unlimited. + // set or set to 0 then the number of simultaneous connections the load balancer can make + // to any backend in the backend set unless the backend has its own maxConnections setting + // is unlimited. // Example: `300` BackendMaxConnections *int `mandatory:"false" json:"backendMaxConnections"` @@ -65,7 +66,7 @@ func (m BackendSet) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 2708bed219..6a90c398f4 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // 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). +// Managing Backend Sets (https://docs.oracle.com/iaas/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. @@ -35,8 +35,11 @@ type BackendSetDetails struct { // The maximum number of simultaneous connections the load balancer can make to any backend // in the backend set unless the backend has its own maxConnections setting. If this is not - // set then the number of simultaneous connections the load balancer can make to any backend - // in the backend set unless the backend has its own maxConnections setting is unlimited. + // set or set to 0 then the number of simultaneous connections the load balancer can make + // to any backend in the backend set unless the backend has its own maxConnections setting + // is unlimited. + // If setting backendMaxConnections to some value other than 0 then that value must be greater + // or equal to 256. // Example: `300` BackendMaxConnections *int `mandatory:"false" json:"backendMaxConnections"` @@ -58,7 +61,7 @@ func (m BackendSetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 0effeb82ca..8cfe9871b0 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -64,7 +64,7 @@ func (m BackendSetHealth) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate.go index 32cd695c44..4bae72f44f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // Certificate The configuration details of a certificate bundle. // For more information on SSL certficate configuration, see -// Managing SSL Certificates (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingcertificates.htm). +// Managing SSL Certificates (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingcertificates.htm). // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type Certificate struct { @@ -62,7 +62,7 @@ func (m Certificate) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate_details.go index 4b1340fd29..78a9082a50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // CertificateDetails The configuration details for a certificate bundle. // For more information on SSL certficate configuration, see -// Managing SSL Certificates (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingcertificates.htm). +// Managing SSL Certificates (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingcertificates.htm). // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type CertificateDetails struct { @@ -76,7 +76,7 @@ func (m CertificateDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 5b238e6d3c..6d49ecb5d7 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -20,7 +20,7 @@ import ( // **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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the load balancer to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -35,7 +35,7 @@ func (m ChangeLoadBalancerCompartmentDetails) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index b3ce9aaa43..52158878da 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ChangeLoadBalancerCompartment.go.html to see an example of how to use ChangeLoadBalancerCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ChangeLoadBalancerCompartment.go.html to see an example of how to use ChangeLoadBalancerCompartmentRequest. type ChangeLoadBalancerCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer to move. + // The OCID (https://docs.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. @@ -81,7 +81,7 @@ func (request ChangeLoadBalancerCompartmentRequest) RetryPolicy() *common.RetryP func (request ChangeLoadBalancerCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ 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. + // The OCID (https://docs.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 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 index fdebbb7b62..e79284334c 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -22,7 +22,7 @@ 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). + // For more information, see Connection Configuration (https://docs.oracle.com/iaas/Content/Balance/Reference/connectionreuse.htm#ConnectionConfiguration). // Example: `1200` IdleTimeout *int64 `mandatory:"true" json:"idleTimeout"` @@ -52,7 +52,7 @@ func (m ConnectionConfiguration) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 8e440278cd..10d1dee11e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -31,7 +31,7 @@ type ControlAccessUsingHttpMethodsRule struct { // By default, you can specify only the standard HTTP methods defined in the // HTTP Method Registry (http://www.iana.org/assignments/http-methods/http-methods.xhtml). You can also // see a list of supported standard HTTP methods in the Load Balancing service documentation at - // Managing Rule Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm). + // Managing Rule Sets (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrulesets.htm). // Your backend application must be able to handle the methods specified in this list. // The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact // My Oracle Support (http://support.oracle.com/) to remove the restriction for your tenancy. @@ -56,7 +56,7 @@ func (m ControlAccessUsingHttpMethodsRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9bf0f762cc..49c742d00c 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // 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). +// Managing Backend Servers (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingbackendservers.htm). type CreateBackendDetails struct { // The IP address of the backend server. @@ -33,13 +33,15 @@ type CreateBackendDetails struct { // 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). + // How Load Balancing Policies Work (https://docs.oracle.com/iaas/Content/Balance/Reference/lbpolicies.htm). // Example: `3` Weight *int `mandatory:"false" json:"weight"` // The maximum number of simultaneous connections the load balancer can make to the backend. - // If this is not set then number of simultaneous connections the load balancer can make to - // the backend is unlimited. + // If this is not set or set to 0 then the maximum number of simultaneous connections the + // load balancer can make to the backend is unlimited. + // If setting maxConnections to some value other than 0 then that value must be greater + // or equal to 256. // Example: `300` MaxConnections *int `mandatory:"false" json:"maxConnections"` @@ -71,7 +73,7 @@ func (m CreateBackendDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 5460a5024e..12c3de7472 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateBackend.go.html to see an example of how to use CreateBackendRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateBackend.go.html to see an example of how to use CreateBackendRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -85,7 +85,7 @@ func (request CreateBackendRequest) RetryPolicy() *common.RetryPolicy { func (request CreateBackendRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ 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. + // The OCID (https://docs.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 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 index 8773d77558..2360b71d5d 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // 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). +// Managing Backend Sets (https://docs.oracle.com/iaas/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. @@ -42,8 +42,11 @@ type CreateBackendSetDetails struct { // The maximum number of simultaneous connections the load balancer can make to any backend // in the backend set unless the backend has its own maxConnections setting. If this is not - // set then the number of simultaneous connections the load balancer can make to any backend - // in the backend set unless the backend has its own maxConnections setting is unlimited. + // set or set to 0 then the number of simultaneous connections the load balancer can make + // to any backend in the backend set unless the backend has its own maxConnections setting + // is unlimited. + // If setting backendMaxConnections to some value other than 0 then that value must be greater + // or equal to 256. // Example: `300` BackendMaxConnections *int `mandatory:"false" json:"backendMaxConnections"` @@ -65,7 +68,7 @@ func (m CreateBackendSetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 54f442eff6..c35280ed2b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateBackendSet.go.html to see an example of how to use CreateBackendSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateBackendSet.go.html to see an example of how to use CreateBackendSetRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -81,7 +81,7 @@ func (request CreateBackendSetRequest) RetryPolicy() *common.RetryPolicy { func (request CreateBackendSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ 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. + // The OCID (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_details.go index 5217066afd..72221f98a4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // CreateCertificateDetails The configuration details for adding a certificate bundle to a listener. // For more information on SSL certficate configuration, see -// Managing SSL Certificates (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingcertificates.htm). +// Managing SSL Certificates (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingcertificates.htm). // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type CreateCertificateDetails struct { @@ -76,7 +76,7 @@ func (m CreateCertificateDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_request_response.go index 5bd88ea4d4..b514434786 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateCertificate.go.html to see an example of how to use CreateCertificateRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateCertificate.go.html to see an example of how to use CreateCertificateRequest. type CreateCertificateRequest struct { // The details of the certificate bundle to add. CreateCertificateDetails `contributesTo:"body"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add the certificate bundle. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer on which to add the certificate bundle. LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -81,7 +81,7 @@ func (request CreateCertificateRequest) RetryPolicy() *common.RetryPolicy { func (request CreateCertificateRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type CreateCertificateResponse struct { // The underlying http response RawResponse *http.Response - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + // The OCID (https://docs.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 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 index 2890953bdc..40d2ca92ab 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -26,7 +26,7 @@ type CreateHostnameDetails struct { 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). + // Managing Request Routing (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrequest.htm#routing). // Example: `app.example.com` Hostname *string `mandatory:"true" json:"hostname"` } @@ -42,7 +42,7 @@ func (m CreateHostnameDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_request_response.go index 21fe71f4ce..676010896c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateHostname.go.html to see an example of how to use CreateHostnameRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateHostname.go.html to see an example of how to use CreateHostnameRequest. type CreateHostnameRequest struct { // The details of the hostname resource to add to the specified load balancer. CreateHostnameDetails `contributesTo:"body"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to add the hostname to. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer to add the hostname to. LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -81,7 +81,7 @@ func (request CreateHostnameRequest) RetryPolicy() *common.RetryPolicy { func (request CreateHostnameRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type CreateHostnameResponse struct { // The underlying http response RawResponse *http.Response - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + // The OCID (https://docs.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 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 index bea5393999..b49ca91ff2 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // 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). +// Managing Load Balancer Listeners (https://docs.oracle.com/iaas/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 { @@ -30,8 +30,9 @@ type CreateListenerDetails struct { // Example: `80` Port *int `mandatory:"true" json:"port"` - // The protocol on which the listener accepts connection requests. The supported protocols are HTTP, HTTP2, TCP, and GRPC. - // You can also use the ListProtocols operation to get a list of valid protocols. + // 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"` @@ -73,7 +74,7 @@ func (m CreateListenerDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9e7dbc2085..ef2a010764 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateListener.go.html to see an example of how to use CreateListenerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateListener.go.html to see an example of how to use CreateListenerRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -81,7 +81,7 @@ func (request CreateListenerRequest) RetryPolicy() *common.RetryPolicy { func (request CreateListenerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ 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. + // The OCID (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_details.go index 2b35e90e87..d5c51aa7a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -20,7 +20,7 @@ import ( // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type CreateLoadBalancerDetails struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which to create the load balancer. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to create the load balancer. CompartmentId *string `mandatory:"true" json:"compartmentId"` // A user-friendly name. It does not have to be unique, and it is changeable. @@ -36,7 +36,7 @@ type CreateLoadBalancerDetails struct { // 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). + // An array of subnet OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). SubnetIds []string `mandatory:"true" json:"subnetIds"` // The configuration details to create load balancer using Flexible shape. This is required only if shapeName is `Flexible`. @@ -46,8 +46,8 @@ type CreateLoadBalancerDetails struct { // If "true", the service assigns a private IP address to the load balancer. // If "false", the service assigns a public IP address to the load balancer. // A public load balancer is accessible from the internet, depending on your VCN's - // security list rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securitylists.htm). For more information about public and - // private load balancers, see How Load Balancing Works (https://docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm#how-load-balancing-works). + // security list rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securitylists.htm). For more information about public and + // private load balancers, see How Load Balancing Works (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm#how-load-balancing-works). // Example: `true` IsPrivate *bool `mandatory:"false" json:"isPrivate"` @@ -64,6 +64,11 @@ type CreateLoadBalancerDetails struct { // Example: "ipMode":"IPV6" IpMode CreateLoadBalancerDetailsIpModeEnum `mandatory:"false" json:"ipMode,omitempty"` + // Applies to IPV6 LB creation only. + // Used to disambiguate which subnet prefix should be used to create an IPv6 LB. + // Example: "2002::1234:abcd:ffff:c0a8:101/64" + Ipv6SubnetCidr *string `mandatory:"false" json:"ipv6SubnetCidr"` + // Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. // If "true", the load balancer will attach a unique request id header to every request // passed through from the load balancer to load balancer backends. This same request id @@ -98,7 +103,7 @@ type CreateLoadBalancerDetails struct { BackendSets map[string]BackendSetDetails `mandatory:"false" json:"backendSets"` - // An array of NSG OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with this load balancer. + // An array of NSG OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this load balancer. // During the load balancer's creation, the service adds the new load balancer to the specified NSGs. // The benefits of using NSGs with the load balancer include: // * NSGs define network security rules to govern ingress and egress traffic for the load balancer. @@ -114,18 +119,18 @@ type CreateLoadBalancerDetails struct { PathRouteSets map[string]PathRouteSetDetails `mandatory:"false" json:"pathRouteSets"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // Extended Defined tags for ZPR for this resource. Each key is predefined and scoped to a namespace. // Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", "usagetype" : "zpr"}}}` - ZprTags map[string]map[string]interface{} `mandatory:"false" json:"zprTags"` + SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` RuleSets map[string]RuleSetDetails `mandatory:"false" json:"ruleSets"` } @@ -144,7 +149,7 @@ func (m CreateLoadBalancerDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_request_response.go index 870bf3dbee..a4e5c0a621 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateLoadBalancer.go.html to see an example of how to use CreateLoadBalancerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateLoadBalancer.go.html to see an example of how to use CreateLoadBalancerRequest. type CreateLoadBalancerRequest struct { // The configuration details for creating a load balancer. @@ -69,7 +69,7 @@ func (request CreateLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { func (request CreateLoadBalancerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -80,7 +80,7 @@ type CreateLoadBalancerResponse struct { // The underlying http response RawResponse *http.Response - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + // The OCID (https://docs.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 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 index 29191fc4ac..a1edcdb41b 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -40,7 +40,7 @@ func (m CreatePathRouteSetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index b3139a7b73..257891fb5d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreatePathRouteSet.go.html to see an example of how to use CreatePathRouteSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreatePathRouteSet.go.html to see an example of how to use CreatePathRouteSetRequest. type CreatePathRouteSetRequest struct { // The details of the path route set to add. CreatePathRouteSetDetails `contributesTo:"body"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to add the path route set to. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer to add the path route set to. LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -81,7 +81,7 @@ func (request CreatePathRouteSetRequest) RetryPolicy() *common.RetryPolicy { func (request CreatePathRouteSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type CreatePathRouteSetResponse struct { // The underlying http response RawResponse *http.Response - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + // The OCID (https://docs.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 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 index 2830843043..6b69456542 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -46,7 +46,7 @@ func (m CreateRoutingPolicyDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_request_response.go index 0adb2d8db0..4b786067da 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateRoutingPolicy.go.html to see an example of how to use CreateRoutingPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateRoutingPolicy.go.html to see an example of how to use CreateRoutingPolicyRequest. type CreateRoutingPolicyRequest struct { // The details of the routing policy rules to add. CreateRoutingPolicyDetails `contributesTo:"body"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to add the routing policy rule list to. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer to add the routing policy rule list to. LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -81,7 +81,7 @@ func (request CreateRoutingPolicyRequest) RetryPolicy() *common.RetryPolicy { func (request CreateRoutingPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type CreateRoutingPolicyResponse struct { // The underlying http response RawResponse *http.Response - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + // The OCID (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_details.go index 5a0e012c9f..c26639cbd1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -40,7 +40,7 @@ func (m CreateRuleSetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 42ea635287..6ec16ec82e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateRuleSet.go.html to see an example of how to use CreateRuleSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateRuleSet.go.html to see an example of how to use CreateRuleSetRequest. type CreateRuleSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + // The OCID (https://docs.oracle.com/iaas/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. @@ -81,7 +81,7 @@ func (request CreateRuleSetRequest) RetryPolicy() *common.RetryPolicy { func (request CreateRuleSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ 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. + // The OCID (https://docs.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 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 index 699ed8572c..65e2c86ce0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateSSLCipherSuite.go.html to see an example of how to use CreateSSLCipherSuiteRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateSSLCipherSuite.go.html to see an example of how to use CreateSSLCipherSuiteRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -81,7 +81,7 @@ func (request CreateSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { func (request CreateSSLCipherSuiteRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ 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. + // The OCID (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_ssl_cipher_suite_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_ssl_cipher_suite_details.go index e35914bd86..60c62e1670 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_ssl_cipher_suite_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_ssl_cipher_suite_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -23,8 +23,8 @@ import ( // level, performance, and compatibility of your data traffic. // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. // Oracle created the following predefined cipher suites that you can specify when you define a resource's -// SSL configuration (https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/datatypes/SSLConfigurationDetails). You can create custom -// cipher suites (https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/SSLCipherSuite/CreateSSLCipherSuite) if the predefined cipher +// SSL configuration (https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/datatypes/SSLConfigurationDetails). You can create custom +// cipher suites (https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/SSLCipherSuite/CreateSSLCipherSuite) if the predefined cipher // suites do not meet your requirements. // // - __oci-default-ssl-cipher-suite-v1__ @@ -374,7 +374,7 @@ func (m CreateSslCipherSuiteDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9c21d2d901..eec7617d4f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteBackend.go.html to see an example of how to use DeleteBackendRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteBackend.go.html to see an example of how to use DeleteBackendRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -79,7 +79,7 @@ func (request DeleteBackendRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteBackendRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -90,7 +90,7 @@ 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. + // The OCID (https://docs.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 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 index 7e83e83674..3909ca9b8b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteBackendSet.go.html to see an example of how to use DeleteBackendSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteBackendSet.go.html to see an example of how to use DeleteBackendSetRequest. type DeleteBackendSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request DeleteBackendSetRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteBackendSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -86,7 +86,7 @@ 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. + // The OCID (https://docs.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 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 index 70d4fbb1a5..f23c248f30 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteCertificate.go.html to see an example of how to use DeleteCertificateRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteCertificate.go.html to see an example of how to use DeleteCertificateRequest. type DeleteCertificateRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate bundle + // The OCID (https://docs.oracle.com/iaas/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"` @@ -76,7 +76,7 @@ func (request DeleteCertificateRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteCertificateRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -87,7 +87,7 @@ 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. + // The OCID (https://docs.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 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 index 670b1addaa..b17e85ac55 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteHostname.go.html to see an example of how to use DeleteHostnameRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteHostname.go.html to see an example of how to use DeleteHostnameRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request DeleteHostnameRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteHostnameRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -86,7 +86,7 @@ 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. + // The OCID (https://docs.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 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 index 89fe0daa19..c0cc6d6a95 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteListener.go.html to see an example of how to use DeleteListenerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteListener.go.html to see an example of how to use DeleteListenerRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request DeleteListenerRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteListenerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -86,7 +86,7 @@ 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. + // The OCID (https://docs.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 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 index 5f11520074..ec994db23f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteLoadBalancer.go.html to see an example of how to use DeleteLoadBalancerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteLoadBalancer.go.html to see an example of how to use DeleteLoadBalancerRequest. type DeleteLoadBalancerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to delete. + // The OCID (https://docs.oracle.com/iaas/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 @@ -71,7 +71,7 @@ func (request DeleteLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteLoadBalancerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -82,7 +82,7 @@ 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. + // The OCID (https://docs.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 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 index 1278c5bcd4..d27a218f66 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeletePathRouteSet.go.html to see an example of how to use DeletePathRouteSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeletePathRouteSet.go.html to see an example of how to use DeletePathRouteSetRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request DeletePathRouteSetRequest) RetryPolicy() *common.RetryPolicy { func (request DeletePathRouteSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -86,7 +86,7 @@ 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. + // The OCID (https://docs.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 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 index e413e02732..bb867b070c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteRoutingPolicy.go.html to see an example of how to use DeleteRoutingPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteRoutingPolicy.go.html to see an example of how to use DeleteRoutingPolicyRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request DeleteRoutingPolicyRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteRoutingPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -86,7 +86,7 @@ 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. + // The OCID (https://docs.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 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 index 6fd1dab0d5..5b82acb2e0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteRuleSet.go.html to see an example of how to use DeleteRuleSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteRuleSet.go.html to see an example of how to use DeleteRuleSetRequest. type DeleteRuleSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request DeleteRuleSetRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteRuleSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -86,7 +86,7 @@ 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. + // The OCID (https://docs.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 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 index f279533773..65fe44b86a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteSSLCipherSuite.go.html to see an example of how to use DeleteSSLCipherSuiteRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteSSLCipherSuite.go.html to see an example of how to use DeleteSSLCipherSuiteRequest. type DeleteSSLCipherSuiteRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request DeleteSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteSSLCipherSuiteRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -86,7 +86,7 @@ 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. + // The OCID (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 0b2dfd072b..e593ab4823 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -58,7 +58,7 @@ func (m ExtendHttpRequestHeaderValueRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index c6b86d3311..5be55df619 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -58,7 +58,7 @@ func (m ExtendHttpResponseHeaderValueRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5b2b7a1833..aac86b4234 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -36,7 +36,7 @@ func (m ForwardToBackendSet) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4a5950c97f..715a72aa0f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendHealth.go.html to see an example of how to use GetBackendHealthRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendHealth.go.html to see an example of how to use GetBackendHealthRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -79,7 +79,7 @@ func (request GetBackendHealthRequest) RetryPolicy() *common.RetryPolicy { func (request GetBackendHealthRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f473e3dc87..3bfe799981 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackend.go.html to see an example of how to use GetBackendRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackend.go.html to see an example of how to use GetBackendRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -79,7 +79,7 @@ func (request GetBackendRequest) RetryPolicy() *common.RetryPolicy { func (request GetBackendRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b894f84137..f3716e5145 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendSetHealth.go.html to see an example of how to use GetBackendSetHealthRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendSetHealth.go.html to see an example of how to use GetBackendSetHealthRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request GetBackendSetHealthRequest) RetryPolicy() *common.RetryPolicy { func (request GetBackendSetHealthRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8dbaf86ba1..563d2ec30f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendSet.go.html to see an example of how to use GetBackendSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendSet.go.html to see an example of how to use GetBackendSetRequest. type GetBackendSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request GetBackendSetRequest) RetryPolicy() *common.RetryPolicy { func (request GetBackendSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c800dcb915..6ff3b34af9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetHealthChecker.go.html to see an example of how to use GetHealthCheckerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetHealthChecker.go.html to see an example of how to use GetHealthCheckerRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request GetHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { func (request GetHealthCheckerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index beddcafda9..7e2a1fbf52 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetHostname.go.html to see an example of how to use GetHostnameRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetHostname.go.html to see an example of how to use GetHostnameRequest. type GetHostnameRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request GetHostnameRequest) RetryPolicy() *common.RetryPolicy { func (request GetHostnameRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ea7d9d095d..dc1d2292c5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetLoadBalancerHealth.go.html to see an example of how to use GetLoadBalancerHealthRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetLoadBalancerHealth.go.html to see an example of how to use GetLoadBalancerHealthRequest. type GetLoadBalancerHealthRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to return health status for. + // The OCID (https://docs.oracle.com/iaas/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 @@ -71,7 +71,7 @@ func (request GetLoadBalancerHealthRequest) RetryPolicy() *common.RetryPolicy { func (request GetLoadBalancerHealthRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ca04fc8d7a..181f785521 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetLoadBalancer.go.html to see an example of how to use GetLoadBalancerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetLoadBalancer.go.html to see an example of how to use GetLoadBalancerRequest. type GetLoadBalancerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to retrieve. + // The OCID (https://docs.oracle.com/iaas/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 @@ -71,7 +71,7 @@ func (request GetLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { func (request GetLoadBalancerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b5610d5239..76a6d6c215 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetPathRouteSet.go.html to see an example of how to use GetPathRouteSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetPathRouteSet.go.html to see an example of how to use GetPathRouteSetRequest. type GetPathRouteSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request GetPathRouteSetRequest) RetryPolicy() *common.RetryPolicy { func (request GetPathRouteSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ce05660098..ac78dd3a10 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetRoutingPolicy.go.html to see an example of how to use GetRoutingPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetRoutingPolicy.go.html to see an example of how to use GetRoutingPolicyRequest. type GetRoutingPolicyRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request GetRoutingPolicyRequest) RetryPolicy() *common.RetryPolicy { func (request GetRoutingPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 29e8442dc1..3939f55fb8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetRuleSet.go.html to see an example of how to use GetRuleSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetRuleSet.go.html to see an example of how to use GetRuleSetRequest. type GetRuleSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request GetRuleSetRequest) RetryPolicy() *common.RetryPolicy { func (request GetRuleSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index eb9acf5002..7ce703ae89 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetSSLCipherSuite.go.html to see an example of how to use GetSSLCipherSuiteRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetSSLCipherSuite.go.html to see an example of how to use GetSSLCipherSuiteRequest. type GetSSLCipherSuiteRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request GetSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { func (request GetSSLCipherSuiteRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f0828b5f03..c9d2f40152 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. type GetWorkRequestRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request to retrieve. + // The OCID (https://docs.oracle.com/iaas/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 @@ -62,7 +62,7 @@ func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a817ff083b..f0b20715b3 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -19,7 +19,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -49,7 +49,7 @@ func (m HealthCheckResult) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index efba7256cd..672f24ea65 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -17,7 +17,7 @@ import ( ) // HealthChecker The health check policy configuration. -// For more information, see Editing Health Check Policies (https://docs.cloud.oracle.com/Content/Balance/Tasks/editinghealthcheck.htm). +// For more information, see Editing Health Check Policies (https://docs.oracle.com/iaas/Content/Balance/Tasks/editinghealthcheck.htm). type HealthChecker struct { // The protocol the health check must use; either HTTP or TCP. @@ -77,7 +77,7 @@ func (m HealthChecker) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 77fd8e0798..909507befc 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -75,7 +75,7 @@ func (m HealthCheckerDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 37f6204416..028b8c39b7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/hostname.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/hostname.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -26,7 +26,7 @@ type Hostname struct { 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). + // Managing Request Routing (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrequest.htm#routing). // Example: `app.example.com` Hostname *string `mandatory:"true" json:"hostname"` } @@ -42,7 +42,7 @@ func (m Hostname) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e3703a4c52..d2681ffcab 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -24,7 +24,7 @@ type HostnameDetails struct { 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). + // Managing Request Routing (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrequest.htm#routing). // Example: `app.example.com` Hostname *string `mandatory:"true" json:"hostname"` } @@ -40,7 +40,7 @@ func (m HostnameDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/http_header_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/http_header_rule.go index 39a3aef234..5f52e90b27 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/http_header_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/http_header_rule.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -47,7 +47,7 @@ func (m HttpHeaderRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4b8e1e7db6..bc7b28f85c 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -42,7 +42,7 @@ func (m IpAddress) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_based_max_connections_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_based_max_connections_rule.go index 3e18ea50f7..3c97cb2311 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_based_max_connections_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_based_max_connections_rule.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -41,7 +41,7 @@ func (m IpBasedMaxConnectionsRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_max_connections.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_max_connections.go index 011294af2c..a05df86956 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_max_connections.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_max_connections.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -41,7 +41,7 @@ func (m IpMaxConnections) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 050ecd9f3a..4f23e2b021 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -19,7 +19,7 @@ import ( // LbCookieSessionPersistenceConfigurationDetails The configuration details for implementing load balancer cookie session persistence (LB cookie stickiness). // Session persistence enables the Load Balancing service to direct all requests that originate from a single logical // client to a single backend web server. For more information, see -// Session Persistence (https://docs.cloud.oracle.com/Content/Balance/Reference/sessionpersistence.htm). +// Session Persistence (https://docs.oracle.com/iaas/Content/Balance/Reference/sessionpersistence.htm). // When you configure LB cookie stickiness, the load balancer inserts a cookie into the response. The parameters configured // in the cookie enable session stickiness. This method is useful when you have applications and Web backend services // that cannot generate their own cookies. @@ -117,7 +117,7 @@ func (m LbCookieSessionPersistenceConfigurationDetails) ValidateEnumValue() (boo errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 1f3d055c7e..1a0e15d1c5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListBackendSets.go.html to see an example of how to use ListBackendSetsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListBackendSets.go.html to see an example of how to use ListBackendSetsRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -71,7 +71,7 @@ func (request ListBackendSetsRequest) RetryPolicy() *common.RetryPolicy { func (request ListBackendSetsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b4f17b6eb1..dff6f0bdd5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListBackends.go.html to see an example of how to use ListBackendsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListBackends.go.html to see an example of how to use ListBackendsRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request ListBackendsRequest) RetryPolicy() *common.RetryPolicy { func (request ListBackendsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 88f5e41e73..53304e4708 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListCertificates.go.html to see an example of how to use ListCertificatesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListCertificates.go.html to see an example of how to use ListCertificatesRequest. type ListCertificatesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate bundles + // The OCID (https://docs.oracle.com/iaas/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"` @@ -72,7 +72,7 @@ func (request ListCertificatesRequest) RetryPolicy() *common.RetryPolicy { func (request ListCertificatesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f7571c7ac7..f90cf90866 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListHostnames.go.html to see an example of how to use ListHostnamesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListHostnames.go.html to see an example of how to use ListHostnamesRequest. type ListHostnamesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the hostnames + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer associated with the hostnames // to retrieve. LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` @@ -72,7 +72,7 @@ func (request ListHostnamesRequest) RetryPolicy() *common.RetryPolicy { func (request ListHostnamesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 49e790d1d1..0c7fe3909b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListListenerRules.go.html to see an example of how to use ListListenerRulesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListListenerRules.go.html to see an example of how to use ListListenerRulesRequest. type ListListenerRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener. + // The OCID (https://docs.oracle.com/iaas/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. @@ -75,7 +75,7 @@ func (request ListListenerRulesRequest) RetryPolicy() *common.RetryPolicy { func (request ListListenerRulesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 73a70e1dd4..2dea7eb72a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListLoadBalancerHealths.go.html to see an example of how to use ListLoadBalancerHealthsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListLoadBalancerHealths.go.html to see an example of how to use ListLoadBalancerHealthsRequest. type ListLoadBalancerHealthsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to return health status information for. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to return health status information for. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -26,12 +26,12 @@ type ListLoadBalancerHealthsRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `3` Page *string `mandatory:"false" contributesTo:"query" name:"page"` @@ -72,7 +72,7 @@ func (request ListLoadBalancerHealthsRequest) RetryPolicy() *common.RetryPolicy func (request ListLoadBalancerHealthsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -88,7 +88,7 @@ type ListLoadBalancerHealthsResponse struct { // 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). + // List Pagination (https://docs.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 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 index ea2473c274..3fccac0c1a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListLoadBalancers.go.html to see an example of how to use ListLoadBalancersRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListLoadBalancers.go.html to see an example of how to use ListLoadBalancersRequest. type ListLoadBalancersRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to list. + // The OCID (https://docs.oracle.com/iaas/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 @@ -26,12 +26,12 @@ type ListLoadBalancersRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `3` Page *string `mandatory:"false" contributesTo:"query" name:"page"` @@ -100,7 +100,7 @@ func (request ListLoadBalancersRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -116,7 +116,7 @@ type ListLoadBalancersResponse struct { // 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). + // List Pagination (https://docs.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 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 index 67236fbf8a..4c5eac8da7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListPathRouteSets.go.html to see an example of how to use ListPathRouteSetsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListPathRouteSets.go.html to see an example of how to use ListPathRouteSetsRequest. 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 + // The OCID (https://docs.oracle.com/iaas/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"` @@ -72,7 +72,7 @@ func (request ListPathRouteSetsRequest) RetryPolicy() *common.RetryPolicy { func (request ListPathRouteSetsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 128d037d47..6a9b6582d5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListPolicies.go.html to see an example of how to use ListPoliciesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListPolicies.go.html to see an example of how to use ListPoliciesRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -26,12 +26,12 @@ type ListPoliciesRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `3` Page *string `mandatory:"false" contributesTo:"query" name:"page"` @@ -72,7 +72,7 @@ func (request ListPoliciesRequest) RetryPolicy() *common.RetryPolicy { func (request ListPoliciesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -88,7 +88,7 @@ type ListPoliciesResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_protocols_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_protocols_request_response.go index bf9e7d9eae..9d1f7c6ffc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_protocols_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_protocols_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListProtocols.go.html to see an example of how to use ListProtocolsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListProtocols.go.html to see an example of how to use ListProtocolsRequest. type ListProtocolsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer protocols to list. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer protocols 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 @@ -26,12 +26,12 @@ type ListProtocolsRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `3` Page *string `mandatory:"false" contributesTo:"query" name:"page"` @@ -72,7 +72,7 @@ func (request ListProtocolsRequest) RetryPolicy() *common.RetryPolicy { func (request ListProtocolsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -88,7 +88,7 @@ type ListProtocolsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 4b5349d9f9..499e0241a9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListRoutingPolicies.go.html to see an example of how to use ListRoutingPoliciesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListRoutingPolicies.go.html to see an example of how to use ListRoutingPoliciesRequest. type ListRoutingPoliciesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the routing policies. + // The OCID (https://docs.oracle.com/iaas/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 @@ -26,12 +26,12 @@ type ListRoutingPoliciesRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `3` Page *string `mandatory:"false" contributesTo:"query" name:"page"` @@ -81,7 +81,7 @@ func (request ListRoutingPoliciesRequest) RetryPolicy() *common.RetryPolicy { func (request ListRoutingPoliciesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -101,7 +101,7 @@ type ListRoutingPoliciesResponse struct { // 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). + // List Pagination (https://docs.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. 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 index 80918efeb8..aae572fedf 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListRuleSets.go.html to see an example of how to use ListRuleSetsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListRuleSets.go.html to see an example of how to use ListRuleSetsRequest. type ListRuleSetsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + // The OCID (https://docs.oracle.com/iaas/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 @@ -71,7 +71,7 @@ func (request ListRuleSetsRequest) RetryPolicy() *common.RetryPolicy { func (request ListRuleSetsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 673ed5195a..c4b0589ac5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListSSLCipherSuites.go.html to see an example of how to use ListSSLCipherSuitesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListSSLCipherSuites.go.html to see an example of how to use ListSSLCipherSuitesRequest. type ListSSLCipherSuitesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. + // The OCID (https://docs.oracle.com/iaas/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 @@ -71,7 +71,7 @@ func (request ListSSLCipherSuitesRequest) RetryPolicy() *common.RetryPolicy { func (request ListSSLCipherSuitesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7d8eee5b80..f3aaf11c1d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListShapes.go.html to see an example of how to use ListShapesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListShapes.go.html to see an example of how to use ListShapesRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -26,12 +26,12 @@ type ListShapesRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `3` Page *string `mandatory:"false" contributesTo:"query" name:"page"` @@ -72,7 +72,7 @@ func (request ListShapesRequest) RetryPolicy() *common.RetryPolicy { func (request ListShapesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -88,7 +88,7 @@ type ListShapesResponse struct { // 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). + // List Pagination (https://docs.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 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 index 0d03fefaf3..3c389d92bc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -26,12 +26,12 @@ type ListWorkRequestsRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `3` Page *string `mandatory:"false" contributesTo:"query" name:"page"` @@ -72,7 +72,7 @@ func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -88,7 +88,7 @@ type ListWorkRequestsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 1e6cddab89..8c2ce63941 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // 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). +// Managing Load Balancer Listeners (https://docs.oracle.com/iaas/Content/Balance/Tasks/managinglisteners.htm). type Listener struct { // A friendly name for the listener. It must be unique and it cannot be changed. @@ -33,8 +33,9 @@ type Listener struct { // Example: `80` Port *int `mandatory:"true" json:"port"` - // The protocol on which the listener accepts connection requests. The supported protocols are HTTP, HTTP2, TCP, and GRPC. - // You can also use the ListProtocols operation to get a list of valid protocols. + // 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"` @@ -71,7 +72,7 @@ func (m Listener) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9814c72eb9..881a9ef9b4 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -27,8 +27,9 @@ type ListenerDetails struct { // Example: `80` Port *int `mandatory:"true" json:"port"` - // The protocol on which the listener accepts connection requests. The supported protocols are HTTP, HTTP2, TCP, and GRPC. - // You can also use the ListProtocols operation to get a list of valid protocols. + // 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"` @@ -65,7 +66,7 @@ func (m ListenerDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_rule_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_rule_summary.go index f0de13d1be..e8330434b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_rule_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_rule_summary.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -39,7 +39,7 @@ func (m ListenerRuleSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer.go index 02e7073163..7c2d7ff885 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -17,19 +17,19 @@ import ( ) // LoadBalancer The properties that define a load balancer. For more information, see -// Managing a Load Balancer (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingloadbalancer.htm). +// Managing a Load Balancer (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingloadbalancer.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). +// Getting Started with Policies (https://docs.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/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see -// SDKS and Other Tools (https://docs.cloud.oracle.com/Content/API/Concepts/sdks.htm). +// About the API (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see +// SDKS and Other Tools (https://docs.oracle.com/iaas/Content/API/Concepts/sdks.htm). type LoadBalancer struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer. Id *string `mandatory:"true" json:"id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer. CompartmentId *string `mandatory:"true" json:"compartmentId"` // A user-friendly name. It does not have to be unique, and it is changeable. @@ -58,8 +58,8 @@ type LoadBalancer struct { // If "true", the service assigns a private IP address to the load balancer. // If "false", the service assigns a public IP address to the load balancer. // A public load balancer is accessible from the internet, depending on your VCN's - // security list rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securitylists.htm). For more information about public and - // private load balancers, see How Load Balancing Works (https://docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm#how-load-balancing-works). + // security list rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securitylists.htm). For more information about public and + // private load balancers, see How Load Balancing Works (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm#how-load-balancing-works). // Example: `true` IsPrivate *bool `mandatory:"false" json:"isPrivate"` @@ -90,10 +90,10 @@ type LoadBalancer struct { // If this field is set to "" this field defaults to X-Request-Id. RequestIdHeader *string `mandatory:"false" json:"requestIdHeader"` - // An array of subnet OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + // An array of subnet OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). SubnetIds []string `mandatory:"false" json:"subnetIds"` - // An array of NSG OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with the load + // An array of NSG OCIDs (https://docs.oracle.com/iaas/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: @@ -116,21 +116,21 @@ type LoadBalancer struct { PathRouteSets map[string]PathRouteSet `mandatory:"false" json:"pathRouteSets"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // Extended Defined tags for ZPR for this resource. Each key is predefined and scoped to a namespace. // Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", "usagetype" : "zpr"}}}` - ZprTags map[string]map[string]interface{} `mandatory:"false" json:"zprTags"` + SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` // System 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // System tags can be viewed by users, but can only be created by the system. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` @@ -138,6 +138,12 @@ type LoadBalancer struct { RuleSets map[string]RuleSet `mandatory:"false" json:"ruleSets"` RoutingPolicies map[string]RoutingPolicy `mandatory:"false" json:"routingPolicies"` + + // Whether the load balancer has an IPv4 or IPv6 IP address. + // If "IPV4", the service assigns an IPv4 address and the load balancer supports IPv4 traffic. + // If "IPV6", the service assigns an IPv6 address and the load balancer supports IPv6 traffic. + // Example: "ipMode":"IPV6" + IpMode LoadBalancerIpModeEnum `mandatory:"false" json:"ipMode,omitempty"` } func (m LoadBalancer) String() string { @@ -153,8 +159,11 @@ func (m LoadBalancer) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetLoadBalancerLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingLoadBalancerIpModeEnum(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(GetLoadBalancerIpModeEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -212,3 +221,45 @@ func GetMappingLoadBalancerLifecycleStateEnum(val string) (LoadBalancerLifecycle enum, ok := mappingLoadBalancerLifecycleStateEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// LoadBalancerIpModeEnum Enum with underlying type: string +type LoadBalancerIpModeEnum string + +// Set of constants representing the allowable values for LoadBalancerIpModeEnum +const ( + LoadBalancerIpModeIpv4 LoadBalancerIpModeEnum = "IPV4" + LoadBalancerIpModeIpv6 LoadBalancerIpModeEnum = "IPV6" +) + +var mappingLoadBalancerIpModeEnum = map[string]LoadBalancerIpModeEnum{ + "IPV4": LoadBalancerIpModeIpv4, + "IPV6": LoadBalancerIpModeIpv6, +} + +var mappingLoadBalancerIpModeEnumLowerCase = map[string]LoadBalancerIpModeEnum{ + "ipv4": LoadBalancerIpModeIpv4, + "ipv6": LoadBalancerIpModeIpv6, +} + +// GetLoadBalancerIpModeEnumValues Enumerates the set of values for LoadBalancerIpModeEnum +func GetLoadBalancerIpModeEnumValues() []LoadBalancerIpModeEnum { + values := make([]LoadBalancerIpModeEnum, 0) + for _, v := range mappingLoadBalancerIpModeEnum { + values = append(values, v) + } + return values +} + +// GetLoadBalancerIpModeEnumStringValues Enumerates the set of values in String for LoadBalancerIpModeEnum +func GetLoadBalancerIpModeEnumStringValues() []string { + return []string{ + "IPV4", + "IPV6", + } +} + +// GetMappingLoadBalancerIpModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadBalancerIpModeEnum(val string) (LoadBalancerIpModeEnum, bool) { + enum, ok := mappingLoadBalancerIpModeEnumLowerCase[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 index 32d93f1ae6..8c3e22d53d 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -68,7 +68,7 @@ func (m LoadBalancerHealth) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0b510a28ec..c9d0d54243 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -19,7 +19,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -50,7 +50,7 @@ func (m LoadBalancerHealthSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a637569e83..adfdc5ecfc 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // 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). +// How Load Balancing Policies Work (https://docs.oracle.com/iaas/Content/Balance/Reference/lbpolicies.htm). type LoadBalancerPolicy struct { // The name of a load balancing policy. @@ -37,7 +37,7 @@ func (m LoadBalancerPolicy) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index b55b92af27..d117489542 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -35,7 +35,7 @@ func (m LoadBalancerProtocol) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 2fcbba6a29..3361d47b77 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -38,7 +38,7 @@ func (m LoadBalancerShape) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/loadbalancer_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/loadbalancer_client.go index e2f52b76e1..188c88ec4a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/loadbalancer_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/loadbalancer_client.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -93,11 +93,11 @@ func (client *LoadBalancerClient) ConfigurationProvider() *common.ConfigurationP } // ChangeLoadBalancerCompartment Moves a 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). +// between compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ChangeLoadBalancerCompartment.go.html to see an example of how to use ChangeLoadBalancerCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ChangeLoadBalancerCompartment.go.html to see an example of how to use ChangeLoadBalancerCompartment API. func (client LoadBalancerClient) ChangeLoadBalancerCompartment(ctx context.Context, request ChangeLoadBalancerCompartmentRequest) (response ChangeLoadBalancerCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -159,7 +159,7 @@ func (client LoadBalancerClient) changeLoadBalancerCompartment(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateBackend.go.html to see an example of how to use CreateBackend API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateBackend.go.html to see an example of how to use CreateBackend API. func (client LoadBalancerClient) CreateBackend(ctx context.Context, request CreateBackendRequest) (response CreateBackendResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -221,7 +221,7 @@ func (client LoadBalancerClient) createBackend(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateBackendSet.go.html to see an example of how to use CreateBackendSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateBackendSet.go.html to see an example of how to use CreateBackendSet API. func (client LoadBalancerClient) CreateBackendSet(ctx context.Context, request CreateBackendSetRequest) (response CreateBackendSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -283,7 +283,7 @@ func (client LoadBalancerClient) createBackendSet(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateCertificate.go.html to see an example of how to use CreateCertificate API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateCertificate.go.html to see an example of how to use CreateCertificate API. func (client LoadBalancerClient) CreateCertificate(ctx context.Context, request CreateCertificateRequest) (response CreateCertificateResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -342,11 +342,11 @@ func (client LoadBalancerClient) createCertificate(ctx context.Context, request } // CreateHostname Adds a hostname resource to the specified load balancer. For more information, see -// Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). +// Managing Request Routing (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrequest.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateHostname.go.html to see an example of how to use CreateHostname API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateHostname.go.html to see an example of how to use CreateHostname API. func (client LoadBalancerClient) CreateHostname(ctx context.Context, request CreateHostnameRequest) (response CreateHostnameResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -408,7 +408,7 @@ func (client LoadBalancerClient) createHostname(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateListener.go.html to see an example of how to use CreateListener API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateListener.go.html to see an example of how to use CreateListener API. func (client LoadBalancerClient) CreateListener(ctx context.Context, request CreateListenerRequest) (response CreateListenerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -467,22 +467,22 @@ func (client LoadBalancerClient) createListener(ctx context.Context, request com } // CreateLoadBalancer Creates a new load balancer in the specified compartment. For general information about load balancers, -// see Overview of the Load Balancing Service (https://docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm). +// see Overview of the Load Balancing Service (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // For the purposes of access control, you must provide the OCID of the compartment where you want // the load balancer to reside. Notice that the load balancer doesn't have to be in the same compartment as the VCN // or backend set. If you're not sure which compartment to use, put the load balancer in the same compartment as the VCN. // For information about access control and compartments, see -// Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +// Overview of the IAM Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). // You must specify a display name for the load balancer. It does not have to be unique, and you can change it. // For information about Availability Domains, see -// Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +// Regions and Availability Domains (https://docs.oracle.com/iaas/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 load balancers, get an Oracle-assigned, // unique ID called an Oracle Cloud Identifier (OCID). 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. Fore more information, see -// Resource Identifiers (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). +// Resource Identifiers (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // After you send your request, the new object's state will temporarily be PROVISIONING. Before using the // object, first make sure its state has changed to RUNNING. // When you create a load balancer, the system assigns an IP address. @@ -490,7 +490,7 @@ func (client LoadBalancerClient) createListener(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateLoadBalancer.go.html to see an example of how to use CreateLoadBalancer API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateLoadBalancer.go.html to see an example of how to use CreateLoadBalancer API. func (client LoadBalancerClient) CreateLoadBalancer(ctx context.Context, request CreateLoadBalancerRequest) (response CreateLoadBalancerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -549,11 +549,11 @@ func (client LoadBalancerClient) createLoadBalancer(ctx context.Context, request } // CreatePathRouteSet Adds a path route set to a load balancer. For more information, see -// Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). +// Managing Request Routing (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrequest.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreatePathRouteSet.go.html to see an example of how to use CreatePathRouteSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreatePathRouteSet.go.html to see an example of how to use CreatePathRouteSet API. func (client LoadBalancerClient) CreatePathRouteSet(ctx context.Context, request CreatePathRouteSetRequest) (response CreatePathRouteSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -612,11 +612,11 @@ func (client LoadBalancerClient) createPathRouteSet(ctx context.Context, request } // CreateRoutingPolicy Adds a routing policy to a load balancer. For more information, see -// Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). +// Managing Request Routing (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrequest.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateRoutingPolicy.go.html to see an example of how to use CreateRoutingPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateRoutingPolicy.go.html to see an example of how to use CreateRoutingPolicy API. func (client LoadBalancerClient) CreateRoutingPolicy(ctx context.Context, request CreateRoutingPolicyRequest) (response CreateRoutingPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -675,11 +675,11 @@ func (client LoadBalancerClient) createRoutingPolicy(ctx context.Context, reques } // CreateRuleSet Creates a new rule set associated with the specified load balancer. For more information, see -// Managing Rule Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm). +// Managing Rule Sets (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrulesets.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateRuleSet.go.html to see an example of how to use CreateRuleSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateRuleSet.go.html to see an example of how to use CreateRuleSet API. func (client LoadBalancerClient) CreateRuleSet(ctx context.Context, request CreateRuleSetRequest) (response CreateRuleSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -741,7 +741,7 @@ func (client LoadBalancerClient) createRuleSet(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateSSLCipherSuite.go.html to see an example of how to use CreateSSLCipherSuite API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/CreateSSLCipherSuite.go.html to see an example of how to use CreateSSLCipherSuite API. func (client LoadBalancerClient) CreateSSLCipherSuite(ctx context.Context, request CreateSSLCipherSuiteRequest) (response CreateSSLCipherSuiteResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -803,7 +803,7 @@ func (client LoadBalancerClient) createSSLCipherSuite(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteBackend.go.html to see an example of how to use DeleteBackend API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteBackend.go.html to see an example of how to use DeleteBackend API. func (client LoadBalancerClient) DeleteBackend(ctx context.Context, request DeleteBackendRequest) (response DeleteBackendResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -861,7 +861,7 @@ func (client LoadBalancerClient) deleteBackend(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteBackendSet.go.html to see an example of how to use DeleteBackendSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteBackendSet.go.html to see an example of how to use DeleteBackendSet API. func (client LoadBalancerClient) DeleteBackendSet(ctx context.Context, request DeleteBackendSetRequest) (response DeleteBackendSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -918,7 +918,7 @@ func (client LoadBalancerClient) deleteBackendSet(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteCertificate.go.html to see an example of how to use DeleteCertificate API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteCertificate.go.html to see an example of how to use DeleteCertificate API. func (client LoadBalancerClient) DeleteCertificate(ctx context.Context, request DeleteCertificateRequest) (response DeleteCertificateResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -975,7 +975,7 @@ func (client LoadBalancerClient) deleteCertificate(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteHostname.go.html to see an example of how to use DeleteHostname API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteHostname.go.html to see an example of how to use DeleteHostname API. func (client LoadBalancerClient) DeleteHostname(ctx context.Context, request DeleteHostnameRequest) (response DeleteHostnameResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1032,7 +1032,7 @@ func (client LoadBalancerClient) deleteHostname(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteListener.go.html to see an example of how to use DeleteListener API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteListener.go.html to see an example of how to use DeleteListener API. func (client LoadBalancerClient) DeleteListener(ctx context.Context, request DeleteListenerRequest) (response DeleteListenerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1089,7 +1089,7 @@ func (client LoadBalancerClient) deleteListener(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteLoadBalancer.go.html to see an example of how to use DeleteLoadBalancer API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteLoadBalancer.go.html to see an example of how to use DeleteLoadBalancer API. func (client LoadBalancerClient) DeleteLoadBalancer(ctx context.Context, request DeleteLoadBalancerRequest) (response DeleteLoadBalancerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1148,7 +1148,7 @@ func (client LoadBalancerClient) deleteLoadBalancer(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeletePathRouteSet.go.html to see an example of how to use DeletePathRouteSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeletePathRouteSet.go.html to see an example of how to use DeletePathRouteSet API. func (client LoadBalancerClient) DeletePathRouteSet(ctx context.Context, request DeletePathRouteSetRequest) (response DeletePathRouteSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1207,7 +1207,7 @@ func (client LoadBalancerClient) deletePathRouteSet(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteRoutingPolicy.go.html to see an example of how to use DeleteRoutingPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteRoutingPolicy.go.html to see an example of how to use DeleteRoutingPolicy API. func (client LoadBalancerClient) DeleteRoutingPolicy(ctx context.Context, request DeleteRoutingPolicyRequest) (response DeleteRoutingPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1266,7 +1266,7 @@ func (client LoadBalancerClient) deleteRoutingPolicy(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteRuleSet.go.html to see an example of how to use DeleteRuleSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteRuleSet.go.html to see an example of how to use DeleteRuleSet API. func (client LoadBalancerClient) DeleteRuleSet(ctx context.Context, request DeleteRuleSetRequest) (response DeleteRuleSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1323,7 +1323,7 @@ func (client LoadBalancerClient) deleteRuleSet(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteSSLCipherSuite.go.html to see an example of how to use DeleteSSLCipherSuite API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/DeleteSSLCipherSuite.go.html to see an example of how to use DeleteSSLCipherSuite API. func (client LoadBalancerClient) DeleteSSLCipherSuite(ctx context.Context, request DeleteSSLCipherSuiteRequest) (response DeleteSSLCipherSuiteResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1380,7 +1380,7 @@ func (client LoadBalancerClient) deleteSSLCipherSuite(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackend.go.html to see an example of how to use GetBackend API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackend.go.html to see an example of how to use GetBackend API. func (client LoadBalancerClient) GetBackend(ctx context.Context, request GetBackendRequest) (response GetBackendResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1437,7 +1437,7 @@ func (client LoadBalancerClient) getBackend(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendHealth.go.html to see an example of how to use GetBackendHealth API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendHealth.go.html to see an example of how to use GetBackendHealth API. func (client LoadBalancerClient) GetBackendHealth(ctx context.Context, request GetBackendHealthRequest) (response GetBackendHealthResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1494,7 +1494,7 @@ func (client LoadBalancerClient) getBackendHealth(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendSet.go.html to see an example of how to use GetBackendSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendSet.go.html to see an example of how to use GetBackendSet API. func (client LoadBalancerClient) GetBackendSet(ctx context.Context, request GetBackendSetRequest) (response GetBackendSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1551,7 +1551,7 @@ func (client LoadBalancerClient) getBackendSet(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendSetHealth.go.html to see an example of how to use GetBackendSetHealth API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetBackendSetHealth.go.html to see an example of how to use GetBackendSetHealth API. func (client LoadBalancerClient) GetBackendSetHealth(ctx context.Context, request GetBackendSetHealthRequest) (response GetBackendSetHealthResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1608,7 +1608,7 @@ func (client LoadBalancerClient) getBackendSetHealth(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetHealthChecker.go.html to see an example of how to use GetHealthChecker API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetHealthChecker.go.html to see an example of how to use GetHealthChecker API. func (client LoadBalancerClient) GetHealthChecker(ctx context.Context, request GetHealthCheckerRequest) (response GetHealthCheckerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1665,7 +1665,7 @@ func (client LoadBalancerClient) getHealthChecker(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetHostname.go.html to see an example of how to use GetHostname API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetHostname.go.html to see an example of how to use GetHostname API. func (client LoadBalancerClient) GetHostname(ctx context.Context, request GetHostnameRequest) (response GetHostnameResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1722,7 +1722,7 @@ func (client LoadBalancerClient) getHostname(ctx context.Context, request common // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetLoadBalancer.go.html to see an example of how to use GetLoadBalancer API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetLoadBalancer.go.html to see an example of how to use GetLoadBalancer API. func (client LoadBalancerClient) GetLoadBalancer(ctx context.Context, request GetLoadBalancerRequest) (response GetLoadBalancerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1779,7 +1779,7 @@ func (client LoadBalancerClient) getLoadBalancer(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetLoadBalancerHealth.go.html to see an example of how to use GetLoadBalancerHealth API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetLoadBalancerHealth.go.html to see an example of how to use GetLoadBalancerHealth API. func (client LoadBalancerClient) GetLoadBalancerHealth(ctx context.Context, request GetLoadBalancerHealthRequest) (response GetLoadBalancerHealthResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1836,7 +1836,7 @@ func (client LoadBalancerClient) getLoadBalancerHealth(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetPathRouteSet.go.html to see an example of how to use GetPathRouteSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetPathRouteSet.go.html to see an example of how to use GetPathRouteSet API. func (client LoadBalancerClient) GetPathRouteSet(ctx context.Context, request GetPathRouteSetRequest) (response GetPathRouteSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1893,7 +1893,7 @@ func (client LoadBalancerClient) getPathRouteSet(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetRoutingPolicy.go.html to see an example of how to use GetRoutingPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetRoutingPolicy.go.html to see an example of how to use GetRoutingPolicy API. func (client LoadBalancerClient) GetRoutingPolicy(ctx context.Context, request GetRoutingPolicyRequest) (response GetRoutingPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1950,7 +1950,7 @@ func (client LoadBalancerClient) getRoutingPolicy(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetRuleSet.go.html to see an example of how to use GetRuleSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetRuleSet.go.html to see an example of how to use GetRuleSet API. func (client LoadBalancerClient) GetRuleSet(ctx context.Context, request GetRuleSetRequest) (response GetRuleSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2007,7 +2007,7 @@ func (client LoadBalancerClient) getRuleSet(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetSSLCipherSuite.go.html to see an example of how to use GetSSLCipherSuite API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetSSLCipherSuite.go.html to see an example of how to use GetSSLCipherSuite API. func (client LoadBalancerClient) GetSSLCipherSuite(ctx context.Context, request GetSSLCipherSuiteRequest) (response GetSSLCipherSuiteResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2064,7 +2064,7 @@ func (client LoadBalancerClient) getSSLCipherSuite(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. func (client LoadBalancerClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2121,7 +2121,7 @@ func (client LoadBalancerClient) getWorkRequest(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListBackendSets.go.html to see an example of how to use ListBackendSets API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListBackendSets.go.html to see an example of how to use ListBackendSets API. func (client LoadBalancerClient) ListBackendSets(ctx context.Context, request ListBackendSetsRequest) (response ListBackendSetsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2178,7 +2178,7 @@ func (client LoadBalancerClient) listBackendSets(ctx context.Context, request co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListBackends.go.html to see an example of how to use ListBackends API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListBackends.go.html to see an example of how to use ListBackends API. func (client LoadBalancerClient) ListBackends(ctx context.Context, request ListBackendsRequest) (response ListBackendsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2235,7 +2235,7 @@ func (client LoadBalancerClient) listBackends(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListCertificates.go.html to see an example of how to use ListCertificates API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListCertificates.go.html to see an example of how to use ListCertificates API. func (client LoadBalancerClient) ListCertificates(ctx context.Context, request ListCertificatesRequest) (response ListCertificatesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2292,7 +2292,7 @@ func (client LoadBalancerClient) listCertificates(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListHostnames.go.html to see an example of how to use ListHostnames API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListHostnames.go.html to see an example of how to use ListHostnames API. func (client LoadBalancerClient) ListHostnames(ctx context.Context, request ListHostnamesRequest) (response ListHostnamesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2354,7 +2354,7 @@ func (client LoadBalancerClient) listHostnames(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListListenerRules.go.html to see an example of how to use ListListenerRules API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListListenerRules.go.html to see an example of how to use ListListenerRules API. func (client LoadBalancerClient) ListListenerRules(ctx context.Context, request ListListenerRulesRequest) (response ListListenerRulesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2411,7 +2411,7 @@ func (client LoadBalancerClient) listListenerRules(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListLoadBalancerHealths.go.html to see an example of how to use ListLoadBalancerHealths API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListLoadBalancerHealths.go.html to see an example of how to use ListLoadBalancerHealths API. func (client LoadBalancerClient) ListLoadBalancerHealths(ctx context.Context, request ListLoadBalancerHealthsRequest) (response ListLoadBalancerHealthsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2468,7 +2468,7 @@ func (client LoadBalancerClient) listLoadBalancerHealths(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListLoadBalancers.go.html to see an example of how to use ListLoadBalancers API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListLoadBalancers.go.html to see an example of how to use ListLoadBalancers API. func (client LoadBalancerClient) ListLoadBalancers(ctx context.Context, request ListLoadBalancersRequest) (response ListLoadBalancersResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2525,7 +2525,7 @@ func (client LoadBalancerClient) listLoadBalancers(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListPathRouteSets.go.html to see an example of how to use ListPathRouteSets API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListPathRouteSets.go.html to see an example of how to use ListPathRouteSets API. func (client LoadBalancerClient) ListPathRouteSets(ctx context.Context, request ListPathRouteSetsRequest) (response ListPathRouteSetsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2582,7 +2582,7 @@ func (client LoadBalancerClient) listPathRouteSets(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListPolicies.go.html to see an example of how to use ListPolicies API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListPolicies.go.html to see an example of how to use ListPolicies API. func (client LoadBalancerClient) ListPolicies(ctx context.Context, request ListPoliciesRequest) (response ListPoliciesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2639,7 +2639,7 @@ func (client LoadBalancerClient) listPolicies(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListProtocols.go.html to see an example of how to use ListProtocols API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListProtocols.go.html to see an example of how to use ListProtocols API. func (client LoadBalancerClient) ListProtocols(ctx context.Context, request ListProtocolsRequest) (response ListProtocolsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2696,7 +2696,7 @@ func (client LoadBalancerClient) listProtocols(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListRoutingPolicies.go.html to see an example of how to use ListRoutingPolicies API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListRoutingPolicies.go.html to see an example of how to use ListRoutingPolicies API. func (client LoadBalancerClient) ListRoutingPolicies(ctx context.Context, request ListRoutingPoliciesRequest) (response ListRoutingPoliciesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2753,7 +2753,7 @@ func (client LoadBalancerClient) listRoutingPolicies(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListRuleSets.go.html to see an example of how to use ListRuleSets API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListRuleSets.go.html to see an example of how to use ListRuleSets API. func (client LoadBalancerClient) ListRuleSets(ctx context.Context, request ListRuleSetsRequest) (response ListRuleSetsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2810,7 +2810,7 @@ func (client LoadBalancerClient) listRuleSets(ctx context.Context, request commo // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListSSLCipherSuites.go.html to see an example of how to use ListSSLCipherSuites API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListSSLCipherSuites.go.html to see an example of how to use ListSSLCipherSuites API. func (client LoadBalancerClient) ListSSLCipherSuites(ctx context.Context, request ListSSLCipherSuitesRequest) (response ListSSLCipherSuitesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2867,7 +2867,7 @@ func (client LoadBalancerClient) listSSLCipherSuites(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListShapes.go.html to see an example of how to use ListShapes API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListShapes.go.html to see an example of how to use ListShapes API. func (client LoadBalancerClient) ListShapes(ctx context.Context, request ListShapesRequest) (response ListShapesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2924,7 +2924,7 @@ func (client LoadBalancerClient) listShapes(ctx context.Context, request common. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. func (client LoadBalancerClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2981,7 +2981,7 @@ func (client LoadBalancerClient) listWorkRequests(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateBackend.go.html to see an example of how to use UpdateBackend API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateBackend.go.html to see an example of how to use UpdateBackend API. func (client LoadBalancerClient) UpdateBackend(ctx context.Context, request UpdateBackendRequest) (response UpdateBackendResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3043,7 +3043,7 @@ func (client LoadBalancerClient) updateBackend(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateBackendSet.go.html to see an example of how to use UpdateBackendSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateBackendSet.go.html to see an example of how to use UpdateBackendSet API. func (client LoadBalancerClient) UpdateBackendSet(ctx context.Context, request UpdateBackendSetRequest) (response UpdateBackendSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3105,7 +3105,7 @@ func (client LoadBalancerClient) updateBackendSet(ctx context.Context, request c // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateHealthChecker.go.html to see an example of how to use UpdateHealthChecker API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateHealthChecker.go.html to see an example of how to use UpdateHealthChecker API. func (client LoadBalancerClient) UpdateHealthChecker(ctx context.Context, request UpdateHealthCheckerRequest) (response UpdateHealthCheckerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3168,7 +3168,7 @@ func (client LoadBalancerClient) updateHealthChecker(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateHostname.go.html to see an example of how to use UpdateHostname API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateHostname.go.html to see an example of how to use UpdateHostname API. func (client LoadBalancerClient) UpdateHostname(ctx context.Context, request UpdateHostnameRequest) (response UpdateHostnameResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3230,7 +3230,7 @@ func (client LoadBalancerClient) updateHostname(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateListener.go.html to see an example of how to use UpdateListener API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateListener.go.html to see an example of how to use UpdateListener API. func (client LoadBalancerClient) UpdateListener(ctx context.Context, request UpdateListenerRequest) (response UpdateListenerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3292,7 +3292,7 @@ func (client LoadBalancerClient) updateListener(ctx context.Context, request com // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateLoadBalancer.go.html to see an example of how to use UpdateLoadBalancer API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateLoadBalancer.go.html to see an example of how to use UpdateLoadBalancer API. func (client LoadBalancerClient) UpdateLoadBalancer(ctx context.Context, request UpdateLoadBalancerRequest) (response UpdateLoadBalancerResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3359,7 +3359,7 @@ func (client LoadBalancerClient) updateLoadBalancer(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateLoadBalancerShape.go.html to see an example of how to use UpdateLoadBalancerShape API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateLoadBalancerShape.go.html to see an example of how to use UpdateLoadBalancerShape API. func (client LoadBalancerClient) UpdateLoadBalancerShape(ctx context.Context, request UpdateLoadBalancerShapeRequest) (response UpdateLoadBalancerShapeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3421,7 +3421,7 @@ func (client LoadBalancerClient) updateLoadBalancerShape(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateNetworkSecurityGroups.go.html to see an example of how to use UpdateNetworkSecurityGroups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateNetworkSecurityGroups.go.html to see an example of how to use UpdateNetworkSecurityGroups API. func (client LoadBalancerClient) UpdateNetworkSecurityGroups(ctx context.Context, request UpdateNetworkSecurityGroupsRequest) (response UpdateNetworkSecurityGroupsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3487,7 +3487,7 @@ func (client LoadBalancerClient) updateNetworkSecurityGroups(ctx context.Context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdatePathRouteSet.go.html to see an example of how to use UpdatePathRouteSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdatePathRouteSet.go.html to see an example of how to use UpdatePathRouteSet API. func (client LoadBalancerClient) UpdatePathRouteSet(ctx context.Context, request UpdatePathRouteSetRequest) (response UpdatePathRouteSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3551,7 +3551,7 @@ func (client LoadBalancerClient) updatePathRouteSet(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateRoutingPolicy.go.html to see an example of how to use UpdateRoutingPolicy API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateRoutingPolicy.go.html to see an example of how to use UpdateRoutingPolicy API. func (client LoadBalancerClient) UpdateRoutingPolicy(ctx context.Context, request UpdateRoutingPolicyRequest) (response UpdateRoutingPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3615,7 +3615,7 @@ func (client LoadBalancerClient) updateRoutingPolicy(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateRuleSet.go.html to see an example of how to use UpdateRuleSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateRuleSet.go.html to see an example of how to use UpdateRuleSet API. func (client LoadBalancerClient) UpdateRuleSet(ctx context.Context, request UpdateRuleSetRequest) (response UpdateRuleSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3677,7 +3677,7 @@ func (client LoadBalancerClient) updateRuleSet(ctx context.Context, request comm // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateSSLCipherSuite.go.html to see an example of how to use UpdateSSLCipherSuite API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateSSLCipherSuite.go.html to see an example of how to use UpdateSSLCipherSuite API. func (client LoadBalancerClient) UpdateSSLCipherSuite(ctx context.Context, request UpdateSSLCipherSuiteRequest) (response UpdateSSLCipherSuiteResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() 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 index ea0df6cb5d..abb9b70b92 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -50,7 +50,7 @@ func (m PathMatchCondition) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8da04ae051..c407fb8e76 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -27,7 +27,7 @@ type PathMatchType struct { // * **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). + // Managing Request Routing (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrequest.htm). MatchType PathMatchTypeMatchTypeEnum `mandatory:"true" json:"matchType"` } @@ -45,7 +45,7 @@ func (m PathMatchType) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c03649f558..857921764e 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -46,7 +46,7 @@ func (m PathRoute) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index af98115686..eee8ff0fc4 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -17,7 +17,7 @@ import ( ) // 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). +// Managing Request Routing (https://docs.oracle.com/iaas/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 { @@ -40,7 +40,7 @@ func (m PathRouteSet) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index bf4ae86563..28070a64f5 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -34,7 +34,7 @@ func (m PathRouteSetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_rule.go index 13b2442142..d8d28a0c59 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_rule.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -56,7 +56,7 @@ func (m RedirectRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_uri.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_uri.go index 495a93248f..b0710cb865 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_uri.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_uri.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -129,7 +129,7 @@ func (m RedirectUri) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_request_header_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_request_header_rule.go index a6dafcdf15..ee96d156e9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_request_header_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_request_header_rule.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -40,7 +40,7 @@ func (m RemoveHttpRequestHeaderRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_response_header_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_response_header_rule.go index 6299ede008..508bb029fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_response_header_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_response_header_rule.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -40,7 +40,7 @@ func (m RemoveHttpResponseHeaderRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cd56ab41b5..a66d2935e5 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -25,6 +25,7 @@ type ReservedIp struct { // field reservedIp to attach the Ip to Load balancer. Load balancer will be configured to listen to traffic on this IP. // Reserved IPs will not be deleted when the Load balancer is deleted. They will be unattached from the Load balancer. // Example: "ocid1.publicip.oc1.phx.unique_ID" + // IPV6 example: "ocid1.ipv6.oc1.phx.unique_ID" Id *string `mandatory:"false" json:"id"` } @@ -39,7 +40,7 @@ func (m ReservedIp) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 24cadd47e6..69531d6a0e 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -45,7 +45,7 @@ func (m RoutingPolicy) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 29f24ac551..8c62f32ba9 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -35,7 +35,7 @@ func (m RoutingPolicyDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_rule.go index 1505b3c6ea..9800743cd7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_rule.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -42,7 +42,7 @@ func (m RoutingRule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 67b2fa1177..e2ff6dcf64 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -96,7 +96,7 @@ func (m *rule) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for Rule: %s.", m.Action) + common.Logf("Received unsupported enum value for Rule: %s.", m.Action) return *m, nil } } @@ -112,7 +112,7 @@ func (m rule) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8fe7aba84d..bfa2f64348 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -68,7 +68,7 @@ func (m *rulecondition) UnmarshalPolymorphicJSON(data []byte) (interface{}, erro err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for RuleCondition: %s.", m.AttributeName) + common.Logf("Received unsupported enum value for RuleCondition: %s.", m.AttributeName) return *m, nil } } @@ -84,7 +84,7 @@ func (m rulecondition) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set.go index b1f10e854c..f8131aebc8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -19,7 +19,7 @@ import ( // RuleSet A named set of rules associated with a load balancer. Rules are objects that represent actions to apply to a listener, // such as adding, altering, or removing HTTP headers. For more information, see -// Managing Rule Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm). +// Managing Rule Sets (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrulesets.htm). type RuleSet struct { // The name for this set of rules. It must be unique and it cannot be changed. Avoid entering @@ -42,7 +42,7 @@ func (m RuleSet) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8a64959fa3..d65f2f6b6d 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -35,7 +35,7 @@ func (m RuleSetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/session_persistence_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/session_persistence_configuration_details.go index 6af49e8da5..50a45788ec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/session_persistence_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/session_persistence_configuration_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -20,7 +20,7 @@ import ( // cookie stickiness). // Session persistence enables the Load Balancing service to direct any number of requests that originate from a single // logical client to a single backend web server. For more information, see -// Session Persistence (https://docs.cloud.oracle.com/Content/Balance/Reference/sessionpersistence.htm). +// Session Persistence (https://docs.oracle.com/iaas/Content/Balance/Reference/sessionpersistence.htm). // With application cookie stickiness, the load balancer enables session persistence only when the response from a backend // application server includes a `Set-cookie` header with the user-specified cookie name. // To disable application cookie stickiness on a running load balancer, use the @@ -54,7 +54,7 @@ func (m SessionPersistenceConfigurationDetails) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 7350819665..9d023ec03d 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -43,7 +43,7 @@ func (m ShapeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 509c9563b5..ad836c848d 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -37,7 +37,7 @@ func (m SourceIpAddressCondition) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_id_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_id_condition.go index d6d7ffb480..d4143a4289 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_id_condition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_id_condition.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -20,7 +20,7 @@ import ( // SourceVcnIdCondition An access control rule condition that requires a match on the specified source VCN OCID. type SourceVcnIdCondition struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the originating VCN that an incoming packet + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the originating VCN that an incoming packet // must match. // You can use this condition in conjunction with `SourceVcnIpAddressCondition`. // **NOTE:** If you define this condition for a rule without a `SourceVcnIpAddressCondition`, this condition @@ -39,7 +39,7 @@ func (m SourceVcnIdCondition) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_ip_address_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_ip_address_condition.go index 2a9455f407..094638ac5c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_ip_address_condition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_ip_address_condition.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -40,7 +40,7 @@ func (m SourceVcnIpAddressCondition) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite.go index 7241341ebb..8b83716c87 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -23,8 +23,8 @@ import ( // level, performance, and compatibility of your data traffic. // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. // Oracle created the following predefined cipher suites that you can specify when you define a resource's -// SSL configuration (https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/datatypes/SSLConfigurationDetails). You can create custom -// cipher suites (https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/SSLCipherSuite/CreateSSLCipherSuite) if the predefined cipher +// SSL configuration (https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/datatypes/SSLConfigurationDetails). You can create custom +// cipher suites (https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/SSLCipherSuite/CreateSSLCipherSuite) if the predefined cipher // suites do not meet your requirements. // // - __oci-default-ssl-cipher-suite-v1__ @@ -374,7 +374,7 @@ func (m SslCipherSuite) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite_details.go index 9aa981c2f7..1897664644 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -23,8 +23,8 @@ import ( // level, performance, and compatibility of your data traffic. // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. // Oracle created the following predefined cipher suites that you can specify when you define a resource's -// SSL configuration (https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/datatypes/SSLConfigurationDetails). You can create custom -// cipher suites (https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/SSLCipherSuite/CreateSSLCipherSuite) if the predefined cipher +// SSL configuration (https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/datatypes/SSLConfigurationDetails). You can create custom +// cipher suites (https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/SSLCipherSuite/CreateSSLCipherSuite) if the predefined cipher // suites do not meet your requirements. // // - __oci-default-ssl-cipher-suite-v1__ @@ -374,7 +374,7 @@ func (m SslCipherSuiteDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration.go index 79925043d5..7f56c8a57f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -113,7 +113,7 @@ func (m SslConfiguration) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration_details.go index 657cb4074a..b7533e3655 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -112,7 +112,7 @@ func (m SslConfigurationDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 952f25d355..b0f81eb2a0 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -23,7 +23,7 @@ type UpdateBackendDetails struct { // 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). + // How Load Balancing Policies Work (https://docs.oracle.com/iaas/Content/Balance/Reference/lbpolicies.htm). // Example: `3` Weight *int `mandatory:"true" json:"weight"` @@ -44,8 +44,10 @@ type UpdateBackendDetails struct { Offline *bool `mandatory:"true" json:"offline"` // The maximum number of simultaneous connections the load balancer can make to the backend. - // If this is not set then the maximum number of simultaneous connections the load balancer - // can make to the backend is unlimited. + // If this is not set or set to 0 then the maximum number of simultaneous connections the + // load balancer can make to the backend is unlimited. + // If setting maxConnections to some value other than 0 then that value must be greater + // or equal to 256. // Example: `300` MaxConnections *int `mandatory:"false" json:"maxConnections"` } @@ -61,7 +63,7 @@ func (m UpdateBackendDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f361930742..d969716cdd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateBackend.go.html to see an example of how to use UpdateBackendRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateBackend.go.html to see an example of how to use UpdateBackendRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -89,7 +89,7 @@ func (request UpdateBackendRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateBackendRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -100,7 +100,7 @@ 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. + // The OCID (https://docs.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 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 index 13ab5a78fd..fe83a90c92 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,7 +18,7 @@ import ( // 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). +// Managing Backend Sets (https://docs.oracle.com/iaas/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. @@ -36,8 +36,11 @@ type UpdateBackendSetDetails struct { // The maximum number of simultaneous connections the load balancer can make to any backend // in the backend set unless the backend has its own maxConnections setting. If this is not - // set then the number of simultaneous connections the load balancer can make to any backend - // in the backend set unless the backend has its own maxConnections setting is unlimited. + // set or set to 0 then the number of simultaneous connections the load balancer can make + // to any backend in the backend set unless the backend has its own maxConnections setting + // is unlimited. + // If setting backendMaxConnections to some value other than 0 then that value must be greater + // or equal to 256. // Example: `300` BackendMaxConnections *int `mandatory:"false" json:"backendMaxConnections"` @@ -59,7 +62,7 @@ func (m UpdateBackendSetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index e5de767aae..a3d00cecd4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateBackendSet.go.html to see an example of how to use UpdateBackendSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateBackendSet.go.html to see an example of how to use UpdateBackendSetRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -85,7 +85,7 @@ func (request UpdateBackendSetRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateBackendSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ 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. + // The OCID (https://docs.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 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 index a81b012613..7659adf805 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -74,7 +74,7 @@ func (m UpdateHealthCheckerDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 8840a33082..1476a219aa 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateHealthChecker.go.html to see an example of how to use UpdateHealthCheckerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateHealthChecker.go.html to see an example of how to use UpdateHealthCheckerRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -85,7 +85,7 @@ func (request UpdateHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateHealthCheckerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ 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. + // The OCID (https://docs.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 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 index b7ed08d84d..957c290f4f 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -18,11 +18,11 @@ import ( // 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). +// Managing Request Routing (https://docs.oracle.com/iaas/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). + // Managing Request Routing (https://docs.oracle.com/iaas/Content/Balance/Tasks/managingrequest.htm#routing). // Example: `app.example.com` Hostname *string `mandatory:"false" json:"hostname"` } @@ -38,7 +38,7 @@ func (m UpdateHostnameDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index efb6b8bbde..e237eb64d9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateHostname.go.html to see an example of how to use UpdateHostnameRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateHostname.go.html to see an example of how to use UpdateHostnameRequest. 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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer associated with the virtual hostname // to update. LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` @@ -86,7 +86,7 @@ func (request UpdateHostnameRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateHostnameRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -97,7 +97,7 @@ 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. + // The OCID (https://docs.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 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 index 87d824005a..52133a8517 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -27,8 +27,9 @@ type UpdateListenerDetails struct { // Example: `80` Port *int `mandatory:"true" json:"port"` - // The protocol on which the listener accepts connection requests. The supported protocols are HTTP, HTTP2, TCP, and GRPC. - // You can also use the ListProtocols operation to get a list of valid protocols. + // 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"` @@ -65,7 +66,7 @@ func (m UpdateListenerDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 9b98c8a6ae..f03e877e1b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateListener.go.html to see an example of how to use UpdateListenerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateListener.go.html to see an example of how to use UpdateListenerRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -85,7 +85,7 @@ func (request UpdateListenerRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateListenerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ 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. + // The OCID (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_details.go index 7c89f7b669..a033e238e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -25,6 +25,19 @@ type UpdateLoadBalancerDetails struct { // Example: `example_load_balancer` DisplayName *string `mandatory:"false" json:"displayName"` + // Whether the load balancer has an IPv4 or IPv6 IP address. + // If "IPV4", the service assigns an IPv4 address and the load balancer supports IPv4 traffic. + // If "IPV6", the service assigns an IPv6 address and the load balancer supports IPv6 traffic. + // Example: "ipMode":"IPV6" + IpMode UpdateLoadBalancerDetailsIpModeEnum `mandatory:"false" json:"ipMode,omitempty"` + + // Used to disambiguate which subnet prefix should be used to create an IPv6 LB. + // Example: "2002::1234:abcd:ffff:c0a8:101/64" + Ipv6SubnetCidr *string `mandatory:"false" json:"ipv6SubnetCidr"` + + // An array of reserved Ips. + ReservedIps []ReservedIp `mandatory:"false" json:"reservedIps"` + // Whether or not the load balancer has delete protection enabled. // If "true", the loadbalancer will be protected against deletion if configured to accept traffic. // If "false", the loadbalancer will not be protected against deletion. @@ -57,18 +70,18 @@ type UpdateLoadBalancerDetails struct { RequestIdHeader *string `mandatory:"false" json:"requestIdHeader"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // Extended Defined tags for ZPR for this resource. Each key is predefined and scoped to a namespace. // Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", "usagetype" : "zpr"}}}` - ZprTags map[string]map[string]interface{} `mandatory:"false" json:"zprTags"` + SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` } func (m UpdateLoadBalancerDetails) String() string { @@ -81,8 +94,53 @@ func (m UpdateLoadBalancerDetails) String() string { func (m UpdateLoadBalancerDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingUpdateLoadBalancerDetailsIpModeEnum(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(GetUpdateLoadBalancerDetailsIpModeEnumStringValues(), ","))) + } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } + +// UpdateLoadBalancerDetailsIpModeEnum Enum with underlying type: string +type UpdateLoadBalancerDetailsIpModeEnum string + +// Set of constants representing the allowable values for UpdateLoadBalancerDetailsIpModeEnum +const ( + UpdateLoadBalancerDetailsIpModeIpv4 UpdateLoadBalancerDetailsIpModeEnum = "IPV4" + UpdateLoadBalancerDetailsIpModeIpv6 UpdateLoadBalancerDetailsIpModeEnum = "IPV6" +) + +var mappingUpdateLoadBalancerDetailsIpModeEnum = map[string]UpdateLoadBalancerDetailsIpModeEnum{ + "IPV4": UpdateLoadBalancerDetailsIpModeIpv4, + "IPV6": UpdateLoadBalancerDetailsIpModeIpv6, +} + +var mappingUpdateLoadBalancerDetailsIpModeEnumLowerCase = map[string]UpdateLoadBalancerDetailsIpModeEnum{ + "ipv4": UpdateLoadBalancerDetailsIpModeIpv4, + "ipv6": UpdateLoadBalancerDetailsIpModeIpv6, +} + +// GetUpdateLoadBalancerDetailsIpModeEnumValues Enumerates the set of values for UpdateLoadBalancerDetailsIpModeEnum +func GetUpdateLoadBalancerDetailsIpModeEnumValues() []UpdateLoadBalancerDetailsIpModeEnum { + values := make([]UpdateLoadBalancerDetailsIpModeEnum, 0) + for _, v := range mappingUpdateLoadBalancerDetailsIpModeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateLoadBalancerDetailsIpModeEnumStringValues Enumerates the set of values in String for UpdateLoadBalancerDetailsIpModeEnum +func GetUpdateLoadBalancerDetailsIpModeEnumStringValues() []string { + return []string{ + "IPV4", + "IPV6", + } +} + +// GetMappingUpdateLoadBalancerDetailsIpModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateLoadBalancerDetailsIpModeEnum(val string) (UpdateLoadBalancerDetailsIpModeEnum, bool) { + enum, ok := mappingUpdateLoadBalancerDetailsIpModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_request_response.go index 17cd0b74d6..7c76b62524 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateLoadBalancer.go.html to see an example of how to use UpdateLoadBalancerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateLoadBalancer.go.html to see an example of how to use UpdateLoadBalancerRequest. type UpdateLoadBalancerRequest struct { // The details for updating a load balancer's configuration. UpdateLoadBalancerDetails `contributesTo:"body"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to update. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer to update. LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -81,7 +81,7 @@ func (request UpdateLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateLoadBalancerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ type UpdateLoadBalancerResponse struct { // The underlying http response RawResponse *http.Response - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + // The OCID (https://docs.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 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 index 6fb88e7e24..d6a3a97f01 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -46,7 +46,7 @@ func (m UpdateLoadBalancerShapeDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 2636a6929c..23038c2b1a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateLoadBalancerShape.go.html to see an example of how to use UpdateLoadBalancerShapeRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateLoadBalancerShape.go.html to see an example of how to use UpdateLoadBalancerShapeRequest. 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. + // The OCID (https://docs.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. @@ -81,7 +81,7 @@ func (request UpdateLoadBalancerShapeRequest) RetryPolicy() *common.RetryPolicy func (request UpdateLoadBalancerShapeRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ 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. + // The OCID (https://docs.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 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 index 13f2eb15d0..07e00cd380 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -22,7 +22,7 @@ import ( // * 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 + // An array of NSG OCIDs (https://docs.oracle.com/iaas/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: @@ -43,7 +43,7 @@ func (m UpdateNetworkSecurityGroupsDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d890bbf20a..91cfd86ad4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateNetworkSecurityGroups.go.html to see an example of how to use UpdateNetworkSecurityGroupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateNetworkSecurityGroups.go.html to see an example of how to use UpdateNetworkSecurityGroupsRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -81,7 +81,7 @@ func (request UpdateNetworkSecurityGroupsRequest) RetryPolicy() *common.RetryPol func (request UpdateNetworkSecurityGroupsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -92,7 +92,7 @@ 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. + // The OCID (https://docs.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 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 index 48dbd2ff44..f5bd372743 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -34,7 +34,7 @@ func (m UpdatePathRouteSetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 8f160fcfbf..d2b6e32ea7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdatePathRouteSet.go.html to see an example of how to use UpdatePathRouteSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdatePathRouteSet.go.html to see an example of how to use UpdatePathRouteSetRequest. type UpdatePathRouteSetRequest struct { // The configuration details to update a path route set. UpdatePathRouteSetDetails `contributesTo:"body"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route set to update. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route set to update. LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` // The name of the path route set to update. @@ -85,7 +85,7 @@ func (request UpdatePathRouteSetRequest) RetryPolicy() *common.RetryPolicy { func (request UpdatePathRouteSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ type UpdatePathRouteSetResponse struct { // The underlying http response RawResponse *http.Response - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + // The OCID (https://docs.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 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 index d769265e15..414f998854 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -40,7 +40,7 @@ func (m UpdateRoutingPolicyDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_request_response.go index 3927eeb4ae..df75e8c029 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateRoutingPolicy.go.html to see an example of how to use UpdateRoutingPolicyRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateRoutingPolicy.go.html to see an example of how to use UpdateRoutingPolicyRequest. type UpdateRoutingPolicyRequest struct { // The configuration details needed to update a routing policy. UpdateRoutingPolicyDetails `contributesTo:"body"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the routing policy to update. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer associated with the routing policy to update. LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` // The name of the routing policy to update. @@ -85,7 +85,7 @@ func (request UpdateRoutingPolicyRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateRoutingPolicyRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ type UpdateRoutingPolicyResponse struct { // The underlying http response RawResponse *http.Response - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + // The OCID (https://docs.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 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 index b213a3d08e..66ad624f6c 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -35,7 +35,7 @@ func (m UpdateRuleSetDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 54f5fec176..5c77088d01 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateRuleSet.go.html to see an example of how to use UpdateRuleSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateRuleSet.go.html to see an example of how to use UpdateRuleSetRequest. type UpdateRuleSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + // The OCID (https://docs.oracle.com/iaas/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. @@ -85,7 +85,7 @@ func (request UpdateRuleSetRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateRuleSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ 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. + // The OCID (https://docs.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 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 index fc0af690be..7774471885 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateSSLCipherSuite.go.html to see an example of how to use UpdateSSLCipherSuiteRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loadbalancer/UpdateSSLCipherSuite.go.html to see an example of how to use UpdateSSLCipherSuiteRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -85,7 +85,7 @@ func (request UpdateSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateSSLCipherSuiteRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -96,7 +96,7 @@ 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. + // The OCID (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_ssl_cipher_suite_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_ssl_cipher_suite_details.go index 4fb3bde1f1..5e67e3ed08 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_ssl_cipher_suite_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_ssl_cipher_suite_details.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -140,7 +140,7 @@ func (m UpdateSslCipherSuiteDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 1d7491d93b..4db03807b1 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -19,13 +19,13 @@ import ( // 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). +// For more information about work requests, see Viewing the State of a Work Request (https://docs.oracle.com/iaas/Content/Balance/Tasks/viewingworkrequest.htm). type WorkRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + // The OCID (https://docs.oracle.com/iaas/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 + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer with which the work request // is associated. LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` @@ -51,7 +51,7 @@ type WorkRequest struct { 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -73,7 +73,7 @@ func (m WorkRequest) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index d9429cb9f9..0095f0c687 100644 --- 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 @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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). +// information, see Overview of Load Balancing (https://docs.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). // package loadbalancer @@ -38,7 +38,7 @@ func (m WorkRequestError) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2f2df73194..d5579d767c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -41,7 +41,7 @@ func (m AggregatedDatapoint) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 61ec35b3f5..e28cb0718b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -20,17 +20,17 @@ import ( // 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). +// Alarms Overview (https://docs.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). +// Getting Started with Policies (https://docs.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). +// About the API (https://docs.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). +// SDKS and Other Tools (https://docs.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. + // The OCID (https://docs.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. @@ -38,10 +38,10 @@ type Alarm struct { // 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. + // The OCID (https://docs.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 + // The OCID (https://docs.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"` @@ -57,14 +57,14 @@ type Alarm struct { // interval values are supported for smaller time ranges. You can optionally // specify dimensions and grouping functions. // Also, you can customize the - // absence detection period (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + // absence detection period (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). // Supported grouping functions: `grouping()`, `groupBy()`. // For information about writing MQL expressions, see - // Editing the MQL Expression for a Query (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). + // Editing the MQL Expression for a Query (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). // For details about MQL, see - // Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). + // Monitoring Query Language (MQL) Reference (https://docs.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). + // Supported Services (https://docs.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 @@ -86,7 +86,7 @@ type Alarm struct { Severity AlarmSeverityEnum `mandatory:"true" json:"severity"` // A list of destinations for alarm notifications. - // Each destination is represented by the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + // Each destination is represented by the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) // of a related resource, such as a NotificationTopic. // Supported destination services: Notifications, Streaming. // Limit: One destination per supported destination service. @@ -138,7 +138,7 @@ type Alarm struct { PendingDuration *string `mandatory:"false" json:"pendingDuration"` // The human-readable content of the delivered alarm notification. - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // Oracle recommends providing guidance // to operators for resolving the alarm condition. Consider adding links to standard runbook // practices. Avoid entering confidential information. @@ -187,8 +187,8 @@ type Alarm struct { // The value must start with a number (up to four digits), followed by a period and an uppercase X. NotificationVersion *string `mandatory:"false" json:"notificationVersion"` - // Customizable notification title (`title` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable notification title (`title` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The notification title appears as the subject line in a formatted email message and as the title in a Slack message. NotificationTitle *string `mandatory:"false" json:"notificationTitle"` @@ -196,11 +196,11 @@ type Alarm struct { // Specify a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` // for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. // For more information about the slack period, see - // About the Internal Reset Period (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + // About the Internal Reset Period (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). EvaluationSlackDuration *string `mandatory:"false" json:"evaluationSlackDuration"` - // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The alarm summary appears within the body of the alarm message and in responses to // ListAlarmsStatus // GetAlarmHistory and @@ -228,7 +228,7 @@ func (m Alarm) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index eb7398f579..dbb5edb56b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -21,7 +21,7 @@ import ( // 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. + // The OCID (https://docs.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. @@ -47,7 +47,7 @@ func (m AlarmDimensionStatesCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 55cbaffeca..1d56a69b75 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -21,8 +21,8 @@ import ( // AlarmDimensionStatesEntry A timestamped alarm state entry for a metric stream. type AlarmDimensionStatesEntry struct { - // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The alarm summary appears within the body of the alarm message and in responses to // ListAlarmsStatus // GetAlarmHistory and @@ -59,7 +59,7 @@ func (m AlarmDimensionStatesEntry) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index e9672de896..3c1dd9a3d9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -21,7 +21,7 @@ import ( // 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 to retrieve history for. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm to retrieve history for. AlarmId *string `mandatory:"true" json:"alarmId"` // Whether the alarm is enabled. @@ -43,7 +43,7 @@ func (m AlarmHistoryCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_history_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_history_entry.go index 3dd2bfa198..fad49acb90 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -22,8 +22,8 @@ import ( // If the entry corresponds to a state transition, such as OK to Firing, then the entry also includes a transition timestamp. type AlarmHistoryEntry struct { - // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The alarm summary appears within the body of the alarm message and in responses to // ListAlarmsStatus // GetAlarmHistory and @@ -56,7 +56,7 @@ func (m AlarmHistoryEntry) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_override.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_override.go index ce49d96f67..5cfdf69852 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_override.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_override.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -43,7 +43,7 @@ type AlarmOverride struct { Severity AlarmSeverityEnum `mandatory:"false" json:"severity,omitempty"` // The human-readable content of the delivered alarm notification. - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // Oracle recommends providing guidance // to operators for resolving the alarm condition. Consider adding links to standard runbook // practices. Avoid entering confidential information. @@ -61,14 +61,14 @@ type AlarmOverride struct { // interval values are supported for smaller time ranges. You can optionally // specify dimensions and grouping functions. // Also, you can customize the - // absence detection period (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + // absence detection period (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). // Supported grouping functions: `grouping()`, `groupBy()`. // For information about writing MQL expressions, see - // Editing the MQL Expression for a Query (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). + // Editing the MQL Expression for a Query (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). // For details about MQL, see - // Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). + // Monitoring Query Language (MQL) Reference (https://docs.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). + // Supported Services (https://docs.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 @@ -100,7 +100,7 @@ func (m AlarmOverride) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetAlarmSeverityEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 0a889cff79..e31a16c715 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -20,17 +20,17 @@ import ( // 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). +// Alarms Overview (https://docs.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). +// Getting Started with Policies (https://docs.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). +// About the API (https://docs.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). +// SDKS and Other Tools (https://docs.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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm. Id *string `mandatory:"true" json:"id"` // The configured name of the alarm. @@ -50,8 +50,8 @@ type AlarmStatusSummary struct { // Example: `2023-02-01T01:02:29.600Z` TimestampTriggered *common.SDKTime `mandatory:"true" json:"timestampTriggered"` - // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The alarm summary appears within the body of the alarm message and in responses to // ListAlarmsStatus // GetAlarmHistory and @@ -85,7 +85,7 @@ func (m AlarmStatusSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_summary.go index 72cfb01626..b3d2b438a3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -20,17 +20,17 @@ import ( // AlarmSummary A summary of properties for the specified alarm. // For information about alarms, see -// Alarms Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). +// Alarms Overview (https://docs.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). +// Getting Started with Policies (https://docs.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). +// About the API (https://docs.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). +// SDKS and Other Tools (https://docs.oracle.com/iaas/Content/API/Concepts/sdks.htm). type AlarmSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm. + // The OCID (https://docs.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. @@ -38,10 +38,10 @@ type AlarmSummary struct { // 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. + // The OCID (https://docs.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 + // The OCID (https://docs.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"` @@ -56,11 +56,11 @@ type AlarmSummary struct { // rule (threshold or absence). Supported values for interval depend on the specified time range. More // interval values are supported for smaller time ranges. Supported grouping functions: `grouping()`, `groupBy()`. // For information about writing MQL expressions, see - // Editing the MQL Expression for a Query (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). + // Editing the MQL Expression for a Query (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). // For details about MQL, see - // Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). + // Monitoring Query Language (MQL) Reference (https://docs.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). + // Supported Services (https://docs.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 @@ -76,7 +76,7 @@ type AlarmSummary struct { Severity AlarmSummarySeverityEnum `mandatory:"true" json:"severity"` // A list of destinations for alarm notifications. - // Each destination is represented by the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + // Each destination is represented by the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) // of a related resource, such as a NotificationTopic. // Supported destination services: Notifications, Streaming. // Limit: One destination per supported destination service. @@ -94,7 +94,7 @@ type AlarmSummary struct { Suppression *Suppression `mandatory:"false" json:"suppression"` // Whether the alarm sends a separate message for each metric stream. - // See Creating an Alarm That Splits Messages by Metric Stream (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-alarm-split.htm). + // See Creating an Alarm That Splits Messages by Metric Stream (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/create-alarm-split.htm). // Example: `true` IsNotificationsPerMetricDimensionEnabled *bool `mandatory:"false" json:"isNotificationsPerMetricDimensionEnabled"` @@ -120,8 +120,8 @@ type AlarmSummary struct { // The value must start with a number (up to four digits), followed by a period and an uppercase X. NotificationVersion *string `mandatory:"false" json:"notificationVersion"` - // Customizable notification title (`title` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable notification title (`title` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The notification title appears as the subject line in a formatted email message and as the title in a Slack message. NotificationTitle *string `mandatory:"false" json:"notificationTitle"` @@ -129,11 +129,11 @@ type AlarmSummary struct { // Specify a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` // for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. // For more information about the slack period, see - // About the Internal Reset Period (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + // About the Internal Reset Period (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). EvaluationSlackDuration *string `mandatory:"false" json:"evaluationSlackDuration"` - // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The alarm summary appears within the body of the alarm message and in responses to // ListAlarmsStatus // GetAlarmHistory and @@ -163,7 +163,7 @@ func (m AlarmSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression.go index 2cc28a200c..8805f53013 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -22,10 +22,10 @@ import ( // AlarmSuppression The configuration details for an alarm suppression. type AlarmSuppression struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression. Id *string `mandatory:"true" json:"id"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm suppression. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm suppression. CompartmentId *string `mandatory:"true" json:"compartmentId"` AlarmSuppressionTarget AlarmSuppressionTarget `mandatory:"true" json:"alarmSuppressionTarget"` @@ -104,7 +104,7 @@ func (m AlarmSuppression) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_alarm_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_alarm_target.go index 21f1ae947f..7a47db06fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_alarm_target.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_alarm_target.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -22,7 +22,7 @@ import ( // AlarmSuppressionAlarmTarget The alarm target of the alarm suppression. type AlarmSuppressionAlarmTarget struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression. AlarmId *string `mandatory:"true" json:"alarmId"` } @@ -37,7 +37,7 @@ func (m AlarmSuppressionAlarmTarget) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_collection.go index 94ab763d22..47bdc32283 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_collection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -36,7 +36,7 @@ func (m AlarmSuppressionCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_compartment_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_compartment_target.go index 54178d3786..ec6abb5877 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_compartment_target.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_compartment_target.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -22,7 +22,7 @@ import ( // AlarmSuppressionCompartmentTarget The compartment target of the alarm suppression. type AlarmSuppressionCompartmentTarget struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment or tenancy that is the + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment or tenancy that is the // target of the alarm suppression. // Example: `ocid1.compartment.oc1..exampleuniqueID` CompartmentId *string `mandatory:"true" json:"compartmentId"` @@ -45,7 +45,7 @@ func (m AlarmSuppressionCompartmentTarget) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_history_item.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_history_item.go index 4e01aac5bf..1d57734845 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_history_item.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_history_item.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -22,7 +22,7 @@ import ( // AlarmSuppressionHistoryItem A summary of properties for the specified alarm suppression history item. type AlarmSuppressionHistoryItem struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression. SuppressionId *string `mandatory:"true" json:"suppressionId"` AlarmSuppressionTarget AlarmSuppressionTarget `mandatory:"true" json:"alarmSuppressionTarget"` @@ -78,7 +78,7 @@ func (m AlarmSuppressionHistoryItem) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_history_item_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_history_item_collection.go index 3da1e88710..09bd4b226b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_history_item_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_history_item_collection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -36,7 +36,7 @@ func (m AlarmSuppressionHistoryItemCollection) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_summary.go index c8a0fb6ec1..653e2063c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -22,10 +22,10 @@ import ( // AlarmSuppressionSummary A summary of properties for the specified alarm suppression. type AlarmSuppressionSummary struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression. Id *string `mandatory:"true" json:"id"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm suppression. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm suppression. CompartmentId *string `mandatory:"true" json:"compartmentId"` AlarmSuppressionTarget AlarmSuppressionTarget `mandatory:"true" json:"alarmSuppressionTarget"` @@ -104,7 +104,7 @@ func (m AlarmSuppressionSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_target.go index e56f123178..a0a128e49f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_target.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_suppression_target.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -62,7 +62,7 @@ func (m *alarmsuppressiontarget) UnmarshalPolymorphicJSON(data []byte) (interfac err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for AlarmSuppressionTarget: %s.", m.TargetType) + common.Logf("Received unsupported enum value for AlarmSuppressionTarget: %s.", m.TargetType) return *m, nil } } @@ -78,7 +78,7 @@ func (m alarmsuppressiontarget) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 8f55156f81..7e6f37bda5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -21,7 +21,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the alarm to. CompartmentId *string `mandatory:"true" json:"compartmentId"` } @@ -36,7 +36,7 @@ func (m ChangeAlarmCompartmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_request_response.go index 642709f412..a6c94b690b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ChangeAlarmCompartment.go.html to see an example of how to use ChangeAlarmCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ChangeAlarmCompartment.go.html to see an example of how to use ChangeAlarmCompartmentRequest. type ChangeAlarmCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` // The configuration details for moving an alarm. @@ -77,7 +77,7 @@ func (request ChangeAlarmCompartmentRequest) RetryPolicy() *common.RetryPolicy { func (request ChangeAlarmCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_details.go index b17f2a1fda..549095064d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -27,10 +27,10 @@ type CreateAlarmDetails struct { // 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. + // The OCID (https://docs.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 + // The OCID (https://docs.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"` @@ -46,14 +46,14 @@ type CreateAlarmDetails struct { // interval values are supported for smaller time ranges. You can optionally // specify dimensions and grouping functions. // Also, you can customize the - // absence detection period (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + // absence detection period (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). // Supported grouping functions: `grouping()`, `groupBy()`. // For information about writing MQL expressions, see - // Editing the MQL Expression for a Query (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). + // Editing the MQL Expression for a Query (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). // For details about MQL, see - // Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). + // Monitoring Query Language (MQL) Reference (https://docs.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). + // Supported Services (https://docs.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 @@ -75,7 +75,7 @@ type CreateAlarmDetails struct { Severity AlarmSeverityEnum `mandatory:"true" json:"severity"` // A list of destinations for alarm notifications. - // Each destination is represented by the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + // Each destination is represented by the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) // of a related resource, such as a NotificationTopic. // Supported destination services: Notifications, Streaming. // Limit: One destination per supported destination service. @@ -116,7 +116,7 @@ type CreateAlarmDetails struct { PendingDuration *string `mandatory:"false" json:"pendingDuration"` // The human-readable content of the delivered alarm notification. - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // Oracle recommends providing guidance // to operators for resolving the alarm condition. Consider adding links to standard runbook // practices. Avoid entering confidential information. @@ -166,8 +166,8 @@ type CreateAlarmDetails struct { // The value must start with a number (up to four digits), followed by a period and an uppercase X. NotificationVersion *string `mandatory:"false" json:"notificationVersion"` - // Customizable notification title (`title` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable notification title (`title` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The notification title appears as the subject line in a formatted email message and as the title in a Slack message. NotificationTitle *string `mandatory:"false" json:"notificationTitle"` @@ -175,11 +175,11 @@ type CreateAlarmDetails struct { // Specify a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` // for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. // For more information about the slack period, see - // About the Internal Reset Period (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + // About the Internal Reset Period (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). EvaluationSlackDuration *string `mandatory:"false" json:"evaluationSlackDuration"` - // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The alarm summary appears within the body of the alarm message and in responses to // ListAlarmsStatus // GetAlarmHistory and @@ -204,7 +204,7 @@ func (m CreateAlarmDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_request_response.go index d3c6de834e..335c30246c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/CreateAlarm.go.html to see an example of how to use CreateAlarmRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/CreateAlarm.go.html to see an example of how to use CreateAlarmRequest. type CreateAlarmRequest struct { // Document for creating an alarm. @@ -69,7 +69,7 @@ func (request CreateAlarmRequest) RetryPolicy() *common.RetryPolicy { func (request CreateAlarmRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_suppression_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_suppression_details.go index 26d4d04ff3..4376d21aff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_suppression_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_suppression_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -89,7 +89,7 @@ func (m CreateAlarmSuppressionDetails) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Level: %s. Supported values are: %s.", m.Level, strings.Join(GetAlarmSuppressionLevelEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_suppression_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_suppression_request_response.go index 92a970525b..f20c3791d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_suppression_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_suppression_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/CreateAlarmSuppression.go.html to see an example of how to use CreateAlarmSuppressionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/CreateAlarmSuppression.go.html to see an example of how to use CreateAlarmSuppressionRequest. type CreateAlarmSuppressionRequest struct { // The details of the alarm suppression to be created @@ -69,7 +69,7 @@ func (request CreateAlarmSuppressionRequest) RetryPolicy() *common.RetryPolicy { func (request CreateAlarmSuppressionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index a107a8b9ef..9bc60b7fe3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/datapoint.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/datapoint.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -46,7 +46,7 @@ func (m Datapoint) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_request_response.go index fc99722d48..bfbecb5e24 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/DeleteAlarm.go.html to see an example of how to use DeleteAlarmRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/DeleteAlarm.go.html to see an example of how to use DeleteAlarmRequest. type DeleteAlarmRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request DeleteAlarmRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteAlarmRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_suppression_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_suppression_request_response.go index fcb497bab3..8e1c4125fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_suppression_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_suppression_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/DeleteAlarmSuppression.go.html to see an example of how to use DeleteAlarmSuppressionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/DeleteAlarmSuppression.go.html to see an example of how to use DeleteAlarmSuppressionRequest. type DeleteAlarmSuppressionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression. AlarmSuppressionId *string `mandatory:"true" contributesTo:"path" name:"alarmSuppressionId"` // Customer part of the request identifier token. If you need to contact Oracle about a particular @@ -67,7 +67,7 @@ func (request DeleteAlarmSuppressionRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteAlarmSuppressionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4cbc5663eb..be1590aebf 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -39,7 +39,7 @@ func (m FailedMetricRecord) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 1386d75a8f..fac1a1e6ea 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarmHistory.go.html to see an example of how to use GetAlarmHistoryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarmHistory.go.html to see an example of how to use GetAlarmHistoryRequest. type GetAlarmHistoryRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. + // The OCID (https://docs.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 @@ -33,12 +33,12 @@ type GetAlarmHistoryRequest struct { // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -91,7 +91,7 @@ func (request GetAlarmHistoryRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -111,7 +111,7 @@ type GetAlarmHistoryResponse struct { // 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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_request_response.go index 6f9f2b408d..0add652409 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarm.go.html to see an example of how to use GetAlarmRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarm.go.html to see an example of how to use GetAlarmRequest. type GetAlarmRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. + // The OCID (https://docs.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 @@ -62,7 +62,7 @@ func (request GetAlarmRequest) RetryPolicy() *common.RetryPolicy { func (request GetAlarmRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_suppression_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_suppression_request_response.go index 5f924583ed..ccb2de7f89 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_suppression_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_suppression_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarmSuppression.go.html to see an example of how to use GetAlarmSuppressionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarmSuppression.go.html to see an example of how to use GetAlarmSuppressionRequest. type GetAlarmSuppressionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression. AlarmSuppressionId *string `mandatory:"true" contributesTo:"path" name:"alarmSuppressionId"` // Customer part of the request identifier token. If you need to contact Oracle about a particular @@ -62,7 +62,7 @@ func (request GetAlarmSuppressionRequest) RetryPolicy() *common.RetryPolicy { func (request GetAlarmSuppressionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarm_suppressions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarm_suppressions_request_response.go index 83a7543eda..8278b9c81f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarm_suppressions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarm_suppressions_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,14 +15,14 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarmSuppressions.go.html to see an example of how to use ListAlarmSuppressionsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarmSuppressions.go.html to see an example of how to use ListAlarmSuppressionsRequest. type ListAlarmSuppressionsRequest struct { // 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 OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression. AlarmId *string `mandatory:"false" contributesTo:"query" name:"alarmId"` // A filter to return only resources that match the given display name exactly. @@ -38,7 +38,7 @@ type ListAlarmSuppressionsRequest struct { // `DIMENSION` indicates a suppression configured for specified dimensions. Level AlarmSuppressionLevelEnum `mandatory:"false" contributesTo:"query" name:"level" omitEmpty:"true"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for searching. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for searching. // Use the tenancy OCID to search in the root compartment. // If targetType is not specified, searches all suppressions defined under the compartment. // If targetType is `COMPARTMENT`, searches suppressions in the specified compartment only. @@ -74,12 +74,12 @@ type ListAlarmSuppressionsRequest struct { // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -136,7 +136,7 @@ func (request ListAlarmSuppressionsRequest) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListAlarmSuppressionsSortOrderEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -156,12 +156,12 @@ type ListAlarmSuppressionsResponse struct { // For list pagination. When this header appears in the response, next page of results remains. // For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // For list pagination. When this header appears in the response, previous pages of results remains. // For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcPreviousPage *string `presentIn:"header" name:"opc-previous-page"` } 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 index 44c8c08c78..30ae1d3a86 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarms.go.html to see an example of how to use ListAlarmsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarms.go.html to see an example of how to use ListAlarmsRequest. type ListAlarmsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the + // The OCID (https://docs.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` @@ -30,12 +30,12 @@ type ListAlarmsRequest struct { // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -108,7 +108,7 @@ func (request ListAlarmsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -124,7 +124,7 @@ type ListAlarmsResponse struct { // 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). + // List Pagination (https://docs.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 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 index 2931e97b62..db15e2c8f6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarmsStatus.go.html to see an example of how to use ListAlarmsStatusRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarmsStatus.go.html to see an example of how to use ListAlarmsStatusRequest. type ListAlarmsStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the + // The OCID (https://docs.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` @@ -37,12 +37,12 @@ type ListAlarmsStatusRequest struct { // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -59,7 +59,7 @@ type ListAlarmsStatusRequest struct { // Example: `ASC` SortOrder ListAlarmsStatusSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - // A filter to return only the resource with the specified OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // A filter to return only the resource with the specified OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // The resource must be monitored by the metric that you are searching for. // Example: `ocid1.instance.oc1.phx.exampleuniqueID` ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"` @@ -69,7 +69,7 @@ type ListAlarmsStatusRequest struct { // Example: `logging-analytics` ServiceName *string `mandatory:"false" contributesTo:"query" name:"serviceName"` - // A filter to return only resources that match the given entity OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) exactly. + // A filter to return only resources that match the given entity OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) exactly. // The resource (entity) must be monitored by the metric that you are searching for. // Example: `ocid1.instance.oc1.phx.exampleuniqueID` EntityId *string `mandatory:"false" contributesTo:"query" name:"entityId"` @@ -125,7 +125,7 @@ func (request ListAlarmsStatusRequest) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", request.Status, strings.Join(GetListAlarmsStatusStatusEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -141,7 +141,7 @@ type ListAlarmsStatusResponse struct { // 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). + // List Pagination (https://docs.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 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 index 141577d8c0..ca0f6e1957 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -76,7 +76,7 @@ func (m ListMetricsDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_request_response.go index 7b940c38d3..4efdd38a8a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListMetrics.go.html to see an example of how to use ListMetricsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListMetrics.go.html to see an example of how to use ListMetricsRequest. type ListMetricsRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the + // The OCID (https://docs.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` @@ -33,12 +33,12 @@ type ListMetricsRequest struct { // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -87,7 +87,7 @@ func (request ListMetricsRequest) RetryPolicy() *common.RetryPolicy { func (request ListMetricsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -103,7 +103,7 @@ type ListMetricsResponse struct { // 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). + // List Pagination (https://docs.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 diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric.go index 3358108c9a..0b9b1bfa5a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -20,7 +20,7 @@ import ( // Metric The properties that define a metric. // For information about metrics, see -// Metrics Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview). +// Metrics Overview (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview). type Metric struct { // The name of the metric. @@ -36,7 +36,7 @@ type Metric struct { // Example: `frontend-fleet` ResourceGroup *string `mandatory:"false" json:"resourceGroup"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing // the resources monitored by the metric. CompartmentId *string `mandatory:"false" json:"compartmentId"` @@ -57,7 +57,7 @@ func (m Metric) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric_data.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric_data.go index 1d539d8711..be29339716 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -20,7 +20,7 @@ import ( // MetricData The set of aggregated data returned for a metric. // For information about metrics, see -// Metrics Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview). +// Metrics Overview (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview). // Limits information for returned data follows. // * Data points: 100,000. // * Metric streams* within data points: 2,000. @@ -32,7 +32,7 @@ import ( // 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). +// Monitoring Concepts (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#concepts). type MetricData struct { // The reference provided in a metric definition to indicate the source service or @@ -40,7 +40,7 @@ type MetricData struct { // Example: `oci_computeagent` Namespace *string `mandatory:"true" json:"namespace"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the // resources that the aggregated data was returned from. CompartmentId *string `mandatory:"true" json:"compartmentId"` @@ -86,7 +86,7 @@ func (m MetricData) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric_data_details.go index 15ffcfe9c9..db22cac5b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -27,7 +27,7 @@ type MetricDataDetails struct { // Example: `my_namespace` Namespace *string `mandatory:"true" json:"namespace"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to use for metrics. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to use for metrics. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The name of the metric. @@ -71,7 +71,7 @@ func (m MetricDataDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/monitoring_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/monitoring_client.go index 1b28044a0c..ecdd533611 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -96,11 +96,11 @@ func (client *MonitoringClient) ConfigurationProvider() *common.ConfigurationPro // ChangeAlarmCompartment Moves an alarm into a different compartment within the same tenancy. // For more information, see -// Moving an Alarm (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/change-compartment-alarm.htm). +// Moving an Alarm (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/change-compartment-alarm.htm). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ChangeAlarmCompartment.go.html to see an example of how to use ChangeAlarmCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ChangeAlarmCompartment.go.html to see an example of how to use ChangeAlarmCompartment API. func (client MonitoringClient) ChangeAlarmCompartment(ctx context.Context, request ChangeAlarmCompartmentRequest) (response ChangeAlarmCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -160,16 +160,16 @@ func (client MonitoringClient) changeAlarmCompartment(ctx context.Context, reque // CreateAlarm Creates a new alarm in the specified compartment. // For more information, see -// Creating an Alarm (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-alarm.htm). +// Creating an Alarm (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/create-alarm.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/CreateAlarm.go.html to see an example of how to use CreateAlarm API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/CreateAlarm.go.html to see an example of how to use CreateAlarm API. func (client MonitoringClient) CreateAlarm(ctx context.Context, request CreateAlarmRequest) (response CreateAlarmResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -229,17 +229,17 @@ func (client MonitoringClient) createAlarm(ctx context.Context, request common.O // CreateAlarmSuppression Creates a new alarm suppression at the specified level (alarm-wide or dimension-specific). // For more information, see -// Adding an Alarm-wide Suppression (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/add-alarm-suppression.htm) and -// Adding a Dimension-Specific Alarm Suppression (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-alarm-suppression.htm). +// Adding an Alarm-wide Suppression (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/add-alarm-suppression.htm) and +// Adding a Dimension-Specific Alarm Suppression (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/create-alarm-suppression.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/CreateAlarmSuppression.go.html to see an example of how to use CreateAlarmSuppression API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/CreateAlarmSuppression.go.html to see an example of how to use CreateAlarmSuppression API. func (client MonitoringClient) CreateAlarmSuppression(ctx context.Context, request CreateAlarmSuppressionRequest) (response CreateAlarmSuppressionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -299,16 +299,16 @@ func (client MonitoringClient) createAlarmSuppression(ctx context.Context, reque // DeleteAlarm Deletes the specified alarm. // For more information, see -// Deleting an Alarm (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/delete-alarm.htm). +// Deleting an Alarm (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/delete-alarm.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/DeleteAlarm.go.html to see an example of how to use DeleteAlarm API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/DeleteAlarm.go.html to see an example of how to use DeleteAlarm API. func (client MonitoringClient) DeleteAlarm(ctx context.Context, request DeleteAlarmRequest) (response DeleteAlarmResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -362,17 +362,17 @@ func (client MonitoringClient) deleteAlarm(ctx context.Context, request common.O } // DeleteAlarmSuppression Deletes the specified alarm suppression. For more information, see -// Removing an Alarm-wide Suppression (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/remove-alarm-suppression.htm) and -// Removing a Dimension-Specific Alarm Suppression (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/delete-alarm-suppression.htm). +// Removing an Alarm-wide Suppression (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/remove-alarm-suppression.htm) and +// Removing a Dimension-Specific Alarm Suppression (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/delete-alarm-suppression.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/DeleteAlarmSuppression.go.html to see an example of how to use DeleteAlarmSuppression API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/DeleteAlarmSuppression.go.html to see an example of how to use DeleteAlarmSuppression API. func (client MonitoringClient) DeleteAlarmSuppression(ctx context.Context, request DeleteAlarmSuppressionRequest) (response DeleteAlarmSuppressionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -427,16 +427,16 @@ func (client MonitoringClient) deleteAlarmSuppression(ctx context.Context, reque // GetAlarm Gets the specified alarm. // For more information, see -// Getting an Alarm (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/get-alarm.htm). +// Getting an Alarm (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/get-alarm.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarm.go.html to see an example of how to use GetAlarm API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarm.go.html to see an example of how to use GetAlarm API. func (client MonitoringClient) GetAlarm(ctx context.Context, request GetAlarmRequest) (response GetAlarmResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -491,16 +491,16 @@ func (client MonitoringClient) getAlarm(ctx context.Context, request common.OCIR // GetAlarmHistory Get the history of the specified alarm. // For more information, see -// Getting History of an Alarm (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/get-alarm-history.htm). +// Getting History of an Alarm (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/get-alarm-history.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarmHistory.go.html to see an example of how to use GetAlarmHistory API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarmHistory.go.html to see an example of how to use GetAlarmHistory API. func (client MonitoringClient) GetAlarmHistory(ctx context.Context, request GetAlarmHistoryRequest) (response GetAlarmHistoryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -554,16 +554,16 @@ func (client MonitoringClient) getAlarmHistory(ctx context.Context, request comm } // GetAlarmSuppression Gets the specified alarm suppression. For more information, see -// Getting an Alarm-wide Suppression (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/get-alarm-suppression.htm). +// Getting an Alarm-wide Suppression (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/get-alarm-suppression.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarmSuppression.go.html to see an example of how to use GetAlarmSuppression API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarmSuppression.go.html to see an example of how to use GetAlarmSuppression API. func (client MonitoringClient) GetAlarmSuppression(ctx context.Context, request GetAlarmSuppressionRequest) (response GetAlarmSuppressionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -617,16 +617,16 @@ func (client MonitoringClient) getAlarmSuppression(ctx context.Context, request } // ListAlarmSuppressions Lists alarm suppressions for the specified alarm. For more information, see -// Listing Alarm Suppressions (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-suppression.htm). +// Listing Alarm Suppressions (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-suppression.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarmSuppressions.go.html to see an example of how to use ListAlarmSuppressions API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarmSuppressions.go.html to see an example of how to use ListAlarmSuppressions API. func (client MonitoringClient) ListAlarmSuppressions(ctx context.Context, request ListAlarmSuppressionsRequest) (response ListAlarmSuppressionsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -681,16 +681,16 @@ func (client MonitoringClient) listAlarmSuppressions(ctx context.Context, reques // ListAlarms Lists the alarms for the specified compartment. // For more information, see -// Listing Alarms (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm.htm). +// Listing Alarms (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarms.go.html to see an example of how to use ListAlarms API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarms.go.html to see an example of how to use ListAlarms API. func (client MonitoringClient) ListAlarms(ctx context.Context, request ListAlarmsRequest) (response ListAlarmsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -748,16 +748,16 @@ func (client MonitoringClient) listAlarms(ctx context.Context, request common.OC // To list alarm status for each metric stream, use RetrieveDimensionStates. // Optionally filter by resource or status value. // For more information, see -// Listing Alarm Statuses (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-status.htm). +// Listing Alarm Statuses (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-status.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarmsStatus.go.html to see an example of how to use ListAlarmsStatus API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarmsStatus.go.html to see an example of how to use ListAlarmsStatus API. // A default retry strategy applies to this operation ListAlarmsStatus() func (client MonitoringClient) ListAlarmsStatus(ctx context.Context, request ListAlarmsStatusRequest) (response ListAlarmsStatusResponse, err error) { var ociResponse common.OCIResponse @@ -813,16 +813,16 @@ func (client MonitoringClient) listAlarmsStatus(ctx context.Context, request com // ListMetrics Returns metric definitions that match the criteria specified in the request. Compartment OCID required. // For more information, see -// Listing Metric Definitions (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-metric.htm). +// Listing Metric Definitions (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/list-metric.htm). // For information about metrics, see -// Metrics Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview). +// Metrics Overview (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). // Transactions Per Second (TPS) per-tenancy limit for this operation: 10. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListMetrics.go.html to see an example of how to use ListMetrics API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListMetrics.go.html to see an example of how to use ListMetrics API. func (client MonitoringClient) ListMetrics(ctx context.Context, request ListMetricsRequest) (response ListMetricsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -878,15 +878,15 @@ func (client MonitoringClient) listMetrics(ctx context.Context, request common.O // PostMetricData Publishes raw metric data points to the Monitoring service. // For a data point to be posted, its timestamp must be near current time (less than two hours in the past and less than 10 minutes in the future). // For more information about publishing metrics, see -// Publishing Custom Metrics (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/publishingcustommetrics.htm) +// Publishing Custom Metrics (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/publishingcustommetrics.htm) // and -// Custom Metrics Walkthrough (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/custom-metrics-walkthrough.htm). +// Custom Metrics Walkthrough (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/custom-metrics-walkthrough.htm). // For information about developing a metric-posting client, see -// Developer Guide (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/devtoolslanding.htm). +// Developer Guide (https://docs.oracle.com/iaas/Content/API/Concepts/devtoolslanding.htm). // For an example client, see // MonitoringMetricPostExample.java (https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/MonitoringMetricPostExample.java). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). // Per-call limits information follows. // * Dimensions per metric group*. Maximum: 20. Minimum: 1. // * Unique metric streams*. Maximum: 50. @@ -895,13 +895,13 @@ func (client MonitoringClient) listMetrics(ctx context.Context, request common.O // A dimension is a qualifier provided in a metric definition. // 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). +// Monitoring Concepts (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#concepts). // **Note:** 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 // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/PostMetricData.go.html to see an example of how to use PostMetricData API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/PostMetricData.go.html to see an example of how to use PostMetricData API. func (client MonitoringClient) PostMetricData(ctx context.Context, request PostMetricDataRequest) (response PostMetricDataResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -956,16 +956,16 @@ func (client MonitoringClient) postMetricData(ctx context.Context, request commo // RemoveAlarmSuppression Removes any existing suppression for the specified alarm. // For more information, see -// Removing Suppression from an Alarm (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/remove-alarm-suppression.htm). +// Removing Suppression from an Alarm (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/remove-alarm-suppression.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/RemoveAlarmSuppression.go.html to see an example of how to use RemoveAlarmSuppression API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/RemoveAlarmSuppression.go.html to see an example of how to use RemoveAlarmSuppression API. func (client MonitoringClient) RemoveAlarmSuppression(ctx context.Context, request RemoveAlarmSuppressionRequest) (response RemoveAlarmSuppressionResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1021,16 +1021,16 @@ func (client MonitoringClient) removeAlarmSuppression(ctx context.Context, reque // 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. // For more information, see -// Listing Metric Stream Status in an Alarm (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-status-metric-stream.htm). +// Listing Metric Stream Status in an Alarm (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-status-metric-stream.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/RetrieveDimensionStates.go.html to see an example of how to use RetrieveDimensionStates API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/RetrieveDimensionStates.go.html to see an example of how to use RetrieveDimensionStates API. func (client MonitoringClient) RetrieveDimensionStates(ctx context.Context, request RetrieveDimensionStatesRequest) (response RetrieveDimensionStatesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1084,16 +1084,16 @@ func (client MonitoringClient) retrieveDimensionStates(ctx context.Context, requ } // SummarizeAlarmSuppressionHistory Returns history of suppressions for the specified alarm, including both dimension-specific and and alarm-wide suppressions. For more information, see -// Getting Suppression History for an Alarm (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/summarize-alarm-suppression-history.htm). +// Getting Suppression History for an Alarm (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/summarize-alarm-suppression-history.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/SummarizeAlarmSuppressionHistory.go.html to see an example of how to use SummarizeAlarmSuppressionHistory API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/SummarizeAlarmSuppressionHistory.go.html to see an example of how to use SummarizeAlarmSuppressionHistory API. func (client MonitoringClient) SummarizeAlarmSuppressionHistory(ctx context.Context, request SummarizeAlarmSuppressionHistoryRequest) (response SummarizeAlarmSuppressionHistoryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1148,16 +1148,16 @@ func (client MonitoringClient) summarizeAlarmSuppressionHistory(ctx context.Cont // SummarizeMetricsData Returns aggregated data that match the criteria specified in the request. Compartment OCID required. // For more information, see -// Querying Metric Data (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-landing.htm) +// Querying Metric Data (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-landing.htm) // and -// Creating a Query (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric.htm). +// Creating a Query (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/query-metric.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). // Transactions Per Second (TPS) per-tenancy limit for this operation: 10. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/SummarizeMetricsData.go.html to see an example of how to use SummarizeMetricsData API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/SummarizeMetricsData.go.html to see an example of how to use SummarizeMetricsData API. func (client MonitoringClient) SummarizeMetricsData(ctx context.Context, request SummarizeMetricsDataRequest) (response SummarizeMetricsDataResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1212,16 +1212,16 @@ func (client MonitoringClient) summarizeMetricsData(ctx context.Context, request // UpdateAlarm Updates the specified alarm. // For more information, see -// Updating an Alarm (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm.htm). +// Updating an Alarm (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm.htm). // For important limits information, see -// Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits). +// Limits on Monitoring (https://docs.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. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/UpdateAlarm.go.html to see an example of how to use UpdateAlarm API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/UpdateAlarm.go.html to see an example of how to use UpdateAlarm API. func (client MonitoringClient) UpdateAlarm(ctx context.Context, request UpdateAlarmRequest) (response UpdateAlarmResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() 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 index aeb4b9f707..f47217585b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -48,7 +48,7 @@ func (m PostMetricDataDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_request_response.go index 4275dc8338..752496d1a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/PostMetricData.go.html to see an example of how to use PostMetricDataRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/PostMetricData.go.html to see an example of how to use PostMetricDataRequest. type PostMetricDataRequest struct { // An array of metric objects containing raw metric data points to be posted to the Monitoring service. @@ -65,7 +65,7 @@ func (request PostMetricDataRequest) RetryPolicy() *common.RetryPolicy { func (request PostMetricDataRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b91602e283..ea17d715c1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -40,7 +40,7 @@ func (m PostMetricDataResponseDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/recurrence.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/recurrence.go index c5417b5e86..b483c94f58 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/recurrence.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/recurrence.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -45,7 +45,7 @@ func (m Recurrence) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/remove_alarm_suppression_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/remove_alarm_suppression_request_response.go index 08b00cf8e6..6b3af56f0f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/remove_alarm_suppression_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/remove_alarm_suppression_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/RemoveAlarmSuppression.go.html to see an example of how to use RemoveAlarmSuppressionRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/RemoveAlarmSuppression.go.html to see an example of how to use RemoveAlarmSuppressionRequest. type RemoveAlarmSuppressionRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -67,7 +67,7 @@ func (request RemoveAlarmSuppressionRequest) RetryPolicy() *common.RetryPolicy { func (request RemoveAlarmSuppressionRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 3a8651ba9e..48528cccd5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -46,7 +46,7 @@ func (m RetrieveDimensionStatesDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 3a17e5beed..feeb339ca8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/RetrieveDimensionStates.go.html to see an example of how to use RetrieveDimensionStatesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/RetrieveDimensionStates.go.html to see an example of how to use RetrieveDimensionStatesRequest. type RetrieveDimensionStatesRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. + // The OCID (https://docs.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 @@ -27,12 +27,12 @@ type RetrieveDimensionStatesRequest struct { // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -77,7 +77,7 @@ func (request RetrieveDimensionStatesRequest) RetryPolicy() *common.RetryPolicy func (request RetrieveDimensionStatesRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -97,7 +97,7 @@ type RetrieveDimensionStatesResponse struct { // 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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_alarm_suppression_history_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_alarm_suppression_history_details.go index a3f952ff39..05ea043de9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_alarm_suppression_history_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_alarm_suppression_history_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -52,7 +52,7 @@ func (m SummarizeAlarmSuppressionHistoryDetails) ValidateEnumValue() (bool, erro errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_alarm_suppression_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_alarm_suppression_history_request_response.go index ee8ac684fc..6af271c32a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_alarm_suppression_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_alarm_suppression_history_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/SummarizeAlarmSuppressionHistory.go.html to see an example of how to use SummarizeAlarmSuppressionHistoryRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/SummarizeAlarmSuppressionHistory.go.html to see an example of how to use SummarizeAlarmSuppressionHistoryRequest. type SummarizeAlarmSuppressionHistoryRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. + // The OCID (https://docs.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 @@ -27,12 +27,12 @@ type SummarizeAlarmSuppressionHistoryRequest struct { // 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). + // List Pagination (https://docs.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). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -77,7 +77,7 @@ func (request SummarizeAlarmSuppressionHistoryRequest) RetryPolicy() *common.Ret func (request SummarizeAlarmSuppressionHistoryRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } @@ -97,12 +97,12 @@ type SummarizeAlarmSuppressionHistoryResponse struct { // For list pagination. When this header appears in the response, next page of results remains. // For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // For list pagination. When this header appears in the response, previous pages of results remains. // For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcPreviousPage *string `presentIn:"header" name:"opc-previous-page"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_details.go index f3f7c1239f..901ece43bb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -34,9 +34,9 @@ type SummarizeMetricsDataDetails struct { // Supported grouping functions: `grouping()`, `groupBy()`. // Construct your query to avoid exceeding limits on returned data. See MetricData. // For details about Monitoring Query Language (MQL), see - // Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). + // Monitoring Query Language (MQL) Reference (https://docs.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). + // Supported Services (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices). // Example 1: `CpuUtilization[1m].sum()` // Example 2 (escaped double quotes for value string): `CpuUtilization[1m]{resourceId = \"<instance_OCID>\"}.max()` Query *string `mandatory:"true" json:"query"` @@ -78,7 +78,7 @@ func (m SummarizeMetricsDataDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_request_response.go index 92af85be80..3537098498 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/SummarizeMetricsData.go.html to see an example of how to use SummarizeMetricsDataRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/SummarizeMetricsData.go.html to see an example of how to use SummarizeMetricsDataRequest. type SummarizeMetricsDataRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the + // The OCID (https://docs.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` @@ -75,7 +75,7 @@ func (request SummarizeMetricsDataRequest) RetryPolicy() *common.RetryPolicy { func (request SummarizeMetricsDataRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression.go index abd73ac69f..f55a5ad8ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -21,7 +21,7 @@ import ( // Suppression The configuration details for an alarm-wide suppression. // For dimension-specific suppressions, see AlarmSuppression. // For information about alarms, see -// Alarms Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). +// Alarms Overview (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). type Suppression struct { // The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. @@ -52,7 +52,7 @@ func (m Suppression) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression_condition.go index 2d9c28f884..930e90eee1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression_condition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression_condition.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -58,7 +58,7 @@ func (m *suppressioncondition) UnmarshalPolymorphicJSON(data []byte) (interface{ err = json.Unmarshal(data, &mm) return mm, err default: - common.Logf("Recieved unsupported enum value for SuppressionCondition: %s.", m.ConditionType) + common.Logf("Received unsupported enum value for SuppressionCondition: %s.", m.ConditionType) return *m, nil } } @@ -74,7 +74,7 @@ func (m suppressioncondition) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_details.go index f390c3cfc3..c809a5a005 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -7,7 +7,7 @@ // 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 PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. // For more information, see -// the Monitoring documentation (https://docs.cloud.oracle.com/iaas/Content/Monitoring/home.htm). +// the Monitoring documentation (https://docs.oracle.com/iaas/Content/Monitoring/home.htm). // package monitoring @@ -27,10 +27,10 @@ type UpdateAlarmDetails struct { // Example: `High CPU Utilization` DisplayName *string `mandatory:"false" json:"displayName"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm. CompartmentId *string `mandatory:"false" json:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the metric + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the metric // being evaluated by the alarm. MetricCompartmentId *string `mandatory:"false" json:"metricCompartmentId"` @@ -60,14 +60,14 @@ type UpdateAlarmDetails struct { // interval values are supported for smaller time ranges. You can optionally // specify dimensions and grouping functions. // Also, you can customize the - // absence detection period (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + // absence detection period (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). // Supported grouping functions: `grouping()`, `groupBy()`. // For information about writing MQL expressions, see - // Editing the MQL Expression for a Query (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). + // Editing the MQL Expression for a Query (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). // For details about MQL, see - // Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). + // Monitoring Query Language (MQL) Reference (https://docs.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). + // Supported Services (https://docs.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 @@ -105,7 +105,7 @@ type UpdateAlarmDetails struct { Severity AlarmSeverityEnum `mandatory:"false" json:"severity,omitempty"` // The human-readable content of the delivered alarm notification. - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // Oracle recommends providing guidance // to operators for resolving the alarm condition. Consider adding links to standard runbook // practices. Avoid entering confidential information. @@ -123,7 +123,7 @@ type UpdateAlarmDetails struct { MessageFormat UpdateAlarmDetailsMessageFormatEnum `mandatory:"false" json:"messageFormat,omitempty"` // A list of destinations for alarm notifications. - // Each destination is represented by the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + // Each destination is represented by the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) // of a related resource, such as a NotificationTopic. // Supported destination services: Notifications, Streaming. // Limit: One destination per supported destination service. @@ -165,8 +165,8 @@ type UpdateAlarmDetails struct { // The value must start with a number (up to four digits), followed by a period and an uppercase X. NotificationVersion *string `mandatory:"false" json:"notificationVersion"` - // Customizable notification title (`title` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable notification title (`title` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The notification title appears as the subject line in a formatted email message and as the title in a Slack message. NotificationTitle *string `mandatory:"false" json:"notificationTitle"` @@ -174,11 +174,11 @@ type UpdateAlarmDetails struct { // Specify a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` // for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. // For more information about the slack period, see - // About the Internal Reset Period (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + // About the Internal Reset Period (https://docs.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). EvaluationSlackDuration *string `mandatory:"false" json:"evaluationSlackDuration"` - // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). - // Optionally include dynamic variables (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + // Customizable alarm summary (`alarmSummary` alarm message parameter (https://docs.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + // Optionally include dynamic variables (https://docs.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). // The alarm summary appears within the body of the alarm message and in responses to // ListAlarmsStatus // GetAlarmHistory and @@ -203,7 +203,7 @@ func (m UpdateAlarmDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_request_response.go index e2142e03ad..a63fd4ab1a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/UpdateAlarm.go.html to see an example of how to use UpdateAlarmRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/UpdateAlarm.go.html to see an example of how to use UpdateAlarmRequest. type UpdateAlarmRequest struct { - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` // Document for updating an alarm. @@ -70,7 +70,7 @@ func (request UpdateAlarmRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateAlarmRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index c67138c6ac..9f4d0be2da 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index b63b82e1c3..46fc6e78aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,7 +16,7 @@ import ( ) // 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). +// For more information, see Backend Servers for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/BackendServers/backend-server-management.htm). type Backend struct { // The communication port for the backend server. @@ -38,8 +38,8 @@ type Backend struct { // 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). + // For more information about network load balancing policies, see + // Network Load Balancer Policies (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/introduction.htm#Policies). // Example: `3` Weight *int `mandatory:"false" json:"weight"` @@ -70,7 +70,7 @@ func (m Backend) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 3a04e88510..961360fb2d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -33,7 +33,7 @@ func (m BackendCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 1dfb997ee0..086c207b04 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -38,7 +38,7 @@ type BackendDetails struct { // 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). + // Network Load Balancer Policies (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/introduction.htm#Policies). // Example: `3` Weight *int `mandatory:"false" json:"weight"` @@ -69,7 +69,7 @@ func (m BackendDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 0d477ef189..4d82a10e81 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -45,7 +45,7 @@ func (m BackendHealth) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_operational_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_operational_status.go new file mode 100644 index 0000000000..ce34e81c92 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_operational_status.go @@ -0,0 +1,88 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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" +) + +// BackendOperationalStatus The operational status of the specified backend server. +type BackendOperationalStatus struct { + + // The operational status. + Status BackendOperationalStatusStatusEnum `mandatory:"true" json:"status"` +} + +func (m BackendOperationalStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendOperationalStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBackendOperationalStatusStatusEnum(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(GetBackendOperationalStatusStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BackendOperationalStatusStatusEnum Enum with underlying type: string +type BackendOperationalStatusStatusEnum string + +// Set of constants representing the allowable values for BackendOperationalStatusStatusEnum +const ( + BackendOperationalStatusStatusActive BackendOperationalStatusStatusEnum = "ACTIVE" + BackendOperationalStatusStatusStandby BackendOperationalStatusStatusEnum = "STANDBY" + BackendOperationalStatusStatusUnknown BackendOperationalStatusStatusEnum = "UNKNOWN" +) + +var mappingBackendOperationalStatusStatusEnum = map[string]BackendOperationalStatusStatusEnum{ + "ACTIVE": BackendOperationalStatusStatusActive, + "STANDBY": BackendOperationalStatusStatusStandby, + "UNKNOWN": BackendOperationalStatusStatusUnknown, +} + +var mappingBackendOperationalStatusStatusEnumLowerCase = map[string]BackendOperationalStatusStatusEnum{ + "active": BackendOperationalStatusStatusActive, + "standby": BackendOperationalStatusStatusStandby, + "unknown": BackendOperationalStatusStatusUnknown, +} + +// GetBackendOperationalStatusStatusEnumValues Enumerates the set of values for BackendOperationalStatusStatusEnum +func GetBackendOperationalStatusStatusEnumValues() []BackendOperationalStatusStatusEnum { + values := make([]BackendOperationalStatusStatusEnum, 0) + for _, v := range mappingBackendOperationalStatusStatusEnum { + values = append(values, v) + } + return values +} + +// GetBackendOperationalStatusStatusEnumStringValues Enumerates the set of values in String for BackendOperationalStatusStatusEnum +func GetBackendOperationalStatusStatusEnumStringValues() []string { + return []string{ + "ACTIVE", + "STANDBY", + "UNKNOWN", + } +} + +// GetMappingBackendOperationalStatusStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBackendOperationalStatusStatusEnum(val string) (BackendOperationalStatusStatusEnum, bool) { + enum, ok := mappingBackendOperationalStatusStatusEnumLowerCase[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 index bdc8a7ae67..f782a26e7c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -17,7 +17,7 @@ import ( // 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). +// Backend Sets for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/BackendSets/backend-set-management.htm). // **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type BackendSet struct { @@ -45,6 +45,12 @@ type BackendSet struct { // If enabled existing connections will be forwarded to an alternative healthy backend as soon as current backend becomes unhealthy. IsInstantFailoverEnabled *bool `mandatory:"false" json:"isInstantFailoverEnabled"` + // If enabled along with instant failover, the network load balancer will send TCP RST to the clients for the existing connections instead of failing over to a healthy backend. This only applies when using the instant failover. By default, TCP RST is enabled. + IsInstantFailoverTcpResetEnabled *bool `mandatory:"false" json:"isInstantFailoverTcpResetEnabled"` + + // If enabled, NLB supports active-standby backends. The standby backend takes over the traffic when the active node fails, and continues to serve the traffic even when the old active node is back healthy. + AreOperationallyActiveBackendsPreferred *bool `mandatory:"false" json:"areOperationallyActiveBackendsPreferred"` + // IP version associated with the backend set. IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` @@ -69,7 +75,7 @@ func (m BackendSet) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 7b92a31ee9..934b0834f1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -33,7 +33,7 @@ func (m BackendSetCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index dac452a982..4ed3dab186 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -17,7 +17,7 @@ import ( // 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). +// Backend Sets for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/BackendSets/backend-set-management.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"` @@ -41,6 +41,12 @@ type BackendSetDetails struct { // If enabled existing connections will be forwarded to an alternative healthy backend as soon as current backend becomes unhealthy. IsInstantFailoverEnabled *bool `mandatory:"false" json:"isInstantFailoverEnabled"` + // If enabled along with instant failover, the network load balancer will send TCP RST to the clients for the existing connections instead of failing over to a healthy backend. This only applies when using the instant failover. By default, TCP RST is enabled. + IsInstantFailoverTcpResetEnabled *bool `mandatory:"false" json:"isInstantFailoverTcpResetEnabled"` + + // If enabled, NLB supports active-standby backends. The standby backend takes over the traffic when the active node fails, and continues to serve the traffic even when the old active node is back healthy. + AreOperationallyActiveBackendsPreferred *bool `mandatory:"false" json:"areOperationallyActiveBackendsPreferred"` + // An array of backends. Backends []Backend `mandatory:"false" json:"backends"` } @@ -62,7 +68,7 @@ func (m BackendSetDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 4eaf24dfd1..a35214e042 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -63,7 +63,7 @@ func (m BackendSetHealth) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index cb1886532a..d527043816 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -17,7 +17,7 @@ import ( // 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). +// Backend Sets for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/BackendSets/backend-set-management.htm). // **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type BackendSetSummary struct { @@ -48,6 +48,12 @@ type BackendSetSummary struct { // If enabled existing connections will be forwarded to an alternative healthy backend as soon as current backend becomes unhealthy. IsInstantFailoverEnabled *bool `mandatory:"false" json:"isInstantFailoverEnabled"` + // If enabled along with instant failover, the network load balancer will send TCP RST to the clients for the existing connections instead of failing over to a healthy backend. This only applies when using the instant failover. By default, TCP RST is enabled. + IsInstantFailoverTcpResetEnabled *bool `mandatory:"false" json:"isInstantFailoverTcpResetEnabled"` + + // If enabled, NLB supports active-standby backends. The standby backend takes over the traffic when the active node fails, and continues to serve the traffic even when the old active node is back healthy. + AreOperationallyActiveBackendsPreferred *bool `mandatory:"false" json:"areOperationallyActiveBackendsPreferred"` + // IP version associated with the backend set. IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` } @@ -69,7 +75,7 @@ func (m BackendSetSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 5bb9e19407..ebf6c1b4bf 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,7 +16,7 @@ import ( ) // 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). +// For more information, see Backend Servers for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/BackendServers/backend-server-management.htm). type BackendSummary struct { // The communication port for the backend server. @@ -38,8 +38,8 @@ type BackendSummary struct { // 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). + // For more information about network load balancing policies, see + // Network Load Balancer Policies (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/introduction.htm#Policies). // Example: `3` Weight *int `mandatory:"false" json:"weight"` @@ -70,7 +70,7 @@ func (m BackendSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 60d5fdbabf..6808216a8f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -19,7 +19,7 @@ import ( // **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. + // The OCID (https://docs.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"` } @@ -34,7 +34,7 @@ func (m ChangeNetworkLoadBalancerCompartmentDetails) ValidateEnumValue() (bool, errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index becb43790c..38ed6805f9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ChangeNetworkLoadBalancerCompartment.go.html to see an example of how to use ChangeNetworkLoadBalancerCompartmentRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ChangeNetworkLoadBalancerCompartment.go.html to see an example of how to use ChangeNetworkLoadBalancerCompartmentRequest. type ChangeNetworkLoadBalancerCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network load balancer to update. NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` // The configuration details for moving a network load balancer to a different compartment. @@ -79,7 +79,7 @@ func (request ChangeNetworkLoadBalancerCompartmentRequest) RetryPolicy() *common func (request ChangeNetworkLoadBalancerCompartmentRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 48c80bed4a..e258ac38ce 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,7 +16,7 @@ import ( ) // 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). +// For more information, see Backend Servers for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/BackendServers/backend-server-management.htm). type CreateBackendDetails struct { // The communication port for the backend server. @@ -38,8 +38,8 @@ type CreateBackendDetails struct { // 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). + // For more information about network load balancer policies, see + // Network Load Balancer Policies (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/introduction.htm#Policies). // Example: `3` Weight *int `mandatory:"false" json:"weight"` @@ -70,7 +70,7 @@ func (m CreateBackendDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index f783a6daec..7fe4884b1c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateBackend.go.html to see an example of how to use CreateBackendRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateBackend.go.html to see an example of how to use CreateBackendRequest. type CreateBackendRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -83,7 +83,7 @@ func (request CreateBackendRequest) RetryPolicy() *common.RetryPolicy { func (request CreateBackendRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 11daa6a981..f37addcf66 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -17,7 +17,7 @@ import ( // 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). +// Backend Sets for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/BackendSets/backend-set-management.htm). // **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type CreateBackendSetDetails struct { @@ -45,6 +45,12 @@ type CreateBackendSetDetails struct { // If enabled existing connections will be forwarded to an alternative healthy backend as soon as current backend becomes unhealthy. IsInstantFailoverEnabled *bool `mandatory:"false" json:"isInstantFailoverEnabled"` + // If enabled along with instant failover, the network load balancer will send TCP RST to the clients for the existing connections instead of failing over to a healthy backend. This only applies when using the instant failover. By default, TCP RST is enabled. + IsInstantFailoverTcpResetEnabled *bool `mandatory:"false" json:"isInstantFailoverTcpResetEnabled"` + + // If enabled, NLB supports active-standby backends. The standby backend takes over the traffic when the active node fails, and continues to serve the traffic even when the old active node is back healthy. + AreOperationallyActiveBackendsPreferred *bool `mandatory:"false" json:"areOperationallyActiveBackendsPreferred"` + // IP version associated with the backend set. IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` @@ -69,7 +75,7 @@ func (m CreateBackendSetDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index a1e2948612..e6bab50bf4 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateBackendSet.go.html to see an example of how to use CreateBackendSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateBackendSet.go.html to see an example of how to use CreateBackendSetRequest. type CreateBackendSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -79,7 +79,7 @@ func (request CreateBackendSetRequest) RetryPolicy() *common.RetryPolicy { func (request CreateBackendSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index b73698b96c..4a44df15cb 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,8 +16,8 @@ import ( ) // 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). +// For more information about listener configuration, see +// Listeners for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/Listeners/listener-management.htm). type CreateListenerDetails struct { // A friendly name for the listener. It must be unique and it cannot be changed. @@ -75,7 +75,7 @@ func (m CreateListenerDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 08fb4614c7..c29638ccd5 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateListener.go.html to see an example of how to use CreateListenerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateListener.go.html to see an example of how to use CreateListenerRequest. type CreateListenerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -79,7 +79,7 @@ func (request CreateListenerRequest) RetryPolicy() *common.RetryPolicy { func (request CreateListenerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_network_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_network_load_balancer_details.go index 27818037c7..70ac5710b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,22 +16,22 @@ import ( ) // CreateNetworkLoadBalancerDetails The properties that define a network load balancer. For more information, see -// Managing a network load balancer (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingloadbalancer.htm). +// Introduction to Network Load Balancer (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/introduction.htm). // To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, then // contact an administrator. If you are an administrator who writes policies to give users access, then see -// Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). +// Getting Started with Policies (https://docs.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/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see -// SDKS and Other Tools (https://docs.cloud.oracle.com/Content/API/Concepts/sdks.htm). +// About the API (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see +// SDKS and Other Tools (https://docs.oracle.com/iaas/Content/API/Concepts/sdks.htm). type CreateNetworkLoadBalancerDetails struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancer. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancer. CompartmentId *string `mandatory:"true" json:"compartmentId"` // Network load balancer identifier, which can be renamed. DisplayName *string `mandatory:"true" json:"displayName"` - // The subnet in which the network load balancer is spawned OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + // The subnet in which the network load balancer is spawned OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). SubnetId *string `mandatory:"true" json:"subnetId"` // This parameter can be enabled only if backends are compute OCIDs. When enabled, the skipSourceDestinationCheck parameter is automatically @@ -49,14 +49,14 @@ type CreateNetworkLoadBalancerDetails struct { // If "true", then the service assigns a private IP address to the network load balancer. // If "false", then the service assigns a public IP address to the network load balancer. // A public network load balancer is accessible from the internet, depending on the - // security list rules (https://docs.cloud.oracle.com/Content/network/Concepts/securitylists.htm) for your virtual cloud network. For more information about public and + // security list rules (https://docs.oracle.com/iaas/Content/network/Concepts/securitylists.htm) for your virtual cloud network. For more information about public and // private network load balancers, - // see How Network Load Balancing Works (https://docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm#how-network-load-balancing-works). + // see Network Load Balancer Types (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/introduction.htm#NetworkLoadBalancerTypes). // This value is true by default. // Example: `true` IsPrivate *bool `mandatory:"false" json:"isPrivate"` - // An array of network security groups OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with the network load + // An array of network security groups OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with the network load // balancer. // During the creation of the network load balancer, the service adds the new load balancer to the specified network security groups. // The benefits of associating the network load balancer with network security groups include: @@ -97,7 +97,7 @@ type CreateNetworkLoadBalancerDetails struct { DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // ZPR tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"oracle-zpr": {"td": {"value": "42", "mode": "audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` } @@ -116,7 +116,7 @@ func (m CreateNetworkLoadBalancerDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 75b4b9ddfc..42d2d40275 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateNetworkLoadBalancer.go.html to see an example of how to use CreateNetworkLoadBalancerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateNetworkLoadBalancer.go.html to see an example of how to use CreateNetworkLoadBalancerRequest. type CreateNetworkLoadBalancerRequest struct { // Details for the new network load balancer. @@ -69,7 +69,7 @@ func (request CreateNetworkLoadBalancerRequest) RetryPolicy() *common.RetryPolic func (request CreateNetworkLoadBalancerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2a365d0907..d9419cd83b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteBackend.go.html to see an example of how to use DeleteBackendRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteBackend.go.html to see an example of how to use DeleteBackendRequest. type DeleteBackendRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -80,7 +80,7 @@ func (request DeleteBackendRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteBackendRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 56b2972952..2d1c196ee1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteBackendSet.go.html to see an example of how to use DeleteBackendSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteBackendSet.go.html to see an example of how to use DeleteBackendSetRequest. type DeleteBackendSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -73,7 +73,7 @@ func (request DeleteBackendSetRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteBackendSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 0a7b9caf1f..11e2fff3c0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteListener.go.html to see an example of how to use DeleteListenerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteListener.go.html to see an example of how to use DeleteListenerRequest. type DeleteListenerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -73,7 +73,7 @@ func (request DeleteListenerRequest) RetryPolicy() *common.RetryPolicy { func (request DeleteListenerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 47e6be97d2..c44de16837 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteNetworkLoadBalancer.go.html to see an example of how to use DeleteNetworkLoadBalancerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteNetworkLoadBalancer.go.html to see an example of how to use DeleteNetworkLoadBalancerRequest. type DeleteNetworkLoadBalancerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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 @@ -69,7 +69,7 @@ func (request DeleteNetworkLoadBalancerRequest) RetryPolicy() *common.RetryPolic func (request DeleteNetworkLoadBalancerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_query_classes.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_query_classes.go index 646318a7e7..a97bee65a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_query_classes.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_query_classes.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_query_types.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_query_types.go index 8c591f1411..dc1dcdd832 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_query_types.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_query_types.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_r_codes.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_r_codes.go index d5a1702f1d..ca4692441d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_r_codes.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_r_codes.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_transport_protocols.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_transport_protocols.go index b3ee721586..f056156da1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_transport_protocols.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_check_transport_protocols.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_checker_details.go index b7bae47b61..67785ac70b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_checker_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dns_health_checker_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -59,7 +59,7 @@ func (m DnsHealthCheckerDetails) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for QueryType: %s. Supported values are: %s.", m.QueryType, strings.Join(GetDnsHealthCheckQueryTypesEnumStringValues(), ","))) } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d1e4278888..6bef65b88d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendHealth.go.html to see an example of how to use GetBackendHealthRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendHealth.go.html to see an example of how to use GetBackendHealthRequest. type GetBackendHealthRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -73,7 +73,7 @@ func (request GetBackendHealthRequest) RetryPolicy() *common.RetryPolicy { func (request GetBackendHealthRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_operational_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_operational_status_request_response.go new file mode 100644 index 0000000000..4e9898421d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_operational_status_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 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" +) + +// GetBackendOperationalStatusRequest wrapper for the GetBackendOperationalStatus operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendOperationalStatus.go.html to see an example of how to use GetBackendOperationalStatusRequest. +type GetBackendOperationalStatusRequest struct { + + // The OCID (https://docs.oracle.com/iaas/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 operational 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 GetBackendOperationalStatusRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetBackendOperationalStatusRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetBackendOperationalStatusRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetBackendOperationalStatusRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBackendOperationalStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetBackendOperationalStatusResponse wrapper for the GetBackendOperationalStatus operation +type GetBackendOperationalStatusResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The BackendOperationalStatus instance + BackendOperationalStatus `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 GetBackendOperationalStatusResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetBackendOperationalStatusResponse) 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 index d8aa3e21b0..478641f047 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackend.go.html to see an example of how to use GetBackendRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackend.go.html to see an example of how to use GetBackendRequest. type GetBackendRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -79,7 +79,7 @@ func (request GetBackendRequest) RetryPolicy() *common.RetryPolicy { func (request GetBackendRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index f0c58ba595..f11f377c83 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendSetHealth.go.html to see an example of how to use GetBackendSetHealthRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendSetHealth.go.html to see an example of how to use GetBackendSetHealthRequest. type GetBackendSetHealthRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -66,7 +66,7 @@ func (request GetBackendSetHealthRequest) RetryPolicy() *common.RetryPolicy { func (request GetBackendSetHealthRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 1432595bc7..558ff6d978 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendSet.go.html to see an example of how to use GetBackendSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendSet.go.html to see an example of how to use GetBackendSetRequest. type GetBackendSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -72,7 +72,7 @@ func (request GetBackendSetRequest) RetryPolicy() *common.RetryPolicy { func (request GetBackendSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 064f2bb256..bcb7fcef7b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetHealthChecker.go.html to see an example of how to use GetHealthCheckerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetHealthChecker.go.html to see an example of how to use GetHealthCheckerRequest. type GetHealthCheckerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -79,7 +79,7 @@ func (request GetHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { func (request GetHealthCheckerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_listener_request_response.go index 1467fd16f6..1d7e9f6644 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_listener_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_listener_request_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetListener.go.html to see an example of how to use GetListenerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetListener.go.html to see an example of how to use GetListenerRequest. type GetListenerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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 get. @@ -72,7 +72,7 @@ func (request GetListenerRequest) RetryPolicy() *common.RetryPolicy { func (request GetListenerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 724b1b54b6..3f08f88493 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetNetworkLoadBalancerHealth.go.html to see an example of how to use GetNetworkLoadBalancerHealthRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetNetworkLoadBalancerHealth.go.html to see an example of how to use GetNetworkLoadBalancerHealthRequest. type GetNetworkLoadBalancerHealthRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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 @@ -62,7 +62,7 @@ func (request GetNetworkLoadBalancerHealthRequest) RetryPolicy() *common.RetryPo func (request GetNetworkLoadBalancerHealthRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index 012ede5677..3c0fb72eb5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetNetworkLoadBalancer.go.html to see an example of how to use GetNetworkLoadBalancerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetNetworkLoadBalancer.go.html to see an example of how to use GetNetworkLoadBalancerRequest. type GetNetworkLoadBalancerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network load balancer to update. NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` // The system returns the requested resource, with a 200 status, only if the resource has no etag @@ -68,7 +68,7 @@ func (request GetNetworkLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { func (request GetNetworkLoadBalancerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 70bb672a8b..3edac85c97 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. type GetWorkRequestRequest struct { // The identifier of the asynchronous request. @@ -62,7 +62,7 @@ func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 615e1d44b6..cd7fff7915 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index f89410881f..1e244674db 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index 0c52de86ec..e825f610bd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -40,7 +40,7 @@ func (m HealthCheckResult) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 307c0ad883..b55e1af846 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,7 +16,7 @@ import ( ) // HealthChecker The health check policy configuration. -// For more information, see Editing Health Check Policies (https://docs.cloud.oracle.com/Content/Balance/Tasks/editinghealthcheck.htm). +// For more information, see Editing Network Load Balancer Health Check Policies (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/HealthCheckPolicies/update-health-check-management.htm). type HealthChecker struct { // The protocol the health check must use; either HTTP or HTTPS, or UDP or TCP. @@ -78,7 +78,7 @@ func (m HealthChecker) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index bf9eb16f05..9c4fc6d6fa 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,7 +16,7 @@ import ( ) // HealthCheckerDetails The health check policy configuration. -// For more information, see Editing Health Check Policies (https://docs.cloud.oracle.com/Content/Balance/Tasks/editinghealthcheck.htm). +// For more information, see Editing Network Load Balancer Health Check Policies (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/HealthCheckPolicies/update-health-check-policy.htm). type HealthCheckerDetails struct { // The protocol the health check must use; either HTTP or HTTPS, or UDP or TCP. @@ -78,7 +78,7 @@ func (m HealthCheckerDetails) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 361bd49c2b..a95328e724 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -47,7 +47,7 @@ func (m IpAddress) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 76cbbb0988..cf5cbfc3c2 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index d1a115c66b..8c1fa427ee 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index 46f49ad504..07931bb2a1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListBackendSets.go.html to see an example of how to use ListBackendSetsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListBackendSets.go.html to see an example of how to use ListBackendSetsRequest. type ListBackendSetsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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 @@ -32,12 +32,12 @@ type ListBackendSetsRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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). @@ -90,7 +90,7 @@ func (request ListBackendSetsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 263687451c..cca2a096fa 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListBackends.go.html to see an example of how to use ListBackendsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListBackends.go.html to see an example of how to use ListBackendsRequest. type ListBackendsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -36,12 +36,12 @@ type ListBackendsRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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). @@ -94,7 +94,7 @@ func (request ListBackendsRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 2bde176b87..28db62f7a9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListListeners.go.html to see an example of how to use ListListenersRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListListeners.go.html to see an example of how to use ListListenersRequest. type ListListenersRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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 @@ -32,12 +32,12 @@ type ListListenersRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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). @@ -90,7 +90,7 @@ func (request ListListenersRequest) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4d81c13272..becead0bc0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancerHealths.go.html to see an example of how to use ListNetworkLoadBalancerHealthsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancerHealths.go.html to see an example of how to use ListNetworkLoadBalancerHealthsRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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). @@ -33,12 +33,12 @@ type ListNetworkLoadBalancerHealthsRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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 @@ -84,7 +84,7 @@ func (request ListNetworkLoadBalancerHealthsRequest) ValidateEnumValue() (bool, 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 5e2acc06ea..1b65d7ad1e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancersPolicies.go.html to see an example of how to use ListNetworkLoadBalancersPoliciesRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancersPolicies.go.html to see an example of how to use ListNetworkLoadBalancersPoliciesRequest. type ListNetworkLoadBalancersPoliciesRequest struct { // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a @@ -23,12 +23,12 @@ type ListNetworkLoadBalancersPoliciesRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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). @@ -81,7 +81,7 @@ func (request ListNetworkLoadBalancersPoliciesRequest) ValidateEnumValue() (bool 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 097490b316..d33c446d49 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,7 +15,7 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancersProtocols.go.html to see an example of how to use ListNetworkLoadBalancersProtocolsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancersProtocols.go.html to see an example of how to use ListNetworkLoadBalancersProtocolsRequest. type ListNetworkLoadBalancersProtocolsRequest struct { // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a @@ -23,12 +23,12 @@ type ListNetworkLoadBalancersProtocolsRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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). @@ -81,7 +81,7 @@ func (request ListNetworkLoadBalancersProtocolsRequest) ValidateEnumValue() (boo 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 4beb7be510..da33447ce7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancers.go.html to see an example of how to use ListNetworkLoadBalancersRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancers.go.html to see an example of how to use ListNetworkLoadBalancersRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -28,12 +28,12 @@ type ListNetworkLoadBalancersRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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). @@ -93,7 +93,7 @@ func (request ListNetworkLoadBalancersRequest) ValidateEnumValue() (bool, error) 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 6b813734d7..a0de85fc0b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -30,11 +30,11 @@ type ListWorkRequestErrorsRequest struct { // 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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 @@ -74,7 +74,7 @@ func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy { func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 9ea3e0ad3c..b421afb7da 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,13 +15,13 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -30,11 +30,11 @@ type ListWorkRequestLogsRequest struct { // 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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 @@ -74,7 +74,7 @@ func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 57830cf31a..6affeee133 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. 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. + // The OCID (https://docs.oracle.com/iaas/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 @@ -26,12 +26,12 @@ type ListWorkRequestsRequest struct { 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). + // For important details about how pagination works, see List Pagination (https://docs.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). + // For important details about how pagination works, see List Pagination (https://docs.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 @@ -71,7 +71,7 @@ func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 655a86a6ec..73ab7bdaf7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,8 +16,8 @@ import ( ) // 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). +// For more information about listener configuration, see +// Listeners for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/Listeners/listener-management.htm). type Listener struct { // A friendly name for the listener. It must be unique and it cannot be changed. @@ -75,7 +75,7 @@ func (m Listener) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index c970b15600..673c029e46 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -33,7 +33,7 @@ func (m ListenerCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 3437ab6657..a9aa1acf75 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,8 +16,8 @@ import ( ) // 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). +// For more information about listener configuration, see +// Listeners for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/Listeners/listener-management.htm). type ListenerDetails struct { // A friendly name for the listener. It must be unique and it cannot be changed. @@ -75,7 +75,7 @@ func (m ListenerDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index f77bb18e51..1dec79397a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index f50b9d26a9..9312a6ceaf 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,8 +16,8 @@ import ( ) // 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). +// For more information about listener configuration, see +// Listeners for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/Listeners/listener-management.htm). type ListenerSummary struct { // A friendly name for the listener. It must be unique and it cannot be changed. @@ -75,7 +75,7 @@ func (m ListenerSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer.go index 07170a3466..32dda62a0e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,19 +16,19 @@ import ( ) // NetworkLoadBalancer The properties that define a network load balancer. For more information, see -// Managing a network load balancer (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingloadbalancer.htm). +// Introduction to Network Load Balancer (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/introduction.htm). // To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, // contact an administrator. If you are an administrator who writes policies to give users access, then see -// Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). +// Getting Started with Policies (https://docs.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/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see -// SDKS and Other Tools (https://docs.cloud.oracle.com/Content/API/Concepts/sdks.htm). +// About the API (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see +// SDKS and Other Tools (https://docs.oracle.com/iaas/Content/API/Concepts/sdks.htm). type NetworkLoadBalancer struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network load balancer. Id *string `mandatory:"true" json:"id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancer. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancer. CompartmentId *string `mandatory:"true" json:"compartmentId"` // A user-friendly name, which does not have to be unique, and can be changed. @@ -45,7 +45,7 @@ type NetworkLoadBalancer struct { // An array of IP addresses. IpAddresses []IpAddress `mandatory:"true" json:"ipAddresses"` - // The subnet in which the network load balancer is spawned OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + // The subnet in which the network load balancer is spawned OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). SubnetId *string `mandatory:"true" json:"subnetId"` // A message describing the current state in more detail. @@ -63,9 +63,9 @@ type NetworkLoadBalancer struct { // If "true", then the service assigns a private IP address to the network load balancer. // If "false", then the service assigns a public IP address to the network load balancer. // A public network load balancer is accessible from the internet, depending the - // security list rules (https://docs.cloud.oracle.com/Content/network/Concepts/securitylists.htm) for your virtual cloudn network. For more information about public and + // security list rules (https://docs.oracle.com/iaas/Content/network/Concepts/securitylists.htm) for your virtual cloudn network. For more information about public and // private network load balancers, - // see How Network Load Balancing Works (https://docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm#how-network-load-balancing-works). + // see Network Load Balancer Types (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/introduction.htm#NetworkLoadBalancerTypes). // This value is true by default. // Example: `true` IsPrivate *bool `mandatory:"false" json:"isPrivate"` @@ -78,7 +78,7 @@ type NetworkLoadBalancer struct { // This removes the additional dependency from NLB backends(like Firewalls) to perform SNAT. IsSymmetricHashEnabled *bool `mandatory:"false" json:"isSymmetricHashEnabled"` - // An array of network security groups OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with the network load + // An array of network security groups OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with the network load // balancer. // During the creation of the network load balancer, the service adds the new load balancer to the specified network security groups. // The benefits of associating the network load balancer with network security groups include: @@ -95,17 +95,17 @@ type NetworkLoadBalancer struct { BackendSets map[string]BackendSet `mandatory:"false" json:"backendSets"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // ZPR tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{ "oracle-zpr": { "td": { "value": "42", "mode": "audit" } } }` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` // Defined 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -131,7 +131,7 @@ func (m NetworkLoadBalancer) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 14d219b25a..b2eb171c09 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -33,7 +33,7 @@ func (m NetworkLoadBalancerCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index c30f4cf1fa..dd4b977573 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -67,7 +67,7 @@ func (m NetworkLoadBalancerHealth) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 739b773d2e..98d016dd48 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -33,7 +33,7 @@ func (m NetworkLoadBalancerHealthCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 457ac44ffd..2c42d5f7c7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -18,7 +18,7 @@ import ( // 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. + // The OCID (https://docs.oracle.com/iaas/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. @@ -49,7 +49,7 @@ func (m NetworkLoadBalancerHealthSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_summary.go index b8db09cd65..051cf93245 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -18,10 +18,10 @@ import ( // NetworkLoadBalancerSummary Network load balancer object to be used for list operations. type NetworkLoadBalancerSummary struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network load balancer. Id *string `mandatory:"true" json:"id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancer. + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancer. CompartmentId *string `mandatory:"true" json:"compartmentId"` // A user-friendly name, which does not have to be unique, and can be changed. @@ -38,7 +38,7 @@ type NetworkLoadBalancerSummary struct { // An array of IP addresses. IpAddresses []IpAddress `mandatory:"true" json:"ipAddresses"` - // The subnet in which the network load balancer is spawned OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + // The subnet in which the network load balancer is spawned OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). SubnetId *string `mandatory:"true" json:"subnetId"` // A message describing the current state in more detail. @@ -56,9 +56,9 @@ type NetworkLoadBalancerSummary struct { // If "true", then the service assigns a private IP address to the network load balancer. // If "false", then the service assigns a public IP address to the network load balancer. // A public network load balancer is accessible from the internet, depending the - // security list rules (https://docs.cloud.oracle.com/Content/network/Concepts/securitylists.htm) for your virtual cloudn network. For more information about public and + // security list rules (https://docs.oracle.com/iaas/Content/network/Concepts/securitylists.htm) for your virtual cloudn network. For more information about public and // private network load balancers, - // see How Network Load Balancing Works (https://docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm#how-network-load-balancing-works). + // see Network Load Balancer Types (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/introduction.htm#NetworkLoadBalancerTypes). // This value is true by default. // Example: `true` IsPrivate *bool `mandatory:"false" json:"isPrivate"` @@ -71,7 +71,7 @@ type NetworkLoadBalancerSummary struct { // This removes the additional dependency from NLB backends(like Firewalls) to perform SNAT. IsSymmetricHashEnabled *bool `mandatory:"false" json:"isSymmetricHashEnabled"` - // An array of network security groups OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with the network load + // An array of network security groups OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with the network load // balancer. // During the creation of the network load balancer, the service adds the new load balancer to the specified network security groups. // The benefits of associating the network load balancer with network security groups include: @@ -88,17 +88,17 @@ type NetworkLoadBalancerSummary struct { BackendSets map[string]BackendSet `mandatory:"false" json:"backendSets"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // ZPR tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{ "oracle-zpr": { "td": { "value": "42", "mode": "audit" } } }` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` // Defined 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -124,7 +124,7 @@ func (m NetworkLoadBalancerSummary) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index 093fadf6d2..9f385dabc9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -33,7 +33,7 @@ func (m NetworkLoadBalancersPolicyCollection) ValidateEnumValue() (bool, error) errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 0118a72ea1..cbe51c71dd 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index 4aa402a07b..b5a658c31e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -34,7 +34,7 @@ func (m NetworkLoadBalancersProtocolCollection) ValidateEnumValue() (bool, error errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 92dc5380a6..dec63beecc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index 55b1cd64d6..a6d6b97d9a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index 3e657977ea..19e4a0a84b 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -92,11 +92,11 @@ func (client *NetworkLoadBalancerClient) ConfigurationProvider() *common.Configu } // 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). +// between compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ChangeNetworkLoadBalancerCompartment.go.html to see an example of how to use ChangeNetworkLoadBalancerCompartment API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ChangeNetworkLoadBalancerCompartment.go.html to see an example of how to use ChangeNetworkLoadBalancerCompartment API. // 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 @@ -159,7 +159,7 @@ func (client NetworkLoadBalancerClient) changeNetworkLoadBalancerCompartment(ctx // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateBackend.go.html to see an example of how to use CreateBackend API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateBackend.go.html to see an example of how to use CreateBackend API. // 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 @@ -222,7 +222,7 @@ func (client NetworkLoadBalancerClient) createBackend(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateBackendSet.go.html to see an example of how to use CreateBackendSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateBackendSet.go.html to see an example of how to use CreateBackendSet API. // 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 @@ -285,7 +285,7 @@ func (client NetworkLoadBalancerClient) createBackendSet(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateListener.go.html to see an example of how to use CreateListener API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateListener.go.html to see an example of how to use CreateListener API. // 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 @@ -348,7 +348,7 @@ func (client NetworkLoadBalancerClient) createListener(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateNetworkLoadBalancer.go.html to see an example of how to use CreateNetworkLoadBalancer API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/CreateNetworkLoadBalancer.go.html to see an example of how to use CreateNetworkLoadBalancer API. // 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 @@ -411,7 +411,7 @@ func (client NetworkLoadBalancerClient) createNetworkLoadBalancer(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteBackend.go.html to see an example of how to use DeleteBackend API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteBackend.go.html to see an example of how to use DeleteBackend API. // 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 @@ -470,7 +470,7 @@ func (client NetworkLoadBalancerClient) deleteBackend(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteBackendSet.go.html to see an example of how to use DeleteBackendSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteBackendSet.go.html to see an example of how to use DeleteBackendSet API. // 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 @@ -528,7 +528,7 @@ func (client NetworkLoadBalancerClient) deleteBackendSet(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteListener.go.html to see an example of how to use DeleteListener API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteListener.go.html to see an example of how to use DeleteListener API. // 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 @@ -586,7 +586,7 @@ func (client NetworkLoadBalancerClient) deleteListener(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteNetworkLoadBalancer.go.html to see an example of how to use DeleteNetworkLoadBalancer API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/DeleteNetworkLoadBalancer.go.html to see an example of how to use DeleteNetworkLoadBalancer API. // 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 @@ -644,7 +644,7 @@ func (client NetworkLoadBalancerClient) deleteNetworkLoadBalancer(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackend.go.html to see an example of how to use GetBackend API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackend.go.html to see an example of how to use GetBackend API. // 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 @@ -702,7 +702,7 @@ func (client NetworkLoadBalancerClient) getBackend(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendHealth.go.html to see an example of how to use GetBackendHealth API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendHealth.go.html to see an example of how to use GetBackendHealth API. // 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 @@ -756,11 +756,69 @@ func (client NetworkLoadBalancerClient) getBackendHealth(ctx context.Context, re return response, err } +// GetBackendOperationalStatus Retrieves the current operational status of the specified backend server. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendOperationalStatus.go.html to see an example of how to use GetBackendOperationalStatus API. +// A default retry strategy applies to this operation GetBackendOperationalStatus() +func (client NetworkLoadBalancerClient) GetBackendOperationalStatus(ctx context.Context, request GetBackendOperationalStatusRequest) (response GetBackendOperationalStatusResponse, 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.getBackendOperationalStatus, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetBackendOperationalStatusResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetBackendOperationalStatusResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetBackendOperationalStatusResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetBackendOperationalStatusResponse") + } + return +} + +// getBackendOperationalStatus implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getBackendOperationalStatus(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}/operationalStatus", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetBackendOperationalStatusResponse + 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/BackendOperationalStatus/GetBackendOperationalStatus" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetBackendOperationalStatus", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetBackendSet Retrieves the configuration information for the specified backend set. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendSet.go.html to see an example of how to use GetBackendSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendSet.go.html to see an example of how to use GetBackendSet API. // 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 @@ -818,7 +876,7 @@ func (client NetworkLoadBalancerClient) getBackendSet(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendSetHealth.go.html to see an example of how to use GetBackendSetHealth API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetBackendSetHealth.go.html to see an example of how to use GetBackendSetHealth API. // 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 @@ -876,7 +934,7 @@ func (client NetworkLoadBalancerClient) getBackendSetHealth(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetHealthChecker.go.html to see an example of how to use GetHealthChecker API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetHealthChecker.go.html to see an example of how to use GetHealthChecker API. // 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 @@ -939,7 +997,7 @@ func (client NetworkLoadBalancerClient) getHealthChecker(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetListener.go.html to see an example of how to use GetListener API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetListener.go.html to see an example of how to use GetListener API. // 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 @@ -997,7 +1055,7 @@ func (client NetworkLoadBalancerClient) getListener(ctx context.Context, request // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetNetworkLoadBalancer.go.html to see an example of how to use GetNetworkLoadBalancer API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetNetworkLoadBalancer.go.html to see an example of how to use GetNetworkLoadBalancer API. // 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 @@ -1055,7 +1113,7 @@ func (client NetworkLoadBalancerClient) getNetworkLoadBalancer(ctx context.Conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetNetworkLoadBalancerHealth.go.html to see an example of how to use GetNetworkLoadBalancerHealth API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetNetworkLoadBalancerHealth.go.html to see an example of how to use GetNetworkLoadBalancerHealth API. // 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 @@ -1113,7 +1171,7 @@ func (client NetworkLoadBalancerClient) getNetworkLoadBalancerHealth(ctx context // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. // 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 @@ -1171,7 +1229,7 @@ func (client NetworkLoadBalancerClient) getWorkRequest(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListBackendSets.go.html to see an example of how to use ListBackendSets API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListBackendSets.go.html to see an example of how to use ListBackendSets API. // 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 @@ -1229,7 +1287,7 @@ func (client NetworkLoadBalancerClient) listBackendSets(ctx context.Context, req // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListBackends.go.html to see an example of how to use ListBackends API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListBackends.go.html to see an example of how to use ListBackends API. // 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 @@ -1287,7 +1345,7 @@ func (client NetworkLoadBalancerClient) listBackends(ctx context.Context, reques // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListListeners.go.html to see an example of how to use ListListeners API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListListeners.go.html to see an example of how to use ListListeners API. // 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 @@ -1345,7 +1403,7 @@ func (client NetworkLoadBalancerClient) listListeners(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancerHealths.go.html to see an example of how to use ListNetworkLoadBalancerHealths API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancerHealths.go.html to see an example of how to use ListNetworkLoadBalancerHealths API. // 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 @@ -1403,7 +1461,7 @@ func (client NetworkLoadBalancerClient) listNetworkLoadBalancerHealths(ctx conte // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancers.go.html to see an example of how to use ListNetworkLoadBalancers API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancers.go.html to see an example of how to use ListNetworkLoadBalancers API. // 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 @@ -1461,7 +1519,7 @@ func (client NetworkLoadBalancerClient) listNetworkLoadBalancers(ctx context.Con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancersPolicies.go.html to see an example of how to use ListNetworkLoadBalancersPolicies API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancersPolicies.go.html to see an example of how to use ListNetworkLoadBalancersPolicies API. // 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 @@ -1520,7 +1578,7 @@ func (client NetworkLoadBalancerClient) listNetworkLoadBalancersPolicies(ctx con // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancersProtocols.go.html to see an example of how to use ListNetworkLoadBalancersProtocols API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListNetworkLoadBalancersProtocols.go.html to see an example of how to use ListNetworkLoadBalancersProtocols API. // 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 @@ -1578,7 +1636,7 @@ func (client NetworkLoadBalancerClient) listNetworkLoadBalancersProtocols(ctx co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. // 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 @@ -1636,7 +1694,7 @@ func (client NetworkLoadBalancerClient) listWorkRequestErrors(ctx context.Contex // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. // 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 @@ -1694,7 +1752,7 @@ func (client NetworkLoadBalancerClient) listWorkRequestLogs(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. // 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 @@ -1752,7 +1810,7 @@ func (client NetworkLoadBalancerClient) listWorkRequests(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateBackend.go.html to see an example of how to use UpdateBackend API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateBackend.go.html to see an example of how to use UpdateBackend API. // 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 @@ -1815,7 +1873,7 @@ func (client NetworkLoadBalancerClient) updateBackend(ctx context.Context, reque // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateBackendSet.go.html to see an example of how to use UpdateBackendSet API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateBackendSet.go.html to see an example of how to use UpdateBackendSet API. // 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 @@ -1878,7 +1936,7 @@ func (client NetworkLoadBalancerClient) updateBackendSet(ctx context.Context, re // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateHealthChecker.go.html to see an example of how to use UpdateHealthChecker API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateHealthChecker.go.html to see an example of how to use UpdateHealthChecker API. // 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 @@ -1941,7 +1999,7 @@ func (client NetworkLoadBalancerClient) updateHealthChecker(ctx context.Context, // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateListener.go.html to see an example of how to use UpdateListener API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateListener.go.html to see an example of how to use UpdateListener API. // 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 @@ -2004,7 +2062,7 @@ func (client NetworkLoadBalancerClient) updateListener(ctx context.Context, requ // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateNetworkLoadBalancer.go.html to see an example of how to use UpdateNetworkLoadBalancer API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateNetworkLoadBalancer.go.html to see an example of how to use UpdateNetworkLoadBalancer API. // 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 @@ -2062,7 +2120,7 @@ func (client NetworkLoadBalancerClient) updateNetworkLoadBalancer(ctx context.Co // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateNetworkSecurityGroups.go.html to see an example of how to use UpdateNetworkSecurityGroups API. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateNetworkSecurityGroups.go.html to see an example of how to use UpdateNetworkSecurityGroups API. // 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 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 index ef17a299b1..59215203a0 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index 80e1f6b5ee..62aaea4224 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index 7f28e45daa..ea58aa0ba1 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index d5db508937..9cd0e6a067 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -38,7 +38,7 @@ func (m ReservedIp) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index a313a5af0a..33024bbb94 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. 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 index 8b2d0e942a..6ce99e067d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -21,8 +21,8 @@ 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). + // For more information about network load balancer policies, see + // Network Load Balancer Policies (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/introduction.htm#Policies). // Example: `3` Weight *int `mandatory:"false" json:"weight"` @@ -53,7 +53,7 @@ func (m UpdateBackendDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index a3b4dd95f4..98e8344ea6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateBackend.go.html to see an example of how to use UpdateBackendRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateBackend.go.html to see an example of how to use UpdateBackendRequest. type UpdateBackendRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -90,7 +90,7 @@ func (request UpdateBackendRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateBackendRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index ae52878708..71bc29135d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -17,7 +17,7 @@ import ( // 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). +// Backend Sets for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/BackendSets/backend-set-management.htm). // **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type UpdateBackendSetDetails struct { @@ -38,6 +38,12 @@ type UpdateBackendSetDetails struct { // If enabled existing connections will be forwarded to an alternative healthy backend as soon as current backend becomes unhealthy. IsInstantFailoverEnabled *bool `mandatory:"false" json:"isInstantFailoverEnabled"` + // If enabled along with instant failover, the network load balancer will send TCP RST to the clients for the existing connections instead of failing over to a healthy backend. This only applies when using the instant failover. + IsInstantFailoverTcpResetEnabled *bool `mandatory:"false" json:"isInstantFailoverTcpResetEnabled"` + + // If enabled, NLB supports active-standby backends. The standby backend takes over the traffic when the active node fails, and continues to serve the traffic even when the old active node is back healthy. + AreOperationallyActiveBackendsPreferred *bool `mandatory:"false" json:"areOperationallyActiveBackendsPreferred"` + // The IP version associated with the backend set. IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` @@ -61,7 +67,7 @@ func (m UpdateBackendSetDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index e1238852b7..d93ee80b4c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateBackendSet.go.html to see an example of how to use UpdateBackendSetRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateBackendSet.go.html to see an example of how to use UpdateBackendSetRequest. type UpdateBackendSetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -83,7 +83,7 @@ func (request UpdateBackendSetRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateBackendSetRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7c2e780513..762f891bd7 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -76,7 +76,7 @@ func (m UpdateHealthCheckerDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index c8eff6851d..954d670a7c 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateHealthChecker.go.html to see an example of how to use UpdateHealthCheckerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateHealthChecker.go.html to see an example of how to use UpdateHealthCheckerRequest. type UpdateHealthCheckerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -83,7 +83,7 @@ func (request UpdateHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateHealthCheckerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index fdc59ed7db..715e7d520f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -16,8 +16,8 @@ import ( ) // 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). +// For more information about listeners, see +// Listeners for Network Load Balancers (https://docs.oracle.com/iaas/Content/NetworkLoadBalancer/Listeners/listener-management.htm). type UpdateListenerDetails struct { // The name of the associated backend set. @@ -71,7 +71,7 @@ func (m UpdateListenerDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", 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 index e1bdb06f82..5b26ea3763 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateListener.go.html to see an example of how to use UpdateListenerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateListener.go.html to see an example of how to use UpdateListenerRequest. type UpdateListenerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -83,7 +83,7 @@ func (request UpdateListenerRequest) RetryPolicy() *common.RetryPolicy { func (request UpdateListenerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 7031782437..45dd3a9fc3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -44,17 +44,17 @@ type UpdateNetworkLoadBalancerDetails struct { AssignedIpv6 *string `mandatory:"false" json:"assignedIpv6"` // Free-form tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.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/Content/General/Concepts/resourcetags.htm). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // ZPR tags for this resource. Each tag 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). + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"oracle-zpr": {"td": {"value": "42", "mode": "audit"}}}` SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"` } @@ -73,7 +73,7 @@ func (m UpdateNetworkLoadBalancerDetails) ValidateEnumValue() (bool, error) { 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 true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/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 index dbd7c15a76..d8d5a458c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/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,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateNetworkLoadBalancer.go.html to see an example of how to use UpdateNetworkLoadBalancerRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateNetworkLoadBalancer.go.html to see an example of how to use UpdateNetworkLoadBalancerRequest. type UpdateNetworkLoadBalancerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -72,7 +72,7 @@ func (request UpdateNetworkLoadBalancerRequest) RetryPolicy() *common.RetryPolic func (request UpdateNetworkLoadBalancerRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index fa37e22dee..b6089613a3 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -21,7 +21,7 @@ import ( // * 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 + // An array of network security group OCIDs (https://docs.oracle.com/iaas/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: @@ -42,7 +42,7 @@ func (m UpdateNetworkSecurityGroupsDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 95d12f4917..723568651e 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -15,10 +15,10 @@ import ( // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateNetworkSecurityGroups.go.html to see an example of how to use UpdateNetworkSecurityGroupsRequest. +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/networkloadbalancer/UpdateNetworkSecurityGroups.go.html to see an example of how to use UpdateNetworkSecurityGroupsRequest. type UpdateNetworkSecurityGroupsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + // The OCID (https://docs.oracle.com/iaas/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. @@ -79,7 +79,7 @@ func (request UpdateNetworkSecurityGroupsRequest) RetryPolicy() *common.RetryPol func (request UpdateNetworkSecurityGroupsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } 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 index 919c53d3e1..733d142e7f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -68,7 +68,7 @@ func (m WorkRequest) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d5921aee5a..b1de41b6a6 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -33,7 +33,7 @@ func (m WorkRequestCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d8772504b3..1fbde5f2cf 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -19,7 +19,7 @@ import ( 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) + // (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) Code *string `mandatory:"true" json:"code"` // A human-readable description of the issue encountered. @@ -40,7 +40,7 @@ func (m WorkRequestError) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index d079c5a1c6..87182cac4a 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -33,7 +33,7 @@ func (m WorkRequestErrorCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 0b25f0b0ad..739a44e320 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -36,7 +36,7 @@ func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 1e5627ca49..45417e7aa9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -33,7 +33,7 @@ func (m WorkRequestLogEntryCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index 1203d73631..ba43d82963 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -48,7 +48,7 @@ func (m WorkRequestResource) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", 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 index cddc5c4f1e..87fc5dc060 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -68,7 +68,7 @@ func (m WorkRequestSummary) ValidateEnumValue() (bool, error) { } if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) } return false, nil } diff --git a/vendor/github.com/youmark/pkcs8/.gitignore b/vendor/github.com/youmark/pkcs8/.gitignore new file mode 100644 index 0000000000..836562412f --- /dev/null +++ b/vendor/github.com/youmark/pkcs8/.gitignore @@ -0,0 +1,23 @@ +# 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 diff --git a/vendor/github.com/youmark/pkcs8/LICENSE b/vendor/github.com/youmark/pkcs8/LICENSE new file mode 100644 index 0000000000..c939f44810 --- /dev/null +++ b/vendor/github.com/youmark/pkcs8/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 youmark + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vendor/github.com/youmark/pkcs8/README b/vendor/github.com/youmark/pkcs8/README new file mode 100644 index 0000000000..376fcaf64e --- /dev/null +++ b/vendor/github.com/youmark/pkcs8/README @@ -0,0 +1 @@ +pkcs8 package: implement PKCS#8 private key parsing and conversion as defined in RFC5208 and RFC5958 diff --git a/vendor/github.com/youmark/pkcs8/README.md b/vendor/github.com/youmark/pkcs8/README.md new file mode 100644 index 0000000000..ef6c762571 --- /dev/null +++ b/vendor/github.com/youmark/pkcs8/README.md @@ -0,0 +1,22 @@ +pkcs8 +=== +OpenSSL can generate private keys in both "traditional format" and PKCS#8 format. Newer applications are advised to use more secure PKCS#8 format. Go standard crypto package provides a [function](http://golang.org/pkg/crypto/x509/#ParsePKCS8PrivateKey) to parse private key in PKCS#8 format. There is a limitation to this function. It can only handle unencrypted PKCS#8 private keys. To use this function, the user has to save the private key in file without encryption, which is a bad practice to leave private keys unprotected on file systems. In addition, Go standard package lacks the functions to convert RSA/ECDSA private keys into PKCS#8 format. + +pkcs8 package fills the gap here. It implements functions to process private keys in PKCS#8 format, as defined in [RFC5208](https://tools.ietf.org/html/rfc5208) and [RFC5958](https://tools.ietf.org/html/rfc5958). It can handle both unencrypted PKCS#8 PrivateKeyInfo format and EncryptedPrivateKeyInfo format with PKCS#5 (v2.0) algorithms. + + +[**Godoc**](http://godoc.org/github.com/youmark/pkcs8) + +## Installation +Supports Go 1.10+. Release v1.1 is the last release supporting Go 1.9 + +```text +go get github.com/youmark/pkcs8 +``` +## dependency +This package depends on golang.org/x/crypto/pbkdf2 and golang.org/x/crypto/scrypt packages. Use the following command to retrieve them +```text +go get golang.org/x/crypto/pbkdf2 +go get golang.org/x/crypto/scrypt +``` + diff --git a/vendor/github.com/youmark/pkcs8/cipher.go b/vendor/github.com/youmark/pkcs8/cipher.go new file mode 100644 index 0000000000..2946c93e89 --- /dev/null +++ b/vendor/github.com/youmark/pkcs8/cipher.go @@ -0,0 +1,60 @@ +package pkcs8 + +import ( + "bytes" + "crypto/cipher" + "encoding/asn1" +) + +type cipherWithBlock struct { + oid asn1.ObjectIdentifier + ivSize int + keySize int + newBlock func(key []byte) (cipher.Block, error) +} + +func (c cipherWithBlock) IVSize() int { + return c.ivSize +} + +func (c cipherWithBlock) KeySize() int { + return c.keySize +} + +func (c cipherWithBlock) OID() asn1.ObjectIdentifier { + return c.oid +} + +func (c cipherWithBlock) Encrypt(key, iv, plaintext []byte) ([]byte, error) { + block, err := c.newBlock(key) + if err != nil { + return nil, err + } + return cbcEncrypt(block, key, iv, plaintext) +} + +func (c cipherWithBlock) Decrypt(key, iv, ciphertext []byte) ([]byte, error) { + block, err := c.newBlock(key) + if err != nil { + return nil, err + } + return cbcDecrypt(block, key, iv, ciphertext) +} + +func cbcEncrypt(block cipher.Block, key, iv, plaintext []byte) ([]byte, error) { + mode := cipher.NewCBCEncrypter(block, iv) + paddingLen := block.BlockSize() - (len(plaintext) % block.BlockSize()) + ciphertext := make([]byte, len(plaintext)+paddingLen) + copy(ciphertext, plaintext) + copy(ciphertext[len(plaintext):], bytes.Repeat([]byte{byte(paddingLen)}, paddingLen)) + mode.CryptBlocks(ciphertext, ciphertext) + return ciphertext, nil +} + +func cbcDecrypt(block cipher.Block, key, iv, ciphertext []byte) ([]byte, error) { + mode := cipher.NewCBCDecrypter(block, iv) + plaintext := make([]byte, len(ciphertext)) + mode.CryptBlocks(plaintext, ciphertext) + // TODO: remove padding + return plaintext, nil +} diff --git a/vendor/github.com/youmark/pkcs8/cipher_3des.go b/vendor/github.com/youmark/pkcs8/cipher_3des.go new file mode 100644 index 0000000000..5629664409 --- /dev/null +++ b/vendor/github.com/youmark/pkcs8/cipher_3des.go @@ -0,0 +1,24 @@ +package pkcs8 + +import ( + "crypto/des" + "encoding/asn1" +) + +var ( + oidDESEDE3CBC = asn1.ObjectIdentifier{1, 2, 840, 113549, 3, 7} +) + +func init() { + RegisterCipher(oidDESEDE3CBC, func() Cipher { + return TripleDESCBC + }) +} + +// TripleDESCBC is the 168-bit key 3DES cipher in CBC mode. +var TripleDESCBC = cipherWithBlock{ + ivSize: des.BlockSize, + keySize: 24, + newBlock: des.NewTripleDESCipher, + oid: oidDESEDE3CBC, +} diff --git a/vendor/github.com/youmark/pkcs8/cipher_aes.go b/vendor/github.com/youmark/pkcs8/cipher_aes.go new file mode 100644 index 0000000000..c0372d1eeb --- /dev/null +++ b/vendor/github.com/youmark/pkcs8/cipher_aes.go @@ -0,0 +1,84 @@ +package pkcs8 + +import ( + "crypto/aes" + "encoding/asn1" +) + +var ( + oidAES128CBC = asn1.ObjectIdentifier{2, 16, 840, 1, 101, 3, 4, 1, 2} + oidAES128GCM = asn1.ObjectIdentifier{2, 16, 840, 1, 101, 3, 4, 1, 6} + oidAES192CBC = asn1.ObjectIdentifier{2, 16, 840, 1, 101, 3, 4, 1, 22} + oidAES192GCM = asn1.ObjectIdentifier{2, 16, 840, 1, 101, 3, 4, 1, 26} + oidAES256CBC = asn1.ObjectIdentifier{2, 16, 840, 1, 101, 3, 4, 1, 42} + oidAES256GCM = asn1.ObjectIdentifier{2, 16, 840, 1, 101, 3, 4, 1, 46} +) + +func init() { + RegisterCipher(oidAES128CBC, func() Cipher { + return AES128CBC + }) + RegisterCipher(oidAES128GCM, func() Cipher { + return AES128GCM + }) + RegisterCipher(oidAES192CBC, func() Cipher { + return AES192CBC + }) + RegisterCipher(oidAES192GCM, func() Cipher { + return AES192GCM + }) + RegisterCipher(oidAES256CBC, func() Cipher { + return AES256CBC + }) + RegisterCipher(oidAES256GCM, func() Cipher { + return AES256GCM + }) +} + +// AES128CBC is the 128-bit key AES cipher in CBC mode. +var AES128CBC = cipherWithBlock{ + ivSize: aes.BlockSize, + keySize: 16, + newBlock: aes.NewCipher, + oid: oidAES128CBC, +} + +// AES128GCM is the 128-bit key AES cipher in GCM mode. +var AES128GCM = cipherWithBlock{ + ivSize: aes.BlockSize, + keySize: 16, + newBlock: aes.NewCipher, + oid: oidAES128GCM, +} + +// AES192CBC is the 192-bit key AES cipher in CBC mode. +var AES192CBC = cipherWithBlock{ + ivSize: aes.BlockSize, + keySize: 24, + newBlock: aes.NewCipher, + oid: oidAES192CBC, +} + +// AES192GCM is the 912-bit key AES cipher in GCM mode. +var AES192GCM = cipherWithBlock{ + ivSize: aes.BlockSize, + keySize: 24, + newBlock: aes.NewCipher, + oid: oidAES192GCM, +} + +// AES256CBC is the 256-bit key AES cipher in CBC mode. +var AES256CBC = cipherWithBlock{ + ivSize: aes.BlockSize, + keySize: 32, + newBlock: aes.NewCipher, + oid: oidAES256CBC, +} + +// AES256GCM is the 256-bit key AES cipher in GCM mode. +var AES256GCM = cipherWithBlock{ + ivSize: aes.BlockSize, + keySize: 32, + newBlock: aes.NewCipher, + oid: oidAES256GCM, +} diff --git a/vendor/github.com/youmark/pkcs8/kdf_pbkdf2.go b/vendor/github.com/youmark/pkcs8/kdf_pbkdf2.go new file mode 100644 index 0000000000..79697dd82b --- /dev/null +++ b/vendor/github.com/youmark/pkcs8/kdf_pbkdf2.go @@ -0,0 +1,91 @@ +package pkcs8 + +import ( + "crypto" + "crypto/sha1" + "crypto/sha256" + "crypto/x509/pkix" + "encoding/asn1" + "errors" + "hash" + + "golang.org/x/crypto/pbkdf2" +) + +var ( + oidPKCS5PBKDF2 = asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 5, 12} + oidHMACWithSHA1 = asn1.ObjectIdentifier{1, 2, 840, 113549, 2, 7} + oidHMACWithSHA256 = asn1.ObjectIdentifier{1, 2, 840, 113549, 2, 9} +) + +func init() { + RegisterKDF(oidPKCS5PBKDF2, func() KDFParameters { + return new(pbkdf2Params) + }) +} + +func newHashFromPRF(ai pkix.AlgorithmIdentifier) (func() hash.Hash, error) { + switch { + case len(ai.Algorithm) == 0 || ai.Algorithm.Equal(oidHMACWithSHA1): + return sha1.New, nil + case ai.Algorithm.Equal(oidHMACWithSHA256): + return sha256.New, nil + default: + return nil, errors.New("pkcs8: unsupported hash function") + } +} + +func newPRFParamFromHash(h crypto.Hash) (pkix.AlgorithmIdentifier, error) { + switch h { + case crypto.SHA1: + return pkix.AlgorithmIdentifier{ + Algorithm: oidHMACWithSHA1, + Parameters: asn1.RawValue{Tag: asn1.TagNull}}, nil + case crypto.SHA256: + return pkix.AlgorithmIdentifier{ + Algorithm: oidHMACWithSHA256, + Parameters: asn1.RawValue{Tag: asn1.TagNull}}, nil + } + return pkix.AlgorithmIdentifier{}, errors.New("pkcs8: unsupported hash function") +} + +type pbkdf2Params struct { + Salt []byte + IterationCount int + PRF pkix.AlgorithmIdentifier `asn1:"optional"` +} + +func (p pbkdf2Params) DeriveKey(password []byte, size int) (key []byte, err error) { + h, err := newHashFromPRF(p.PRF) + if err != nil { + return nil, err + } + return pbkdf2.Key(password, p.Salt, p.IterationCount, size, h), nil +} + +// PBKDF2Opts contains options for the PBKDF2 key derivation function. +type PBKDF2Opts struct { + SaltSize int + IterationCount int + HMACHash crypto.Hash +} + +func (p PBKDF2Opts) DeriveKey(password, salt []byte, size int) ( + key []byte, params KDFParameters, err error) { + + key = pbkdf2.Key(password, salt, p.IterationCount, size, p.HMACHash.New) + prfParam, err := newPRFParamFromHash(p.HMACHash) + if err != nil { + return nil, nil, err + } + params = pbkdf2Params{salt, p.IterationCount, prfParam} + return key, params, nil +} + +func (p PBKDF2Opts) GetSaltSize() int { + return p.SaltSize +} + +func (p PBKDF2Opts) OID() asn1.ObjectIdentifier { + return oidPKCS5PBKDF2 +} diff --git a/vendor/github.com/youmark/pkcs8/kdf_scrypt.go b/vendor/github.com/youmark/pkcs8/kdf_scrypt.go new file mode 100644 index 0000000000..36c4f4f595 --- /dev/null +++ b/vendor/github.com/youmark/pkcs8/kdf_scrypt.go @@ -0,0 +1,62 @@ +package pkcs8 + +import ( + "encoding/asn1" + + "golang.org/x/crypto/scrypt" +) + +var ( + oidScrypt = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 11591, 4, 11} +) + +func init() { + RegisterKDF(oidScrypt, func() KDFParameters { + return new(scryptParams) + }) +} + +type scryptParams struct { + Salt []byte + CostParameter int + BlockSize int + ParallelizationParameter int +} + +func (p scryptParams) DeriveKey(password []byte, size int) (key []byte, err error) { + return scrypt.Key(password, p.Salt, p.CostParameter, p.BlockSize, + p.ParallelizationParameter, size) +} + +// ScryptOpts contains options for the scrypt key derivation function. +type ScryptOpts struct { + SaltSize int + CostParameter int + BlockSize int + ParallelizationParameter int +} + +func (p ScryptOpts) DeriveKey(password, salt []byte, size int) ( + key []byte, params KDFParameters, err error) { + + key, err = scrypt.Key(password, salt, p.CostParameter, p.BlockSize, + p.ParallelizationParameter, size) + if err != nil { + return nil, nil, err + } + params = scryptParams{ + BlockSize: p.BlockSize, + CostParameter: p.CostParameter, + ParallelizationParameter: p.ParallelizationParameter, + Salt: salt, + } + return key, params, nil +} + +func (p ScryptOpts) GetSaltSize() int { + return p.SaltSize +} + +func (p ScryptOpts) OID() asn1.ObjectIdentifier { + return oidScrypt +} diff --git a/vendor/github.com/youmark/pkcs8/pkcs8.go b/vendor/github.com/youmark/pkcs8/pkcs8.go new file mode 100644 index 0000000000..f27f627523 --- /dev/null +++ b/vendor/github.com/youmark/pkcs8/pkcs8.go @@ -0,0 +1,309 @@ +// Package pkcs8 implements functions to parse and convert private keys in PKCS#8 format, as defined in RFC5208 and RFC5958 +package pkcs8 + +import ( + "crypto" + "crypto/ecdsa" + "crypto/rand" + "crypto/rsa" + "crypto/x509" + "crypto/x509/pkix" + "encoding/asn1" + "errors" + "fmt" +) + +// DefaultOpts are the default options for encrypting a key if none are given. +// The defaults can be changed by the library user. +var DefaultOpts = &Opts{ + Cipher: AES256CBC, + KDFOpts: PBKDF2Opts{ + SaltSize: 8, + IterationCount: 10000, + HMACHash: crypto.SHA256, + }, +} + +// KDFOpts contains options for a key derivation function. +// An implementation of this interface must be specified when encrypting a PKCS#8 key. +type KDFOpts interface { + // DeriveKey derives a key of size bytes from the given password and salt. + // It returns the key and the ASN.1-encodable parameters used. + DeriveKey(password, salt []byte, size int) (key []byte, params KDFParameters, err error) + // GetSaltSize returns the salt size specified. + GetSaltSize() int + // OID returns the OID of the KDF specified. + OID() asn1.ObjectIdentifier +} + +// KDFParameters contains parameters (salt, etc.) for a key deriviation function. +// It must be a ASN.1-decodable structure. +// An implementation of this interface is created when decoding an encrypted PKCS#8 key. +type KDFParameters interface { + // DeriveKey derives a key of size bytes from the given password. + // It uses the salt from the decoded parameters. + DeriveKey(password []byte, size int) (key []byte, err error) +} + +var kdfs = make(map[string]func() KDFParameters) + +// RegisterKDF registers a function that returns a new instance of the given KDF +// parameters. This allows the library to support client-provided KDFs. +func RegisterKDF(oid asn1.ObjectIdentifier, params func() KDFParameters) { + kdfs[oid.String()] = params +} + +// Cipher represents a cipher for encrypting the key material. +type Cipher interface { + // IVSize returns the IV size of the cipher, in bytes. + IVSize() int + // KeySize returns the key size of the cipher, in bytes. + KeySize() int + // Encrypt encrypts the key material. + Encrypt(key, iv, plaintext []byte) ([]byte, error) + // Decrypt decrypts the key material. + Decrypt(key, iv, ciphertext []byte) ([]byte, error) + // OID returns the OID of the cipher specified. + OID() asn1.ObjectIdentifier +} + +var ciphers = make(map[string]func() Cipher) + +// RegisterCipher registers a function that returns a new instance of the given +// cipher. This allows the library to support client-provided ciphers. +func RegisterCipher(oid asn1.ObjectIdentifier, cipher func() Cipher) { + ciphers[oid.String()] = cipher +} + +// Opts contains options for encrypting a PKCS#8 key. +type Opts struct { + Cipher Cipher + KDFOpts KDFOpts +} + +// Unecrypted PKCS8 +var ( + oidPBES2 = asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 5, 13} +) + +type encryptedPrivateKeyInfo struct { + EncryptionAlgorithm pkix.AlgorithmIdentifier + EncryptedData []byte +} + +type pbes2Params struct { + KeyDerivationFunc pkix.AlgorithmIdentifier + EncryptionScheme pkix.AlgorithmIdentifier +} + +type privateKeyInfo struct { + Version int + PrivateKeyAlgorithm pkix.AlgorithmIdentifier + PrivateKey []byte +} + +func parseKeyDerivationFunc(keyDerivationFunc pkix.AlgorithmIdentifier) (KDFParameters, error) { + oid := keyDerivationFunc.Algorithm.String() + newParams, ok := kdfs[oid] + if !ok { + return nil, fmt.Errorf("pkcs8: unsupported KDF (OID: %s)", oid) + } + params := newParams() + _, err := asn1.Unmarshal(keyDerivationFunc.Parameters.FullBytes, params) + if err != nil { + return nil, errors.New("pkcs8: invalid KDF parameters") + } + return params, nil +} + +func parseEncryptionScheme(encryptionScheme pkix.AlgorithmIdentifier) (Cipher, []byte, error) { + oid := encryptionScheme.Algorithm.String() + newCipher, ok := ciphers[oid] + if !ok { + return nil, nil, fmt.Errorf("pkcs8: unsupported cipher (OID: %s)", oid) + } + cipher := newCipher() + var iv []byte + if _, err := asn1.Unmarshal(encryptionScheme.Parameters.FullBytes, &iv); err != nil { + return nil, nil, errors.New("pkcs8: invalid cipher parameters") + } + return cipher, iv, nil +} + +// ParsePrivateKey parses a DER-encoded PKCS#8 private key. +// Password can be nil. +// This is equivalent to ParsePKCS8PrivateKey. +func ParsePrivateKey(der []byte, password []byte) (interface{}, KDFParameters, error) { + // No password provided, assume the private key is unencrypted + if len(password) == 0 { + privateKey, err := x509.ParsePKCS8PrivateKey(der) + return privateKey, nil, err + } + + // Use the password provided to decrypt the private key + var privKey encryptedPrivateKeyInfo + if _, err := asn1.Unmarshal(der, &privKey); err != nil { + return nil, nil, errors.New("pkcs8: only PKCS #5 v2.0 supported") + } + + if !privKey.EncryptionAlgorithm.Algorithm.Equal(oidPBES2) { + return nil, nil, errors.New("pkcs8: only PBES2 supported") + } + + var params pbes2Params + if _, err := asn1.Unmarshal(privKey.EncryptionAlgorithm.Parameters.FullBytes, ¶ms); err != nil { + return nil, nil, errors.New("pkcs8: invalid PBES2 parameters") + } + + cipher, iv, err := parseEncryptionScheme(params.EncryptionScheme) + if err != nil { + return nil, nil, err + } + + kdfParams, err := parseKeyDerivationFunc(params.KeyDerivationFunc) + if err != nil { + return nil, nil, err + } + + keySize := cipher.KeySize() + symkey, err := kdfParams.DeriveKey(password, keySize) + if err != nil { + return nil, nil, err + } + + encryptedKey := privKey.EncryptedData + decryptedKey, err := cipher.Decrypt(symkey, iv, encryptedKey) + if err != nil { + return nil, nil, err + } + + key, err := x509.ParsePKCS8PrivateKey(decryptedKey) + if err != nil { + return nil, nil, errors.New("pkcs8: incorrect password") + } + return key, kdfParams, nil +} + +// MarshalPrivateKey encodes a private key into DER-encoded PKCS#8 with the given options. +// Password can be nil. +func MarshalPrivateKey(priv interface{}, password []byte, opts *Opts) ([]byte, error) { + if len(password) == 0 { + return x509.MarshalPKCS8PrivateKey(priv) + } + + if opts == nil { + opts = DefaultOpts + } + + // Convert private key into PKCS8 format + pkey, err := x509.MarshalPKCS8PrivateKey(priv) + if err != nil { + return nil, err + } + + encAlg := opts.Cipher + salt := make([]byte, opts.KDFOpts.GetSaltSize()) + _, err = rand.Read(salt) + if err != nil { + return nil, err + } + iv := make([]byte, encAlg.IVSize()) + _, err = rand.Read(iv) + if err != nil { + return nil, err + } + key, kdfParams, err := opts.KDFOpts.DeriveKey(password, salt, encAlg.KeySize()) + if err != nil { + return nil, err + } + + encryptedKey, err := encAlg.Encrypt(key, iv, pkey) + if err != nil { + return nil, err + } + + marshalledParams, err := asn1.Marshal(kdfParams) + if err != nil { + return nil, err + } + keyDerivationFunc := pkix.AlgorithmIdentifier{ + Algorithm: opts.KDFOpts.OID(), + Parameters: asn1.RawValue{FullBytes: marshalledParams}, + } + marshalledIV, err := asn1.Marshal(iv) + if err != nil { + return nil, err + } + encryptionScheme := pkix.AlgorithmIdentifier{ + Algorithm: encAlg.OID(), + Parameters: asn1.RawValue{FullBytes: marshalledIV}, + } + + encryptionAlgorithmParams := pbes2Params{ + EncryptionScheme: encryptionScheme, + KeyDerivationFunc: keyDerivationFunc, + } + marshalledEncryptionAlgorithmParams, err := asn1.Marshal(encryptionAlgorithmParams) + if err != nil { + return nil, err + } + encryptionAlgorithm := pkix.AlgorithmIdentifier{ + Algorithm: oidPBES2, + Parameters: asn1.RawValue{FullBytes: marshalledEncryptionAlgorithmParams}, + } + + encryptedPkey := encryptedPrivateKeyInfo{ + EncryptionAlgorithm: encryptionAlgorithm, + EncryptedData: encryptedKey, + } + + return asn1.Marshal(encryptedPkey) +} + +// ParsePKCS8PrivateKey parses encrypted/unencrypted private keys in PKCS#8 format. To parse encrypted private keys, a password of []byte type should be provided to the function as the second parameter. +func ParsePKCS8PrivateKey(der []byte, v ...[]byte) (interface{}, error) { + var password []byte + if len(v) > 0 { + password = v[0] + } + privateKey, _, err := ParsePrivateKey(der, password) + return privateKey, err +} + +// ParsePKCS8PrivateKeyRSA parses encrypted/unencrypted private keys in PKCS#8 format. To parse encrypted private keys, a password of []byte type should be provided to the function as the second parameter. +func ParsePKCS8PrivateKeyRSA(der []byte, v ...[]byte) (*rsa.PrivateKey, error) { + key, err := ParsePKCS8PrivateKey(der, v...) + if err != nil { + return nil, err + } + typedKey, ok := key.(*rsa.PrivateKey) + if !ok { + return nil, errors.New("key block is not of type RSA") + } + return typedKey, nil +} + +// ParsePKCS8PrivateKeyECDSA parses encrypted/unencrypted private keys in PKCS#8 format. To parse encrypted private keys, a password of []byte type should be provided to the function as the second parameter. +func ParsePKCS8PrivateKeyECDSA(der []byte, v ...[]byte) (*ecdsa.PrivateKey, error) { + key, err := ParsePKCS8PrivateKey(der, v...) + if err != nil { + return nil, err + } + typedKey, ok := key.(*ecdsa.PrivateKey) + if !ok { + return nil, errors.New("key block is not of type ECDSA") + } + return typedKey, nil +} + +// ConvertPrivateKeyToPKCS8 converts the private key into PKCS#8 format. +// To encrypt the private key, the password of []byte type should be provided as the second parameter. +// +// The only supported key types are RSA and ECDSA (*rsa.PrivateKey or *ecdsa.PrivateKey for priv) +func ConvertPrivateKeyToPKCS8(priv interface{}, v ...[]byte) ([]byte, error) { + var password []byte + if len(v) > 0 { + password = v[0] + } + return MarshalPrivateKey(priv, password, nil) +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 95d2c9f8d8..9ca3b1932e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -411,8 +411,8 @@ github.com/opencontainers/image-spec/specs-go/v1 ## explicit; go 1.19 github.com/opencontainers/selinux/go-selinux github.com/opencontainers/selinux/pkg/pwalkdir -# github.com/oracle/oci-go-sdk/v65 v65.79.0 -## explicit; go 1.13 +# github.com/oracle/oci-go-sdk/v65 v65.105.0 +## explicit; go 1.23.0 github.com/oracle/oci-go-sdk/v65/common github.com/oracle/oci-go-sdk/v65/common/auth github.com/oracle/oci-go-sdk/v65/common/utils @@ -520,6 +520,9 @@ github.com/xeipuuv/gojsonschema # github.com/xlab/treeprint v1.2.0 ## explicit; go 1.13 github.com/xlab/treeprint +# github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 +## explicit; go 1.17 +github.com/youmark/pkcs8 # go.etcd.io/etcd/api/v3 v3.5.21 ## explicit; go 1.23.0 go.etcd.io/etcd/api/v3/authpb From 4843fa1cf985d70fa4e0ec4b51ee4d6d5a226b1e Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Thu, 19 Feb 2026 10:37:58 +0530 Subject: [PATCH 02/24] Building arch specifc images to not have manifest list --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8075f8a225..f7721aa69c 100644 --- a/Makefile +++ b/Makefile @@ -147,9 +147,9 @@ run-volume-provisioner-dev: BUILD_ARGS = --build-arg CI_IMAGE_REGISTRY="$(CI_IMAGE_REGISTRY)" --build-arg COMPONENT="$(COMPONENT)" image: docker build $(BUILD_ARGS) \ - -t $(IMAGE)-amd64:$(VERSION) . + -t $(IMAGE)-amd64:$(VERSION) --provenance false . docker build $(BUILD_ARGS) \ - -t $(IMAGE)-arm64:$(VERSION) -f Dockerfile_arm_all . + -t $(IMAGE)-arm64:$(VERSION) --provenance false -f Dockerfile_arm_all . .PHONY: push push: image From 2d8fe6dd1633c7615157b6314733ee4b326b9fe3 Mon Sep 17 00:00:00 2001 From: Yashwant Gohokar Date: Mon, 7 Jul 2025 10:56:14 +0530 Subject: [PATCH 03/24] Fixing e2e flakiness --- test/e2e/cloud-provider-oci/boot_volume.go | 111 +++++++++--------- .../csi_snapshot_restore.go | 3 +- test/e2e/framework/pvc_util.go | 2 +- test/e2e/framework/service_util.go | 2 + 4 files changed, 59 insertions(+), 59 deletions(-) diff --git a/test/e2e/cloud-provider-oci/boot_volume.go b/test/e2e/cloud-provider-oci/boot_volume.go index c5d58bd058..da975ce9df 100644 --- a/test/e2e/cloud-provider-oci/boot_volume.go +++ b/test/e2e/cloud-provider-oci/boot_volume.go @@ -27,69 +27,66 @@ import ( var _ = Describe("Boot volume tests", func() { f := framework.NewBackupFramework("csi-basic") Context("[cloudprovider][storage][csi][boot-volume]", func() { - It("Boot volume as CSI data volume", func() { - pvcJig := framework.NewPVCTestJig(f.ClientSet, "csi-boot-volume") - compartmentId := "" - if setupF.Compartment1 != "" { - compartmentId = setupF.Compartment1 - } else if f.CloudProviderConfig.CompartmentID != "" { - compartmentId = f.CloudProviderConfig.CompartmentID - } else if f.CloudProviderConfig.Auth.CompartmentID != "" { - compartmentId = f.CloudProviderConfig.Auth.CompartmentID - } else { - framework.Failf("Compartment Id undefined.") - } + It("Boot volume tests", func() { + By("Boot volume as CSI data volume", func() { + pvcJig := framework.NewPVCTestJig(f.ClientSet, "csi-boot-volume") + compartmentId := "" + if setupF.Compartment1 != "" { + compartmentId = setupF.Compartment1 + } else if f.CloudProviderConfig.CompartmentID != "" { + compartmentId = f.CloudProviderConfig.CompartmentID + } else if f.CloudProviderConfig.Auth.CompartmentID != "" { + compartmentId = f.CloudProviderConfig.Auth.CompartmentID + } else { + framework.Failf("Compartment Id undefined.") + } - scName := f.CreateStorageClassOrFail(f.Namespace.Name, setupF.BlockProvisionerName, - map[string]string{framework.AttachmentType: framework.AttachmentTypeISCSI}, - pvcJig.Labels, "WaitForFirstConsumer", false, "Retain", nil) - opts := framework.Options{ - BlockProvisionerName: setupF.BlockProvisionerName, - } - pvc, bootvolumeId := pvcJig.CreateAndAwaitStaticBootVolumePVCOrFailCSI(f.ComputeClient, f.BlockStorageClient, f.Namespace.Name, compartmentId, setupF.AdLocation, framework.MinVolumeBlock, scName, nil, v1.PersistentVolumeBlock, v1.ReadWriteOnce, v1.ClaimPending, opts) - f.VolumeIds = append(f.VolumeIds, pvc.Spec.VolumeName) + scName := f.CreateStorageClassOrFail(f.Namespace.Name, setupF.BlockProvisionerName, + map[string]string{framework.AttachmentType: framework.AttachmentTypeISCSI}, + pvcJig.Labels, "WaitForFirstConsumer", false, "Retain", nil) + opts := framework.Options{ + BlockProvisionerName: setupF.BlockProvisionerName, + } + pvc, bootvolumeId := pvcJig.CreateAndAwaitStaticBootVolumePVCOrFailCSI(f.ComputeClient, f.BlockStorageClient, f.Namespace.Name, compartmentId, setupF.AdLocation, framework.MinVolumeBlock, scName, nil, v1.PersistentVolumeBlock, v1.ReadWriteOnce, v1.ClaimPending, opts) + f.VolumeIds = append(f.VolumeIds, pvc.Spec.VolumeName) - podName := pvcJig.NewPodForCSI("app1", f.Namespace.Name, pvc.Name, setupF.AdLabel, v1.PersistentVolumeBlock) + podName := pvcJig.NewPodForCSI("app1", f.Namespace.Name, pvc.Name, setupF.AdLabel, v1.PersistentVolumeBlock) - pvcJig.DeletePod(f.Namespace.Name, podName, 7*time.Minute) - pvcJig.DeleteBootVolume(f.BlockStorageClient, bootvolumeId, 5*time.Minute) - _ = f.DeleteStorageClass(f.Namespace.Name) - }) - }) -}) + pvcJig.DeletePod(f.Namespace.Name, podName, 7*time.Minute) + pvcJig.DeleteBootVolume(f.BlockStorageClient, bootvolumeId, 5*time.Minute) + _ = f.DeleteStorageClass(f.Namespace.Name) + }) -var _ = Describe("Boot volume gating test", func() { - f := framework.NewBackupFramework("csi-basic") - Context("[cloudprovider][storage][csi][boot-volume]", func() { - It("Attach boot volume fails with volumeMode set to Filesystem", func() { - pvcJig := framework.NewPVCTestJig(f.ClientSet, "csi-boot-vol-e2e-tests") - compartmentId := "" - if setupF.Compartment1 != "" { - compartmentId = setupF.Compartment1 - } else if f.CloudProviderConfig.CompartmentID != "" { - compartmentId = f.CloudProviderConfig.CompartmentID - } else if f.CloudProviderConfig.Auth.CompartmentID != "" { - compartmentId = f.CloudProviderConfig.Auth.CompartmentID - } else { - framework.Failf("Compartment Id undefined.") - } + By("Attach boot volume fails with volumeMode set to Filesystem", func() { + pvcJig := framework.NewPVCTestJig(f.ClientSet, "csi-boot-vol-e2e-tests") + compartmentId := "" + if setupF.Compartment1 != "" { + compartmentId = setupF.Compartment1 + } else if f.CloudProviderConfig.CompartmentID != "" { + compartmentId = f.CloudProviderConfig.CompartmentID + } else if f.CloudProviderConfig.Auth.CompartmentID != "" { + compartmentId = f.CloudProviderConfig.Auth.CompartmentID + } else { + framework.Failf("Compartment Id undefined.") + } - scName := f.CreateStorageClassOrFail(f.Namespace.Name, "blockvolume.csi.oraclecloud.com", - map[string]string{framework.AttachmentType: framework.AttachmentTypeISCSI}, - pvcJig.Labels, "WaitForFirstConsumer", false, "Retain", nil) - opts := framework.Options{ - BlockProvisionerName: setupF.BlockProvisionerName, - } - pvc, bootvolumeId := pvcJig.CreateAndAwaitStaticBootVolumePVCOrFailCSI(f.ComputeClient, f.BlockStorageClient, f.Namespace.Name, compartmentId, setupF.AdLocation, framework.MinVolumeBlock, scName, nil, v1.PersistentVolumeFilesystem, v1.ReadWriteOnce, v1.ClaimPending, opts) - pvcJig.NewPodForCSIWithoutWait("app1", f.Namespace.Name, pvc.Name, setupF.AdLabel) - err := pvcJig.WaitTimeoutForPodRunningInNamespace("app1", f.Namespace.Name, 7*time.Minute) - if err == nil { - framework.Failf("Pod went to running state for gated condition") - } + scName := f.CreateStorageClassOrFail(f.Namespace.Name, setupF.BlockProvisionerName, + map[string]string{framework.AttachmentType: framework.AttachmentTypeISCSI}, + pvcJig.Labels, "WaitForFirstConsumer", false, "Retain", nil) + opts := framework.Options{ + BlockProvisionerName: setupF.BlockProvisionerName, + } + pvc, bootvolumeId := pvcJig.CreateAndAwaitStaticBootVolumePVCOrFailCSI(f.ComputeClient, f.BlockStorageClient, f.Namespace.Name, compartmentId, setupF.AdLocation, framework.MinVolumeBlock, scName, nil, v1.PersistentVolumeFilesystem, v1.ReadWriteOnce, v1.ClaimPending, opts) + pvcJig.NewPodForCSIWithoutWait("app1", f.Namespace.Name, pvc.Name, setupF.AdLabel) + err := pvcJig.WaitTimeoutForPodRunningInNamespace("app1", f.Namespace.Name, 7*time.Minute) + if err == nil { + framework.Failf("Pod went to running state for gated condition") + } - pvcJig.DeletePod(f.Namespace.Name, "app1", 7*time.Minute) - pvcJig.DeleteBootVolume(f.BlockStorageClient, bootvolumeId, 5*time.Minute) - _ = f.DeleteStorageClass(f.Namespace.Name) + pvcJig.DeletePod(f.Namespace.Name, "app1", 7*time.Minute) + pvcJig.DeleteBootVolume(f.BlockStorageClient, bootvolumeId, 5 * time.Minute) + _ = f.DeleteStorageClass(f.Namespace.Name) + }) }) }) }) diff --git a/test/e2e/cloud-provider-oci/csi_snapshot_restore.go b/test/e2e/cloud-provider-oci/csi_snapshot_restore.go index 9ff332487a..1b2d141173 100644 --- a/test/e2e/cloud-provider-oci/csi_snapshot_restore.go +++ b/test/e2e/cloud-provider-oci/csi_snapshot_restore.go @@ -305,7 +305,8 @@ var _ = Describe("Raw Block Volume Snapshot Creation and Restore", func() { vscontentName := pvcJig.CreateVolumeSnapshotContentOrFail(f.Namespace.Name+"-e2e-snapshot-vsc", setupF.BlockProvisionerName, backupOCID, ReclaimPolicyDelete, restoreVsName, f.Namespace.Name, v1.PersistentVolumeBlock) pvcJig.CreateAndAwaitVolumeSnapshotStaticOrFail(restoreVsName, f.Namespace.Name, vscontentName) - + //Waiting for volume snapshot content to be created and status field to be populated + time.Sleep(1 * time.Minute) pvcRestore := pvcJig.CreateAndAwaitPVCOrFailSnapshotSource(f.Namespace.Name, framework.MinVolumeBlock, scName, restoreVsName, v1.ReadWriteOnce, v1.ClaimPending, true, nil) podRestoreName := pvcJig.CreateAndAwaitNginxPodOrFail(f.Namespace.Name, pvcRestore, KeepAliveCommandBlock) pvcJig.CheckDataInBlockDevice(f.Namespace.Name, podRestoreName, "Hello World") diff --git a/test/e2e/framework/pvc_util.go b/test/e2e/framework/pvc_util.go index b3ddefd6ad..0fdb2d7a78 100644 --- a/test/e2e/framework/pvc_util.go +++ b/test/e2e/framework/pvc_util.go @@ -779,8 +779,8 @@ func (j *PVCTestJig) CreateBootVolume(c ocicore.ComputeClient, bs ocicore.Blocks if len(attachmentsResp.Items) == 0 { Failf("No boot volume attachment found for instance %s", *instance.Id) } - attachment := attachmentsResp.Items[0] + Logf("Cloning boot volume %s", *attachment.BootVolumeId) resp, err := bs.CreateBootVolume(ctx, ocicore.CreateBootVolumeRequest{ CreateBootVolumeDetails: ocicore.CreateBootVolumeDetails{ diff --git a/test/e2e/framework/service_util.go b/test/e2e/framework/service_util.go index e3a9b22159..dbed079305 100644 --- a/test/e2e/framework/service_util.go +++ b/test/e2e/framework/service_util.go @@ -73,6 +73,8 @@ const ( LoadBalancerCreateTimeoutDefault = 20 * time.Minute LoadBalancerCreateTimeoutLarge = 2 * time.Hour + LoadBalancerDeleteTimeoutDefault = 5 * time.Minute + // Time required by the loadbalancer to cleanup, proportional to numApps/Ing. // Bring the cleanup timeout back down to 5m once b/33588344 is resolved. LoadBalancerCleanupTimeout = 15 * time.Minute From 73324672c31ed2f3f3be9479b17edfe4b9cba87a Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Thu, 28 Aug 2025 19:05:53 +0530 Subject: [PATCH 04/24] Propagate CSI Controller Publish/Unpublish errors to POD Events and VolumeAttachment object --- pkg/csi-util/utils.go | 77 +++++++++++-- pkg/csi-util/utils_test.go | 155 +++++++++++++++++++++++++++ pkg/csi/driver/bv_controller.go | 50 ++++----- pkg/csi/driver/bv_controller_test.go | 9 +- 4 files changed, 252 insertions(+), 39 deletions(-) diff --git a/pkg/csi-util/utils.go b/pkg/csi-util/utils.go index 3aed4ad309..6187c09020 100644 --- a/pkg/csi-util/utils.go +++ b/pkg/csi-util/utils.go @@ -27,10 +27,10 @@ import ( "sync" "time" - "k8s.io/apimachinery/pkg/util/wait" - "github.com/container-storage-interface/spec/lib/go/csi" + "github.com/oracle/oci-go-sdk/v65/common" "github.com/oracle/oci-go-sdk/v65/core" + "github.com/pkg/errors" "go.uber.org/zap" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -38,6 +38,7 @@ import ( kubeAPI "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/sets" + "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" @@ -117,7 +118,7 @@ type NodeMetadata struct { // CSIConfig represents the structure of the ConfigMap data. type CSIConfig struct { - Lustre *DriverConfig `yaml:"lustre"` + Lustre *DriverConfig `yaml:"lustre"` IsLoaded bool } @@ -144,14 +145,14 @@ func (u *Util) LookupNodeID(k kubernetes.Interface, nodeName string) (string, er func (u *Util) WaitForKubeApiServerToBeReachableWithContext(ctx context.Context, k kubernetes.Interface, backOffCap time.Duration) { - waitForKubeApiServerCtx, waitForKubeApiServerCtxCancel := context.WithTimeout(ctx, time.Second * 45) + waitForKubeApiServerCtx, waitForKubeApiServerCtxCancel := context.WithTimeout(ctx, time.Second*45) defer waitForKubeApiServerCtxCancel() backoff := wait.Backoff{ Duration: 1 * time.Second, Factor: 2.0, Steps: 5, - Cap: backOffCap, + Cap: backOffCap, } wait.ExponentialBackoffWithContext( @@ -171,9 +172,9 @@ func (u *Util) WaitForKubeApiServerToBeReachableWithContext(ctx context.Context, ) } -func (u *Util) LoadNodeMetadataFromApiServer(ctx context.Context, k kubernetes.Interface, nodeID string, nodeMetadata *NodeMetadata) (error) { +func (u *Util) LoadNodeMetadataFromApiServer(ctx context.Context, k kubernetes.Interface, nodeID string, nodeMetadata *NodeMetadata) error { - u.WaitForKubeApiServerToBeReachableWithContext(ctx, k, time.Second * 30) + u.WaitForKubeApiServerToBeReachableWithContext(ctx, k, time.Second*30) node, err := k.CoreV1().Nodes().Get(ctx, nodeID, metav1.GetOptions{}) @@ -210,7 +211,7 @@ func (u *Util) LoadNodeMetadataFromApiServer(ctx context.Context, k kubernetes.I u.Logger.With("nodeId", nodeID, "nodeMetadata", nodeMetadata).Info("Node IP family identified.") } nodeMetadata.IsNodeMetadataLoaded = true - return nil + return nil } // waitForPathToExist waits for for a given filesystem path to exist. @@ -652,9 +653,67 @@ func LoadCSIConfigFromConfigMap(csiConfig *CSIConfig, k kubernetes.Interface, co if lustreConfig, exists := cm.Data["lustre"]; exists { if err := yaml.Unmarshal([]byte(lustreConfig), &csiConfig.Lustre); err != nil { - logger.Debugf("Failed to parse lustre key in config map %v. Error: %v",configMapName, err) + logger.Debugf("Failed to parse lustre key in config map %v. Error: %v", configMapName, err) return } logger.Infof("Successfully loaded ConfigMap %v. Using customized configuration for csi driver.", configMapName) } } + +// GetOCIServiceError checks if error is OCI Service Error and returns a structured error message +// including service name, HTTP status, error code, message, and operation name. +func GetOCIServiceError(err error) string { + // Early return for invalid inputs + errorMsg := "" + if err == nil { + return errorMsg + } + // Check for OCI service error and format structured message if present + if serviceErr, ok := common.IsServiceErrorRichInfo(errors.Cause(err)); ok { + errorMsg = fmt.Sprintf(`Error returned by %s Service. Http Status Code: %d. Error Code: %s. Message: %s. Operation Name: %s`, + serviceErr.GetTargetService(), serviceErr.GetHTTPStatusCode(), serviceErr.GetCode(), serviceErr.GetMessage(), serviceErr.GetOperationName()) + } else { + errorMsg = err.Error() + } + return errorMsg +} + +// TruncateError truncates an error message to a maximum byte length +// If the formatted message exceeds maxBytes, it is truncated with "..." suffix, +// ensuring no partial UTF-8 characters are left at the end. +// +// Parameters: +// - err: The error to truncate. If nil, returns empty string. +// - maxBytes: The maximum byte length for the output. If <= 0, returns empty string. +// +// Returns: +// - The truncated error message as a string. +func TruncateError(err error, maxBytes int) error { + + // Early return for invalid inputs + errorMsg := "" + if maxBytes <= 0 || err == nil { + return errors.New(errorMsg) + } + errorMsg = err.Error() + bytesMsg := []byte(errorMsg) + if len(bytesMsg) <= maxBytes { + return err + } + + // Prepare truncation with suffix due to error being larger than maxBytes. Returns truncated error if maxBytes are less than 3(suffix length). + suffix := "..." + if maxBytes < len(suffix) { + return errors.New(string(bytesMsg[:maxBytes])) + } + suffixBytes := []byte(suffix) + truncLen := maxBytes - len(suffixBytes) + + // Ensure truncation doesn't split multi-byte characters (e.g., UTF-8) + // by finding the last valid rune boundary + for truncLen > 0 && (bytesMsg[truncLen]&0xc0) == 0x80 { + truncLen-- + } + + return errors.New(string(bytesMsg[:truncLen]) + suffix) +} diff --git a/pkg/csi-util/utils_test.go b/pkg/csi-util/utils_test.go index dad37fcd59..3035828651 100644 --- a/pkg/csi-util/utils_test.go +++ b/pkg/csi-util/utils_test.go @@ -16,6 +16,7 @@ package csi_util import ( "context" + "errors" "fmt" "log" "os" @@ -26,8 +27,11 @@ import ( "time" "github.com/oracle/oci-cloud-controller-manager/pkg/util" + "github.com/oracle/oci-go-sdk/v65/common" "github.com/oracle/oci-go-sdk/v65/core" "go.uber.org/zap" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" "k8s.io/client-go/kubernetes" "k8s.io/utils/pointer" ) @@ -845,3 +849,154 @@ func Test_LoadCSIConfigFromConfigMap(t *testing.T) { } } + +// Mock for common.ServiceErrorRichInfo +type mockServiceError 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 common.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 (m *mockServiceError) GetTargetService() string { return m.TargetService } +func (m *mockServiceError) GetHTTPStatusCode() int { return m.StatusCode } +func (m *mockServiceError) GetCode() string { return m.Code } +func (m *mockServiceError) GetOpcRequestID() string { return m.OpcRequestID } +func (m *mockServiceError) GetMessage() string { return m.Message } +func (m *mockServiceError) GetOperationName() string { return m.OperationName } +func (m *mockServiceError) GetTimestamp() common.SDKTime { return m.Timestamp } +func (m *mockServiceError) GetRequestTarget() string { return m.RequestTarget } +func (m *mockServiceError) GetClientVersion() string { return m.ClientVersion } +func (m *mockServiceError) GetOperationReferenceLink() string { return m.OperationReferenceLink } +func (m *mockServiceError) GetErrorTroubleshootingLink() string { return m.ErrorTroubleshootingLink } +func (m *mockServiceError) Error() string { return m.Message } + +func TestGetOCIServiceError(t *testing.T) { + tests := []struct { + name string + err error + expected string + }{ + { + name: "nil error returns empty string", + err: nil, + expected: "", + }, + + { + name: "non-OCI error returns err.Error()", + err: errors.New("Timeout of waiting for condition. Lot of big text."), + expected: "Timeout of waiting for condition. Lot of big text.", + }, + { + name: "OCI service error returns formatted string", + err: &mockServiceError{ + TargetService: "Compute Service", + StatusCode: 400, + Code: "LimitExceeded", + OpcRequestID: "8239a6cbec18bed008924abe8b12416b/35C4EBDF5A7728341854B0685048586B/D66BF5A8491C409D1C61B18D343607A4", + Message: "Cannot attach volume ocid1.volume.oc1.phx.abyhqljrwv2qo35rdomkhvmgtrwr6wpkezzh6gb355tn7phtp5szt5hleqja to instance ocid1.instance.oc1.phx.anyhqljrh4gjgpyc2ighn7uq32unt2e4grzkw3ta37kxbi6c3z3xhlnx66aq because the instance already has the maximum number 16 of attached PV volumes for the shape VM.Standard.E5.Flex. To attach this volume, first detach an existing PV volume from the instance, and then try again..", + OperationName: "AttachVolume", + ClientVersion: "Oracle-GoSDK/xVersion", + RequestTarget: "https://iaas.us-phoenix-1.oraclecloud.com/20160918/volumeAttachments", + OperationReferenceLink: "Test", + ErrorTroubleshootingLink: "Test", + }, + expected: "Error returned by Compute Service Service. Http Status Code: 400. Error Code: LimitExceeded. Message: Cannot attach volume ocid1.volume.oc1.phx.abyhqljrwv2qo35rdomkhvmgtrwr6wpkezzh6gb355tn7phtp5szt5hleqja to instance ocid1.instance.oc1.phx.anyhqljrh4gjgpyc2ighn7uq32unt2e4grzkw3ta37kxbi6c3z3xhlnx66aq because the instance already has the maximum number 16 of attached PV volumes for the shape VM.Standard.E5.Flex. To attach this volume, first detach an existing PV volume from the instance, and then try again... Operation Name: AttachVolume", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got := GetOCIServiceError(tt.err) + if !strings.EqualFold(tt.expected, got) { + t.Errorf("GetOCIServiceError() = %s, want %s", got, tt.expected) + } + }) + } +} +func Test_TruncateError(t *testing.T) { + maxVolumeAttachDetachErrorMsgBytes := 1024 + + tests := []struct { + name string + err error + maxBytes int + expectedErr error + }{ + { + name: "Test the truncation is working properly", + err: errors.New("Timeout of waiting for condition. Lot of big text."), + maxBytes: 21, + expectedErr: errors.New("Timeout of waiting..."), + }, + { + name: "Test the truncation is working properly for errors created with status.Errorf", + err: status.Errorf(codes.Internal, "Timeout of waiting for condition. %s.", "Lot of big texttttttttttttttttt"), + maxBytes: 55, + expectedErr: errors.New("rpc error: code = Internal desc = Timeout of waiting..."), + }, + { + name: "error with multi-byte truncate in middle", + err: errors.New("éééérror"), + maxBytes: 6, + expectedErr: errors.New("é..."), + }, + { + name: "nil error", + err: nil, + maxBytes: 6, + expectedErr: errors.New(""), + }, + { + name: "empty error", + err: errors.New(""), + maxBytes: 6, + expectedErr: errors.New(""), + }, + { + name: "ensure suffix is not appended when maxBytes is less than 3", + err: errors.New("ab"), + maxBytes: 1, + expectedErr: errors.New("a"), + }, + { + name: "oci service error is truncated properly", + err: errors.New(GetOCIServiceError(&mockServiceError{ + TargetService: "Compute Service", + StatusCode: 400, + Code: "LimitExceeded", + OpcRequestID: "8239a6cbec18bed008924abe8b12416b/35C4EBDF5A7728341854B0685048586B/D66BF5A8491C409D1C61B18D343607A4", + Message: "Cannot attach volume ocid1.volume.oc1.phx.abyhqljrwv2qo35rdomkhvmgtrwr6wpkezzh6gb355tn7phtp5szt5hleqja to instance ocid1.instance.oc1.phx.anyhqljrh4gjgpyc2ighn7uq32unt2e4grzkw3ta37kxbi6c3z3xhlnx66aq because the instance already has the maximum number 16 of attached PV volumes for the shape VM.Standard.E5.Flex. To attach this volume, first detach an existing PV volume from the instance, and then try again..", + OperationName: "AttachVolume", + ClientVersion: "Oracle-GoSDK/xVersion", + RequestTarget: "https://iaas.us-phoenix-1.oraclecloud.com/20160918/volumeAttachments", + OperationReferenceLink: "Test", + ErrorTroubleshootingLink: "Test", + })), + maxBytes: maxVolumeAttachDetachErrorMsgBytes, + expectedErr: errors.New("Error returned by Compute Service Service. Http Status Code: 400. Error Code: LimitExceeded. Message: Cannot attach volume ocid1.volume.oc1.phx.abyhqljrwv2qo35rdomkhvmgtrwr6wpkezzh6gb355tn7phtp5szt5hleqja to instance ocid1.instance.oc1.phx.anyhqljrh4gjgpyc2ighn7uq32unt2e4grzkw3ta37kxbi6c3z3xhlnx66aq because the instance already has the maximum number 16 of attached PV volumes for the shape VM.Standard.E5.Flex. To attach this volume, first detach an existing PV volume from the instance, and then try again... Operation Name: AttachVolume"), + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + gotErr := TruncateError(tt.err, tt.maxBytes) + if !strings.EqualFold(tt.expectedErr.Error(), gotErr.Error()) { + t.Errorf("TruncateError() = %v, want %v", gotErr, tt.expectedErr) + } + }) + } +} diff --git a/pkg/csi/driver/bv_controller.go b/pkg/csi/driver/bv_controller.go index 57e8bbee22..cace64788c 100644 --- a/pkg/csi/driver/bv_controller.go +++ b/pkg/csi/driver/bv_controller.go @@ -65,10 +65,11 @@ const ( multipathEnabled = "multipathEnabled" multipathDevices = "multipathDevices" //device is the consistent device path that would be used for paravirtualized attachment - device = "device" - resourceTrackingFeatureFlagName = "CPO_ENABLE_RESOURCE_ATTRIBUTION" - OkeSystemTagNamesapce = "orcl-containerengine" - MaxDefinedTagPerVolume = 64 + device = "device" + resourceTrackingFeatureFlagName = "CPO_ENABLE_RESOURCE_ATTRIBUTION" + OkeSystemTagNamesapce = "orcl-containerengine" + MaxDefinedTagPerVolume = 64 + maxVolumeAttachDetachErrorMsgBytes = 1024 ) var ( @@ -624,7 +625,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.InvalidArgument, "failed to get ProviderID by nodeName. error : %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.InvalidArgument, "failed to get ProviderID by nodeName for node %s. error : %s", req.NodeId, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } id = client.MapProviderIDToInstanceID(id) dimensionsMap[metrics.InstanceIdDimension] = id @@ -662,7 +663,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex } if vpusValue > 10 { - return nil, status.Error(codes.InvalidArgument, "Only Boot Volumes with balanced performance are supported") + return nil, status.Errorf(codes.InvalidArgument, "Only Boot Volumes with balanced performance (10 vpus/gb) are supported. Boot volume %s has %v vpus/gb performance.", req.VolumeId, vpusValue) } } @@ -674,9 +675,8 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Unknown, "failed to get the attachment options. error : %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "failed to get the attachment options for instance %s. error : %s", id, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } - //in transit encryption is not supported for other attachment type than paravirtualized if volumeAttachmentOptions.enableInTransitEncryption && !volumeAttachmentOptions.useParavirtualizedAttachment { log.Errorf("node %s has in transit encryption enabled, but attachment type is not paravirtualized. invalid input", id) @@ -688,12 +688,12 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex compartmentID, err := util.LookupNodeCompartment(d.KubeClient, req.NodeId) if err != nil { - log.With(zap.Error(err)).With("instanceID", id).Errorf("failed to get compartmentID from node annotation: %s", util.CompartmentIDAnnotation) + log.With(zap.Error(err)).With("instanceID", id).Errorf("failed to get compartmentID from node annotation %s for node %s.", util.CompartmentIDAnnotation, req.NodeId) errorType = util.GetError(err) csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Unknown, "failed to get compartmentID from node annotation:. error : %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Unknown, "failed to get compartmentID from node annotation %s for node %s. error : %s", util.CompartmentIDAnnotation, req.NodeId, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } volumeAttachments, err := d.client.Compute().ListVolumeAttachments(ctx, compartmentID, req.VolumeId) @@ -704,7 +704,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, err + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "Failed to list volume attachments for volume %s. error : %s", req.VolumeId, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } var nodeVolumeAttachment core.VolumeAttachment @@ -723,7 +723,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Internal, "Error while waiting for volume to get detached before attaching: %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "Error while waiting for volume %s to get detached from instance %s before attaching to new instance. error: %s", req.VolumeId, *volumeAttachments[0].GetInstanceId(), csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } } else { // check for non-shareable and attached to other node @@ -760,7 +760,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Internal, "Failed to attach volume to the node: %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "Failed to attach volume %s to the instance %s. error: %s", req.VolumeId, id, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } } @@ -774,7 +774,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Internal, "Failed to generate publish context: %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "Failed to generate publish context for volume %s attachment request to instance %s. error : %s", req.VolumeId, id, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } return resp, nil } @@ -791,8 +791,8 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(util.ErrValidation, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Internal, "Failed to attach volume to node. "+ - "The volume already has a non-shareable attachment.") + return nil, status.Errorf(codes.Internal, "Failed to attach volume %s to node %s. "+ + "The volume already has a non-shareable attachment %s to instance %s.", req.VolumeId, id, *attachment.GetId(), *attachment.GetInstanceId()) } } } @@ -809,7 +809,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Internal, "failed paravirtualized attachment instance to volume. error : %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "failed paravirtualized volume attachment for volume %s to instance %s. error : %s", req.VolumeId, id, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } } else { nodeVolumeAttachment, err = d.client.Compute().AttachVolume(ctx, id, req.VolumeId, volumeAttachmentOptions.isShareable) @@ -820,7 +820,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Internal, "failed iscsi attachment instance to volume : %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "failed iscsi volume attachment for volume %s to instance %s. error : %s", req.VolumeId, id, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } } @@ -832,7 +832,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Internal, "Failed to attach volume to the node %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "Error occurred while waiting for volume %s to get attached to instance %s. error : %s", req.VolumeId, id, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } log.Info("Volume is ATTACHED to Node.") csiMetricDimension = util.GetMetricDimensionForComponent(util.Success, util.CSIStorageType) @@ -845,7 +845,7 @@ func (d *BlockVolumeControllerDriver) ControllerPublishVolume(ctx context.Contex csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Internal, "Failed to generate publish context: %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "Failed to generate publish context for volume %s attachment request to instance %s. error : %s", req.VolumeId, id, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } return resp, nil } @@ -927,12 +927,12 @@ func (d *BlockVolumeControllerDriver) ControllerUnpublishVolume(ctx context.Cont metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) return &csi.ControllerUnpublishVolumeResponse{}, nil } - log.With(zap.Error(err)).Errorf("failed to get compartmentID from node annotation: %s", util.CompartmentIDAnnotation) + log.With(zap.Error(err)).Errorf("failed to get compartmentID from node annotation %s for node %s.", util.CompartmentIDAnnotation, req.NodeId) errorType = util.GetError(err) csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Unknown, "failed to get compartmentID from node annotation:: error : %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Unknown, "failed to get compartmentID from node annotation %s for node %s. error : %s", util.CompartmentIDAnnotation, req.NodeId, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } log = log.With("compartmentID", compartmentID) @@ -960,7 +960,7 @@ func (d *BlockVolumeControllerDriver) ControllerUnpublishVolume(ctx context.Cont csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, err + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "Failed to find volume attachment for volume %s to instance %s. error : %s", req.VolumeId, instanceID, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } if attachedVolume == nil { log.With("service", "compute", "verb", "get", "resource", "volumeAttachment", "statusCode", util.GetHttpStatusCode(err)).With(zap.Error(err)). @@ -979,7 +979,7 @@ func (d *BlockVolumeControllerDriver) ControllerUnpublishVolume(ctx context.Cont csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Unknown, "volume can not be detached %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Internal, "failed to detach volume %s from instance %s. error : %s", req.VolumeId, instanceID, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } } log.With("instanceID", *attachedVolume.GetInstanceId()).Info("Waiting for Volume to Detach") @@ -991,7 +991,7 @@ func (d *BlockVolumeControllerDriver) ControllerUnpublishVolume(ctx context.Cont csiMetricDimension = util.GetMetricDimensionForComponent(errorType, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = csiMetricDimension metrics.SendMetricData(d.metricPusher, csiMetricPrefix, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.Unknown, "timed out waiting for volume to be detached %s", err) + return nil, csi_util.TruncateError(status.Errorf(codes.Unknown, "timed out waiting for volume %s to get detached from instance %s. error %s", req.VolumeId, instanceID, csi_util.GetOCIServiceError(err)), maxVolumeAttachDetachErrorMsgBytes) } multipath := false diff --git a/pkg/csi/driver/bv_controller_test.go b/pkg/csi/driver/bv_controller_test.go index 0e8b584dfc..1d42671724 100644 --- a/pkg/csi/driver/bv_controller_test.go +++ b/pkg/csi/driver/bv_controller_test.go @@ -1361,7 +1361,7 @@ func TestControllerDriver_ControllerPublishVolume(t *testing.T) { }, }, want: nil, - wantErr: errors.New("Failed to attach volume to the node: timed out waiting for the condition"), + wantErr: errors.New("Failed to attach volume volume-attachment-stuck-in-attaching-state to the instance sample-provider-id. error: timed out waiting for the condition"), }, { name: "WaitForShareableVolumeAttached times out", @@ -1376,7 +1376,7 @@ func TestControllerDriver_ControllerPublishVolume(t *testing.T) { }, }, want: nil, - wantErr: errors.New("Failed to attach volume to the node: timed out waiting for the condition"), + wantErr: errors.New("Failed to attach volume volume-attachment-stuck-in-attaching-state to the instance sample-provider-id. error: timed out waiting for the condition"), }, { name: "isShareable, but not all attachments are shareable", @@ -1391,8 +1391,7 @@ func TestControllerDriver_ControllerPublishVolume(t *testing.T) { }, }, want: nil, - wantErr: errors.New("Failed to attach volume to node. " + - "The volume already has a non-shareable attachment."), + wantErr: errors.New("Failed to attach volume shareable-volume-with-nonshareable-attachments to node sample-provider-id. The volume already has a non-shareable attachment shareable-volume-with-nonshareable-attachments to instance sample-provider-id-2."), }, } for _, tt := range tests { @@ -1444,7 +1443,7 @@ func TestControllerDriver_ControllerUnpublishVolume(t *testing.T) { }, }, want: nil, - wantErr: errors.New("timed out waiting for volume to be detached"), + wantErr: errors.New("timed out waiting for volume volume-attachment-stuck-in-detaching-state to get detached from instance sample-provider-id. error timed out waiting for the condition"), }, { name: "FindVolumeAttachment times out", From 9e3a8fb9393a9472affec1bdcf262cad65691aa0 Mon Sep 17 00:00:00 2001 From: Yashas G Date: Thu, 16 Oct 2025 07:49:39 +0530 Subject: [PATCH 05/24] Update CreateSnapshot to return no error with ReadyToUse false for large volume backups --- pkg/csi-util/utils.go | 27 +++++++++ pkg/csi-util/utils_test.go | 99 +++++++++++++++++++++++++++++++++ pkg/csi/driver/bv_controller.go | 27 +++++++-- 3 files changed, 147 insertions(+), 6 deletions(-) diff --git a/pkg/csi-util/utils.go b/pkg/csi-util/utils.go index 6187c09020..e9c33a7479 100644 --- a/pkg/csi-util/utils.go +++ b/pkg/csi-util/utils.go @@ -717,3 +717,30 @@ func TruncateError(err error, maxBytes int) error { return errors.New(string(bytesMsg[:truncLen]) + suffix) } + +// ShortenContextBeforeDeadline returns a new context that cancels slightly +// before the parent context's deadline, giving time for cleanup or response +// before gRPC timeout. If the parent has no deadline, it returns the parent unchanged. +// +// Example: +// ctx = ShortenContextBeforeDeadline(ctx, 5*time.Second) +// +func ShortenContextBeforeDeadline(parent context.Context, buffer time.Duration) (context.Context, context.CancelFunc) { + deadline, hasDeadline := parent.Deadline() + if !hasDeadline { + // No deadline to shorten — just return a no-op cancel + return parent, func() {} + } + + timeLeft := time.Until(deadline) - buffer + if timeLeft <= 0 { + // Already expired or too close — cancel immediately after return + // Use a new cancelled context for the case where we want to cancel even though parent might still be active + ctx, cancel := context.WithCancel(context.Background()) + cancel() + return ctx, func() {} + } + + ctx, cancel := context.WithTimeout(parent, timeLeft) + return ctx, cancel +} diff --git a/pkg/csi-util/utils_test.go b/pkg/csi-util/utils_test.go index 3035828651..dcdade08c7 100644 --- a/pkg/csi-util/utils_test.go +++ b/pkg/csi-util/utils_test.go @@ -1000,3 +1000,102 @@ func Test_TruncateError(t *testing.T) { }) } } + +func TestShortenContextBeforeDeadline(t *testing.T) { + const ( + tolerance = 10 * time.Millisecond + buffer = 50 * time.Millisecond + ) + + tests := []struct { + name string + parentDeadlineOffset time.Duration + buffer time.Duration + expectCancel bool + expectedTimeout time.Duration + }{ + { + name: "NoParentDeadline", + parentDeadlineOffset: 0, + buffer: buffer, + expectCancel: false, + expectedTimeout: 0, + }, + { + name: "DeadlineFarEnough", + parentDeadlineOffset: 200 * time.Millisecond, + buffer: buffer, + expectCancel: false, + expectedTimeout: 150 * time.Millisecond, + }, + { + name: "DeadlineExactlyBuffer", + parentDeadlineOffset: buffer, + buffer: buffer, + expectCancel: true, + expectedTimeout: 0, + }, + { + name: "DeadlineLessThanBuffer", + parentDeadlineOffset: 10 * time.Millisecond, + buffer: buffer, + expectCancel: true, + expectedTimeout: 0, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + var parentCtx context.Context + var parentCancel context.CancelFunc = func() {} + now := time.Now() + + if tt.parentDeadlineOffset > 0 { + parentCtx, parentCancel = context.WithDeadline(context.Background(), now.Add(tt.parentDeadlineOffset)) + } else { + parentCtx = context.Background() + } + defer parentCancel() + + newCtx, cancel := ShortenContextBeforeDeadline(parentCtx, tt.buffer) + defer cancel() + + if tt.expectCancel { + if err := newCtx.Err(); err != context.Canceled { + t.Errorf("ShortenContextBeforeDeadline() returned context.Err() = %v, want %v", err, context.Canceled) + } + return + } + + if newCtx.Err() != nil { + t.Fatalf("ShortenContextBeforeDeadline() returned context.Err() = %v, want nil", newCtx.Err()) + } + + if tt.parentDeadlineOffset == 0 { + _, hasDeadline := newCtx.Deadline() + if hasDeadline { + t.Errorf("ShortenContextBeforeDeadline() with no parent deadline returned a context with a deadline") + } + } else { + deadline, hasDeadline := newCtx.Deadline() + if !hasDeadline { + t.Fatalf("ShortenContextBeforeDeadline() returned a context without a deadline, want deadline") + } + + actualDuration := deadline.Sub(now) + + expectedMin := tt.expectedTimeout - tolerance + expectedMax := tt.expectedTimeout + tolerance + + if actualDuration < expectedMin || actualDuration > expectedMax { + t.Errorf("ShortenContextBeforeDeadline() deadline duration %v, want approx %v", actualDuration, tt.expectedTimeout) + } + + cancel() + if err := newCtx.Err(); err != context.Canceled { + t.Errorf("Cancel() did not cancel context. Got: %v, Want: %v", err, context.Canceled) + } + } + }) + } +} diff --git a/pkg/csi/driver/bv_controller.go b/pkg/csi/driver/bv_controller.go index cace64788c..aed8903bf6 100644 --- a/pkg/csi/driver/bv_controller.go +++ b/pkg/csi/driver/bv_controller.go @@ -1202,7 +1202,7 @@ func (d *BlockVolumeControllerDriver) CreateSnapshot(ctx context.Context, req *c return nil, fmt.Errorf("duplicate snapshot %q exists", req.Name) } - volumeAvailableTimeoutCtx, cancel := context.WithTimeout(ctx, 45*time.Second) + volumeBackupAvailableTimeoutCtx, cancel := csi_util.ShortenContextBeforeDeadline(ctx, 10*time.Second) defer cancel() if len(snapshots) > 0 { @@ -1225,15 +1225,22 @@ func (d *BlockVolumeControllerDriver) CreateSnapshot(ctx context.Context, req *c ts := timestamppb.New(snapshot.TimeCreated.Time) log.Infof("Checking if backup %v has become available", *snapshot.Id) - - _, err = d.client.BlockStorage().AwaitVolumeBackupAvailableOrTimeout(volumeAvailableTimeoutCtx, *snapshot.Id) + _, err = d.client.BlockStorage().AwaitVolumeBackupAvailableOrTimeout(volumeBackupAvailableTimeoutCtx, *snapshot.Id) if err != nil { if strings.Contains(err.Error(), "timed out") { log.Infof("Backup has not become available yet, controller will retry") snapshotMetricDimension = util.GetMetricDimensionForComponent(util.BackupCreating, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = snapshotMetricDimension metrics.SendMetricData(d.metricPusher, metrics.BlockSnapshotProvision, time.Since(snapshot.TimeRequestReceived.Time).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.DeadlineExceeded, "Timed out waiting for backup to become available") + return &csi.CreateSnapshotResponse{ + Snapshot: &csi.Snapshot{ + SnapshotId: *snapshot.Id, + SourceVolumeId: *snapshot.VolumeId, + SizeBytes: *snapshot.SizeInMBs * client.MiB, + CreationTime: ts, + ReadyToUse: false, + }, + }, nil } else { log.With("service", "blockstorage", "verb", "get", "resource", "volumeBackup", "statusCode", util.GetHttpStatusCode(err)). Errorf("Error while waiting for backup to become available %q: %v", req.Name, err) @@ -1298,14 +1305,22 @@ func (d *BlockVolumeControllerDriver) CreateSnapshot(ctx context.Context, req *c ts := timestamppb.New(snapshot.TimeCreated.Time) - _, err = d.client.BlockStorage().AwaitVolumeBackupAvailableOrTimeout(volumeAvailableTimeoutCtx, *snapshot.Id) + _, err = d.client.BlockStorage().AwaitVolumeBackupAvailableOrTimeout(volumeBackupAvailableTimeoutCtx, *snapshot.Id) if err != nil { if strings.Contains(err.Error(), "timed out") { log.Infof("Backup did not become available immediately after creation, controller will retry") snapshotMetricDimension = util.GetMetricDimensionForComponent(util.BackupCreating, util.CSIStorageType) dimensionsMap[metrics.ComponentDimension] = snapshotMetricDimension metrics.SendMetricData(d.metricPusher, metrics.BlockSnapshotProvision, time.Since(startTime).Seconds(), dimensionsMap) - return nil, status.Errorf(codes.DeadlineExceeded, "Timed out waiting for backup to become available") + return &csi.CreateSnapshotResponse{ + Snapshot: &csi.Snapshot{ + SnapshotId: *snapshot.Id, + SourceVolumeId: *snapshot.VolumeId, + SizeBytes: *snapshot.SizeInMBs * client.MiB, + CreationTime: ts, + ReadyToUse: false, + }, + }, nil } else { log.With("service", "blockstorage", "verb", "get", "resource", "volumeBackup", "statusCode", util.GetHttpStatusCode(err)). Errorf("Error while waiting for backup to become available %q: %v", req.Name, err) From 3868083981ce6c549ad276b1ec59c894f7e0c2b7 Mon Sep 17 00:00:00 2001 From: Yashas G Date: Fri, 24 Oct 2025 07:10:42 +0530 Subject: [PATCH 06/24] Updating external-snapshotter to v8.3.0 --- go.mod | 6 +- go.sum | 10 +- .../csi_snapshot_restore.go | 6 +- .../e2e/framework/cloud_provider_framework.go | 2 +- test/e2e/framework/pvc_util.go | 2 +- test/e2e/framework/volumesnapshot_util.go | 2 +- .../e2e/framework/volumesnapshotclass_util.go | 2 +- .../apis/volumegroupsnapshot/v1alpha1/doc.go | 20 - .../volumegroupsnapshot/v1alpha1/register.go | 57 - .../volumegroupsnapshot/v1alpha1/types.go | 363 ---- .../v1alpha1/zz_generated.deepcopy.go | 398 ---- .../client/v6/apis/volumesnapshot/v1/doc.go | 20 - .../v6/apis/volumesnapshot/v1/register.go | 58 - .../client/v6/apis/volumesnapshot/v1/types.go | 456 ----- .../v1/zz_generated.deepcopy.go | 441 ----- .../v6/clientset/versioned/clientset.go | 133 -- .../v6/clientset/versioned/scheme/doc.go | 20 - .../v6/clientset/versioned/scheme/register.go | 58 - .../typed/volumegroupsnapshot/v1alpha1/doc.go | 20 - .../v1alpha1/generated_expansion.go | 25 - .../v1alpha1/volumegroupsnapshot.go | 195 -- .../v1alpha1/volumegroupsnapshot_client.go | 117 -- .../v1alpha1/volumegroupsnapshotclass.go | 168 -- .../v1alpha1/volumegroupsnapshotcontent.go | 184 -- .../versioned/typed/volumesnapshot/v1/doc.go | 20 - .../volumesnapshot/v1/generated_expansion.go | 25 - .../typed/volumesnapshot/v1/volumesnapshot.go | 195 -- .../v1/volumesnapshot_client.go | 117 -- .../volumesnapshot/v1/volumesnapshotclass.go | 168 -- .../v1/volumesnapshotcontent.go | 184 -- .../{client/v6 => v8}/LICENSE | 0 .../groupsnapshot_controller_helper.go | 1653 +++++++++++++++++ .../v8/pkg/metrics/metrics_group.go | 92 + .../external-snapshotter/v8/pkg/utils/pvs.go | 41 + .../external-snapshotter/v8/pkg/utils/vgs.go | 114 ++ 35 files changed, 1917 insertions(+), 3455 deletions(-) delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/doc.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/register.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/types.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/zz_generated.deepcopy.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/doc.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/register.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/types.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/zz_generated.deepcopy.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/clientset.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme/doc.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme/register.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/doc.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/generated_expansion.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshot.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshot_client.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshotclass.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshotcontent.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/doc.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/generated_expansion.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot_client.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotclass.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotcontent.go rename vendor/github.com/kubernetes-csi/external-snapshotter/{client/v6 => v8}/LICENSE (100%) create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/common-controller/groupsnapshot_controller_helper.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/metrics/metrics_group.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/pvs.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/vgs.go diff --git a/go.mod b/go.mod index 518f9355bf..61dd00fb25 100644 --- a/go.mod +++ b/go.mod @@ -40,8 +40,9 @@ replace ( require ( github.com/container-storage-interface/spec v1.11.0 github.com/golang/protobuf v1.5.4 - github.com/kubernetes-csi/csi-lib-utils v0.20.0 - github.com/kubernetes-csi/external-snapshotter/client/v6 v6.3.0 + github.com/kubernetes-csi/csi-lib-utils v0.22.0 + github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0 + github.com/kubernetes-csi/external-snapshotter/v8 v8.3.0 github.com/onsi/ginkgo v1.16.5 github.com/onsi/gomega v1.36.2 github.com/oracle/oci-go-sdk/v65 v65.105.0 @@ -75,6 +76,7 @@ require ( ) require ( + github.com/go-logr/logr v1.4.2 golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 golang.org/x/sync v0.15.0 google.golang.org/protobuf v1.36.5 diff --git a/go.sum b/go.sum index d3b7d77bd9..94b0f89066 100644 --- a/go.sum +++ b/go.sum @@ -359,10 +359,12 @@ 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.20.0 h1:JTvHRJugn+cByMnIU4nCnqPqOOUhuPzhlLqRvenwjDA= -github.com/kubernetes-csi/csi-lib-utils v0.20.0/go.mod h1:3b/HFVURW11oxV/gUAKyhhkvFpxXO/zRdvh1wdEfCZY= -github.com/kubernetes-csi/external-snapshotter/client/v6 v6.3.0 h1:qS4r4ljINLWKJ9m9Ge3Q3sGZ/eIoDVDT2RhAdQFHb1k= -github.com/kubernetes-csi/external-snapshotter/client/v6 v6.3.0/go.mod h1:oGXx2XTEzs9ikW2V6IC1dD8trgjRsS/Mvc2JRiC618Y= +github.com/kubernetes-csi/csi-lib-utils v0.22.0 h1:EUAs1+uHGps3OtVj4XVx16urhpI02eu+Z8Vps6plpHY= +github.com/kubernetes-csi/csi-lib-utils v0.22.0/go.mod h1:f+PalKyS4Ujsjb9+m6Rj0W6c28y3nfea3paQ/VqjI28= +github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0 h1:Q3jQ1NkFqv5o+F8dMmHd8SfEmlcwNeo1immFApntEwE= +github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0/go.mod h1:E3vdYxHj2C2q6qo8/Da4g7P+IcwqRZyy3gJBzYybV9Y= +github.com/kubernetes-csi/external-snapshotter/v8 v8.3.0 h1:qkUw53bWEuHY0iVaF4V+oIS3r2vm8Sz1/xzf+D+yi80= +github.com/kubernetes-csi/external-snapshotter/v8 v8.3.0/go.mod h1:iFq0CxAt/6NfK8QFyYRpObTL3Ar/lG8H045Btk6fo7s= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 h1:SOEGU9fKiNWd/HOJuq6+3iTQz8KNCLtVX6idSoTLdUw= diff --git a/test/e2e/cloud-provider-oci/csi_snapshot_restore.go b/test/e2e/cloud-provider-oci/csi_snapshot_restore.go index 1b2d141173..b9b33fa33a 100644 --- a/test/e2e/cloud-provider-oci/csi_snapshot_restore.go +++ b/test/e2e/cloud-provider-oci/csi_snapshot_restore.go @@ -584,7 +584,7 @@ func checkOrInstallCRDs(f *framework.CloudProviderFramework) { if setupF.EnableCreateCluster == false { Skip("Skipping test because VolumeSnapshot CRD is not present") } else { - framework.RunKubectl("create", "-f", "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v6.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml") + framework.RunKubectl("create", "-f", "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v8.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml") } } @@ -593,7 +593,7 @@ func checkOrInstallCRDs(f *framework.CloudProviderFramework) { if setupF.EnableCreateCluster == false { Skip("Skipping test because VolumeSnapshotClass CRD is not present") } else { - framework.RunKubectl("create", "-f", "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v6.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml") + framework.RunKubectl("create", "-f", "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v8.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml") } } @@ -602,7 +602,7 @@ func checkOrInstallCRDs(f *framework.CloudProviderFramework) { if setupF.EnableCreateCluster == false { Skip("Skipping test because VolumeSnapshotContent CRD is not present") } else { - framework.RunKubectl("create", "-f", "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v6.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml") + framework.RunKubectl("create", "-f", "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v8.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml") } } } diff --git a/test/e2e/framework/cloud_provider_framework.go b/test/e2e/framework/cloud_provider_framework.go index 4d93c2c00a..e40fc5f676 100644 --- a/test/e2e/framework/cloud_provider_framework.go +++ b/test/e2e/framework/cloud_provider_framework.go @@ -21,7 +21,7 @@ import ( "strings" "time" - snapclientset "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned" + snapclientset "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/pkg/errors" diff --git a/test/e2e/framework/pvc_util.go b/test/e2e/framework/pvc_util.go index 0fdb2d7a78..50acc4941d 100644 --- a/test/e2e/framework/pvc_util.go +++ b/test/e2e/framework/pvc_util.go @@ -19,7 +19,7 @@ import ( "strings" "time" - snapclientset "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned" + snapclientset "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned" "github.com/pkg/errors" "go.uber.org/zap" "golang.org/x/net/context" diff --git a/test/e2e/framework/volumesnapshot_util.go b/test/e2e/framework/volumesnapshot_util.go index 231ffbc43d..c000c16c37 100644 --- a/test/e2e/framework/volumesnapshot_util.go +++ b/test/e2e/framework/volumesnapshot_util.go @@ -19,7 +19,7 @@ import ( "fmt" "time" - snapshot "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1" + snapshot "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" . "github.com/onsi/ginkgo" ocicore "github.com/oracle/oci-go-sdk/v65/core" v1 "k8s.io/api/core/v1" diff --git a/test/e2e/framework/volumesnapshotclass_util.go b/test/e2e/framework/volumesnapshotclass_util.go index 3b3d11916a..1e4433e35b 100644 --- a/test/e2e/framework/volumesnapshotclass_util.go +++ b/test/e2e/framework/volumesnapshotclass_util.go @@ -17,7 +17,7 @@ package framework import ( "context" - snapshot "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1" + snapshot "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/doc.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/doc.go deleted file mode 100644 index f3b8d19ef2..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// +k8s:deepcopy-gen=package -// +groupName=groupsnapshot.storage.k8s.io - -package v1alpha1 diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/register.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/register.go deleted file mode 100644 index 42b82aaee7..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/register.go +++ /dev/null @@ -1,57 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package. -const GroupName = "groupsnapshot.storage.k8s.io" - -var ( - // SchemeBuilder is the new scheme builder - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - // AddToScheme adds to scheme - AddToScheme = SchemeBuilder.AddToScheme - // SchemeGroupVersion is the group version used to register these objects. - SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} -) - -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - SchemeBuilder.Register(addKnownTypes) -} - -// addKnownTypes adds the set of types defined in this package to the supplied scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &VolumeGroupSnapshotClass{}, - &VolumeGroupSnapshotClassList{}, - &VolumeGroupSnapshot{}, - &VolumeGroupSnapshotList{}, - &VolumeGroupSnapshotContent{}, - &VolumeGroupSnapshotContentList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/types.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/types.go deleted file mode 100644 index 5663b84d20..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/types.go +++ /dev/null @@ -1,363 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -// +kubebuilder:object:generate=true -package v1alpha1 - -import ( - core_v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - - snapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1" -) - -// VolumeGroupSnapshotSpec defines the desired state of a volume group snapshot. -type VolumeGroupSnapshotSpec struct { - // Source specifies where a group snapshot will be created from. - // This field is immutable after creation. - // Required. - Source VolumeGroupSnapshotSource `json:"source" protobuf:"bytes,1,opt,name=source"` - - // VolumeGroupSnapshotClassName is the name of the VolumeGroupSnapshotClass - // requested by the VolumeGroupSnapshot. - // VolumeGroupSnapshotClassName may be left nil to indicate that the default - // class will be used. - // Empty string is not allowed for this field. - // +optional - VolumeGroupSnapshotClassName *string `json:"volumeGroupSnapshotClassName,omitempty" protobuf:"bytes,2,opt,name=volumeGroupSnapshotClassName"` -} - -// VolumeGroupSnapshotSource specifies whether the underlying group snapshot should be -// dynamically taken upon creation or if a pre-existing VolumeGroupSnapshotContent -// object should be used. -// Exactly one of its members must be set. -// Members in VolumeGroupSnapshotSource are immutable. -type VolumeGroupSnapshotSource struct { - // Selector is a label query over persistent volume claims that are to be - // grouped together for snapshotting. - // This labelSelector will be used to match the label added to a PVC. - // If the label is added or removed to a volume after a group snapshot - // is created, the existing group snapshots won't be modified. - // Once a VolumeGroupSnapshotContent is created and the sidecar starts to process - // it, the volume list will not change with retries. - // Required. - Selector metav1.LabelSelector `json:"selector" protobuf:"bytes,1,opt,name=selector"` - - // VolumeGroupSnapshotContentName specifies the name of a pre-existing VolumeGroupSnapshotContent - // object representing an existing volume group snapshot. - // This field should be set if the volume group snapshot already exists and - // only needs a representation in Kubernetes. - // This field is immutable. - // +optional - VolumeGroupSnapshotContentName *string `json:"volumeGroupSnapshotContentName,omitempty" protobuf:"bytes,2,opt,name=volumeGroupSnapshotContentName"` -} - -// VolumeGroupSnapshotStatus defines the observed state of volume group snapshot. -type VolumeGroupSnapshotStatus struct { - // BoundVolumeGroupSnapshotContentName is the name of the VolumeGroupSnapshotContent - // object to which this VolumeGroupSnapshot object intends to bind to. - // If not specified, it indicates that the VolumeGroupSnapshot object has not - // been successfully bound to a VolumeGroupSnapshotContent object yet. - // NOTE: To avoid possible security issues, consumers must verify binding between - // VolumeGroupSnapshot and VolumeGroupSnapshotContent objects is successful - // (by validating that both VolumeGroupSnapshot and VolumeGroupSnapshotContent - // point at each other) before using this object. - // +optional - BoundVolumeGroupSnapshotContentName *string `json:"boundVolumeGroupSnapshotContentName,omitempty" protobuf:"bytes,1,opt,name=boundVolumeGroupSnapshotContentName"` - - // CreationTime is the timestamp when the point-in-time group snapshot is taken - // by the underlying storage system. - // If not specified, it may indicate that the creation time of the group snapshot - // is unknown. - // The format of this field is a Unix nanoseconds time encoded as an int64. - // On Unix, the command date +%s%N returns the current time in nanoseconds - // since 1970-01-01 00:00:00 UTC. - // +optional - CreationTime *metav1.Time `json:"creationTime,omitempty" protobuf:"bytes,2,opt,name=creationTime"` - - // ReadyToUse indicates if all the individual snapshots in the group are ready - // to be used to restore a group of volumes. - // ReadyToUse becomes true when ReadyToUse of all individual snapshots become true. - // If not specified, it means the readiness of a group snapshot is unknown. - // +optional - ReadyToUse *bool `json:"readyToUse,omitempty" protobuf:"varint,3,opt,name=readyToUse"` - - // Error is the last observed error during group snapshot creation, if any. - // This field could be helpful to upper level controllers (i.e., application - // controller) to decide whether they should continue on waiting for the group - // snapshot to be created based on the type of error reported. - // The snapshot controller will keep retrying when an error occurs during the - // group snapshot creation. Upon success, this error field will be cleared. - // +optional - Error *snapshotv1.VolumeSnapshotError `json:"error,omitempty" protobuf:"bytes,4,opt,name=error,casttype=VolumeSnapshotError"` - - // VolumeSnapshotRefList is the list of volume snapshot references for this - // group snapshot. - // The maximum number of allowed snapshots in the group is 100. - // +optional - VolumeSnapshotRefList []core_v1.ObjectReference `json:"volumeSnapshotRefList,omitempty" protobuf:"bytes,5,opt,name=volumeSnapshotRefList"` -} - -//+genclient -//+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// VolumeGroupSnapshot is a user's request for creating either a point-in-time -// group snapshot or binding to a pre-existing group snapshot. -// +kubebuilder:object:root=true -// +kubebuilder:resource:scope=Namespaced,shortName=vgs -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if all the individual snapshots in the group are ready to be used to restore a group of volumes." -// +kubebuilder:printcolumn:name="VolumeGroupSnapshotClass",type=string,JSONPath=`.spec.volumeGroupSnapshotClassName`,description="The name of the VolumeGroupSnapshotClass requested by the VolumeGroupSnapshot." -// +kubebuilder:printcolumn:name="VolumeGroupSnapshotContent",type=string,JSONPath=`.status.boundVolumeGroupSnapshotContentName`,description="Name of the VolumeGroupSnapshotContent object to which the VolumeGroupSnapshot object intends to bind to. Please note that verification of binding actually requires checking both VolumeGroupSnapshot and VolumeGroupSnapshotContent to ensure both are pointing at each other. Binding MUST be verified prior to usage of this object." -// +kubebuilder:printcolumn:name="CreationTime",type=date,JSONPath=`.status.creationTime`,description="Timestamp when the point-in-time group snapshot was taken by the underlying storage system." -// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` -type VolumeGroupSnapshot struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the desired characteristics of a group snapshot requested by a user. - // Required. - Spec VolumeGroupSnapshotSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - // Status represents the current information of a group snapshot. - // Consumers must verify binding between VolumeGroupSnapshot and - // VolumeGroupSnapshotContent objects is successful (by validating that both - // VolumeGroupSnapshot and VolumeGroupSnapshotContent point to each other) before - // using this object. - // +optional - Status *VolumeGroupSnapshotStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// VolumeGroupSnapshotList contains a list of VolumeGroupSnapshot objects. -type VolumeGroupSnapshotList struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // Items is the list of VolumeGroupSnapshots. - Items []VolumeGroupSnapshot `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -//+genclient -//+genclient:nonNamespaced -//+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// VolumeGroupSnapshotClass specifies parameters that a underlying storage system -// uses when creating a volume group snapshot. A specific VolumeGroupSnapshotClass -// is used by specifying its name in a VolumeGroupSnapshot object. -// VolumeGroupSnapshotClasses are non-namespaced. -// +kubebuilder:object:root=true -// +kubebuilder:resource:scope=Cluster,shortName=vgsclass;vgsclasses -// +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.driver` -// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.deletionPolicy`,description="Determines whether a VolumeGroupSnapshotContent created through the VolumeGroupSnapshotClass should be deleted when its bound VolumeGroupSnapshot is deleted." -// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` -type VolumeGroupSnapshotClass struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Driver is the name of the storage driver expected to handle this VolumeGroupSnapshotClass. - // Required. - Driver string `json:"driver" protobuf:"bytes,2,opt,name=driver"` - - // Parameters is a key-value map with storage driver specific parameters for - // creating group snapshots. - // These values are opaque to Kubernetes and are passed directly to the driver. - // +optional - Parameters map[string]string `json:"parameters,omitempty" protobuf:"bytes,3,rep,name=parameters"` - - // DeletionPolicy determines whether a VolumeGroupSnapshotContent created - // through the VolumeGroupSnapshotClass should be deleted when its bound - // VolumeGroupSnapshot is deleted. - // Supported values are "Retain" and "Delete". - // "Retain" means that the VolumeGroupSnapshotContent and its physical group - // snapshot on underlying storage system are kept. - // "Delete" means that the VolumeGroupSnapshotContent and its physical group - // snapshot on underlying storage system are deleted. - // Required. - DeletionPolicy snapshotv1.DeletionPolicy `json:"deletionPolicy" protobuf:"bytes,4,opt,name=deletionPolicy"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// VolumeGroupSnapshotClassList is a collection of VolumeGroupSnapshotClasses. -// +kubebuilder:object:root=true -type VolumeGroupSnapshotClassList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of VolumeGroupSnapshotClasses. - Items []VolumeGroupSnapshotClass `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// VolumeGroupSnapshotContent represents the actual "on-disk" group snapshot object -// in the underlying storage system -// +kubebuilder:object:root=true -// +kubebuilder:resource:scope=Cluster,shortName=vgsc;vgscs -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if all the individual snapshots in the group are ready to be used to restore a group of volumes." -// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.spec.deletionPolicy`,description="Determines whether this VolumeGroupSnapshotContent and its physical group snapshot on the underlying storage system should be deleted when its bound VolumeGroupSnapshot is deleted." -// +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.spec.driver`,description="Name of the CSI driver used to create the physical group snapshot on the underlying storage system." -// +kubebuilder:printcolumn:name="VolumeGroupSnapshotClass",type=string,JSONPath=`.spec.volumeGroupSnapshotClassName`,description="Name of the VolumeGroupSnapshotClass from which this group snapshot was (or will be) created." -// +kubebuilder:printcolumn:name="VolumeGroupSnapshotNamespace",type=string,JSONPath=`.spec.volumeGroupSnapshotRef.namespace`,description="Namespace of the VolumeGroupSnapshot object to which this VolumeGroupSnapshotContent object is bound." -// +kubebuilder:printcolumn:name="VolumeGroupSnapshot",type=string,JSONPath=`.spec.volumeGroupSnapshotRef.name`,description="Name of the VolumeGroupSnapshot object to which this VolumeGroupSnapshotContent object is bound." -// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` -type VolumeGroupSnapshotContent struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines properties of a VolumeGroupSnapshotContent created by the underlying storage system. - // Required. - Spec VolumeGroupSnapshotContentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - // status represents the current information of a group snapshot. - // +optional - Status *VolumeGroupSnapshotContentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// VolumeGroupSnapshotContentList is a list of VolumeGroupSnapshotContent objects -// +kubebuilder:object:root=true -type VolumeGroupSnapshotContentList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of VolumeGroupSnapshotContents. - Items []VolumeGroupSnapshotContent `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// VolumeGroupSnapshotContentSpec describes the common attributes of a group snapshot content -type VolumeGroupSnapshotContentSpec struct { - // VolumeGroupSnapshotRef specifies the VolumeGroupSnapshot object to which this - // VolumeGroupSnapshotContent object is bound. - // VolumeGroupSnapshot.Spec.VolumeGroupSnapshotContentName field must reference to - // this VolumeGroupSnapshotContent's name for the bidirectional binding to be valid. - // For a pre-existing VolumeGroupSnapshotContent object, name and namespace of the - // VolumeGroupSnapshot object MUST be provided for binding to happen. - // This field is immutable after creation. - // Required. - VolumeGroupSnapshotRef core_v1.ObjectReference `json:"volumeGroupSnapshotRef" protobuf:"bytes,1,opt,name=volumeGroupSnapshotRef"` - - // DeletionPolicy determines whether this VolumeGroupSnapshotContent and the - // physical group snapshot on the underlying storage system should be deleted - // when the bound VolumeGroupSnapshot is deleted. - // Supported values are "Retain" and "Delete". - // "Retain" means that the VolumeGroupSnapshotContent and its physical group - // snapshot on underlying storage system are kept. - // "Delete" means that the VolumeGroupSnapshotContent and its physical group - // snapshot on underlying storage system are deleted. - // For dynamically provisioned group snapshots, this field will automatically - // be filled in by the CSI snapshotter sidecar with the "DeletionPolicy" field - // defined in the corresponding VolumeGroupSnapshotClass. - // For pre-existing snapshots, users MUST specify this field when creating the - // VolumeGroupSnapshotContent object. - // Required. - DeletionPolicy snapshotv1.DeletionPolicy `json:"deletionPolicy" protobuf:"bytes,2,opt,name=deletionPolicy"` - - // Driver is the name of the CSI driver used to create the physical group snapshot on - // the underlying storage system. - // This MUST be the same as the name returned by the CSI GetPluginName() call for - // that driver. - // Required. - Driver string `json:"driver" protobuf:"bytes,3,opt,name=driver"` - - // VolumeGroupSnapshotClassName is the name of the VolumeGroupSnapshotClass from - // which this group snapshot was (or will be) created. - // Note that after provisioning, the VolumeGroupSnapshotClass may be deleted or - // recreated with different set of values, and as such, should not be referenced - // post-snapshot creation. - // For dynamic provisioning, this field must be set. - // This field may be unset for pre-provisioned snapshots. - // +optional - VolumeGroupSnapshotClassName *string `json:"volumeGroupSnapshotClassName,omitempty" protobuf:"bytes,4,opt,name=volumeGroupSnapshotClassName"` - - // Source specifies whether the snapshot is (or should be) dynamically provisioned - // or already exists, and just requires a Kubernetes object representation. - // This field is immutable after creation. - // Required. - Source VolumeGroupSnapshotContentSource `json:"source" protobuf:"bytes,5,opt,name=source"` -} - -// VolumeGroupSnapshotContentStatus defines the observed state of VolumeGroupSnapshotContent. -type VolumeGroupSnapshotContentStatus struct { - // VolumeGroupSnapshotHandle is a unique id returned by the CSI driver - // to identify the VolumeGroupSnapshot on the storage system. - // If a storage system does not provide such an id, the - // CSI driver can choose to return the VolumeGroupSnapshot name. - // +optional - VolumeGroupSnapshotHandle *string `json:"volumeGroupSnapshotHandle,omitempty" protobuf:"bytes,1,opt,name=volumeGroupSnapshotHandle"` - - // CreationTime is the timestamp when the point-in-time group snapshot is taken - // by the underlying storage system. - // If not specified, it indicates the creation time is unknown. - // If not specified, it means the readiness of a group snapshot is unknown. - // The format of this field is a Unix nanoseconds time encoded as an int64. - // On Unix, the command date +%s%N returns the current time in nanoseconds - // since 1970-01-01 00:00:00 UTC. - // +optional - CreationTime *int64 `json:"creationTime,omitempty" protobuf:"varint,2,opt,name=creationTime"` - - // ReadyToUse indicates if all the individual snapshots in the group are ready to be - // used to restore a group of volumes. - // ReadyToUse becomes true when ReadyToUse of all individual snapshots become true. - // +optional - ReadyToUse *bool `json:"readyToUse,omitempty" protobuf:"varint,3,opt,name=readyToUse"` - - // Error is the last observed error during group snapshot creation, if any. - // Upon success after retry, this error field will be cleared. - // +optional - Error *snapshotv1.VolumeSnapshotError `json:"error,omitempty" protobuf:"bytes,4,opt,name=error,casttype=VolumeSnapshotError"` - - // VolumeSnapshotContentRefList is the list of volume snapshot content references - // for this group snapshot. - // The maximum number of allowed snapshots in the group is 100. - // +optional - VolumeSnapshotContentRefList []core_v1.ObjectReference `json:"volumeSnapshotContentRefList,omitempty" protobuf:"bytes,5,opt,name=volumeSnapshotContentRefList"` -} - -// VolumeGroupSnapshotContentSource represents the CSI source of a group snapshot. -// Exactly one of its members must be set. -// Members in VolumeGroupSnapshotContentSource are immutable. -type VolumeGroupSnapshotContentSource struct { - // PersistentVolumeNames is a list of names of PersistentVolumes to be snapshotted - // together. It is specified for dynamic provisioning of the VolumeGroupSnapshot. - // This field is immutable. - // +optional - PersistentVolumeNames []string `json:"persistentVolumeNames,omitempty" protobuf:"bytes,1,opt,name=persistentVolumeNames"` - - // VolumeGroupSnapshotHandle specifies the CSI "group_snapshot_id" of a pre-existing - // group snapshot on the underlying storage system for which a Kubernetes object - // representation was (or should be) created. - // This field is immutable. - // +optional - VolumeGroupSnapshotHandle *string `json:"volumeGroupSnapshotHandle,omitempty" protobuf:"bytes,2,opt,name=volumeGroupSnapshotHandle"` -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/zz_generated.deepcopy.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index b15906febf..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,398 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1" - corev1 "k8s.io/api/core/v1" - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshot) DeepCopyInto(out *VolumeGroupSnapshot) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - if in.Status != nil { - in, out := &in.Status, &out.Status - *out = new(VolumeGroupSnapshotStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshot. -func (in *VolumeGroupSnapshot) DeepCopy() *VolumeGroupSnapshot { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshot) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeGroupSnapshot) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotClass) DeepCopyInto(out *VolumeGroupSnapshotClass) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Parameters != nil { - in, out := &in.Parameters, &out.Parameters - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotClass. -func (in *VolumeGroupSnapshotClass) DeepCopy() *VolumeGroupSnapshotClass { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotClass) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeGroupSnapshotClass) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotClassList) DeepCopyInto(out *VolumeGroupSnapshotClassList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VolumeGroupSnapshotClass, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotClassList. -func (in *VolumeGroupSnapshotClassList) DeepCopy() *VolumeGroupSnapshotClassList { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotClassList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeGroupSnapshotClassList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotContent) DeepCopyInto(out *VolumeGroupSnapshotContent) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - if in.Status != nil { - in, out := &in.Status, &out.Status - *out = new(VolumeGroupSnapshotContentStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotContent. -func (in *VolumeGroupSnapshotContent) DeepCopy() *VolumeGroupSnapshotContent { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotContent) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeGroupSnapshotContent) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotContentList) DeepCopyInto(out *VolumeGroupSnapshotContentList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VolumeGroupSnapshotContent, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotContentList. -func (in *VolumeGroupSnapshotContentList) DeepCopy() *VolumeGroupSnapshotContentList { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotContentList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeGroupSnapshotContentList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotContentSource) DeepCopyInto(out *VolumeGroupSnapshotContentSource) { - *out = *in - if in.PersistentVolumeNames != nil { - in, out := &in.PersistentVolumeNames, &out.PersistentVolumeNames - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.VolumeGroupSnapshotHandle != nil { - in, out := &in.VolumeGroupSnapshotHandle, &out.VolumeGroupSnapshotHandle - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotContentSource. -func (in *VolumeGroupSnapshotContentSource) DeepCopy() *VolumeGroupSnapshotContentSource { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotContentSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotContentSpec) DeepCopyInto(out *VolumeGroupSnapshotContentSpec) { - *out = *in - out.VolumeGroupSnapshotRef = in.VolumeGroupSnapshotRef - if in.VolumeGroupSnapshotClassName != nil { - in, out := &in.VolumeGroupSnapshotClassName, &out.VolumeGroupSnapshotClassName - *out = new(string) - **out = **in - } - in.Source.DeepCopyInto(&out.Source) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotContentSpec. -func (in *VolumeGroupSnapshotContentSpec) DeepCopy() *VolumeGroupSnapshotContentSpec { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotContentSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotContentStatus) DeepCopyInto(out *VolumeGroupSnapshotContentStatus) { - *out = *in - if in.VolumeGroupSnapshotHandle != nil { - in, out := &in.VolumeGroupSnapshotHandle, &out.VolumeGroupSnapshotHandle - *out = new(string) - **out = **in - } - if in.CreationTime != nil { - in, out := &in.CreationTime, &out.CreationTime - *out = new(int64) - **out = **in - } - if in.ReadyToUse != nil { - in, out := &in.ReadyToUse, &out.ReadyToUse - *out = new(bool) - **out = **in - } - if in.Error != nil { - in, out := &in.Error, &out.Error - *out = new(v1.VolumeSnapshotError) - (*in).DeepCopyInto(*out) - } - if in.VolumeSnapshotContentRefList != nil { - in, out := &in.VolumeSnapshotContentRefList, &out.VolumeSnapshotContentRefList - *out = make([]corev1.ObjectReference, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotContentStatus. -func (in *VolumeGroupSnapshotContentStatus) DeepCopy() *VolumeGroupSnapshotContentStatus { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotContentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotList) DeepCopyInto(out *VolumeGroupSnapshotList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VolumeGroupSnapshot, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotList. -func (in *VolumeGroupSnapshotList) DeepCopy() *VolumeGroupSnapshotList { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeGroupSnapshotList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotSource) DeepCopyInto(out *VolumeGroupSnapshotSource) { - *out = *in - in.Selector.DeepCopyInto(&out.Selector) - if in.VolumeGroupSnapshotContentName != nil { - in, out := &in.VolumeGroupSnapshotContentName, &out.VolumeGroupSnapshotContentName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotSource. -func (in *VolumeGroupSnapshotSource) DeepCopy() *VolumeGroupSnapshotSource { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotSpec) DeepCopyInto(out *VolumeGroupSnapshotSpec) { - *out = *in - in.Source.DeepCopyInto(&out.Source) - if in.VolumeGroupSnapshotClassName != nil { - in, out := &in.VolumeGroupSnapshotClassName, &out.VolumeGroupSnapshotClassName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotSpec. -func (in *VolumeGroupSnapshotSpec) DeepCopy() *VolumeGroupSnapshotSpec { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeGroupSnapshotStatus) DeepCopyInto(out *VolumeGroupSnapshotStatus) { - *out = *in - if in.BoundVolumeGroupSnapshotContentName != nil { - in, out := &in.BoundVolumeGroupSnapshotContentName, &out.BoundVolumeGroupSnapshotContentName - *out = new(string) - **out = **in - } - if in.CreationTime != nil { - in, out := &in.CreationTime, &out.CreationTime - *out = (*in).DeepCopy() - } - if in.ReadyToUse != nil { - in, out := &in.ReadyToUse, &out.ReadyToUse - *out = new(bool) - **out = **in - } - if in.Error != nil { - in, out := &in.Error, &out.Error - *out = new(v1.VolumeSnapshotError) - (*in).DeepCopyInto(*out) - } - if in.VolumeSnapshotRefList != nil { - in, out := &in.VolumeSnapshotRefList, &out.VolumeSnapshotRefList - *out = make([]corev1.ObjectReference, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotStatus. -func (in *VolumeGroupSnapshotStatus) DeepCopy() *VolumeGroupSnapshotStatus { - if in == nil { - return nil - } - out := new(VolumeGroupSnapshotStatus) - in.DeepCopyInto(out) - return out -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/doc.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/doc.go deleted file mode 100644 index 462e9d485f..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// +k8s:deepcopy-gen=package -// +groupName=snapshot.storage.k8s.io - -package v1 diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/register.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/register.go deleted file mode 100644 index cca3da0b94..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/register.go +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package. -const GroupName = "snapshot.storage.k8s.io" - -var ( - // SchemeBuilder is the new scheme builder - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - // AddToScheme adds to scheme - AddToScheme = SchemeBuilder.AddToScheme - // SchemeGroupVersion is the group version used to register these objects. - SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} -) - -// Resource takes an unqualified resource and returns a Group-qualified GroupResource. -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - SchemeBuilder.Register(addKnownTypes) -} - -// addKnownTypes adds the set of types defined in this package to the supplied scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &VolumeSnapshotClass{}, - &VolumeSnapshotClassList{}, - &VolumeSnapshot{}, - &VolumeSnapshotList{}, - &VolumeSnapshotContent{}, - &VolumeSnapshotContentList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/types.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/types.go deleted file mode 100644 index 608094615e..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/types.go +++ /dev/null @@ -1,456 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// +kubebuilder:object:generate=true -package v1 - -import ( - core_v1 "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/api/resource" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// VolumeSnapshot is a user's request for either creating a point-in-time -// snapshot of a persistent volume, or binding to a pre-existing snapshot. -// +kubebuilder:object:root=true -// +kubebuilder:resource:scope=Namespaced,shortName=vs -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if the snapshot is ready to be used to restore a volume." -// +kubebuilder:printcolumn:name="SourcePVC",type=string,JSONPath=`.spec.source.persistentVolumeClaimName`,description="If a new snapshot needs to be created, this contains the name of the source PVC from which this snapshot was (or will be) created." -// +kubebuilder:printcolumn:name="SourceSnapshotContent",type=string,JSONPath=`.spec.source.volumeSnapshotContentName`,description="If a snapshot already exists, this contains the name of the existing VolumeSnapshotContent object representing the existing snapshot." -// +kubebuilder:printcolumn:name="RestoreSize",type=string,JSONPath=`.status.restoreSize`,description="Represents the minimum size of volume required to rehydrate from this snapshot." -// +kubebuilder:printcolumn:name="SnapshotClass",type=string,JSONPath=`.spec.volumeSnapshotClassName`,description="The name of the VolumeSnapshotClass requested by the VolumeSnapshot." -// +kubebuilder:printcolumn:name="SnapshotContent",type=string,JSONPath=`.status.boundVolumeSnapshotContentName`,description="Name of the VolumeSnapshotContent object to which the VolumeSnapshot object intends to bind to. Please note that verification of binding actually requires checking both VolumeSnapshot and VolumeSnapshotContent to ensure both are pointing at each other. Binding MUST be verified prior to usage of this object." -// +kubebuilder:printcolumn:name="CreationTime",type=date,JSONPath=`.status.creationTime`,description="Timestamp when the point-in-time snapshot was taken by the underlying storage system." -// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` -type VolumeSnapshot struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // spec defines the desired characteristics of a snapshot requested by a user. - // More info: https://kubernetes.io/docs/concepts/storage/volume-snapshots#volumesnapshots - // Required. - Spec VolumeSnapshotSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // status represents the current information of a snapshot. - // Consumers must verify binding between VolumeSnapshot and - // VolumeSnapshotContent objects is successful (by validating that both - // VolumeSnapshot and VolumeSnapshotContent point at each other) before - // using this object. - // +optional - Status *VolumeSnapshotStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// VolumeSnapshotList is a list of VolumeSnapshot objects -type VolumeSnapshotList struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of VolumeSnapshots - Items []VolumeSnapshot `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// VolumeSnapshotSpec describes the common attributes of a volume snapshot. -type VolumeSnapshotSpec struct { - // source specifies where a snapshot will be created from. - // This field is immutable after creation. - // Required. - Source VolumeSnapshotSource `json:"source" protobuf:"bytes,1,opt,name=source"` - - // VolumeSnapshotClassName is the name of the VolumeSnapshotClass - // requested by the VolumeSnapshot. - // VolumeSnapshotClassName may be left nil to indicate that the default - // SnapshotClass should be used. - // A given cluster may have multiple default Volume SnapshotClasses: one - // default per CSI Driver. If a VolumeSnapshot does not specify a SnapshotClass, - // VolumeSnapshotSource will be checked to figure out what the associated - // CSI Driver is, and the default VolumeSnapshotClass associated with that - // CSI Driver will be used. If more than one VolumeSnapshotClass exist for - // a given CSI Driver and more than one have been marked as default, - // CreateSnapshot will fail and generate an event. - // Empty string is not allowed for this field. - // +optional - VolumeSnapshotClassName *string `json:"volumeSnapshotClassName,omitempty" protobuf:"bytes,2,opt,name=volumeSnapshotClassName"` -} - -// VolumeSnapshotSource specifies whether the underlying snapshot should be -// dynamically taken upon creation or if a pre-existing VolumeSnapshotContent -// object should be used. -// Exactly one of its members must be set. -// Members in VolumeSnapshotSource are immutable. -type VolumeSnapshotSource struct { - // persistentVolumeClaimName specifies the name of the PersistentVolumeClaim - // object representing the volume from which a snapshot should be created. - // This PVC is assumed to be in the same namespace as the VolumeSnapshot - // object. - // This field should be set if the snapshot does not exists, and needs to be - // created. - // This field is immutable. - // +optional - PersistentVolumeClaimName *string `json:"persistentVolumeClaimName,omitempty" protobuf:"bytes,1,opt,name=persistentVolumeClaimName"` - - // volumeSnapshotContentName specifies the name of a pre-existing VolumeSnapshotContent - // object representing an existing volume snapshot. - // This field should be set if the snapshot already exists and only needs a representation in Kubernetes. - // This field is immutable. - // +optional - VolumeSnapshotContentName *string `json:"volumeSnapshotContentName,omitempty" protobuf:"bytes,2,opt,name=volumeSnapshotContentName"` -} - -// VolumeSnapshotStatus is the status of the VolumeSnapshot -// Note that CreationTime, RestoreSize, ReadyToUse, and Error are in both -// VolumeSnapshotStatus and VolumeSnapshotContentStatus. Fields in VolumeSnapshotStatus -// are updated based on fields in VolumeSnapshotContentStatus. They are eventual -// consistency. These fields are duplicate in both objects due to the following reasons: -// - Fields in VolumeSnapshotContentStatus can be used for filtering when importing a -// volumesnapshot. -// - VolumsnapshotStatus is used by end users because they cannot see VolumeSnapshotContent. -// - CSI snapshotter sidecar is light weight as it only watches VolumeSnapshotContent -// object, not VolumeSnapshot object. -type VolumeSnapshotStatus struct { - // boundVolumeSnapshotContentName is the name of the VolumeSnapshotContent - // object to which this VolumeSnapshot object intends to bind to. - // If not specified, it indicates that the VolumeSnapshot object has not been - // successfully bound to a VolumeSnapshotContent object yet. - // NOTE: To avoid possible security issues, consumers must verify binding between - // VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that - // both VolumeSnapshot and VolumeSnapshotContent point at each other) before using - // this object. - // +optional - BoundVolumeSnapshotContentName *string `json:"boundVolumeSnapshotContentName,omitempty" protobuf:"bytes,1,opt,name=boundVolumeSnapshotContentName"` - - // creationTime is the timestamp when the point-in-time snapshot is taken - // by the underlying storage system. - // In dynamic snapshot creation case, this field will be filled in by the - // snapshot controller with the "creation_time" value returned from CSI - // "CreateSnapshot" gRPC call. - // For a pre-existing snapshot, this field will be filled with the "creation_time" - // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. - // If not specified, it may indicate that the creation time of the snapshot is unknown. - // +optional - CreationTime *metav1.Time `json:"creationTime,omitempty" protobuf:"bytes,2,opt,name=creationTime"` - - // readyToUse indicates if the snapshot is ready to be used to restore a volume. - // In dynamic snapshot creation case, this field will be filled in by the - // snapshot controller with the "ready_to_use" value returned from CSI - // "CreateSnapshot" gRPC call. - // For a pre-existing snapshot, this field will be filled with the "ready_to_use" - // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, - // otherwise, this field will be set to "True". - // If not specified, it means the readiness of a snapshot is unknown. - // +optional - ReadyToUse *bool `json:"readyToUse,omitempty" protobuf:"varint,3,opt,name=readyToUse"` - - // restoreSize represents the minimum size of volume required to create a volume - // from this snapshot. - // In dynamic snapshot creation case, this field will be filled in by the - // snapshot controller with the "size_bytes" value returned from CSI - // "CreateSnapshot" gRPC call. - // For a pre-existing snapshot, this field will be filled with the "size_bytes" - // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. - // When restoring a volume from this snapshot, the size of the volume MUST NOT - // be smaller than the restoreSize if it is specified, otherwise the restoration will fail. - // If not specified, it indicates that the size is unknown. - // +optional - RestoreSize *resource.Quantity `json:"restoreSize,omitempty" protobuf:"bytes,4,opt,name=restoreSize"` - - // error is the last observed error during snapshot creation, if any. - // This field could be helpful to upper level controllers(i.e., application controller) - // to decide whether they should continue on waiting for the snapshot to be created - // based on the type of error reported. - // The snapshot controller will keep retrying when an error occurs during the - // snapshot creation. Upon success, this error field will be cleared. - // +optional - Error *VolumeSnapshotError `json:"error,omitempty" protobuf:"bytes,5,opt,name=error,casttype=VolumeSnapshotError"` - - // VolumeGroupSnapshotName is the name of the VolumeGroupSnapshot of which this - // VolumeSnapshot is a part of. - // +optional - VolumeGroupSnapshotName *string `json:"volumeGroupSnapshotName,omitempty" protobuf:"bytes,6,opt,name=volumeGroupSnapshotName"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// VolumeSnapshotClass specifies parameters that a underlying storage system uses when -// creating a volume snapshot. A specific VolumeSnapshotClass is used by specifying its -// name in a VolumeSnapshot object. -// VolumeSnapshotClasses are non-namespaced -// +kubebuilder:object:root=true -// +kubebuilder:resource:scope=Cluster,shortName=vsclass;vsclasses -// +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.driver` -// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.deletionPolicy`,description="Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted." -// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` -type VolumeSnapshotClass struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // driver is the name of the storage driver that handles this VolumeSnapshotClass. - // Required. - Driver string `json:"driver" protobuf:"bytes,2,opt,name=driver"` - - // parameters is a key-value map with storage driver specific parameters for creating snapshots. - // These values are opaque to Kubernetes. - // +optional - Parameters map[string]string `json:"parameters,omitempty" protobuf:"bytes,3,rep,name=parameters"` - - // deletionPolicy determines whether a VolumeSnapshotContent created through - // the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted. - // Supported values are "Retain" and "Delete". - // "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. - // "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. - // Required. - DeletionPolicy DeletionPolicy `json:"deletionPolicy" protobuf:"bytes,4,opt,name=deletionPolicy"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// VolumeSnapshotClassList is a collection of VolumeSnapshotClasses. -// +kubebuilder:object:root=true -type VolumeSnapshotClassList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of VolumeSnapshotClasses - Items []VolumeSnapshotClass `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// VolumeSnapshotContent represents the actual "on-disk" snapshot object in the -// underlying storage system -// +kubebuilder:object:root=true -// +kubebuilder:resource:scope=Cluster,shortName=vsc;vscs -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if the snapshot is ready to be used to restore a volume." -// +kubebuilder:printcolumn:name="RestoreSize",type=integer,JSONPath=`.status.restoreSize`,description="Represents the complete size of the snapshot in bytes" -// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.spec.deletionPolicy`,description="Determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted." -// +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.spec.driver`,description="Name of the CSI driver used to create the physical snapshot on the underlying storage system." -// +kubebuilder:printcolumn:name="VolumeSnapshotClass",type=string,JSONPath=`.spec.volumeSnapshotClassName`,description="Name of the VolumeSnapshotClass to which this snapshot belongs." -// +kubebuilder:printcolumn:name="VolumeSnapshot",type=string,JSONPath=`.spec.volumeSnapshotRef.name`,description="Name of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound." -// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` -type VolumeSnapshotContent struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // spec defines properties of a VolumeSnapshotContent created by the underlying storage system. - // Required. - Spec VolumeSnapshotContentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // status represents the current information of a snapshot. - // +optional - Status *VolumeSnapshotContentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// VolumeSnapshotContentList is a list of VolumeSnapshotContent objects -// +kubebuilder:object:root=true -type VolumeSnapshotContentList struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of VolumeSnapshotContents - Items []VolumeSnapshotContent `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// VolumeSnapshotContentSpec is the specification of a VolumeSnapshotContent -type VolumeSnapshotContentSpec struct { - // volumeSnapshotRef specifies the VolumeSnapshot object to which this - // VolumeSnapshotContent object is bound. - // VolumeSnapshot.Spec.VolumeSnapshotContentName field must reference to - // this VolumeSnapshotContent's name for the bidirectional binding to be valid. - // For a pre-existing VolumeSnapshotContent object, name and namespace of the - // VolumeSnapshot object MUST be provided for binding to happen. - // This field is immutable after creation. - // Required. - VolumeSnapshotRef core_v1.ObjectReference `json:"volumeSnapshotRef" protobuf:"bytes,1,opt,name=volumeSnapshotRef"` - - // deletionPolicy determines whether this VolumeSnapshotContent and its physical snapshot on - // the underlying storage system should be deleted when its bound VolumeSnapshot is deleted. - // Supported values are "Retain" and "Delete". - // "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. - // "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. - // For dynamically provisioned snapshots, this field will automatically be filled in by the - // CSI snapshotter sidecar with the "DeletionPolicy" field defined in the corresponding - // VolumeSnapshotClass. - // For pre-existing snapshots, users MUST specify this field when creating the - // VolumeSnapshotContent object. - // Required. - DeletionPolicy DeletionPolicy `json:"deletionPolicy" protobuf:"bytes,2,opt,name=deletionPolicy"` - - // driver is the name of the CSI driver used to create the physical snapshot on - // the underlying storage system. - // This MUST be the same as the name returned by the CSI GetPluginName() call for - // that driver. - // Required. - Driver string `json:"driver" protobuf:"bytes,3,opt,name=driver"` - - // name of the VolumeSnapshotClass from which this snapshot was (or will be) - // created. - // Note that after provisioning, the VolumeSnapshotClass may be deleted or - // recreated with different set of values, and as such, should not be referenced - // post-snapshot creation. - // +optional - VolumeSnapshotClassName *string `json:"volumeSnapshotClassName,omitempty" protobuf:"bytes,4,opt,name=volumeSnapshotClassName"` - - // source specifies whether the snapshot is (or should be) dynamically provisioned - // or already exists, and just requires a Kubernetes object representation. - // This field is immutable after creation. - // Required. - Source VolumeSnapshotContentSource `json:"source" protobuf:"bytes,5,opt,name=source"` - - // SourceVolumeMode is the mode of the volume whose snapshot is taken. - // Can be either “Filesystem” or “Block”. - // If not specified, it indicates the source volume's mode is unknown. - // This field is immutable. - // This field is an alpha field. - // +optional - SourceVolumeMode *core_v1.PersistentVolumeMode `json:"sourceVolumeMode" protobuf:"bytes,6,opt,name=sourceVolumeMode"` -} - -// VolumeSnapshotContentSource represents the CSI source of a snapshot. -// Exactly one of its members must be set. -// Members in VolumeSnapshotContentSource are immutable. -type VolumeSnapshotContentSource struct { - // volumeHandle specifies the CSI "volume_id" of the volume from which a snapshot - // should be dynamically taken from. - // This field is immutable. - // +optional - VolumeHandle *string `json:"volumeHandle,omitempty" protobuf:"bytes,1,opt,name=volumeHandle"` - - // snapshotHandle specifies the CSI "snapshot_id" of a pre-existing snapshot on - // the underlying storage system for which a Kubernetes object representation - // was (or should be) created. - // This field is immutable. - // +optional - SnapshotHandle *string `json:"snapshotHandle,omitempty" protobuf:"bytes,2,opt,name=snapshotHandle"` -} - -// VolumeSnapshotContentStatus is the status of a VolumeSnapshotContent object -// Note that CreationTime, RestoreSize, ReadyToUse, and Error are in both -// VolumeSnapshotStatus and VolumeSnapshotContentStatus. Fields in VolumeSnapshotStatus -// are updated based on fields in VolumeSnapshotContentStatus. They are eventual -// consistency. These fields are duplicate in both objects due to the following reasons: -// - Fields in VolumeSnapshotContentStatus can be used for filtering when importing a -// volumesnapshot. -// - VolumsnapshotStatus is used by end users because they cannot see VolumeSnapshotContent. -// - CSI snapshotter sidecar is light weight as it only watches VolumeSnapshotContent -// object, not VolumeSnapshot object. -type VolumeSnapshotContentStatus struct { - // snapshotHandle is the CSI "snapshot_id" of a snapshot on the underlying storage system. - // If not specified, it indicates that dynamic snapshot creation has either failed - // or it is still in progress. - // +optional - SnapshotHandle *string `json:"snapshotHandle,omitempty" protobuf:"bytes,1,opt,name=snapshotHandle"` - - // creationTime is the timestamp when the point-in-time snapshot is taken - // by the underlying storage system. - // In dynamic snapshot creation case, this field will be filled in by the - // CSI snapshotter sidecar with the "creation_time" value returned from CSI - // "CreateSnapshot" gRPC call. - // For a pre-existing snapshot, this field will be filled with the "creation_time" - // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. - // If not specified, it indicates the creation time is unknown. - // The format of this field is a Unix nanoseconds time encoded as an int64. - // On Unix, the command `date +%s%N` returns the current time in nanoseconds - // since 1970-01-01 00:00:00 UTC. - // +optional - CreationTime *int64 `json:"creationTime,omitempty" protobuf:"varint,2,opt,name=creationTime"` - - // restoreSize represents the complete size of the snapshot in bytes. - // In dynamic snapshot creation case, this field will be filled in by the - // CSI snapshotter sidecar with the "size_bytes" value returned from CSI - // "CreateSnapshot" gRPC call. - // For a pre-existing snapshot, this field will be filled with the "size_bytes" - // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. - // When restoring a volume from this snapshot, the size of the volume MUST NOT - // be smaller than the restoreSize if it is specified, otherwise the restoration will fail. - // If not specified, it indicates that the size is unknown. - // +kubebuilder:validation:Minimum=0 - // +optional - RestoreSize *int64 `json:"restoreSize,omitempty" protobuf:"bytes,3,opt,name=restoreSize"` - - // readyToUse indicates if a snapshot is ready to be used to restore a volume. - // In dynamic snapshot creation case, this field will be filled in by the - // CSI snapshotter sidecar with the "ready_to_use" value returned from CSI - // "CreateSnapshot" gRPC call. - // For a pre-existing snapshot, this field will be filled with the "ready_to_use" - // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, - // otherwise, this field will be set to "True". - // If not specified, it means the readiness of a snapshot is unknown. - // +optional. - ReadyToUse *bool `json:"readyToUse,omitempty" protobuf:"varint,4,opt,name=readyToUse"` - - // error is the last observed error during snapshot creation, if any. - // Upon success after retry, this error field will be cleared. - // +optional - Error *VolumeSnapshotError `json:"error,omitempty" protobuf:"bytes,5,opt,name=error,casttype=VolumeSnapshotError"` - - // VolumeGroupSnapshotContentName is the name of the VolumeGroupSnapshotContent of - // which this VolumeSnapshotContent is a part of. - // +optional - VolumeGroupSnapshotContentName *string `json:"volumeGroupSnapshotContentName,omitempty" protobuf:"bytes,6,opt,name=volumeGroupSnapshotContentName"` -} - -// DeletionPolicy describes a policy for end-of-life maintenance of volume snapshot contents -// +kubebuilder:validation:Enum=Delete;Retain -type DeletionPolicy string - -const ( - // volumeSnapshotContentDelete means the snapshot will be deleted from the - // underlying storage system on release from its volume snapshot. - VolumeSnapshotContentDelete DeletionPolicy = "Delete" - - // volumeSnapshotContentRetain means the snapshot will be left in its current - // state on release from its volume snapshot. - VolumeSnapshotContentRetain DeletionPolicy = "Retain" -) - -// VolumeSnapshotError describes an error encountered during snapshot creation. -type VolumeSnapshotError struct { - // time is the timestamp when the error was encountered. - // +optional - Time *metav1.Time `json:"time,omitempty" protobuf:"bytes,1,opt,name=time"` - - // message is a string detailing the encountered error during snapshot - // creation if specified. - // NOTE: message may be logged, and it should not contain sensitive - // information. - // +optional - Message *string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/zz_generated.deepcopy.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/zz_generated.deepcopy.go deleted file mode 100644 index 460309263f..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,441 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - corev1 "k8s.io/api/core/v1" - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshot) DeepCopyInto(out *VolumeSnapshot) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - if in.Status != nil { - in, out := &in.Status, &out.Status - *out = new(VolumeSnapshotStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshot. -func (in *VolumeSnapshot) DeepCopy() *VolumeSnapshot { - if in == nil { - return nil - } - out := new(VolumeSnapshot) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeSnapshot) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotClass) DeepCopyInto(out *VolumeSnapshotClass) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Parameters != nil { - in, out := &in.Parameters, &out.Parameters - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotClass. -func (in *VolumeSnapshotClass) DeepCopy() *VolumeSnapshotClass { - if in == nil { - return nil - } - out := new(VolumeSnapshotClass) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeSnapshotClass) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotClassList) DeepCopyInto(out *VolumeSnapshotClassList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VolumeSnapshotClass, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotClassList. -func (in *VolumeSnapshotClassList) DeepCopy() *VolumeSnapshotClassList { - if in == nil { - return nil - } - out := new(VolumeSnapshotClassList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeSnapshotClassList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotContent) DeepCopyInto(out *VolumeSnapshotContent) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - if in.Status != nil { - in, out := &in.Status, &out.Status - *out = new(VolumeSnapshotContentStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotContent. -func (in *VolumeSnapshotContent) DeepCopy() *VolumeSnapshotContent { - if in == nil { - return nil - } - out := new(VolumeSnapshotContent) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeSnapshotContent) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotContentList) DeepCopyInto(out *VolumeSnapshotContentList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VolumeSnapshotContent, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotContentList. -func (in *VolumeSnapshotContentList) DeepCopy() *VolumeSnapshotContentList { - if in == nil { - return nil - } - out := new(VolumeSnapshotContentList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeSnapshotContentList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotContentSource) DeepCopyInto(out *VolumeSnapshotContentSource) { - *out = *in - if in.VolumeHandle != nil { - in, out := &in.VolumeHandle, &out.VolumeHandle - *out = new(string) - **out = **in - } - if in.SnapshotHandle != nil { - in, out := &in.SnapshotHandle, &out.SnapshotHandle - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotContentSource. -func (in *VolumeSnapshotContentSource) DeepCopy() *VolumeSnapshotContentSource { - if in == nil { - return nil - } - out := new(VolumeSnapshotContentSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotContentSpec) DeepCopyInto(out *VolumeSnapshotContentSpec) { - *out = *in - out.VolumeSnapshotRef = in.VolumeSnapshotRef - if in.VolumeSnapshotClassName != nil { - in, out := &in.VolumeSnapshotClassName, &out.VolumeSnapshotClassName - *out = new(string) - **out = **in - } - in.Source.DeepCopyInto(&out.Source) - if in.SourceVolumeMode != nil { - in, out := &in.SourceVolumeMode, &out.SourceVolumeMode - *out = new(corev1.PersistentVolumeMode) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotContentSpec. -func (in *VolumeSnapshotContentSpec) DeepCopy() *VolumeSnapshotContentSpec { - if in == nil { - return nil - } - out := new(VolumeSnapshotContentSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotContentStatus) DeepCopyInto(out *VolumeSnapshotContentStatus) { - *out = *in - if in.SnapshotHandle != nil { - in, out := &in.SnapshotHandle, &out.SnapshotHandle - *out = new(string) - **out = **in - } - if in.CreationTime != nil { - in, out := &in.CreationTime, &out.CreationTime - *out = new(int64) - **out = **in - } - if in.RestoreSize != nil { - in, out := &in.RestoreSize, &out.RestoreSize - *out = new(int64) - **out = **in - } - if in.ReadyToUse != nil { - in, out := &in.ReadyToUse, &out.ReadyToUse - *out = new(bool) - **out = **in - } - if in.Error != nil { - in, out := &in.Error, &out.Error - *out = new(VolumeSnapshotError) - (*in).DeepCopyInto(*out) - } - if in.VolumeGroupSnapshotContentName != nil { - in, out := &in.VolumeGroupSnapshotContentName, &out.VolumeGroupSnapshotContentName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotContentStatus. -func (in *VolumeSnapshotContentStatus) DeepCopy() *VolumeSnapshotContentStatus { - if in == nil { - return nil - } - out := new(VolumeSnapshotContentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotError) DeepCopyInto(out *VolumeSnapshotError) { - *out = *in - if in.Time != nil { - in, out := &in.Time, &out.Time - *out = (*in).DeepCopy() - } - if in.Message != nil { - in, out := &in.Message, &out.Message - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotError. -func (in *VolumeSnapshotError) DeepCopy() *VolumeSnapshotError { - if in == nil { - return nil - } - out := new(VolumeSnapshotError) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotList) DeepCopyInto(out *VolumeSnapshotList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VolumeSnapshot, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotList. -func (in *VolumeSnapshotList) DeepCopy() *VolumeSnapshotList { - if in == nil { - return nil - } - out := new(VolumeSnapshotList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeSnapshotList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotSource) DeepCopyInto(out *VolumeSnapshotSource) { - *out = *in - if in.PersistentVolumeClaimName != nil { - in, out := &in.PersistentVolumeClaimName, &out.PersistentVolumeClaimName - *out = new(string) - **out = **in - } - if in.VolumeSnapshotContentName != nil { - in, out := &in.VolumeSnapshotContentName, &out.VolumeSnapshotContentName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotSource. -func (in *VolumeSnapshotSource) DeepCopy() *VolumeSnapshotSource { - if in == nil { - return nil - } - out := new(VolumeSnapshotSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotSpec) DeepCopyInto(out *VolumeSnapshotSpec) { - *out = *in - in.Source.DeepCopyInto(&out.Source) - if in.VolumeSnapshotClassName != nil { - in, out := &in.VolumeSnapshotClassName, &out.VolumeSnapshotClassName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotSpec. -func (in *VolumeSnapshotSpec) DeepCopy() *VolumeSnapshotSpec { - if in == nil { - return nil - } - out := new(VolumeSnapshotSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSnapshotStatus) DeepCopyInto(out *VolumeSnapshotStatus) { - *out = *in - if in.BoundVolumeSnapshotContentName != nil { - in, out := &in.BoundVolumeSnapshotContentName, &out.BoundVolumeSnapshotContentName - *out = new(string) - **out = **in - } - if in.CreationTime != nil { - in, out := &in.CreationTime, &out.CreationTime - *out = (*in).DeepCopy() - } - if in.ReadyToUse != nil { - in, out := &in.ReadyToUse, &out.ReadyToUse - *out = new(bool) - **out = **in - } - if in.RestoreSize != nil { - in, out := &in.RestoreSize, &out.RestoreSize - x := (*in).DeepCopy() - *out = &x - } - if in.Error != nil { - in, out := &in.Error, &out.Error - *out = new(VolumeSnapshotError) - (*in).DeepCopyInto(*out) - } - if in.VolumeGroupSnapshotName != nil { - in, out := &in.VolumeGroupSnapshotName, &out.VolumeGroupSnapshotName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotStatus. -func (in *VolumeSnapshotStatus) DeepCopy() *VolumeSnapshotStatus { - if in == nil { - return nil - } - out := new(VolumeSnapshotStatus) - in.DeepCopyInto(out) - return out -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/clientset.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/clientset.go deleted file mode 100644 index 03ca1e0c35..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/clientset.go +++ /dev/null @@ -1,133 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package versioned - -import ( - "fmt" - "net/http" - - groupsnapshotv1alpha1 "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1" - snapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1" - discovery "k8s.io/client-go/discovery" - rest "k8s.io/client-go/rest" - flowcontrol "k8s.io/client-go/util/flowcontrol" -) - -type Interface interface { - Discovery() discovery.DiscoveryInterface - GroupsnapshotV1alpha1() groupsnapshotv1alpha1.GroupsnapshotV1alpha1Interface - SnapshotV1() snapshotv1.SnapshotV1Interface -} - -// Clientset contains the clients for groups. -type Clientset struct { - *discovery.DiscoveryClient - groupsnapshotV1alpha1 *groupsnapshotv1alpha1.GroupsnapshotV1alpha1Client - snapshotV1 *snapshotv1.SnapshotV1Client -} - -// GroupsnapshotV1alpha1 retrieves the GroupsnapshotV1alpha1Client -func (c *Clientset) GroupsnapshotV1alpha1() groupsnapshotv1alpha1.GroupsnapshotV1alpha1Interface { - return c.groupsnapshotV1alpha1 -} - -// SnapshotV1 retrieves the SnapshotV1Client -func (c *Clientset) SnapshotV1() snapshotv1.SnapshotV1Interface { - return c.snapshotV1 -} - -// Discovery retrieves the DiscoveryClient -func (c *Clientset) Discovery() discovery.DiscoveryInterface { - if c == nil { - return nil - } - return c.DiscoveryClient -} - -// NewForConfig creates a new Clientset for the given config. -// If config's RateLimiter is not set and QPS and Burst are acceptable, -// NewForConfig will generate a rate-limiter in configShallowCopy. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*Clientset, error) { - configShallowCopy := *c - - if configShallowCopy.UserAgent == "" { - configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent() - } - - // share the transport between all clients - httpClient, err := rest.HTTPClientFor(&configShallowCopy) - if err != nil { - return nil, err - } - - return NewForConfigAndClient(&configShallowCopy, httpClient) -} - -// NewForConfigAndClient creates a new Clientset for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -// If config's RateLimiter is not set and QPS and Burst are acceptable, -// NewForConfigAndClient will generate a rate-limiter in configShallowCopy. -func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error) { - configShallowCopy := *c - if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 { - if configShallowCopy.Burst <= 0 { - return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0") - } - configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst) - } - - var cs Clientset - var err error - cs.groupsnapshotV1alpha1, err = groupsnapshotv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.snapshotV1, err = snapshotv1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - - cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - return &cs, nil -} - -// NewForConfigOrDie creates a new Clientset for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *Clientset { - cs, err := NewForConfig(c) - if err != nil { - panic(err) - } - return cs -} - -// New creates a new Clientset for the given RESTClient. -func New(c rest.Interface) *Clientset { - var cs Clientset - cs.groupsnapshotV1alpha1 = groupsnapshotv1alpha1.New(c) - cs.snapshotV1 = snapshotv1.New(c) - - cs.DiscoveryClient = discovery.NewDiscoveryClient(c) - return &cs -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme/doc.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme/doc.go deleted file mode 100644 index 6aa6c1e434..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package contains the scheme of the automatically generated clientset. -package scheme diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme/register.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme/register.go deleted file mode 100644 index d30e61fbc1..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme/register.go +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package scheme - -import ( - groupsnapshotv1alpha1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1" - snapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - schema "k8s.io/apimachinery/pkg/runtime/schema" - serializer "k8s.io/apimachinery/pkg/runtime/serializer" - utilruntime "k8s.io/apimachinery/pkg/util/runtime" -) - -var Scheme = runtime.NewScheme() -var Codecs = serializer.NewCodecFactory(Scheme) -var ParameterCodec = runtime.NewParameterCodec(Scheme) -var localSchemeBuilder = runtime.SchemeBuilder{ - groupsnapshotv1alpha1.AddToScheme, - snapshotv1.AddToScheme, -} - -// AddToScheme adds all types of this clientset into the given scheme. This allows composition -// of clientsets, like in: -// -// import ( -// "k8s.io/client-go/kubernetes" -// clientsetscheme "k8s.io/client-go/kubernetes/scheme" -// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" -// ) -// -// kclientset, _ := kubernetes.NewForConfig(c) -// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) -// -// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types -// correctly. -var AddToScheme = localSchemeBuilder.AddToScheme - -func init() { - v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"}) - utilruntime.Must(AddToScheme(Scheme)) -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/doc.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/doc.go deleted file mode 100644 index a022e3e2c6..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/generated_expansion.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/generated_expansion.go deleted file mode 100644 index 1c05db564c..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,25 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type VolumeGroupSnapshotExpansion interface{} - -type VolumeGroupSnapshotClassExpansion interface{} - -type VolumeGroupSnapshotContentExpansion interface{} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshot.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshot.go deleted file mode 100644 index c9428f012e..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshot.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1" - scheme "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// VolumeGroupSnapshotsGetter has a method to return a VolumeGroupSnapshotInterface. -// A group's client should implement this interface. -type VolumeGroupSnapshotsGetter interface { - VolumeGroupSnapshots(namespace string) VolumeGroupSnapshotInterface -} - -// VolumeGroupSnapshotInterface has methods to work with VolumeGroupSnapshot resources. -type VolumeGroupSnapshotInterface interface { - Create(ctx context.Context, volumeGroupSnapshot *v1alpha1.VolumeGroupSnapshot, opts v1.CreateOptions) (*v1alpha1.VolumeGroupSnapshot, error) - Update(ctx context.Context, volumeGroupSnapshot *v1alpha1.VolumeGroupSnapshot, opts v1.UpdateOptions) (*v1alpha1.VolumeGroupSnapshot, error) - UpdateStatus(ctx context.Context, volumeGroupSnapshot *v1alpha1.VolumeGroupSnapshot, opts v1.UpdateOptions) (*v1alpha1.VolumeGroupSnapshot, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.VolumeGroupSnapshot, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.VolumeGroupSnapshotList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.VolumeGroupSnapshot, err error) - VolumeGroupSnapshotExpansion -} - -// volumeGroupSnapshots implements VolumeGroupSnapshotInterface -type volumeGroupSnapshots struct { - client rest.Interface - ns string -} - -// newVolumeGroupSnapshots returns a VolumeGroupSnapshots -func newVolumeGroupSnapshots(c *GroupsnapshotV1alpha1Client, namespace string) *volumeGroupSnapshots { - return &volumeGroupSnapshots{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the volumeGroupSnapshot, and returns the corresponding volumeGroupSnapshot object, and an error if there is any. -func (c *volumeGroupSnapshots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.VolumeGroupSnapshot, err error) { - result = &v1alpha1.VolumeGroupSnapshot{} - err = c.client.Get(). - Namespace(c.ns). - Resource("volumegroupsnapshots"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of VolumeGroupSnapshots that match those selectors. -func (c *volumeGroupSnapshots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.VolumeGroupSnapshotList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.VolumeGroupSnapshotList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("volumegroupsnapshots"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested volumeGroupSnapshots. -func (c *volumeGroupSnapshots) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("volumegroupsnapshots"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a volumeGroupSnapshot and creates it. Returns the server's representation of the volumeGroupSnapshot, and an error, if there is any. -func (c *volumeGroupSnapshots) Create(ctx context.Context, volumeGroupSnapshot *v1alpha1.VolumeGroupSnapshot, opts v1.CreateOptions) (result *v1alpha1.VolumeGroupSnapshot, err error) { - result = &v1alpha1.VolumeGroupSnapshot{} - err = c.client.Post(). - Namespace(c.ns). - Resource("volumegroupsnapshots"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeGroupSnapshot). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a volumeGroupSnapshot and updates it. Returns the server's representation of the volumeGroupSnapshot, and an error, if there is any. -func (c *volumeGroupSnapshots) Update(ctx context.Context, volumeGroupSnapshot *v1alpha1.VolumeGroupSnapshot, opts v1.UpdateOptions) (result *v1alpha1.VolumeGroupSnapshot, err error) { - result = &v1alpha1.VolumeGroupSnapshot{} - err = c.client.Put(). - Namespace(c.ns). - Resource("volumegroupsnapshots"). - Name(volumeGroupSnapshot.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeGroupSnapshot). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *volumeGroupSnapshots) UpdateStatus(ctx context.Context, volumeGroupSnapshot *v1alpha1.VolumeGroupSnapshot, opts v1.UpdateOptions) (result *v1alpha1.VolumeGroupSnapshot, err error) { - result = &v1alpha1.VolumeGroupSnapshot{} - err = c.client.Put(). - Namespace(c.ns). - Resource("volumegroupsnapshots"). - Name(volumeGroupSnapshot.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeGroupSnapshot). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the volumeGroupSnapshot and deletes it. Returns an error if one occurs. -func (c *volumeGroupSnapshots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("volumegroupsnapshots"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *volumeGroupSnapshots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("volumegroupsnapshots"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched volumeGroupSnapshot. -func (c *volumeGroupSnapshots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.VolumeGroupSnapshot, err error) { - result = &v1alpha1.VolumeGroupSnapshot{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("volumegroupsnapshots"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshot_client.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshot_client.go deleted file mode 100644 index 310b02725d..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshot_client.go +++ /dev/null @@ -1,117 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1" - "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme" - rest "k8s.io/client-go/rest" -) - -type GroupsnapshotV1alpha1Interface interface { - RESTClient() rest.Interface - VolumeGroupSnapshotsGetter - VolumeGroupSnapshotClassesGetter - VolumeGroupSnapshotContentsGetter -} - -// GroupsnapshotV1alpha1Client is used to interact with features provided by the groupsnapshot.storage.k8s.io group. -type GroupsnapshotV1alpha1Client struct { - restClient rest.Interface -} - -func (c *GroupsnapshotV1alpha1Client) VolumeGroupSnapshots(namespace string) VolumeGroupSnapshotInterface { - return newVolumeGroupSnapshots(c, namespace) -} - -func (c *GroupsnapshotV1alpha1Client) VolumeGroupSnapshotClasses() VolumeGroupSnapshotClassInterface { - return newVolumeGroupSnapshotClasses(c) -} - -func (c *GroupsnapshotV1alpha1Client) VolumeGroupSnapshotContents() VolumeGroupSnapshotContentInterface { - return newVolumeGroupSnapshotContents(c) -} - -// NewForConfig creates a new GroupsnapshotV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*GroupsnapshotV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new GroupsnapshotV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*GroupsnapshotV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &GroupsnapshotV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new GroupsnapshotV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *GroupsnapshotV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new GroupsnapshotV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *GroupsnapshotV1alpha1Client { - return &GroupsnapshotV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *GroupsnapshotV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshotclass.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshotclass.go deleted file mode 100644 index d71be8cc1a..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshotclass.go +++ /dev/null @@ -1,168 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1" - scheme "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// VolumeGroupSnapshotClassesGetter has a method to return a VolumeGroupSnapshotClassInterface. -// A group's client should implement this interface. -type VolumeGroupSnapshotClassesGetter interface { - VolumeGroupSnapshotClasses() VolumeGroupSnapshotClassInterface -} - -// VolumeGroupSnapshotClassInterface has methods to work with VolumeGroupSnapshotClass resources. -type VolumeGroupSnapshotClassInterface interface { - Create(ctx context.Context, volumeGroupSnapshotClass *v1alpha1.VolumeGroupSnapshotClass, opts v1.CreateOptions) (*v1alpha1.VolumeGroupSnapshotClass, error) - Update(ctx context.Context, volumeGroupSnapshotClass *v1alpha1.VolumeGroupSnapshotClass, opts v1.UpdateOptions) (*v1alpha1.VolumeGroupSnapshotClass, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.VolumeGroupSnapshotClass, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.VolumeGroupSnapshotClassList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.VolumeGroupSnapshotClass, err error) - VolumeGroupSnapshotClassExpansion -} - -// volumeGroupSnapshotClasses implements VolumeGroupSnapshotClassInterface -type volumeGroupSnapshotClasses struct { - client rest.Interface -} - -// newVolumeGroupSnapshotClasses returns a VolumeGroupSnapshotClasses -func newVolumeGroupSnapshotClasses(c *GroupsnapshotV1alpha1Client) *volumeGroupSnapshotClasses { - return &volumeGroupSnapshotClasses{ - client: c.RESTClient(), - } -} - -// Get takes name of the volumeGroupSnapshotClass, and returns the corresponding volumeGroupSnapshotClass object, and an error if there is any. -func (c *volumeGroupSnapshotClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.VolumeGroupSnapshotClass, err error) { - result = &v1alpha1.VolumeGroupSnapshotClass{} - err = c.client.Get(). - Resource("volumegroupsnapshotclasses"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of VolumeGroupSnapshotClasses that match those selectors. -func (c *volumeGroupSnapshotClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.VolumeGroupSnapshotClassList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.VolumeGroupSnapshotClassList{} - err = c.client.Get(). - Resource("volumegroupsnapshotclasses"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested volumeGroupSnapshotClasses. -func (c *volumeGroupSnapshotClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("volumegroupsnapshotclasses"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a volumeGroupSnapshotClass and creates it. Returns the server's representation of the volumeGroupSnapshotClass, and an error, if there is any. -func (c *volumeGroupSnapshotClasses) Create(ctx context.Context, volumeGroupSnapshotClass *v1alpha1.VolumeGroupSnapshotClass, opts v1.CreateOptions) (result *v1alpha1.VolumeGroupSnapshotClass, err error) { - result = &v1alpha1.VolumeGroupSnapshotClass{} - err = c.client.Post(). - Resource("volumegroupsnapshotclasses"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeGroupSnapshotClass). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a volumeGroupSnapshotClass and updates it. Returns the server's representation of the volumeGroupSnapshotClass, and an error, if there is any. -func (c *volumeGroupSnapshotClasses) Update(ctx context.Context, volumeGroupSnapshotClass *v1alpha1.VolumeGroupSnapshotClass, opts v1.UpdateOptions) (result *v1alpha1.VolumeGroupSnapshotClass, err error) { - result = &v1alpha1.VolumeGroupSnapshotClass{} - err = c.client.Put(). - Resource("volumegroupsnapshotclasses"). - Name(volumeGroupSnapshotClass.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeGroupSnapshotClass). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the volumeGroupSnapshotClass and deletes it. Returns an error if one occurs. -func (c *volumeGroupSnapshotClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("volumegroupsnapshotclasses"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *volumeGroupSnapshotClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("volumegroupsnapshotclasses"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched volumeGroupSnapshotClass. -func (c *volumeGroupSnapshotClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.VolumeGroupSnapshotClass, err error) { - result = &v1alpha1.VolumeGroupSnapshotClass{} - err = c.client.Patch(pt). - Resource("volumegroupsnapshotclasses"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshotcontent.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshotcontent.go deleted file mode 100644 index b2c202544c..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1/volumegroupsnapshotcontent.go +++ /dev/null @@ -1,184 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1" - scheme "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// VolumeGroupSnapshotContentsGetter has a method to return a VolumeGroupSnapshotContentInterface. -// A group's client should implement this interface. -type VolumeGroupSnapshotContentsGetter interface { - VolumeGroupSnapshotContents() VolumeGroupSnapshotContentInterface -} - -// VolumeGroupSnapshotContentInterface has methods to work with VolumeGroupSnapshotContent resources. -type VolumeGroupSnapshotContentInterface interface { - Create(ctx context.Context, volumeGroupSnapshotContent *v1alpha1.VolumeGroupSnapshotContent, opts v1.CreateOptions) (*v1alpha1.VolumeGroupSnapshotContent, error) - Update(ctx context.Context, volumeGroupSnapshotContent *v1alpha1.VolumeGroupSnapshotContent, opts v1.UpdateOptions) (*v1alpha1.VolumeGroupSnapshotContent, error) - UpdateStatus(ctx context.Context, volumeGroupSnapshotContent *v1alpha1.VolumeGroupSnapshotContent, opts v1.UpdateOptions) (*v1alpha1.VolumeGroupSnapshotContent, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.VolumeGroupSnapshotContent, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.VolumeGroupSnapshotContentList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.VolumeGroupSnapshotContent, err error) - VolumeGroupSnapshotContentExpansion -} - -// volumeGroupSnapshotContents implements VolumeGroupSnapshotContentInterface -type volumeGroupSnapshotContents struct { - client rest.Interface -} - -// newVolumeGroupSnapshotContents returns a VolumeGroupSnapshotContents -func newVolumeGroupSnapshotContents(c *GroupsnapshotV1alpha1Client) *volumeGroupSnapshotContents { - return &volumeGroupSnapshotContents{ - client: c.RESTClient(), - } -} - -// Get takes name of the volumeGroupSnapshotContent, and returns the corresponding volumeGroupSnapshotContent object, and an error if there is any. -func (c *volumeGroupSnapshotContents) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.VolumeGroupSnapshotContent, err error) { - result = &v1alpha1.VolumeGroupSnapshotContent{} - err = c.client.Get(). - Resource("volumegroupsnapshotcontents"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of VolumeGroupSnapshotContents that match those selectors. -func (c *volumeGroupSnapshotContents) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.VolumeGroupSnapshotContentList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.VolumeGroupSnapshotContentList{} - err = c.client.Get(). - Resource("volumegroupsnapshotcontents"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested volumeGroupSnapshotContents. -func (c *volumeGroupSnapshotContents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("volumegroupsnapshotcontents"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a volumeGroupSnapshotContent and creates it. Returns the server's representation of the volumeGroupSnapshotContent, and an error, if there is any. -func (c *volumeGroupSnapshotContents) Create(ctx context.Context, volumeGroupSnapshotContent *v1alpha1.VolumeGroupSnapshotContent, opts v1.CreateOptions) (result *v1alpha1.VolumeGroupSnapshotContent, err error) { - result = &v1alpha1.VolumeGroupSnapshotContent{} - err = c.client.Post(). - Resource("volumegroupsnapshotcontents"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeGroupSnapshotContent). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a volumeGroupSnapshotContent and updates it. Returns the server's representation of the volumeGroupSnapshotContent, and an error, if there is any. -func (c *volumeGroupSnapshotContents) Update(ctx context.Context, volumeGroupSnapshotContent *v1alpha1.VolumeGroupSnapshotContent, opts v1.UpdateOptions) (result *v1alpha1.VolumeGroupSnapshotContent, err error) { - result = &v1alpha1.VolumeGroupSnapshotContent{} - err = c.client.Put(). - Resource("volumegroupsnapshotcontents"). - Name(volumeGroupSnapshotContent.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeGroupSnapshotContent). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *volumeGroupSnapshotContents) UpdateStatus(ctx context.Context, volumeGroupSnapshotContent *v1alpha1.VolumeGroupSnapshotContent, opts v1.UpdateOptions) (result *v1alpha1.VolumeGroupSnapshotContent, err error) { - result = &v1alpha1.VolumeGroupSnapshotContent{} - err = c.client.Put(). - Resource("volumegroupsnapshotcontents"). - Name(volumeGroupSnapshotContent.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeGroupSnapshotContent). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the volumeGroupSnapshotContent and deletes it. Returns an error if one occurs. -func (c *volumeGroupSnapshotContents) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("volumegroupsnapshotcontents"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *volumeGroupSnapshotContents) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("volumegroupsnapshotcontents"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched volumeGroupSnapshotContent. -func (c *volumeGroupSnapshotContents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.VolumeGroupSnapshotContent, err error) { - result = &v1alpha1.VolumeGroupSnapshotContent{} - err = c.client.Patch(pt). - Resource("volumegroupsnapshotcontents"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/doc.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/doc.go deleted file mode 100644 index 3f195da749..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1 diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/generated_expansion.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/generated_expansion.go deleted file mode 100644 index 97bf47644f..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/generated_expansion.go +++ /dev/null @@ -1,25 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -type VolumeSnapshotExpansion interface{} - -type VolumeSnapshotClassExpansion interface{} - -type VolumeSnapshotContentExpansion interface{} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot.go deleted file mode 100644 index 71750804c0..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - "context" - "time" - - v1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1" - scheme "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// VolumeSnapshotsGetter has a method to return a VolumeSnapshotInterface. -// A group's client should implement this interface. -type VolumeSnapshotsGetter interface { - VolumeSnapshots(namespace string) VolumeSnapshotInterface -} - -// VolumeSnapshotInterface has methods to work with VolumeSnapshot resources. -type VolumeSnapshotInterface interface { - Create(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.CreateOptions) (*v1.VolumeSnapshot, error) - Update(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.UpdateOptions) (*v1.VolumeSnapshot, error) - UpdateStatus(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.UpdateOptions) (*v1.VolumeSnapshot, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.VolumeSnapshot, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.VolumeSnapshotList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshot, err error) - VolumeSnapshotExpansion -} - -// volumeSnapshots implements VolumeSnapshotInterface -type volumeSnapshots struct { - client rest.Interface - ns string -} - -// newVolumeSnapshots returns a VolumeSnapshots -func newVolumeSnapshots(c *SnapshotV1Client, namespace string) *volumeSnapshots { - return &volumeSnapshots{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the volumeSnapshot, and returns the corresponding volumeSnapshot object, and an error if there is any. -func (c *volumeSnapshots) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshot, err error) { - result = &v1.VolumeSnapshot{} - err = c.client.Get(). - Namespace(c.ns). - Resource("volumesnapshots"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of VolumeSnapshots that match those selectors. -func (c *volumeSnapshots) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1.VolumeSnapshotList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("volumesnapshots"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested volumeSnapshots. -func (c *volumeSnapshots) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("volumesnapshots"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a volumeSnapshot and creates it. Returns the server's representation of the volumeSnapshot, and an error, if there is any. -func (c *volumeSnapshots) Create(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.CreateOptions) (result *v1.VolumeSnapshot, err error) { - result = &v1.VolumeSnapshot{} - err = c.client.Post(). - Namespace(c.ns). - Resource("volumesnapshots"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeSnapshot). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a volumeSnapshot and updates it. Returns the server's representation of the volumeSnapshot, and an error, if there is any. -func (c *volumeSnapshots) Update(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.UpdateOptions) (result *v1.VolumeSnapshot, err error) { - result = &v1.VolumeSnapshot{} - err = c.client.Put(). - Namespace(c.ns). - Resource("volumesnapshots"). - Name(volumeSnapshot.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeSnapshot). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *volumeSnapshots) UpdateStatus(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.UpdateOptions) (result *v1.VolumeSnapshot, err error) { - result = &v1.VolumeSnapshot{} - err = c.client.Put(). - Namespace(c.ns). - Resource("volumesnapshots"). - Name(volumeSnapshot.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeSnapshot). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the volumeSnapshot and deletes it. Returns an error if one occurs. -func (c *volumeSnapshots) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("volumesnapshots"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *volumeSnapshots) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("volumesnapshots"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched volumeSnapshot. -func (c *volumeSnapshots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshot, err error) { - result = &v1.VolumeSnapshot{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("volumesnapshots"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot_client.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot_client.go deleted file mode 100644 index 56a6795a11..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot_client.go +++ /dev/null @@ -1,117 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - "net/http" - - v1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1" - "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme" - rest "k8s.io/client-go/rest" -) - -type SnapshotV1Interface interface { - RESTClient() rest.Interface - VolumeSnapshotsGetter - VolumeSnapshotClassesGetter - VolumeSnapshotContentsGetter -} - -// SnapshotV1Client is used to interact with features provided by the snapshot.storage.k8s.io group. -type SnapshotV1Client struct { - restClient rest.Interface -} - -func (c *SnapshotV1Client) VolumeSnapshots(namespace string) VolumeSnapshotInterface { - return newVolumeSnapshots(c, namespace) -} - -func (c *SnapshotV1Client) VolumeSnapshotClasses() VolumeSnapshotClassInterface { - return newVolumeSnapshotClasses(c) -} - -func (c *SnapshotV1Client) VolumeSnapshotContents() VolumeSnapshotContentInterface { - return newVolumeSnapshotContents(c) -} - -// NewForConfig creates a new SnapshotV1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*SnapshotV1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new SnapshotV1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*SnapshotV1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &SnapshotV1Client{client}, nil -} - -// NewForConfigOrDie creates a new SnapshotV1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *SnapshotV1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new SnapshotV1Client for the given RESTClient. -func New(c rest.Interface) *SnapshotV1Client { - return &SnapshotV1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *SnapshotV1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotclass.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotclass.go deleted file mode 100644 index 1fbd3a1747..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotclass.go +++ /dev/null @@ -1,168 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - "context" - "time" - - v1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1" - scheme "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// VolumeSnapshotClassesGetter has a method to return a VolumeSnapshotClassInterface. -// A group's client should implement this interface. -type VolumeSnapshotClassesGetter interface { - VolumeSnapshotClasses() VolumeSnapshotClassInterface -} - -// VolumeSnapshotClassInterface has methods to work with VolumeSnapshotClass resources. -type VolumeSnapshotClassInterface interface { - Create(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, opts metav1.CreateOptions) (*v1.VolumeSnapshotClass, error) - Update(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, opts metav1.UpdateOptions) (*v1.VolumeSnapshotClass, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.VolumeSnapshotClass, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.VolumeSnapshotClassList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshotClass, err error) - VolumeSnapshotClassExpansion -} - -// volumeSnapshotClasses implements VolumeSnapshotClassInterface -type volumeSnapshotClasses struct { - client rest.Interface -} - -// newVolumeSnapshotClasses returns a VolumeSnapshotClasses -func newVolumeSnapshotClasses(c *SnapshotV1Client) *volumeSnapshotClasses { - return &volumeSnapshotClasses{ - client: c.RESTClient(), - } -} - -// Get takes name of the volumeSnapshotClass, and returns the corresponding volumeSnapshotClass object, and an error if there is any. -func (c *volumeSnapshotClasses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshotClass, err error) { - result = &v1.VolumeSnapshotClass{} - err = c.client.Get(). - Resource("volumesnapshotclasses"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of VolumeSnapshotClasses that match those selectors. -func (c *volumeSnapshotClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotClassList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1.VolumeSnapshotClassList{} - err = c.client.Get(). - Resource("volumesnapshotclasses"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested volumeSnapshotClasses. -func (c *volumeSnapshotClasses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("volumesnapshotclasses"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a volumeSnapshotClass and creates it. Returns the server's representation of the volumeSnapshotClass, and an error, if there is any. -func (c *volumeSnapshotClasses) Create(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, opts metav1.CreateOptions) (result *v1.VolumeSnapshotClass, err error) { - result = &v1.VolumeSnapshotClass{} - err = c.client.Post(). - Resource("volumesnapshotclasses"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeSnapshotClass). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a volumeSnapshotClass and updates it. Returns the server's representation of the volumeSnapshotClass, and an error, if there is any. -func (c *volumeSnapshotClasses) Update(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, opts metav1.UpdateOptions) (result *v1.VolumeSnapshotClass, err error) { - result = &v1.VolumeSnapshotClass{} - err = c.client.Put(). - Resource("volumesnapshotclasses"). - Name(volumeSnapshotClass.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeSnapshotClass). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the volumeSnapshotClass and deletes it. Returns an error if one occurs. -func (c *volumeSnapshotClasses) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - return c.client.Delete(). - Resource("volumesnapshotclasses"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *volumeSnapshotClasses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("volumesnapshotclasses"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched volumeSnapshotClass. -func (c *volumeSnapshotClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshotClass, err error) { - result = &v1.VolumeSnapshotClass{} - err = c.client.Patch(pt). - Resource("volumesnapshotclasses"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotcontent.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotcontent.go deleted file mode 100644 index 389411c255..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotcontent.go +++ /dev/null @@ -1,184 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - "context" - "time" - - v1 "github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1" - scheme "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// VolumeSnapshotContentsGetter has a method to return a VolumeSnapshotContentInterface. -// A group's client should implement this interface. -type VolumeSnapshotContentsGetter interface { - VolumeSnapshotContents() VolumeSnapshotContentInterface -} - -// VolumeSnapshotContentInterface has methods to work with VolumeSnapshotContent resources. -type VolumeSnapshotContentInterface interface { - Create(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.CreateOptions) (*v1.VolumeSnapshotContent, error) - Update(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.UpdateOptions) (*v1.VolumeSnapshotContent, error) - UpdateStatus(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.UpdateOptions) (*v1.VolumeSnapshotContent, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.VolumeSnapshotContent, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.VolumeSnapshotContentList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshotContent, err error) - VolumeSnapshotContentExpansion -} - -// volumeSnapshotContents implements VolumeSnapshotContentInterface -type volumeSnapshotContents struct { - client rest.Interface -} - -// newVolumeSnapshotContents returns a VolumeSnapshotContents -func newVolumeSnapshotContents(c *SnapshotV1Client) *volumeSnapshotContents { - return &volumeSnapshotContents{ - client: c.RESTClient(), - } -} - -// Get takes name of the volumeSnapshotContent, and returns the corresponding volumeSnapshotContent object, and an error if there is any. -func (c *volumeSnapshotContents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshotContent, err error) { - result = &v1.VolumeSnapshotContent{} - err = c.client.Get(). - Resource("volumesnapshotcontents"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of VolumeSnapshotContents that match those selectors. -func (c *volumeSnapshotContents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotContentList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1.VolumeSnapshotContentList{} - err = c.client.Get(). - Resource("volumesnapshotcontents"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested volumeSnapshotContents. -func (c *volumeSnapshotContents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("volumesnapshotcontents"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a volumeSnapshotContent and creates it. Returns the server's representation of the volumeSnapshotContent, and an error, if there is any. -func (c *volumeSnapshotContents) Create(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.CreateOptions) (result *v1.VolumeSnapshotContent, err error) { - result = &v1.VolumeSnapshotContent{} - err = c.client.Post(). - Resource("volumesnapshotcontents"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeSnapshotContent). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a volumeSnapshotContent and updates it. Returns the server's representation of the volumeSnapshotContent, and an error, if there is any. -func (c *volumeSnapshotContents) Update(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.UpdateOptions) (result *v1.VolumeSnapshotContent, err error) { - result = &v1.VolumeSnapshotContent{} - err = c.client.Put(). - Resource("volumesnapshotcontents"). - Name(volumeSnapshotContent.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeSnapshotContent). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *volumeSnapshotContents) UpdateStatus(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.UpdateOptions) (result *v1.VolumeSnapshotContent, err error) { - result = &v1.VolumeSnapshotContent{} - err = c.client.Put(). - Resource("volumesnapshotcontents"). - Name(volumeSnapshotContent.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(volumeSnapshotContent). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the volumeSnapshotContent and deletes it. Returns an error if one occurs. -func (c *volumeSnapshotContents) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - return c.client.Delete(). - Resource("volumesnapshotcontents"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *volumeSnapshotContents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("volumesnapshotcontents"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched volumeSnapshotContent. -func (c *volumeSnapshotContents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshotContent, err error) { - result = &v1.VolumeSnapshotContent{} - err = c.client.Patch(pt). - Resource("volumesnapshotcontents"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/LICENSE b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/LICENSE similarity index 100% rename from vendor/github.com/kubernetes-csi/external-snapshotter/client/v6/LICENSE rename to vendor/github.com/kubernetes-csi/external-snapshotter/v8/LICENSE diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/common-controller/groupsnapshot_controller_helper.go b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/common-controller/groupsnapshot_controller_helper.go new file mode 100644 index 0000000000..c6f91ed4b9 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/common-controller/groupsnapshot_controller_helper.go @@ -0,0 +1,1653 @@ +/* +Copyright 2023 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package common_controller + +import ( + "context" + "crypto/sha256" + "errors" + "fmt" + "time" + + v1 "k8s.io/api/core/v1" + apierrs "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/apimachinery/pkg/types" + "k8s.io/client-go/kubernetes/scheme" + ref "k8s.io/client-go/tools/reference" + klog "k8s.io/klog/v2" + + crdv1beta1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1" + crdv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" + "github.com/kubernetes-csi/external-snapshotter/v8/pkg/metrics" + "github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils" +) + +func (ctrl *csiSnapshotCommonController) storeGroupSnapshotUpdate(groupsnapshot interface{}) (bool, error) { + return utils.StoreObjectUpdate(ctrl.groupSnapshotStore, groupsnapshot, "groupsnapshot") +} + +func (ctrl *csiSnapshotCommonController) storeGroupSnapshotContentUpdate(groupsnapshotcontent interface{}) (bool, error) { + return utils.StoreObjectUpdate(ctrl.groupSnapshotContentStore, groupsnapshotcontent, "groupsnapshotcontent") +} + +// getGroupSnapshotClass is a helper function to get group snapshot class from the group snapshot class name. +func (ctrl *csiSnapshotCommonController) getGroupSnapshotClass(className string) (*crdv1beta1.VolumeGroupSnapshotClass, error) { + klog.V(5).Infof("getGroupSnapshotClass: VolumeGroupSnapshotClassName [%s]", className) + + groupSnapshotClass, err := ctrl.groupSnapshotClassLister.Get(className) + if err != nil { + klog.Errorf("failed to retrieve group snapshot class %s from the informer: %q", className, err) + return nil, err + } + + return groupSnapshotClass, nil +} + +// updateGroupSnapshotErrorStatusWithEvent saves new groupsnapshot.Status to API +// server and emits given event on the group snapshot. It saves the status and +// emits the event only when the status has actually changed from the version +// saved in API server. +// +// Parameters: +// +// - groupSnapshot - group snapshot to update +// - setReadyToFalse bool - indicates whether to set the group snapshot's +// ReadyToUse status to false. +// if true, ReadyToUse will be set to false; +// otherwise, ReadyToUse will not be changed. +// - eventtype, reason, message - event to send, see EventRecorder.Event() +func (ctrl *csiSnapshotCommonController) updateGroupSnapshotErrorStatusWithEvent(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, setReadyToFalse bool, eventtype, reason, message string) error { + klog.V(5).Infof("updateGroupSnapshotErrorStatusWithEvent[%s]", utils.GroupSnapshotKey(groupSnapshot)) + + if groupSnapshot.Status != nil && groupSnapshot.Status.Error != nil && *groupSnapshot.Status.Error.Message == message { + klog.V(4).Infof("updateGroupSnapshotErrorStatusWithEvent[%s]: the same error %v is already set", groupSnapshot.Name, groupSnapshot.Status.Error) + return nil + } + groupSnapshotClone := groupSnapshot.DeepCopy() + if groupSnapshotClone.Status == nil { + groupSnapshotClone.Status = &crdv1beta1.VolumeGroupSnapshotStatus{} + } + statusError := &crdv1.VolumeSnapshotError{ + Time: &metav1.Time{ + Time: time.Now(), + }, + Message: &message, + } + groupSnapshotClone.Status.Error = statusError + // Only update ReadyToUse in VolumeGroupSnapshot's Status to false if setReadyToFalse is true. + if setReadyToFalse { + ready := false + groupSnapshotClone.Status.ReadyToUse = &ready + } + newSnapshot, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshotClone.Namespace).UpdateStatus(context.TODO(), groupSnapshotClone, metav1.UpdateOptions{}) + + // Emit the event even if the status update fails so that user can see the error + ctrl.eventRecorder.Event(newSnapshot, eventtype, reason, message) + + if err != nil { + klog.V(4).Infof("updating VolumeGroupSnapshot[%s] error status failed %v", utils.GroupSnapshotKey(groupSnapshot), err) + return err + } + + _, err = ctrl.storeGroupSnapshotUpdate(newSnapshot) + if err != nil { + klog.V(4).Infof("updating VolumeGroupSnapshot[%s] error status: cannot update internal cache %v", utils.GroupSnapshotKey(groupSnapshot), err) + return err + } + + return nil +} + +// SetDefaultGroupSnapshotClass is a helper function to figure out the default +// group snapshot class. +// For pre-provisioned case, it's an no-op. +// For dynamic provisioning, it gets the default GroupSnapshotClasses in the +// system if there is any (could be multiple), and finds the one with the same +// CSI Driver as a PV from which a group snapshot will be taken. +func (ctrl *csiSnapshotCommonController) SetDefaultGroupSnapshotClass(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshotClass, *crdv1beta1.VolumeGroupSnapshot, error) { + klog.V(5).Infof("SetDefaultGroupSnapshotClass for group snapshot [%s]", groupSnapshot.Name) + + if groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil { + // don't return error for pre-provisioned group snapshots + klog.V(5).Infof("Don't need to find GroupSnapshotClass for pre-provisioned group snapshot [%s]", groupSnapshot.Name) + return nil, groupSnapshot, nil + } + + // Find default group snapshot class if available + list, err := ctrl.groupSnapshotClassLister.List(labels.Everything()) + if err != nil { + return nil, groupSnapshot, err + } + + pvDriver, err := ctrl.pvDriverFromGroupSnapshot(groupSnapshot) + if err != nil { + klog.Errorf("failed to get pv csi driver from group snapshot %s/%s: %q", groupSnapshot.Namespace, groupSnapshot.Name, err) + return nil, groupSnapshot, err + } + + defaultClasses := []*crdv1beta1.VolumeGroupSnapshotClass{} + for _, groupSnapshotClass := range list { + if utils.IsVolumeGroupSnapshotClassDefaultAnnotation(groupSnapshotClass.ObjectMeta) && pvDriver == groupSnapshotClass.Driver { + defaultClasses = append(defaultClasses, groupSnapshotClass) + klog.V(5).Infof("get defaultGroupClass added: %s, driver: %s", groupSnapshotClass.Name, pvDriver) + } + } + if len(defaultClasses) == 0 { + return nil, groupSnapshot, fmt.Errorf("cannot find default group snapshot class") + } + if len(defaultClasses) > 1 { + klog.V(4).Infof("get DefaultGroupSnapshotClass %d defaults found", len(defaultClasses)) + return nil, groupSnapshot, fmt.Errorf("%d default snapshot classes were found", len(defaultClasses)) + } + klog.V(5).Infof("setDefaultGroupSnapshotClass [%s]: default VolumeGroupSnapshotClassName [%s]", groupSnapshot.Name, defaultClasses[0].Name) + groupSnapshotClone := groupSnapshot.DeepCopy() + groupSnapshotClone.Spec.VolumeGroupSnapshotClassName = &(defaultClasses[0].Name) + newGroupSnapshot, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshotClone.Namespace).Update(context.TODO(), groupSnapshotClone, metav1.UpdateOptions{}) + if err != nil { + klog.V(4).Infof("updating VolumeGroupSnapshot[%s] default group snapshot class failed %v", utils.GroupSnapshotKey(groupSnapshot), err) + } + _, updateErr := ctrl.storeGroupSnapshotUpdate(newGroupSnapshot) + if updateErr != nil { + // We will get a "group snapshot update" event soon, this is not a big error + klog.V(4).Infof("setDefaultSnapshotClass [%s]: cannot update internal cache: %v", utils.GroupSnapshotKey(groupSnapshot), updateErr) + } + + return defaultClasses[0], newGroupSnapshot, nil +} + +// pvDriverFromGroupSnapshot is a helper function to get the CSI driver name from the targeted persistent volume. +// It looks up every PVC from which the group snapshot is specified to be created from, and looks for the PVC's +// corresponding PV. Bi-directional binding will be verified between PVC and PV before the PV's CSI driver is returned. +// For an non-CSI volume, it returns an error immediately as it's not supported. +func (ctrl *csiSnapshotCommonController) pvDriverFromGroupSnapshot(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (string, error) { + pvs, err := ctrl.getVolumesFromVolumeGroupSnapshot(groupSnapshot) + if err != nil { + return "", err + } + // Take any volume to get the driver + if pvs[0].Spec.PersistentVolumeSource.CSI == nil { + return "", fmt.Errorf("snapshotting non-CSI volumes is not supported, group snapshot:%s/%s", groupSnapshot.Namespace, groupSnapshot.Name) + } + return pvs[0].Spec.PersistentVolumeSource.CSI.Driver, nil +} + +// getVolumesFromVolumeGroupSnapshot returns the list of PersistentVolume from a VolumeGroupSnapshot. +func (ctrl *csiSnapshotCommonController) getVolumesFromVolumeGroupSnapshot(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) ([]*v1.PersistentVolume, error) { + var pvReturnList []*v1.PersistentVolume + pvcs, err := ctrl.getClaimsFromVolumeGroupSnapshot(groupSnapshot) + if err != nil { + return nil, err + } + + for _, pvc := range pvcs { + if pvc.Status.Phase != v1.ClaimBound { + return nil, fmt.Errorf("the PVC %s is not yet bound to a PV, will not attempt to take a group snapshot", pvc.Name) + } + pvName := pvc.Spec.VolumeName + pv, err := ctrl.client.CoreV1().PersistentVolumes().Get(context.TODO(), pvName, metav1.GetOptions{}) + if err != nil { + return nil, fmt.Errorf("failed to retrieve PV %s from the API server: %q", pvName, err) + } + + // Verify binding between PV/PVC is still valid + bound := ctrl.isVolumeBoundToClaim(pv, &pvc) + if bound == false { + klog.Warningf("binding between PV %s and PVC %s is broken", pvName, pvc.Name) + return nil, fmt.Errorf("claim in dataSource not bound or invalid") + } + pvReturnList = append(pvReturnList, pv) + klog.V(5).Infof("getVolumeFromVolumeGroupSnapshot: group snapshot [%s] PV name [%s]", groupSnapshot.Name, pvName) + } + + return pvReturnList, nil +} + +// getClaimsFromVolumeGroupSnapshot is a helper function to get a list of PVCs from VolumeGroupSnapshot. +func (ctrl *csiSnapshotCommonController) getClaimsFromVolumeGroupSnapshot(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) ([]v1.PersistentVolumeClaim, error) { + labelSelector := groupSnapshot.Spec.Source.Selector + + // Get PVC that has group snapshot label applied. + pvcList, err := ctrl.client.CoreV1().PersistentVolumeClaims(groupSnapshot.Namespace).List(context.TODO(), metav1.ListOptions{LabelSelector: labels.Set(labelSelector.MatchLabels).String()}) + if err != nil { + return nil, fmt.Errorf("failed to list PVCs with label selector %s: %q", metav1.FormatLabelSelector(labelSelector), err) + } + if len(pvcList.Items) == 0 { + return nil, fmt.Errorf("label selector %s for group snapshot not applied to any PVC", metav1.FormatLabelSelector(labelSelector)) + } + return pvcList.Items, nil +} + +// updateGroupSnapshot runs in worker thread and handles "groupsnapshot added", +// "groupsnapshot updated" and "periodic sync" events. +func (ctrl *csiSnapshotCommonController) updateGroupSnapshot(ctx context.Context, groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { + // Store the new group snapshot version in the cache and do not process it + // if this is an old version. + klog.V(5).Infof("updateGroupSnapshot %q", utils.GroupSnapshotKey(groupSnapshot)) + newGroupSnapshot, err := ctrl.storeGroupSnapshotUpdate(groupSnapshot) + if err != nil { + klog.Errorf("%v", err) + } + if !newGroupSnapshot { + return nil + } + + err = ctrl.syncGroupSnapshot(ctx, groupSnapshot) + if err != nil { + if apierrs.IsConflict(err) { + // Version conflict error happens quite often and the controller + // recovers from it easily. + klog.V(3).Infof("could not sync group snapshot %q: %+v", utils.GroupSnapshotKey(groupSnapshot), err) + } else { + klog.Errorf("could not sync group snapshot %q: %+v", utils.GroupSnapshotKey(groupSnapshot), err) + } + return err + } + return nil +} + +// deleteGroupSnapshot runs in worker thread and handles "groupsnapshot deleted" event. +func (ctrl *csiSnapshotCommonController) deleteGroupSnapshot(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) { + _ = ctrl.groupSnapshotStore.Delete(groupSnapshot) + klog.V(4).Infof("group snapshot %q deleted", utils.GroupSnapshotKey(groupSnapshot)) + + driverName, err := ctrl.getGroupSnapshotDriverName(groupSnapshot) + if err != nil { + klog.Errorf("failed to getGroupSnapshotDriverName while recording metrics for group snapshot %q: %v", utils.GroupSnapshotKey(groupSnapshot), err) + } else { + deleteOperationKey := metrics.NewOperationKey(metrics.DeleteGroupSnapshotOperationName, groupSnapshot.UID) + ctrl.metricsManager.RecordMetrics(deleteOperationKey, metrics.NewSnapshotOperationStatus(metrics.SnapshotStatusTypeSuccess), driverName) + } + + groupSnapshotContentName := "" + if groupSnapshot.Status != nil && groupSnapshot.Status.BoundVolumeGroupSnapshotContentName != nil { + groupSnapshotContentName = *groupSnapshot.Status.BoundVolumeGroupSnapshotContentName + } + if groupSnapshotContentName == "" { + klog.V(5).Infof("deleteGroupSnapshot[%q]: group snapshot content not bound", utils.GroupSnapshotKey(groupSnapshot)) + return + } + + // sync the group snapshot content when its group snapshot is deleted. Explicitly sync'ing + // the group snapshot content here in response to group snapshot deletion prevents the group + // snapshot content from waiting until the next sync period for its release. + klog.V(5).Infof("deleteGroupSnapshot[%q]: scheduling sync of group snapshot content %s", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContentName) + ctrl.groupSnapshotContentQueue.Add(groupSnapshotContentName) +} + +// syncGroupSnapshot is the main controller method to decide what to do with a +// group snapshot. It's invoked by appropriate cache.Controller callbacks when +// a group snapshot is created, updated or periodically synced. We do not +// differentiate between these events. +// For easier readability, it is split into syncUnreadyGroupSnapshot and syncReadyGroupSnapshot +func (ctrl *csiSnapshotCommonController) syncGroupSnapshot(ctx context.Context, groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { + klog.V(5).Infof("synchronizing VolumeGroupSnapshot[%s]", utils.GroupSnapshotKey(groupSnapshot)) + + klog.V(5).Infof("syncGroupSnapshot [%s]: check if we should remove finalizer on group snapshot PVC source and remove it if we can", utils.GroupSnapshotKey(groupSnapshot)) + + // Proceed with group snapshot deletion and remove finalizers when needed + if groupSnapshot.ObjectMeta.DeletionTimestamp != nil { + return ctrl.processGroupSnapshotWithDeletionTimestamp(ctx, groupSnapshot) + } + + klog.V(5).Infof("syncGroupSnapshot[%s]: validate group snapshot to make sure source has been correctly specified", utils.GroupSnapshotKey(groupSnapshot)) + if (groupSnapshot.Spec.Source.Selector == nil && groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName == nil) || + (groupSnapshot.Spec.Source.Selector != nil && groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil) { + err := fmt.Errorf("Exactly one of Selector and VolumeGroupSnapshotContentName should be specified") + klog.Errorf("syncGroupSnapshot[%s]: validation error, %s", utils.GroupSnapshotKey(groupSnapshot), err.Error()) + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotValidationError", err.Error()) + return err + } + + klog.V(5).Infof("syncGroupSnapshot: check if we should add finalizers on group snapshot [%s]", utils.GroupSnapshotKey(groupSnapshot)) + if err := ctrl.checkandAddGroupSnapshotFinalizers(groupSnapshot); err != nil { + klog.Errorf("error checkandAddGroupSnapshotFinalizers for group snapshot [%s]: %v", utils.GroupSnapshotKey(groupSnapshot), err) + ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeWarning, "GroupSnapshotFinalizerError", fmt.Sprintf("Failed to check and update group snapshot: %s", err.Error())) + return err + } + + // Need to build or update groupSnapshot.Status in following cases: + // 1) groupSnapshot.Status is nil + // 2) groupSnapshot.Status.ReadyToUse is false + // 3) groupSnapshot.Status.IsBoundVolumeGroupSnapshotContentNameSet is not set + // 4) groupSnapshot.Status.IsVolumeSnapshotRefListSet is not set + if !utils.IsGroupSnapshotReady(groupSnapshot) || !utils.IsBoundVolumeGroupSnapshotContentNameSet(groupSnapshot) { + return ctrl.syncUnreadyGroupSnapshot(ctx, groupSnapshot) + } + return ctrl.syncReadyGroupSnapshot(groupSnapshot) +} + +// syncReadyGroupSnapshot checks the group snapshot which has been bound to group +// snapshot content successfully before. +// If there is any problem with the binding (e.g., group snapshot points to a +// non-existent group snapshot content), update the group snapshot status and emit event. +func (ctrl *csiSnapshotCommonController) syncReadyGroupSnapshot(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { + if !utils.IsBoundVolumeGroupSnapshotContentNameSet(groupSnapshot) { + return fmt.Errorf("group snapshot %s is not bound to a group snapshot content", utils.GroupSnapshotKey(groupSnapshot)) + } + groupSnapshotContent, err := ctrl.getGroupSnapshotContentFromStore(*groupSnapshot.Status.BoundVolumeGroupSnapshotContentName) + if err != nil { + return nil + } + if groupSnapshotContent == nil { + // this meant there is no matching group snapshot content in cache found + // update status of the group snapshot and return + return ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMissing", "VolumeGroupSnapshotContent is missing") + } + klog.V(5).Infof("syncReadyGroupSnapshot[%s]: VolumeGroupSnapshotContent %q found", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent.Name) + // check binding from group snapshot content side to make sure the binding is still valid + if !utils.IsVolumeGroupSnapshotRefSet(groupSnapshot, groupSnapshotContent) { + // group snapshot is bound but group snapshot content is not pointing to the group snapshot + return ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotMisbound", "VolumeGroupSnapshotContent is not bound to the VolumeGroupSnapshot correctly") + } + + // everything is verified, return + return nil +} + +// getGroupSnapshotContentFromStore tries to find a VolumeGroupSnapshotContent from group +// snapshot content cache store by name. +// Note that if no VolumeGroupSnapshotContent exists in the cache store and no error +// encountered, it returns (nil, nil) +func (ctrl *csiSnapshotCommonController) getGroupSnapshotContentFromStore(contentName string) (*crdv1beta1.VolumeGroupSnapshotContent, error) { + obj, exist, err := ctrl.groupSnapshotContentStore.GetByKey(contentName) + if err != nil { + // should never reach here based on implementation at: + // https://github.com/kubernetes/client-go/blob/master/tools/cache/store.go#L226 + return nil, err + } + if !exist { + // not able to find a matching group snapshot content + return nil, nil + } + groupSnapshotContent, ok := obj.(*crdv1beta1.VolumeGroupSnapshotContent) + if !ok { + return nil, fmt.Errorf("expected VolumeGroupSnapshotContent, got %+v", obj) + } + return groupSnapshotContent, nil +} + +// syncUnreadyGroupSnapshot is the main controller method to decide what to do +// with a group snapshot which is not set to ready. +func (ctrl *csiSnapshotCommonController) syncUnreadyGroupSnapshot(ctx context.Context, groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { + uniqueGroupSnapshotName := utils.GroupSnapshotKey(groupSnapshot) + klog.V(5).Infof("syncUnreadyGroupSnapshot %s", uniqueGroupSnapshotName) + driverName, err := ctrl.getGroupSnapshotDriverName(groupSnapshot) + if err != nil { + klog.Errorf("failed to getGroupSnapshotDriverName while recording metrics for groupsnapshot %q: %s", utils.GroupSnapshotKey(groupSnapshot), err) + } + + groupSnapshotProvisionType := metrics.DynamicGroupSnapshotType + if groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil { + groupSnapshotProvisionType = metrics.PreProvisionedGroupSnapshotType + } + + // Start metrics operations for volumegroupsnapshot + if !utils.IsGroupSnapshotCreated(groupSnapshot) { + // Only start CreateGroupSnapshot operation if the groupsnapshot has not been cut + ctrl.metricsManager.OperationStart( + metrics.NewOperationKey(metrics.CreateGroupSnapshotOperationName, groupSnapshot.UID), + metrics.NewOperationValue(driverName, groupSnapshotProvisionType), + ) + } + ctrl.metricsManager.OperationStart( + metrics.NewOperationKey(metrics.CreateGroupSnapshotAndReadyOperationName, groupSnapshot.UID), + metrics.NewOperationValue(driverName, groupSnapshotProvisionType), + ) + + // Pre-provisioned snapshot + if groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil { + groupSnapshotContent, err := ctrl.getPreprovisionedGroupSnapshotContentFromStore(groupSnapshot) + if err != nil { + return err + } + + // if no group snapshot content found yet, update status and return + if groupSnapshotContent == nil { + // can not find the desired VolumeGroupSnapshotContent from cache store + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMissing", "VolumeGroupSnapshotContent is missing") + klog.V(4).Infof("syncUnreadyGroupSnapshot[%s]: group snapshot content %q requested but not found, will try again", utils.GroupSnapshotKey(groupSnapshot), *groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName) + + return fmt.Errorf("group snapshot %s requests an non-existing group snapshot content %s", utils.GroupSnapshotKey(groupSnapshot), *groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName) + } + + // Set VolumeGroupSnapshotRef UID + newGroupSnapshotContent, err := ctrl.checkAndBindGroupSnapshotContent(groupSnapshot, groupSnapshotContent) + if err != nil { + // group snapshot is bound but group snapshot content is not bound to group snapshot correctly + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotBindFailed", fmt.Sprintf("GroupSnapshot failed to bind VolumeGroupSnapshotContent, %v", err)) + return fmt.Errorf("group snapshot %s is bound, but VolumeGroupSnapshotContent %s is not bound to the VolumeGroupSnapshot correctly, %v", uniqueGroupSnapshotName, groupSnapshotContent.Name, err) + } + + // update group snapshot status + klog.V(5).Infof("syncUnreadyGroupSnapshot [%s]: trying to update group snapshot status", utils.GroupSnapshotKey(groupSnapshot)) + if _, err = ctrl.updateGroupSnapshotStatus(groupSnapshot, newGroupSnapshotContent); err != nil { + // update group snapshot status failed + klog.V(4).Infof("failed to update group snapshot %s status: %v", utils.GroupSnapshotKey(groupSnapshot), err) + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, false, v1.EventTypeWarning, "GroupSnapshotStatusUpdateFailed", fmt.Sprintf("GroupSnapshot status update failed, %v", err)) + return err + } + + return nil + } + + // groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName == nil - dynamically created group snapshot + klog.V(5).Infof("getDynamicallyProvisionedGroupContentFromStore for snapshot %s", uniqueGroupSnapshotName) + contentObj, err := ctrl.getDynamicallyProvisionedGroupContentFromStore(groupSnapshot) + if err != nil { + klog.V(4).Infof("getDynamicallyProvisionedGroupContentFromStore[%s]: error when getting group snapshot content for group snapshot %v", uniqueGroupSnapshotName, err) + return err + } + + if contentObj != nil { + klog.V(5).Infof("Found VolumeGroupSnapshotContent object %s for group snapshot %s", contentObj.Name, uniqueGroupSnapshotName) + if contentObj.Spec.Source.GroupSnapshotHandles != nil { + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotHandleSet", fmt.Sprintf("GroupSnapshot handle should not be set in group snapshot content %s for dynamic provisioning", uniqueGroupSnapshotName)) + return fmt.Errorf("VolumeGroupSnapshotHandle should not be set in the group snapshot content for dynamic provisioning for group snapshot %s", uniqueGroupSnapshotName) + } + + newGroupSnapshotContentObj, err := ctrl.createSnapshotsForGroupSnapshotContent(ctx, contentObj, groupSnapshot) + if err != nil { + klog.V(4).Infof("createSnapshotsForGroupSnapshotContent[%s]: failed to create snapshots and snapshotcontents for group snapshot %v: %v", + contentObj.Name, groupSnapshot.Name, err.Error()) + return err + } + + updatedGroupSnapshot, err := ctrl.bindandUpdateVolumeGroupSnapshot(newGroupSnapshotContentObj, groupSnapshot) + if err != nil { + klog.V(4).Infof("bindandUpdateVolumeGroupSnapshot[%s]: failed to bind group snapshot content [%s] to group snapshot %v", uniqueGroupSnapshotName, contentObj.Name, err) + return err + } + klog.V(5).Infof("bindandUpdateVolumeGroupSnapshot %v", updatedGroupSnapshot) + return nil + } + + // If reach here, it is a dynamically provisioned group snapshot, and the VolumeGroupSnapshotContent object is not yet created. + var groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent + if groupSnapshotContent, err = ctrl.createGroupSnapshotContent(groupSnapshot); err != nil { + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentCreationFailed", fmt.Sprintf("failed to create group snapshot content with error %v", err)) + return err + } + + // Update group snapshot status with BoundVolumeGroupSnapshotContentName + klog.V(5).Infof("syncUnreadyGroupSnapshot [%s]: trying to update group snapshot status", utils.GroupSnapshotKey(groupSnapshot)) + if _, err = ctrl.updateGroupSnapshotStatus(groupSnapshot, groupSnapshotContent); err != nil { + // update group snapshot status failed + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, false, v1.EventTypeWarning, "GroupSnapshotStatusUpdateFailed", fmt.Sprintf("GroupSnapshot status update failed, %v", err)) + return err + } + return nil +} + +func (ctrl *csiSnapshotCommonController) createSnapshotsForGroupSnapshotContent( + ctx context.Context, + groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent, + groupSnapshot *crdv1beta1.VolumeGroupSnapshot, +) (*crdv1beta1.VolumeGroupSnapshotContent, error) { + // No status is present, or no volume snapshot was provisioned. + // Let's wait for the snapshotter sidecar to fill it. + if groupSnapshotContent.Status == nil || len(groupSnapshotContent.Status.VolumeSnapshotHandlePairList) == 0 { + return groupSnapshotContent, nil + } + + // No volume group snapshot handle is present. + // Let's wait for the snapshotter sidecar to fill it. + if groupSnapshotContent.Status.VolumeGroupSnapshotHandle == nil { + return groupSnapshotContent, nil + } + + // The contents of the volume group snapshot class are needed to set the + // metadata containing the secrets to recover the snapshots + if groupSnapshot.Spec.VolumeGroupSnapshotClassName == nil { + return groupSnapshotContent, fmt.Errorf( + "createSnapshotsForGroupSnapshotContent: internal error: cannot find reference to volume group snapshot class") + } + + groupSnapshotClass, err := ctrl.groupSnapshotClassLister.Get(*groupSnapshot.Spec.VolumeGroupSnapshotClassName) + if err != nil { + return groupSnapshotContent, fmt.Errorf( + "createSnapshotsForGroupSnapshotContent: failed to get volume snapshot class %s: %q", + *groupSnapshot.Spec.VolumeGroupSnapshotClassName, err) + } + + groupSnapshotSecret, err := utils.GetGroupSnapshotSecretReference( + utils.GroupSnapshotterSecretParams, + groupSnapshotClass.Parameters, + groupSnapshotContent.GetObjectMeta().GetName(), nil) + if err != nil { + return groupSnapshotContent, fmt.Errorf( + "createSnapshotsForGroupSnapshotContent: failed to get secret reference for group snapshot content %s: %v", + groupSnapshotContent.Name, err) + } + + // Phase 1: create the VolumeSnapshotContent and VolumeSnapshot objects + klog.V(4).Infof( + "createSnapshotsForGroupSnapshotContent[%s]: creating volumesnapshots and volumesnapshotcontent for group snapshot content", + groupSnapshotContent.Name) + + for _, snapshot := range groupSnapshotContent.Status.VolumeSnapshotHandlePairList { + snapshotHandle := snapshot.SnapshotHandle + volumeHandle := snapshot.VolumeHandle + + pv, err := ctrl.findPersistentVolumeByCSIDriverHandle(groupSnapshotContent.Spec.Driver, volumeHandle) + if err != nil { + klog.Errorf( + "updateGroupSnapshotContentStatus: error while finding PV for volumeHandle:[%s] and CSI driver:[%s]: %s", + volumeHandle, + groupSnapshotContent.Spec.Driver, + err) + } + + volumeSnapshotContentName := getSnapshotContentNameForVolumeGroupSnapshotContent( + string(groupSnapshot.UID), volumeHandle) + + volumeSnapshotName := getSnapshotNameForVolumeGroupSnapshotContent( + string(groupSnapshot.UID), volumeHandle) + + volumeSnapshotNamespace := groupSnapshotContent.Spec.VolumeGroupSnapshotRef.Namespace + + volumeSnapshotContent := &crdv1.VolumeSnapshotContent{ + ObjectMeta: metav1.ObjectMeta{ + Name: volumeSnapshotContentName, + Annotations: map[string]string{ + utils.VolumeGroupSnapshotHandleAnnotation: *groupSnapshotContent.Status.VolumeGroupSnapshotHandle, + }, + }, + Spec: crdv1.VolumeSnapshotContentSpec{ + VolumeSnapshotRef: v1.ObjectReference{ + Kind: "VolumeSnapshot", + Name: volumeSnapshotName, + Namespace: volumeSnapshotNamespace, + }, + DeletionPolicy: groupSnapshotContent.Spec.DeletionPolicy, + Driver: groupSnapshotContent.Spec.Driver, + Source: crdv1.VolumeSnapshotContentSource{ + VolumeHandle: &volumeHandle, + }, + }, + // The status will be set by VolumeSnapshotContent reconciler + // in the CSI snapshotter sidecar. + } + + if pv != nil { + volumeSnapshotContent.Spec.SourceVolumeMode = pv.Spec.VolumeMode + } + + if groupSnapshotSecret != nil { + klog.V(5).Infof("createSnapshotsForGroupSnapshotContent: set annotation [%s] on volume snapshot content [%s].", utils.AnnDeletionSecretRefName, volumeSnapshotContent.Name) + metav1.SetMetaDataAnnotation(&volumeSnapshotContent.ObjectMeta, utils.AnnDeletionSecretRefName, groupSnapshotSecret.Name) + + klog.V(5).Infof("createSnapshotsForGroupSnapshotContent: set annotation [%s] on volume snapshot content [%s].", utils.AnnDeletionSecretRefNamespace, volumeSnapshotContent.Name) + metav1.SetMetaDataAnnotation(&volumeSnapshotContent.ObjectMeta, utils.AnnDeletionSecretRefNamespace, groupSnapshotSecret.Namespace) + } + + volumeSnapshot := &crdv1.VolumeSnapshot{ + ObjectMeta: metav1.ObjectMeta{ + Name: volumeSnapshotName, + Namespace: volumeSnapshotNamespace, + OwnerReferences: []metav1.OwnerReference{ + utils.BuildVolumeGroupSnapshotOwnerReference(groupSnapshot), + }, + Finalizers: []string{utils.VolumeSnapshotInGroupFinalizer}, + }, + // The spec stanza is set immediately + // The status will be set by VolumeSnapshot reconciler + } + + if pv != nil { + volumeSnapshot.Spec.Source.PersistentVolumeClaimName = &pv.Spec.ClaimRef.Name + } else { + // If no persistent volume was found, set the PVC name to empty + var emptyString string + volumeSnapshot.Spec.Source.PersistentVolumeClaimName = &emptyString + } + + createdVolumeSnapshotContent, err := ctrl.clientset.SnapshotV1().VolumeSnapshotContents().Create(ctx, volumeSnapshotContent, metav1.CreateOptions{}) + if err != nil && !apierrs.IsAlreadyExists(err) { + return groupSnapshotContent, fmt.Errorf( + "createSnapshotsForGroupSnapshotContent: creating volumesnapshotcontent %w", err) + } + + createdVolumeSnapshot, err := ctrl.clientset.SnapshotV1().VolumeSnapshots(volumeSnapshotNamespace).Create(ctx, volumeSnapshot, metav1.CreateOptions{}) + if err != nil && !apierrs.IsAlreadyExists(err) { + return groupSnapshotContent, fmt.Errorf( + "createSnapshotsForGroupSnapshotContent: creating volumesnapshot %w", err) + } + + // bind the volume snapshot content to the volume snapshot + // like a dynamically provisioned snapshot would do + volumeSnapshotContent.Spec.VolumeSnapshotRef.UID = createdVolumeSnapshot.UID + _, err = utils.PatchVolumeSnapshotContent(volumeSnapshotContent, []utils.PatchOp{ + { + Op: "replace", + Path: "/spec/volumeSnapshotRef/uid", + Value: volumeSnapshotContent.Spec.VolumeSnapshotRef.UID, + }, + }, ctrl.clientset) + if err != nil { + return groupSnapshotContent, fmt.Errorf( + "createSnapshotsForGroupSnapshotContent: binding volumesnapshotcontent to volumesnapshot %w", err) + } + + // bind the volume snapshot to the volume snapshot content + // like a dynamically provisioned snapshot would do + _, err = utils.PatchVolumeSnapshot(createdVolumeSnapshot, []utils.PatchOp{ + { + Op: "replace", + Path: "/status", + Value: &crdv1.VolumeSnapshotStatus{}, + }, + { + Op: "replace", + Path: "/status/boundVolumeSnapshotContentName", + Value: volumeSnapshotContentName, + }, + }, ctrl.clientset, "status") + if err != nil { + return groupSnapshotContent, fmt.Errorf( + "createSnapshotsForGroupSnapshotContent: binding volumesnapshot to volumesnapshotcontent %w", err) + } + + // set the snapshot handle and the group snapshot handle + // inside the volume snapshot content to allow + // the CSI Snapshotter sidecar to reconcile its status + _, err = utils.PatchVolumeSnapshotContent(createdVolumeSnapshotContent, []utils.PatchOp{ + { + Op: "replace", + Path: "/status", + Value: &crdv1.VolumeSnapshotContentStatus{}, + }, + { + Op: "replace", + Path: "/status/snapshotHandle", + Value: snapshotHandle, + }, + { + Op: "replace", + Path: "/status/volumeGroupSnapshotHandle", + Value: groupSnapshotContent.Status.VolumeGroupSnapshotHandle, + }, + }, ctrl.clientset, "status") + if err != nil { + return groupSnapshotContent, fmt.Errorf( + "createSnapshotsForGroupSnapshotContent: setting snapshotHandle in volumesnapshotcontent %w", err) + } + + } + + return groupSnapshotContent, nil +} + +// findPersistentVolumeByCSIDriverHandle looks at an existing PersistentVolume +// by CSI driver name and volume handle. +func (ctrl *csiSnapshotCommonController) findPersistentVolumeByCSIDriverHandle(driverName, volumeHandle string) (*v1.PersistentVolume, error) { + pvList, err := ctrl.pvIndexer.ByIndex( + utils.CSIDriverHandleIndexName, + utils.PersistentVolumeKeyFuncByCSIDriverHandle(driverName, volumeHandle), + ) + switch { + case err != nil: + return nil, err + + case len(pvList) == 0: + return nil, nil + + case len(pvList) > 1: + klog.Errorf( + "findPersistentVolumeByCSIDriverHandle: multiple PVs found for for volumeHandle:[%s] and CSI driver:[%s]", + volumeHandle, + driverName) + return nil, fmt.Errorf("multiple PVs found") + + default: + if pvObject, ok := pvList[0].(*v1.PersistentVolume); ok { + return pvObject, nil + } + + klog.Errorf( + "findPersistentVolumeByCSIDriverHandle: found erroneous content in the index") + klog.V(5).Info("findPersistentVolumeByCSIDriverHandle: erroneous content", pvList[0]) + return nil, fmt.Errorf("found erroneous indexed content") + } +} + +// getSnapshotNameForVolumeGroupSnapshotContent returns a unique snapshot name for a VolumeGroupSnapshotContent. +func getSnapshotNameForVolumeGroupSnapshotContent(groupSnapshotUUID, volumeHandle string) string { + return fmt.Sprintf("snapshot-%x", sha256.Sum256([]byte(groupSnapshotUUID+volumeHandle))) +} + +// getSnapshotContentNameForVolumeGroupSnapshotContent returns a unique content name for the +// passed in VolumeGroupSnapshotContent. +func getSnapshotContentNameForVolumeGroupSnapshotContent(groupSnapshotUUID, volumeHandle string) string { + return fmt.Sprintf("snapcontent-%x", sha256.Sum256([]byte(groupSnapshotUUID+volumeHandle))) +} + +// getPreprovisionedGroupSnapshotContentFromStore tries to find a pre-provisioned +// volume group snapshot content object from group snapshot content cache store +// for the passed in VolumeGroupSnapshot. +// Note that this function assumes the passed in VolumeGroupSnapshot is a pre-provisioned +// one, i.e., groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil. +// If no matching group snapshot content is found, it returns (nil, nil). +// If it found a group snapshot content which is not a pre-provisioned one, it +// updates the status of the group snapshot with an event and returns an error. +// If it found a group snapshot content which does not point to the passed in +// VolumeGroupSnapshot, it updates the status of the group snapshot with an event +// and returns an error. +// Otherwise, the found group snapshot content will be returned. +func (ctrl *csiSnapshotCommonController) getPreprovisionedGroupSnapshotContentFromStore(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshotContent, error) { + contentName := *groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName + if contentName == "" { + return nil, fmt.Errorf("empty VolumeGroupSnapshotContentName for group snapshot %s", utils.GroupSnapshotKey(groupSnapshot)) + } + groupSnapshotContent, err := ctrl.getGroupSnapshotContentFromStore(contentName) + if err != nil { + return nil, err + } + if groupSnapshotContent == nil { + // can not find the desired VolumeGroupSnapshotContent from cache store + return nil, nil + } + // check whether the content is a pre-provisioned VolumeGroupSnapshotContent + if groupSnapshotContent.Spec.Source.GroupSnapshotHandles == nil { + // found a group snapshot content which represents a dynamically provisioned group snapshot + // update the group snapshot and return an error + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMismatch", "VolumeGroupSnapshotContent is dynamically provisioned while expecting a pre-provisioned one") + klog.V(4).Infof("sync group snapshot[%s]: group snapshot content %q is dynamically provisioned while expecting a pre-provisioned one", utils.GroupSnapshotKey(groupSnapshot), contentName) + return nil, fmt.Errorf("group snapshot %s expects a pre-provisioned VolumeGroupSnapshotContent %s but gets a dynamically provisioned one", utils.GroupSnapshotKey(groupSnapshot), contentName) + } + // verify the group snapshot content points back to the group snapshot + ref := groupSnapshotContent.Spec.VolumeGroupSnapshotRef + if ref.Name != groupSnapshot.Name || ref.Namespace != groupSnapshot.Namespace || (ref.UID != "" && ref.UID != groupSnapshot.UID) { + klog.V(4).Infof("sync group snapshot[%s]: VolumeGroupSnapshotContent %s is bound to another group snapshot %v", utils.GroupSnapshotKey(groupSnapshot), contentName, ref) + msg := fmt.Sprintf("VolumeGroupSnapshotContent [%s] is bound to a different group snapshot", contentName) + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMisbound", msg) + return nil, errors.New(msg) + } + return groupSnapshotContent, nil +} + +// checkandBindGroupSnapshotContent checks whether the VolumeGroupSnapshotRef in +// the group snapshot content matches the given group snapshot. If match, it binds +// the group snapshot content with the group snapshot. This is for static binding where +// user has specified group snapshot name but not UID of the group snapshot in +// groupSnapshotContent.Spec.VolumeGroupSnapshotRef. +func (ctrl *csiSnapshotCommonController) checkAndBindGroupSnapshotContent(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) (*crdv1beta1.VolumeGroupSnapshotContent, error) { + if groupSnapshotContent.Spec.VolumeGroupSnapshotRef.Name != groupSnapshot.Name { + return nil, fmt.Errorf("Could not bind group snapshot %s and group snapshot content %s, the VolumeGroupSnapshotRef does not match", groupSnapshot.Name, groupSnapshotContent.Name) + } else if groupSnapshotContent.Spec.VolumeGroupSnapshotRef.UID != "" && groupSnapshotContent.Spec.VolumeGroupSnapshotRef.UID != groupSnapshot.UID { + return nil, fmt.Errorf("Could not bind group snapshot %s and group snapshot content %s, the VolumeGroupSnapshotRef does not match", groupSnapshot.Name, groupSnapshotContent.Name) + } else if groupSnapshotContent.Spec.VolumeGroupSnapshotRef.UID != "" && groupSnapshotContent.Spec.VolumeGroupSnapshotClassName != nil { + return groupSnapshotContent, nil + } + + patches := []utils.PatchOp{ + { + Op: "replace", + Path: "/spec/volumeGroupSnapshotRef/uid", + Value: string(groupSnapshot.UID), + }, + } + if groupSnapshot.Spec.VolumeGroupSnapshotClassName != nil { + className := *(groupSnapshot.Spec.VolumeGroupSnapshotClassName) + patches = append(patches, utils.PatchOp{ + Op: "replace", + Path: "/spec/volumeGroupSnapshotClassName", + Value: className, + }) + } + + newContent, err := utils.PatchVolumeGroupSnapshotContent(groupSnapshotContent, patches, ctrl.clientset) + if err != nil { + klog.V(4).Infof("updating VolumeGroupSnapshotContent[%s] error status failed %v", groupSnapshotContent.Name, err) + return groupSnapshotContent, err + } + + _, err = ctrl.storeGroupSnapshotContentUpdate(newContent) + if err != nil { + klog.V(4).Infof("updating VolumeGroupSnapshotContent[%s] error status: cannot update internal cache %v", newContent.Name, err) + return newContent, err + } + return newContent, nil +} + +// updateGroupSnapshotStatus updates group snapshot status based on group snapshot content status +func (ctrl *csiSnapshotCommonController) updateGroupSnapshotStatus(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) (*crdv1beta1.VolumeGroupSnapshot, error) { + klog.V(5).Infof("updateGroupSnapshotStatus[%s]", utils.GroupSnapshotKey(groupSnapshot)) + + boundContentName := groupSnapshotContent.Name + var createdAt *time.Time + if groupSnapshotContent.Status != nil && groupSnapshotContent.Status.CreationTime != nil { + createdAt = &groupSnapshotContent.Status.CreationTime.DeepCopy().Time + } + var readyToUse bool + if groupSnapshotContent.Status != nil && groupSnapshotContent.Status.ReadyToUse != nil { + readyToUse = *groupSnapshotContent.Status.ReadyToUse + } + var volumeSnapshotErr *crdv1.VolumeSnapshotError + if groupSnapshotContent.Status != nil && groupSnapshotContent.Status.Error != nil { + volumeSnapshotErr = groupSnapshotContent.Status.Error.DeepCopy() + } + + klog.V(5).Infof("updateGroupSnapshotStatus: updating VolumeGroupSnapshot [%+v] based on VolumeGroupSnapshotContentStatus [%+v]", groupSnapshot, groupSnapshotContent.Status) + + groupSnapshotObj, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshot.Namespace).Get(context.TODO(), groupSnapshot.Name, metav1.GetOptions{}) + if err != nil { + return nil, fmt.Errorf("error get group snapshot %s from api server: %v", utils.GroupSnapshotKey(groupSnapshot), err) + } + + var newStatus *crdv1beta1.VolumeGroupSnapshotStatus + updated := false + if groupSnapshotObj.Status == nil { + newStatus = &crdv1beta1.VolumeGroupSnapshotStatus{ + BoundVolumeGroupSnapshotContentName: &boundContentName, + ReadyToUse: &readyToUse, + } + if createdAt != nil { + newStatus.CreationTime = &metav1.Time{Time: *createdAt} + } + if volumeSnapshotErr != nil { + newStatus.Error = volumeSnapshotErr + } + + updated = true + } else { + newStatus = groupSnapshotObj.Status.DeepCopy() + if newStatus.BoundVolumeGroupSnapshotContentName == nil { + newStatus.BoundVolumeGroupSnapshotContentName = &boundContentName + updated = true + } + if newStatus.CreationTime == nil && createdAt != nil { + newStatus.CreationTime = &metav1.Time{Time: *createdAt} + updated = true + } + if newStatus.ReadyToUse == nil || *newStatus.ReadyToUse != readyToUse { + newStatus.ReadyToUse = &readyToUse + updated = true + if readyToUse && newStatus.Error != nil { + newStatus.Error = nil + } + } + if (newStatus.Error == nil && volumeSnapshotErr != nil) || (newStatus.Error != nil && volumeSnapshotErr != nil && newStatus.Error.Time != nil && volumeSnapshotErr.Time != nil && &newStatus.Error.Time != &volumeSnapshotErr.Time) || (newStatus.Error != nil && volumeSnapshotErr == nil) { + newStatus.Error = volumeSnapshotErr + updated = true + } + } + + if updated { + groupSnapshotClone := groupSnapshotObj.DeepCopy() + groupSnapshotClone.Status = newStatus + + // We need to record metrics before updating the status due to a bug causing cache entries after a failed UpdateStatus call. + // Must meet the following criteria to emit a successful CreateGroupSnapshot status + // 1. Previous status was nil OR Previous status had a nil CreationTime + // 2. New status must be non-nil with a non-nil CreationTime + driverName := groupSnapshotContent.Spec.Driver + createOperationKey := metrics.NewOperationKey(metrics.CreateGroupSnapshotOperationName, groupSnapshot.UID) + + // Must meet the following criteria to emit a successful CreateGroupSnapshot status + // 1. Previous status was nil OR Previous status had a nil CreationTime + // 2. New status must be non-nil with a non-nil CreationTime + if !utils.IsGroupSnapshotCreated(groupSnapshotObj) && utils.IsGroupSnapshotCreated(groupSnapshotClone) { + msg := fmt.Sprintf("GroupSnapshot %s was successfully created by the CSI driver.", utils.GroupSnapshotKey(groupSnapshot)) + ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeNormal, "GroupSnapshotCreated", msg) + ctrl.metricsManager.RecordVolumeGroupSnapshotMetrics(createOperationKey, metrics.NewSnapshotOperationStatus(metrics.SnapshotStatusTypeSuccess), driverName) + } + + // Must meet the following criteria to emit a successful CreateGroupSnapshotAndReady status + // 1. Previous status was nil OR Previous status had a nil ReadyToUse OR Previous status had a false ReadyToUse + // 2. New status must be non-nil with a ReadyToUse as true + if !utils.IsGroupSnapshotReady(groupSnapshotObj) && utils.IsGroupSnapshotReady(groupSnapshotClone) { + msg := fmt.Sprintf("GroupSnapshot %s is ready to use.", utils.GroupSnapshotKey(groupSnapshot)) + ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeNormal, "GroupSnapshotReady", msg) + createAndReadyOperation := metrics.NewOperationKey(metrics.CreateGroupSnapshotAndReadyOperationName, groupSnapshot.UID) + ctrl.metricsManager.RecordMetrics(createAndReadyOperation, metrics.NewSnapshotOperationStatus(metrics.SnapshotStatusTypeSuccess), driverName) + } + + newGroupSnapshotObj, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshotClone.Namespace).UpdateStatus(context.TODO(), groupSnapshotClone, metav1.UpdateOptions{}) + if err != nil { + return nil, newControllerUpdateError(utils.GroupSnapshotKey(groupSnapshot), err.Error()) + } + + return newGroupSnapshotObj, nil + } + + return groupSnapshotObj, nil +} + +// getDynamicallyProvisionedGroupContentFromStore tries to find a dynamically created +// group snapshot content object for the passed in VolumeGroupSnapshot from the +// group snapshot content store. +// Note that this function assumes the passed in VolumeGroupSnapshot is a dynamic +// one which requests creating a group snapshot from a group of PVCs. +// If no matching VolumeGroupSnapshotContent exists in the group snapshot content +// cache store, it returns (nil, nil) +// If a group snapshot content is found but it's not dynamically provisioned, +// the passed in group snapshot status will be updated with an error along with +// an event, and an error will be returned. +// If a group snapshot content is found but it does not point to the passed in VolumeGroupSnapshot, +// the passed in group snapshot will be updated with an error along with an event, +// and an error will be returned. +func (ctrl *csiSnapshotCommonController) getDynamicallyProvisionedGroupContentFromStore(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshotContent, error) { + contentName := utils.GetDynamicSnapshotContentNameForGroupSnapshot(groupSnapshot) + groupSnapshotContent, err := ctrl.getGroupSnapshotContentFromStore(contentName) + if err != nil { + return nil, err + } + if groupSnapshotContent == nil { + // no matching group snapshot content with the desired name has been found in cache + return nil, nil + } + // check whether the group snapshot content represents a dynamically provisioned snapshot + if groupSnapshotContent.Spec.Source.GroupSnapshotHandles != nil { + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMismatch", "VolumeGroupSnapshotContent "+contentName+" is pre-provisioned while expecting a dynamically provisioned one") + klog.V(4).Infof("sync group snapshot[%s]: group snapshot content %s is pre-provisioned while expecting a dynamically provisioned one", utils.GroupSnapshotKey(groupSnapshot), contentName) + return nil, fmt.Errorf("group snapshot %s expects a dynamically provisioned VolumeGroupSnapshotContent %s but gets a pre-provisioned one", utils.GroupSnapshotKey(groupSnapshot), contentName) + } + // check whether the group snapshot content points back to the passed in VolumeGroupSnapshot + ref := groupSnapshotContent.Spec.VolumeGroupSnapshotRef + // Unlike a pre-provisioned group snapshot content, whose Spec.VolumeGroupSnapshotRef.UID will be + // left to be empty to allow binding to a group snapshot, a dynamically provisioned + // group snapshot content MUST have its Spec.VolumeGroupSnapshotRef.UID set to the group snapshot's + // UID from which it's been created, thus ref.UID == "" is not a legit case here. + if ref.Name != groupSnapshot.Name || ref.Namespace != groupSnapshot.Namespace || ref.UID != groupSnapshot.UID { + klog.V(4).Infof("sync group snapshot[%s]: VolumeGroupSnapshotContent %s is bound to another group snapshot %v", utils.GroupSnapshotKey(groupSnapshot), contentName, ref) + msg := fmt.Sprintf("VolumeGroupSnapshotContent [%s] is bound to a different group snapshot", contentName) + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMisbound", msg) + return nil, errors.New(msg) + } + return groupSnapshotContent, nil +} + +// This routine sets snapshot.Spec.Source.VolumeGroupSnapshotContentName +func (ctrl *csiSnapshotCommonController) bindandUpdateVolumeGroupSnapshot(groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent, groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshot, error) { + klog.V(5).Infof("bindandUpdateVolumeGroupSnapshot for group snapshot [%s]: groupSnapshotContent [%s]", groupSnapshot.Name, groupSnapshotContent.Name) + groupSnapshotObj, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshot.Namespace).Get(context.TODO(), groupSnapshot.Name, metav1.GetOptions{}) + if err != nil { + return nil, fmt.Errorf("error get group snapshot %s from api server: %v", utils.GroupSnapshotKey(groupSnapshot), err) + } + + // Copy the group snapshot object before updating it + groupSnapshotCopy := groupSnapshotObj.DeepCopy() + // update group snapshot status + var updateGroupSnapshot *crdv1beta1.VolumeGroupSnapshot + klog.V(5).Infof("bindandUpdateVolumeGroupSnapshot [%s]: trying to update group snapshot status", utils.GroupSnapshotKey(groupSnapshotCopy)) + updateGroupSnapshot, err = ctrl.updateGroupSnapshotStatus(groupSnapshotCopy, groupSnapshotContent) + if err == nil { + groupSnapshotCopy = updateGroupSnapshot + } + if err != nil { + // update group snapshot status failed + klog.V(4).Infof("failed to update group snapshot %s status: %v", utils.GroupSnapshotKey(groupSnapshot), err) + ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshotCopy, true, v1.EventTypeWarning, "GroupSnapshotStatusUpdateFailed", fmt.Sprintf("GroupSnapshot status update failed, %v", err)) + return nil, err + } + + _, err = ctrl.storeGroupSnapshotUpdate(groupSnapshotCopy) + if err != nil { + klog.Errorf("%v", err) + } + + klog.V(5).Infof("bindandUpdateVolumeGroupSnapshot for group snapshot completed [%#v]", groupSnapshotCopy) + return groupSnapshotCopy, nil +} + +// createGroupSnapshotContent will only be called for dynamic provisioning +func (ctrl *csiSnapshotCommonController) createGroupSnapshotContent(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshotContent, error) { + klog.Infof("createGroupSnapshotContent: Creating group snapshot content for group snapshot %s through the plugin ...", utils.GroupSnapshotKey(groupSnapshot)) + + /* + TODO: Add PVC finalizer + */ + + groupSnapshotClass, volumes, contentName, snapshotterSecretRef, err := ctrl.getCreateGroupSnapshotInput(groupSnapshot) + if err != nil { + return nil, fmt.Errorf("failed to get input parameters to create group snapshot %s: %q", groupSnapshot.Name, err) + } + + snapshotRef, err := ref.GetReference(scheme.Scheme, groupSnapshot) + if err != nil { + return nil, err + } + var volumeHandles []string + for _, pv := range volumes { + if pv.Spec.CSI == nil { + err := fmt.Errorf( + "cannot snapshot a non-CSI volume for group snapshot %s: %s", + utils.GroupSnapshotKey(groupSnapshot), pv.Name) + klog.Error(err.Error()) + ctrl.eventRecorder.Event( + groupSnapshot, + v1.EventTypeWarning, + "CreateGroupSnapshotContentFailed", + fmt.Sprintf("Cannot snapshot a non-CSI volume: %s", pv.Name), + ) + return nil, err + } + + volumeCSIDriver := pv.Spec.CSI.Driver + classCSIDriver := groupSnapshotClass.Driver + if volumeCSIDriver != classCSIDriver { + strErr := fmt.Sprintf( + "Volume CSI driver (%s) mismatch with VolumeGroupSnapshotClass (%s) %s: %s", + volumeCSIDriver, classCSIDriver, utils.GroupSnapshotKey(groupSnapshot), pv.Name) + klog.Error(strErr) + ctrl.eventRecorder.Event( + groupSnapshot, + v1.EventTypeWarning, + "CreateGroupSnapshotContentFailed", + strErr, + ) + return nil, newControllerUpdateError(utils.GroupSnapshotKey(groupSnapshot), strErr) + + } + volumeHandles = append(volumeHandles, pv.Spec.CSI.VolumeHandle) + } + + groupSnapshotContent := &crdv1beta1.VolumeGroupSnapshotContent{ + ObjectMeta: metav1.ObjectMeta{ + Name: contentName, + }, + Spec: crdv1beta1.VolumeGroupSnapshotContentSpec{ + VolumeGroupSnapshotRef: *snapshotRef, + Source: crdv1beta1.VolumeGroupSnapshotContentSource{ + VolumeHandles: volumeHandles, + }, + VolumeGroupSnapshotClassName: &(groupSnapshotClass.Name), + DeletionPolicy: groupSnapshotClass.DeletionPolicy, + Driver: groupSnapshotClass.Driver, + }, + } + + /* + Add secret reference details + */ + if snapshotterSecretRef != nil { + klog.V(5).Infof("createGroupSnapshotContent: set annotation [%s] on volume group snapshot content [%s].", utils.AnnDeletionGroupSecretRefName, groupSnapshotContent.Name) + metav1.SetMetaDataAnnotation(&groupSnapshotContent.ObjectMeta, utils.AnnDeletionGroupSecretRefName, snapshotterSecretRef.Name) + + klog.V(5).Infof("creategroupSnapshotContent: set annotation [%s] on volume group snapshot content [%s].", utils.AnnDeletionGroupSecretRefNamespace, groupSnapshotContent.Name) + metav1.SetMetaDataAnnotation(&groupSnapshotContent.ObjectMeta, utils.AnnDeletionGroupSecretRefNamespace, snapshotterSecretRef.Namespace) + } + + var updateGroupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent + klog.V(5).Infof("volume group snapshot content %#v", groupSnapshotContent) + // Try to create the VolumeGroupSnapshotContent object + klog.V(5).Infof("createGroupSnapshotContent [%s]: trying to save volume group snapshot content %s", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent.Name) + if updateGroupSnapshotContent, err = ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshotContents().Create(context.TODO(), groupSnapshotContent, metav1.CreateOptions{}); err == nil || apierrs.IsAlreadyExists(err) { + // Save succeeded. + if err != nil { + klog.V(3).Infof("volume group snapshot content %q for group snapshot %q already exists, reusing", groupSnapshotContent.Name, utils.GroupSnapshotKey(groupSnapshot)) + err = nil + updateGroupSnapshotContent = groupSnapshotContent + } else { + klog.V(3).Infof("volume group snapshot content %q for group snapshot %q saved, %v", groupSnapshotContent.Name, utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent) + } + } + + if err != nil { + strerr := fmt.Sprintf("Error creating volume group snapshot content object for group snapshot %s: %v.", utils.GroupSnapshotKey(groupSnapshot), err) + klog.Error(strerr) + ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeWarning, "CreateGroupSnapshotContentFailed", strerr) + return nil, newControllerUpdateError(utils.GroupSnapshotKey(groupSnapshot), err.Error()) + } + + msg := fmt.Sprintf("Waiting for a group snapshot %s to be created by the CSI driver.", utils.GroupSnapshotKey(groupSnapshot)) + ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeNormal, "CreatingGroupSnapshot", msg) + + // Update group snapshot content in the cache store + _, err = ctrl.storeGroupSnapshotContentUpdate(updateGroupSnapshotContent) + if err != nil { + klog.Errorf("failed to update group snapshot content store %v", err) + } + + return updateGroupSnapshotContent, nil +} + +func (ctrl *csiSnapshotCommonController) getCreateGroupSnapshotInput(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshotClass, []*v1.PersistentVolume, string, *v1.SecretReference, error) { + className := groupSnapshot.Spec.VolumeGroupSnapshotClassName + klog.V(5).Infof("getCreateGroupSnapshotInput [%s]", groupSnapshot.Name) + var groupSnapshotClass *crdv1beta1.VolumeGroupSnapshotClass + var err error + if className != nil { + groupSnapshotClass, err = ctrl.getGroupSnapshotClass(*className) + if err != nil { + klog.Errorf("getCreateGroupSnapshotInput failed to getClassFromVolumeGroupSnapshot %s", err) + return nil, nil, "", nil, err + } + } else { + klog.Errorf("failed to getCreateGroupSnapshotInput %s without a group snapshot class", groupSnapshot.Name) + return nil, nil, "", nil, fmt.Errorf("failed to take group snapshot %s without a group snapshot class", groupSnapshot.Name) + } + + volumes, err := ctrl.getVolumesFromVolumeGroupSnapshot(groupSnapshot) + if err != nil { + klog.Errorf("getCreateGroupSnapshotInput failed to get PersistentVolume objects [%s]: Error: [%#v]", groupSnapshot.Name, err) + return nil, nil, "", nil, err + } + + // Create VolumeGroupSnapshotContent name + contentName := utils.GetDynamicSnapshotContentNameForGroupSnapshot(groupSnapshot) + + // Get the secret reference + snapshotterSecretRef, err := utils.GetGroupSnapshotSecretReference(utils.GroupSnapshotterSecretParams, groupSnapshotClass.Parameters, contentName, groupSnapshot) + if err != nil { + return nil, nil, "", nil, err + } + + return groupSnapshotClass, volumes, contentName, snapshotterSecretRef, nil +} + +// syncGroupSnapshotContent deals with one key off the queue +func (ctrl *csiSnapshotCommonController) syncGroupSnapshotContent(groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) error { + groupSnapshotName := utils.GroupSnapshotRefKey(&groupSnapshotContent.Spec.VolumeGroupSnapshotRef) + klog.V(4).Infof("synchronizing VolumeGroupSnapshotContent[%s]: group snapshot content is bound to group snapshot %s", groupSnapshotContent.Name, groupSnapshotName) + + klog.V(5).Infof("syncGroupSnapshotContent[%s]: check if we should add invalid label on group snapshot content", groupSnapshotContent.Name) + + if (groupSnapshotContent.Spec.Source.GroupSnapshotHandles == nil && len(groupSnapshotContent.Spec.Source.VolumeHandles) == 0) || + (groupSnapshotContent.Spec.Source.GroupSnapshotHandles != nil && len(groupSnapshotContent.Spec.Source.VolumeHandles) > 0) { + err := fmt.Errorf("Exactly one of GroupSnapshotHandles and VolumeHandles should be specified") + klog.Errorf("syncGroupSnapshotContent[%s]: validation error, %s", groupSnapshotContent.Name, err.Error()) + ctrl.eventRecorder.Event(groupSnapshotContent, v1.EventTypeWarning, "GroupContentValidationError", err.Error()) + return err + } + + // The VolumeGroupSnapshotContent is reserved for a VolumeGroupSnapshot; + // that VolumeGroupSnapshot has not yet been bound to this VolumeGroupSnapshotContent; + // syncGroupSnapshot will handle it. + if groupSnapshotContent.Spec.VolumeGroupSnapshotRef.UID == "" { + klog.V(4).Infof("syncGroupSnapshotContent [%s]: VolumeGroupSnapshotContent is pre-bound to VolumeGroupSnapshot %s", groupSnapshotContent.Name, groupSnapshotName) + return nil + } + + if utils.NeedToAddGroupSnapshotContentFinalizer(groupSnapshotContent) { + // Group Snapshot Content is not being deleted -> it should have the finalizer. + klog.V(5).Infof("syncGroupSnapshotContent [%s]: Add Finalizer for VolumeGroupSnapshotContent", groupSnapshotContent.Name) + return ctrl.addGroupSnapshotContentFinalizer(groupSnapshotContent) + } + + // Check if group snapshot exists in cache store + // If getGroupSnapshotFromStore returns (nil, nil), it means group snapshot not found + // and it may have already been deleted, and it will fall into the + // group snapshot == nil case below + var groupSnapshot *crdv1beta1.VolumeGroupSnapshot + groupSnapshot, err := ctrl.getGroupSnapshotFromStore(groupSnapshotName) + if err != nil { + return err + } + + if groupSnapshot != nil && groupSnapshot.UID != groupSnapshotContent.Spec.VolumeGroupSnapshotRef.UID { + // The group snapshot that the group snapshot content was pointing to was deleted, and another + // with the same name created. + klog.V(4).Infof("syncGroupSnapshotContent [%s]: group snapshot %s has different UID, the old one must have been deleted", groupSnapshotContent.Name, groupSnapshotName) + // Treat the group snapshot content as bound to a missing snapshot. + groupSnapshot = nil + } else { + // Check if groupSnapshot.Status is different from groupSnapshotContent.Status + // and add group snapshot to queue if there is a difference and it is worth + // triggering a group snapshot status update. + if groupSnapshot != nil && ctrl.needsUpdateGroupSnapshotStatus(groupSnapshot, groupSnapshotContent) { + klog.V(4).Infof("synchronizing VolumeGroupSnapshotContent for group snapshot [%s]: update group snapshot status to true if needed.", groupSnapshotName) + // Manually trigger a group snapshot status update to happen + // right away so that it is in-sync with the group snapshot content status + ctrl.groupSnapshotQueue.Add(groupSnapshotName) + } + } + return nil +} + +// getGroupSnapshotFromStore finds group snapshot from the cache store. +// If getGroupSnapshotFromStore returns (nil, nil), it means group snapshot not +// found and it may have already been deleted. +func (ctrl *csiSnapshotCommonController) getGroupSnapshotFromStore(groupSnapshotName string) (*crdv1beta1.VolumeGroupSnapshot, error) { + // Get the VolumeGroupSnapshot by _name_ + var groupSnapshot *crdv1beta1.VolumeGroupSnapshot + obj, found, err := ctrl.groupSnapshotStore.GetByKey(groupSnapshotName) + if err != nil { + return nil, err + } + if !found { + klog.V(4).Infof("getGroupSnapshotFromStore: group snapshot %s not found", groupSnapshotName) + // Fall through with group snapshot = nil + return nil, nil + } + var ok bool + groupSnapshot, ok = obj.(*crdv1beta1.VolumeGroupSnapshot) + if !ok { + return nil, fmt.Errorf("cannot convert object from group snapshot cache to group snapshot %q!?: %#v", groupSnapshotName, obj) + } + klog.V(4).Infof("getGroupSnapshotFromStore: group snapshot %s found", groupSnapshotName) + + return groupSnapshot, nil +} + +// needsUpdateGroupSnapshotStatus compares group snapshot status with the group snapshot content +// status and decide if group snapshot status needs to be updated based on group snapshot content +// status +func (ctrl *csiSnapshotCommonController) needsUpdateGroupSnapshotStatus(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) bool { + klog.V(5).Infof("needsUpdateGroupSnapshotStatus[%s]", utils.GroupSnapshotKey(groupSnapshot)) + + if groupSnapshot.Status == nil && groupSnapshotContent.Status != nil { + return true + } + if groupSnapshotContent.Status == nil { + return false + } + if groupSnapshot.Status.BoundVolumeGroupSnapshotContentName == nil { + return true + } + if groupSnapshot.Status.CreationTime == nil && groupSnapshotContent.Status.CreationTime != nil { + return true + } + if groupSnapshot.Status.ReadyToUse == nil && groupSnapshotContent.Status.ReadyToUse != nil { + return true + } + if groupSnapshot.Status.ReadyToUse != nil && groupSnapshotContent.Status.ReadyToUse != nil && groupSnapshot.Status.ReadyToUse != groupSnapshotContent.Status.ReadyToUse { + return true + } + + return false +} + +// addGroupSnapshotContentFinalizer adds a Finalizer for VolumeGroupSnapshotContent. +func (ctrl *csiSnapshotCommonController) addGroupSnapshotContentFinalizer(groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) error { + var patches []utils.PatchOp + if len(groupSnapshotContent.Finalizers) > 0 { + // Add to the end of the finalizers if we have any other finalizers + patches = append(patches, utils.PatchOp{ + Op: "add", + Path: "/metadata/finalizers/-", + Value: utils.VolumeGroupSnapshotContentFinalizer, + }) + } else { + // Replace finalizers with new array if there are no other finalizers + patches = append(patches, utils.PatchOp{ + Op: "add", + Path: "/metadata/finalizers", + Value: []string{utils.VolumeGroupSnapshotContentFinalizer}, + }) + } + newGroupSnapshotContent, err := utils.PatchVolumeGroupSnapshotContent(groupSnapshotContent, patches, ctrl.clientset) + if err != nil { + return newControllerUpdateError(groupSnapshotContent.Name, err.Error()) + } + + _, err = ctrl.storeGroupSnapshotContentUpdate(newGroupSnapshotContent) + if err != nil { + klog.Errorf("failed to update group snapshot content store %v", err) + } + + klog.V(5).Infof("Added protection finalizer to volume group snapshot content %s", newGroupSnapshotContent.Name) + return nil +} + +// checkandAddGroupSnapshotFinalizers checks and adds group snapshot finailzers when needed +func (ctrl *csiSnapshotCommonController) checkandAddGroupSnapshotFinalizers(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { + // get the group snapshot content for this group snapshot + var ( + groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent + err error + ) + if groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil { + groupSnapshotContent, err = ctrl.getPreprovisionedGroupSnapshotContentFromStore(groupSnapshot) + } else { + groupSnapshotContent, err = ctrl.getDynamicallyProvisionedGroupContentFromStore(groupSnapshot) + } + if err != nil { + return err + } + + // A bound finalizer is needed ONLY when all following conditions are satisfied: + // 1. the VolumeGroupSnapshot is bound to a VolumeGroupSnapshotContent + // 2. the VolumeGroupSnapshot does not have deletion timestamp set + // Note that if a matching VolumeGroupSnapshotContent is found, it must point back to the VolumeGroupSnapshot + if groupSnapshotContent != nil && utils.NeedToAddGroupSnapshotBoundFinalizer(groupSnapshot) { + // Snapshot is not being deleted -> it should have the finalizer. + klog.V(5).Infof("checkandAddGroupSnapshotFinalizers: Add Finalizer for VolumeGroupSnapshot[%s]", utils.GroupSnapshotKey(groupSnapshot)) + return ctrl.addGroupSnapshotFinalizer(groupSnapshot, true) + + } + return nil +} + +// addGroupSnapshotFinalizer adds a Finalizer to a VolumeGroupSnapshot. +func (ctrl *csiSnapshotCommonController) addGroupSnapshotFinalizer(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, addBoundFinalizer bool) error { + var updatedGroupSnapshot *crdv1beta1.VolumeGroupSnapshot + var err error + + // NOTE(ggriffiths): Must perform an update if no finalizers exist. + // Unable to find a patch that correctly updated the finalizers if none currently exist. + if len(groupSnapshot.ObjectMeta.Finalizers) == 0 { + groupSnapshotClone := groupSnapshot.DeepCopy() + if addBoundFinalizer { + groupSnapshotClone.ObjectMeta.Finalizers = append(groupSnapshotClone.ObjectMeta.Finalizers, utils.VolumeGroupSnapshotBoundFinalizer) + } + updatedGroupSnapshot, err = ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshotClone.Namespace).Update(context.TODO(), groupSnapshotClone, metav1.UpdateOptions{}) + if err != nil { + return newControllerUpdateError(utils.GroupSnapshotKey(groupSnapshot), err.Error()) + } + } else { + // Otherwise, perform a patch + var patches []utils.PatchOp + + if addBoundFinalizer { + patches = append(patches, utils.PatchOp{ + Op: "add", + Path: "/metadata/finalizers/-", + Value: utils.VolumeGroupSnapshotBoundFinalizer, + }) + } + + updatedGroupSnapshot, err = utils.PatchVolumeGroupSnapshot(groupSnapshot, patches, ctrl.clientset) + if err != nil { + return newControllerUpdateError(utils.GroupSnapshotKey(groupSnapshot), err.Error()) + } + } + + _, err = ctrl.storeGroupSnapshotUpdate(updatedGroupSnapshot) + if err != nil { + klog.Errorf("failed to update group snapshot store %v", err) + } + + klog.V(5).Infof("Added protection finalizer to volume group snapshot %s", utils.GroupSnapshotKey(updatedGroupSnapshot)) + return nil +} + +// processGroupSnapshotWithDeletionTimestamp processes finalizers and deletes the +// group snapshot content when appropriate. It has the following steps: +// 1. Get the VolumeGroupSnapshotContent which the to-be-deleted VolumeGroupSnapshot +// points to and verifies bi-directional binding. +// 2. Call checkandRemoveGroupSnapshotFinalizersAndCheckandDeleteGroupSnapshotContent() +// with information obtained from step 1. This function name is very long but the +// name suggests what it does. It determines whether to remove finalizers on group +// snapshot and whether to delete group snapshot content. +func (ctrl *csiSnapshotCommonController) processGroupSnapshotWithDeletionTimestamp(ctx context.Context, groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { + klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp VolumeGroupSnapshot[%s]: %s", utils.GroupSnapshotKey(groupSnapshot), utils.GetGroupSnapshotStatusForLogging(groupSnapshot)) + + driverName, err := ctrl.getGroupSnapshotDriverName(groupSnapshot) + if err != nil { + klog.Errorf("failed to getGroupSnapshotDriverName while recording metrics for group snapshot %q: %v", utils.GroupSnapshotKey(groupSnapshot), err) + } + + groupSnapshotProvisionType := metrics.DynamicGroupSnapshotType + if groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil { + groupSnapshotProvisionType = metrics.PreProvisionedGroupSnapshotType + } + + // Processing delete, start operation metric + deleteOperationKey := metrics.NewOperationKey(metrics.DeleteGroupSnapshotOperationName, groupSnapshot.UID) + deleteOperationValue := metrics.NewOperationValue(driverName, groupSnapshotProvisionType) + ctrl.metricsManager.OperationStart(deleteOperationKey, deleteOperationValue) + + var groupSnapshotContentName string + if groupSnapshot.Status != nil && groupSnapshot.Status.BoundVolumeGroupSnapshotContentName != nil { + groupSnapshotContentName = *groupSnapshot.Status.BoundVolumeGroupSnapshotContentName + } + // for a dynamically created group snapshot, it's possible that a group snapshot + // content has been created however the Status of the group snapshot has not + // been updated yet, i.e., failed right after group snapshot content creation. + // In this case, use the fixed naming scheme to get the group snapshot content + // name and search + if groupSnapshotContentName == "" && &groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName == nil { + groupSnapshotContentName = utils.GetDynamicSnapshotContentNameForGroupSnapshot(groupSnapshot) + } + // find a group snapshot content from cache store, note that it's completely legit + // that no group snapshot content has been found from group snapshot content + // cache store + groupSnapshotContent, err := ctrl.getGroupSnapshotContentFromStore(groupSnapshotContentName) + if err != nil { + return err + } + // check whether the group snapshot content points back to the passed in group + // snapshot, note that binding should always be bi-directional to trigger the + // deletion on group snapshot content or adding any annotation to the group + // snapshot content + var deleteGroupSnapshotContent bool + if groupSnapshotContent != nil && utils.IsVolumeGroupSnapshotRefSet(groupSnapshot, groupSnapshotContent) { + // group snapshot content points back to group snapshot, whether or not + // to delete a group snapshot content now depends on the deletion policy + // of it. + deleteGroupSnapshotContent = (groupSnapshotContent.Spec.DeletionPolicy == crdv1.VolumeSnapshotContentDelete) + } else { + // the group snapshot content is nil or points to a different group snapshot, reset group snapshot content to nil + // such that there is no operation done on the found group snapshot content in + // checkandRemoveSnapshotFinalizersAndCheckandDeleteContent + groupSnapshotContent = nil + } + + klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp[%s]: check if group snapshot is a candidate for deletion", utils.GroupSnapshotKey(groupSnapshot)) + if !utils.IsGroupSnapshotDeletionCandidate(groupSnapshot) { + return nil + } + + // Look up for members of this volume group snapshot + snapshotMembers, err := ctrl.findGroupSnapshotMembers( + types.NamespacedName{ + Name: groupSnapshot.Name, + Namespace: groupSnapshot.Namespace, + }, + ) + if err != nil { + klog.Errorf( + "processGroupSnapshotWithDeletionTimestamp[%s]: Failed to look for snapshot members: %v", + utils.GroupSnapshotKey(groupSnapshot), + err.Error()) + return err + } + + // check if an individual snapshot belonging to the group snapshot is being + // used for restore a PVC + // If yes, do nothing and wait until PVC restoration finishes + for _, snapshot := range snapshotMembers { + snapshot, err := ctrl.snapshotLister.VolumeSnapshots(groupSnapshot.Namespace).Get(snapshot.Name) + if err != nil { + if apierrs.IsNotFound(err) { + continue + } + return err + } + if ctrl.isVolumeBeingCreatedFromSnapshot(snapshot) { + msg := fmt.Sprintf("Snapshot %s belonging to VolumeGroupSnapshot %s is being used to restore a PVC", utils.SnapshotKey(snapshot), utils.GroupSnapshotKey(groupSnapshot)) + klog.V(4).Info(msg) + ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeWarning, "SnapshotDeletePending", msg) + // TODO(@xiangqian): should requeue this? + return nil + } + + } + + // regardless of the deletion policy, set VolumeGroupSnapshotBeingDeleted on + // group snapshot content object, this is to allow snapshotter sidecar controller + // to conduct a delete operation whenever the group snapshot content has deletion + // timestamp set. + if groupSnapshotContent != nil { + klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp[%s]: Set VolumeGroupSnapshotBeingDeleted annotation on the group snapshot content [%s]", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent.Name) + updatedGroupSnapshotContent, err := ctrl.setAnnVolumeGroupSnapshotBeingDeleted(groupSnapshotContent) + if err != nil { + klog.V(4).Infof("processGroupSnapshotWithDeletionTimestamp[%s]: failed to set VolumeGroupSnapshotBeingDeleted annotation on the group snapshot content [%s]: %v", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent.Name, err) + return err + } + groupSnapshotContent = updatedGroupSnapshotContent + } + + // VolumeGroupSnapshot should be deleted. Check and remove finalizers + // If group snapshot content exists and has a deletion policy of Delete, set + // DeletionTimeStamp on the group snapshot content; + // VolumeGroupSnapshotContent won't be deleted immediately due to the VolumeGroupSnapshotContentFinalizer + if groupSnapshotContent != nil && deleteGroupSnapshotContent { + klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp[%s]: set DeletionTimeStamp on group snapshot content [%s].", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent.Name) + err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshotContents().Delete(ctx, groupSnapshotContent.Name, metav1.DeleteOptions{}) + if err != nil { + ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeWarning, "GroupSnapshotContentObjectDeleteError", "Failed to delete group snapshot content API object") + return fmt.Errorf("failed to delete VolumeGroupSnapshotContent %s from API server: %q", groupSnapshotContent.Name, err) + } + } + + klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp[%s]: Delete individual snapshots that are part of the group snapshot", utils.GroupSnapshotKey(groupSnapshot)) + + // Delete the individual snapshots part of the group snapshot + for _, snapshot := range snapshotMembers { + err := ctrl.clientset.SnapshotV1(). + VolumeSnapshots(groupSnapshot.Namespace). + Delete(context.TODO(), snapshot.Name, metav1.DeleteOptions{}) + if err != nil && !apierrs.IsNotFound(err) { + msg := fmt.Sprintf( + "failed to delete snapshot API object %s/%s part of group snapshot %s: %v", + groupSnapshot.Namespace, + snapshot.Name, + utils.GroupSnapshotKey(groupSnapshot), err) + klog.Error(msg) + ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeWarning, "SnapshotDeleteError", msg) + return errors.New(msg) + } + } + + klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp[%s] : Remove Finalizer for VolumeGroupSnapshot", utils.GroupSnapshotKey(groupSnapshot)) + // remove VolumeSnapshotBoundFinalizer on the VolumeGroupSnapshot object: + // a. If there is no group snapshot content found, remove the finalizer. + // b. If the group snapshot content is being deleted, i.e., with deleteGroupSnapshotContent == true, + // keep this finalizer until the group snapshot content object is removed + // from API server by group snapshot sidecar controller. + // c. If deletion will not cascade to the group snapshot content, remove + // the finalizer on the group snapshot such that it can be removed from + // the API server. + removeBoundFinalizer := !(groupSnapshotContent != nil && deleteGroupSnapshotContent) + return ctrl.removeGroupSnapshotFinalizer(groupSnapshot, removeBoundFinalizer) +} + +func (ctrl *csiSnapshotCommonController) setAnnVolumeGroupSnapshotBeingDeleted(groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) (*crdv1beta1.VolumeGroupSnapshotContent, error) { + if groupSnapshotContent == nil { + return groupSnapshotContent, nil + } + // Set AnnVolumeGroupSnapshotBeingDeleted if it is not set yet + if !metav1.HasAnnotation(groupSnapshotContent.ObjectMeta, utils.AnnVolumeGroupSnapshotBeingDeleted) { + klog.V(5).Infof("setAnnVolumeGroupSnapshotBeingDeleted: set annotation [%s] on group snapshot content [%s].", utils.AnnVolumeGroupSnapshotBeingDeleted, groupSnapshotContent.Name) + var patches []utils.PatchOp + metav1.SetMetaDataAnnotation(&groupSnapshotContent.ObjectMeta, utils.AnnVolumeGroupSnapshotBeingDeleted, "yes") + patches = append(patches, utils.PatchOp{ + Op: "replace", + Path: "/metadata/annotations", + Value: groupSnapshotContent.ObjectMeta.GetAnnotations(), + }) + + patchedGroupSnapshotContent, err := utils.PatchVolumeGroupSnapshotContent(groupSnapshotContent, patches, ctrl.clientset) + if err != nil { + return groupSnapshotContent, newControllerUpdateError(groupSnapshotContent.Name, err.Error()) + } + + // update group snapshot content if update is successful + groupSnapshotContent = patchedGroupSnapshotContent + + _, err = ctrl.storeGroupSnapshotContentUpdate(groupSnapshotContent) + if err != nil { + klog.V(4).Infof("setAnnVolumeGroupSnapshotBeingDeleted for group snapshot content [%s]: cannot update internal cache %v", groupSnapshotContent.Name, err) + return groupSnapshotContent, err + } + klog.V(5).Infof("setAnnVolumeGroupSnapshotBeingDeleted: volume group snapshot content %+v", groupSnapshotContent) + } + return groupSnapshotContent, nil +} + +// findGroupSnapshotMembers get the list of members of a group snapshot +// using the local cache and indexer +func (ctrl *csiSnapshotCommonController) findGroupSnapshotMembers(groupSnapshotName types.NamespacedName) ([]*crdv1.VolumeSnapshot, error) { + // Look up for the members of this volume group snapshot + snapshotMembers, err := ctrl.snapshotIndexer.ByIndex( + utils.VolumeSnapshotParentGroupIndex, + utils.VolumeSnapshotParentGroupKeyFuncByComponents( + groupSnapshotName, + ), + ) + if err != nil { + return nil, err + } + + result := make([]*crdv1.VolumeSnapshot, len(snapshotMembers)) + for i := range snapshotMembers { + var ok bool + result[i], ok = snapshotMembers[i].(*crdv1.VolumeSnapshot) + if !ok { + return nil, fmt.Errorf("unexpected content found in snapshot index: %v", snapshotMembers[i]) + } + } + + return result, nil +} + +// removeGroupSnapshotFinalizer removes a Finalizer for VolumeGroupSnapshot. +func (ctrl *csiSnapshotCommonController) removeGroupSnapshotFinalizer(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, removeBoundFinalizer bool) error { + if !removeBoundFinalizer { + return nil + } + + // TODO: Remove PVC Finalizer + + groupSnapshotClone := groupSnapshot.DeepCopy() + groupSnapshotClone.ObjectMeta.Finalizers = utils.RemoveString(groupSnapshotClone.ObjectMeta.Finalizers, utils.VolumeGroupSnapshotBoundFinalizer) + newGroupSnapshot, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshotClone.Namespace).Update(context.TODO(), groupSnapshotClone, metav1.UpdateOptions{}) + if err != nil { + return newControllerUpdateError(groupSnapshot.Name, err.Error()) + } + + _, err = ctrl.storeGroupSnapshotUpdate(newGroupSnapshot) + if err != nil { + klog.Errorf("failed to update group snapshot store %v", err) + } + + klog.V(5).Infof("Removed protection finalizer from volume group snapshot %s", utils.GroupSnapshotKey(groupSnapshot)) + return nil +} + +// getGroupSnapshotDriverName is a helper function to get driver from the VolumeGroupSnapshot. +// We try to get the driverName in multiple ways, as snapshot controller metrics depend on the correct driverName. +func (ctrl *csiSnapshotCommonController) getGroupSnapshotDriverName(vgs *crdv1beta1.VolumeGroupSnapshot) (string, error) { + klog.V(5).Infof("getGroupSnapshotDriverName: VolumeGroupSnapshot[%s]", vgs.Name) + var driverName string + + // Pre-Provisioned groupsnapshots have contentName as source + var contentName string + if vgs.Spec.Source.VolumeGroupSnapshotContentName != nil { + contentName = *vgs.Spec.Source.VolumeGroupSnapshotContentName + } + + // Get Driver name from GroupSnapshotContent if we found a contentName + if contentName != "" { + content, err := ctrl.groupSnapshotContentLister.Get(contentName) + if err != nil { + klog.Errorf("getGroupSnapshotDriverName: failed to get groupSnapshotContent: %v", contentName) + } else { + driverName = content.Spec.Driver + } + + if driverName != "" { + return driverName, nil + } + } + + // Dynamic groupsnapshots will have a groupsnapshotclass with a driver + if vgs.Spec.VolumeGroupSnapshotClassName != nil { + class, err := ctrl.getGroupSnapshotClass(*vgs.Spec.VolumeGroupSnapshotClassName) + if err != nil { + klog.Errorf("getGroupSnapshotDriverName: failed to get groupSnapshotClass: %v", *vgs.Spec.VolumeGroupSnapshotClassName) + } else { + driverName = class.Driver + } + } + + return driverName, nil +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/metrics/metrics_group.go b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/metrics/metrics_group.go new file mode 100644 index 0000000000..5c5a6fb2ab --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/metrics/metrics_group.go @@ -0,0 +1,92 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package metrics + +import ( + "time" +) + +const ( + // CreateGroupSnapshotOperationName is the operation that tracks how long the controller takes to create a groupsnapshot. + // Specifically, the operation metric is emitted based on the following timestamps: + // - Start_time: controller notices the first time that there is a new VolumeGroupSnapshot CR to dynamically provision a groupsnapshot + // - End_time: controller notices that the CR has a status with CreationTime field set to be non-nil + CreateGroupSnapshotOperationName = "CreateGroupSnapshot" + + // CreateGroupSnapshotAndReadyOperationName is the operation that tracks how long the controller takes to create a groupsnapshot and for it to be ready. + // Specifically, the operation metric is emitted based on the following timestamps: + // - Start_time: controller notices the first time that there is a new VolumeGroupSnapshot CR(both dynamic and pre-provisioned cases) + // - End_time: controller notices that the CR has a status with Ready To Use field set to be true + CreateGroupSnapshotAndReadyOperationName = "CreateGroupSnapshotAndReady" + + // DeleteGroupSnapshotOperationName is the operation that tracks how long a groupsnapshot deletion takes. + // Specifically, the operation metric is emitted based on the following timestamps: + // - Start_time: controller notices the first time that there is a deletion timestamp placed on the VolumeGroupSnapshot CR and the CR is ready to be deleted. + // Note that if the CR is being used by a PVC for rehydration, the controller should *NOT* set the start_time. + // - End_time: controller removed all finalizers on the VolumeGroupSnapshot CR such that the CR is ready to be removed in the API server. + DeleteGroupSnapshotOperationName = "DeleteGroupSnapshot" + // DynamicGroupSnapshotType represents a groupsnapshot that is being dynamically provisioned + DynamicGroupSnapshotType = snapshotProvisionType("dynamic") + // PreProvisionedGroupSnapshotType represents a groupsnapshot that is pre-provisioned + PreProvisionedGroupSnapshotType = snapshotProvisionType("pre-provisioned") +) + +// RecordVolumeGroupMetrics emits operation metrics +func (opMgr *operationMetricsManager) RecordVolumeGroupSnapshotMetrics(opKey OperationKey, opStatus OperationStatus, driverName string) { + opMgr.mu.Lock() + defer opMgr.mu.Unlock() + opVal, exists := opMgr.cache[opKey] + if !exists { + // the operation has not been cached, return directly + return + } + status := string(SnapshotStatusTypeUnknown) + if opStatus != nil { + status = opStatus.String() + } + + // if we do not know the driverName while recording metrics, + // refer to the cached version instead. + if driverName == "" || driverName == unknownDriverName { + driverName = opVal.Driver + } + + operationDuration := time.Since(opVal.startTime).Seconds() + opMgr.opLatencyMetrics.WithLabelValues(driverName, opKey.Name, opVal.SnapshotType, status).Observe(operationDuration) + + // Report cancel metrics if we are deleting an unfinished VolumeGroupSnapshot + if opKey.Name == DeleteGroupSnapshotOperationName { + // check if we have a CreateGroupSnapshot operation pending for this + createKey := NewOperationKey(CreateGroupSnapshotOperationName, opKey.ResourceID) + obj, exists := opMgr.cache[createKey] + if exists { + // record a cancel metric if found + opMgr.recordCancelMetricLocked(obj, createKey, operationDuration) + } + + // check if we have a CreateGroupSnapshotAndReady operation pending for this + createAndReadyKey := NewOperationKey(CreateGroupSnapshotAndReadyOperationName, opKey.ResourceID) + obj, exists = opMgr.cache[createAndReadyKey] + if exists { + // record a cancel metric if found + opMgr.recordCancelMetricLocked(obj, createAndReadyKey, operationDuration) + } + } + + delete(opMgr.cache, opKey) + opMgr.opInFlight.Set(float64(len(opMgr.cache))) +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/pvs.go b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/pvs.go new file mode 100644 index 0000000000..b2ba5a2671 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/pvs.go @@ -0,0 +1,41 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package utils + +import ( + "fmt" + + v1 "k8s.io/api/core/v1" +) + +const CSIDriverHandleIndexName = "ByVolumeHandle" + +// PersistentVolumeKeyFunc maps a persistent volume to a string usable +// as KeyFunc to recover it from the CSI driver name and the volume handle. +// If the passed PV is not CSI-based, it will return the empty string +func PersistentVolumeKeyFunc(pv *v1.PersistentVolume) string { + if pv != nil && pv.Spec.CSI != nil { + return fmt.Sprintf("%s^%s", pv.Spec.CSI.Driver, pv.Spec.CSI.VolumeHandle) + } + return "" +} + +// PersistentVolumeKeyFuncByCSIDriverHandle returns the key to be used form +// the individual data components +func PersistentVolumeKeyFuncByCSIDriverHandle(driverName, volumeHandle string) string { + return fmt.Sprintf("%s^%s", driverName, volumeHandle) +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/vgs.go b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/vgs.go new file mode 100644 index 0000000000..1c29cbe602 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/vgs.go @@ -0,0 +1,114 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package utils + +import ( + "fmt" + + crdv1beta1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1" + crdv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" +) + +// VolumeSnapshotParentGroupIndex is the name of the cache index hosting the relationship +// between volume snapshots and their volume group snapshot owner +const VolumeSnapshotParentGroupIndex = "ByVolumeGroupSnapshotMembership" + +// getVolumeGroupSnapshotParentObjectName returns the name of the parent group snapshot, if present. +// The second return value is true when the parent object have been found, false otherwise. +func getVolumeGroupSnapshotParentObjectName(snapshot *crdv1.VolumeSnapshot) string { + if snapshot == nil { + return "" + } + + apiVersion := fmt.Sprintf( + "%s/%s", + crdv1beta1.SchemeGroupVersion.Group, + crdv1beta1.SchemeGroupVersion.Version, + ) + + for _, owner := range snapshot.ObjectMeta.OwnerReferences { + if owner.Kind == "VolumeGroupSnapshot" && owner.APIVersion == apiVersion { + return owner.Name + } + } + + return "" +} + +// IsVolumeGroupSnapshotMember returns true if the passed VolumeSnapshot object +// is a member of a VolumeGroupSnapshot. +func IsVolumeGroupSnapshotMember(snapshot *crdv1.VolumeSnapshot) bool { + parentName := getVolumeGroupSnapshotParentObjectName(snapshot) + return len(parentName) > 0 +} + +// VolumeSnapshotParentGroupKeyFunc maps a member snapshot to the name +// of the parent VolumeGroupSnapshot +func VolumeSnapshotParentGroupKeyFunc(snapshot *crdv1.VolumeSnapshot) string { + parentName := getVolumeGroupSnapshotParentObjectName(snapshot) + if len(parentName) == 0 { + return "" + } + + return VolumeSnapshotParentGroupKeyFuncByComponents(types.NamespacedName{ + Namespace: snapshot.Namespace, + Name: parentName, + }) +} + +// VolumeSnapshotParentGroupKeyFuncByComponents computes the index key for a certain +// name and namespace pair +func VolumeSnapshotParentGroupKeyFuncByComponents(objectKey types.NamespacedName) string { + return fmt.Sprintf("%s^%s", objectKey.Namespace, objectKey.Name) +} + +// NeedToAddVolumeGroupSnapshotOwnership checks if the passed snapshot is a member +// of a volume group snapshot but the ownership is missing +func NeedToAddVolumeGroupSnapshotOwnership(snapshot *crdv1.VolumeSnapshot) bool { + parentObjectName := getVolumeGroupSnapshotParentObjectName(snapshot) + if len(parentObjectName) > 0 { + return false + } + + // Group snapshot ownership should be added only when + // the snapshot is marked with its group snapshot name + if snapshot == nil || + snapshot.Status == nil || + snapshot.Status.VolumeGroupSnapshotName == nil || + len(*snapshot.Status.VolumeGroupSnapshotName) == 0 { + return false + } + + return true +} + +// BuildVolumeGroupSnapshotOwnerReference creates a OwnerReference record declaring an +// object as a child of passed VolumeGroupSnapshot +func BuildVolumeGroupSnapshotOwnerReference(parentGroup *crdv1beta1.VolumeGroupSnapshot) metav1.OwnerReference { + return metav1.OwnerReference{ + APIVersion: fmt.Sprintf( + "%s/%s", + crdv1beta1.SchemeGroupVersion.Group, + crdv1beta1.SchemeGroupVersion.Version, + ), + Kind: "VolumeGroupSnapshot", + Name: parentGroup.Name, + UID: parentGroup.UID, + } +} From 5c86b1c59e7f6e47f3586b8ce2f4d2412aa01d9b Mon Sep 17 00:00:00 2001 From: Yashas G Date: Fri, 14 Nov 2025 16:27:16 +0530 Subject: [PATCH 07/24] Fix for CSI panics in ISCSI logout flow --- pkg/csi/driver/bv_node.go | 42 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/pkg/csi/driver/bv_node.go b/pkg/csi/driver/bv_node.go index 4f6f3413fc..7071cd921a 100644 --- a/pkg/csi/driver/bv_node.go +++ b/pkg/csi/driver/bv_node.go @@ -197,9 +197,9 @@ func (d BlockVolumeNodeDriver) NodeStageVolume(ctx context.Context, req *csi.Nod devicePath, err = disk.WaitForDevicePathToExist(ctx, scsiInfo, logger) if err != nil { logger.With(zap.Error(err)).Error("Failed to get /dev/disk/by-path device path for iscsi volume.") - err = mountHandler.ISCSILogoutOnFailure() - if err != nil { - return nil, status.Error(codes.Internal, "Failed to iscsi logout after timeout on waiting for device path to exist") + logoutErr := mountHandler.ISCSILogoutOnFailure() + if logoutErr != nil { + return nil, status.Errorf(codes.Internal, "Failed to iscsi logout after timeout on waiting for device path to exist: %v", logoutErr) } return nil, status.Error(codes.InvalidArgument, "Failed to get device path for iscsi volume") } @@ -219,9 +219,9 @@ func (d BlockVolumeNodeDriver) NodeStageVolume(ctx context.Context, req *csi.Nod err := csi_util.CreateFilePath(logger, stagingTargetFilePath) if err != nil { logger.With(zap.Error(err)).Error("failed to create the stagingTargetFile.") - err = mountHandler.ISCSILogoutOnFailure() - if err != nil { - return nil, status.Error(codes.Internal, "Failed to iscsi logout after mount failure") + logoutErr := mountHandler.ISCSILogoutOnFailure() + if logoutErr != nil { + return nil, status.Errorf(codes.Internal, "Failed to iscsi logout after mount failure: %v", logoutErr) } return nil, status.Error(codes.Internal, err.Error()) } @@ -229,9 +229,9 @@ func (d BlockVolumeNodeDriver) NodeStageVolume(ctx context.Context, req *csi.Nod err = mountHandler.Mount(devicePath, stagingTargetFilePath, "", options) if err != nil { logger.With(zap.Error(err)).Error("failed to bind mount raw block volume to stagingTargetFile") - err = mountHandler.ISCSILogoutOnFailure() - if err != nil { - return nil, status.Error(codes.Internal, "Failed to iscsi logout after mount failure") + logoutErr := mountHandler.ISCSILogoutOnFailure() + if logoutErr != nil { + return nil, status.Errorf(codes.Internal, "Failed to iscsi logout after mount failure: %v", logoutErr) } return nil, status.Error(codes.Internal, err.Error()) } @@ -250,9 +250,9 @@ func (d BlockVolumeNodeDriver) NodeStageVolume(ctx context.Context, req *csi.Nod exists = false } else { logger.With(zap.Error(err)).Errorf("failed to check if stagingTargetPath %q exists", req.StagingTargetPath) - err = mountHandler.ISCSILogoutOnFailure() - if err != nil { - return nil, status.Error(codes.Internal, "Failed to iscsi logout after failure to check if staging path exists") + logoutErr := mountHandler.ISCSILogoutOnFailure() + if logoutErr != nil { + return nil, status.Errorf(codes.Internal, "Failed to iscsi logout after failure to check if staging path exists: %v", logoutErr) } message := fmt.Sprintf("failed to check if stagingTargetPath %q exists", req.StagingTargetPath) return nil, status.Error(codes.Internal, message) @@ -265,9 +265,9 @@ func (d BlockVolumeNodeDriver) NodeStageVolume(ctx context.Context, req *csi.Nod if !exists { if err := os.MkdirAll(req.StagingTargetPath, 0750); err != nil { logger.With(zap.Error(err)).Error("Failed to create StagingTargetPath directory") - err = mountHandler.ISCSILogoutOnFailure() - if err != nil { - return nil, status.Error(codes.Internal, "Failed to iscsi logout after failure to create StagingTargetPath directory") + logoutErr := mountHandler.ISCSILogoutOnFailure() + if logoutErr != nil { + return nil, status.Errorf(codes.Internal, "Failed to iscsi logout after failure to create StagingTargetPath directory: %v", logoutErr) } return nil, status.Error(codes.Internal, "Failed to create StagingTargetPath directory") } @@ -290,9 +290,9 @@ func (d BlockVolumeNodeDriver) NodeStageVolume(ctx context.Context, req *csi.Nod if existingFs != "" && existingFs != fsType { returnError := fmt.Sprintf("FS Type mismatch detected. The existing fs type on the volume: %q doesn't match the requested fs type: %q. Please change fs type in PV to match the existing fs type.", existingFs, fsType) logger.Error(returnError) - err = mountHandler.ISCSILogoutOnFailure() - if err != nil { - return nil, status.Error(codes.Internal, "Failed to iscsi logout after failure due to FS Type mismatch") + loggerErr := mountHandler.ISCSILogoutOnFailure() + if loggerErr != nil { + return nil, status.Errorf(codes.Internal, "Failed to iscsi logout after failure due to FS Type mismatch: %v", loggerErr) } return nil, status.Error(codes.Internal, returnError) } @@ -302,9 +302,9 @@ func (d BlockVolumeNodeDriver) NodeStageVolume(ctx context.Context, req *csi.Nod err = mountHandler.FormatAndMount(devicePath, req.StagingTargetPath, fsType, options) if err != nil { logger.With(zap.Error(err)).Error("failed to format and mount volume to staging path.") - err = mountHandler.ISCSILogoutOnFailure() - if err != nil { - return nil, status.Error(codes.Internal, "Failed to iscsi logout after mount failure") + loggerErr := mountHandler.ISCSILogoutOnFailure() + if loggerErr != nil { + return nil, status.Errorf(codes.Internal, "Failed to iscsi logout after mount failure: %v", loggerErr) } return nil, status.Error(codes.Internal, err.Error()) } From 70003260c1c05c4b54069691508698c036ec7fda Mon Sep 17 00:00:00 2001 From: Yashas G Date: Thu, 4 Dec 2025 11:59:02 +0530 Subject: [PATCH 08/24] Improve CSI driver lookup logic for stale entries --- pkg/csi-util/utils.go | 33 +++++----- pkg/csi-util/utils_test.go | 12 ++-- pkg/csi/driver/bv_node.go | 33 +++++++--- pkg/csi/driver/driver.go | 9 +-- pkg/csi/driver/lustre_node.go | 13 ++-- pkg/util/commons.go | 16 +++++ pkg/util/disk/iscsi.go | 117 +++++++++++++++++++++++++++++----- 7 files changed, 176 insertions(+), 57 deletions(-) diff --git a/pkg/csi-util/utils.go b/pkg/csi-util/utils.go index e9c33a7479..234cd3e8ae 100644 --- a/pkg/csi-util/utils.go +++ b/pkg/csi-util/utils.go @@ -17,6 +17,7 @@ package csi_util import ( "context" "fmt" + "net" "os" "os/exec" @@ -44,6 +45,7 @@ import ( "k8s.io/client-go/tools/clientcmd" "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" ) @@ -116,19 +118,6 @@ type NodeMetadata struct { IsNodeMetadataLoaded bool } -// CSIConfig represents the structure of the ConfigMap data. -type CSIConfig struct { - Lustre *DriverConfig `yaml:"lustre"` - IsLoaded bool -} - -// DriverConfig represents driver-specific configurations. -type DriverConfig struct { - SkipNodeUnstage bool `yaml:"skipNodeUnstage"` - SkipLustreParameters bool `yaml:"skipLustreParameters"` - -} - func (u *Util) LookupNodeID(k kubernetes.Interface, nodeName string) (string, error) { n, err := k.CoreV1().Nodes().Get(context.Background(), nodeName, metav1.GetOptions{}) if err != nil { @@ -642,10 +631,10 @@ func IsIpv6SingleStackNode(nodeMetadata *NodeMetadata) bool { return nodeMetadata.Ipv6Enabled == true && nodeMetadata.Ipv4Enabled == false } -func LoadCSIConfigFromConfigMap(csiConfig *CSIConfig, k kubernetes.Interface, configMapName string, logger *zap.SugaredLogger) { +func LoadCSIConfigFromConfigMap(csiConfig *util.CSIConfig, k kubernetes.Interface, configMapName string, logger *zap.SugaredLogger, ctx context.Context) { // Get the ConfigMap // Parse the configuration for each driver - cm, err := k.CoreV1().ConfigMaps("kube-system").Get(context.Background(), configMapName, metav1.GetOptions{}) + cm, err := k.CoreV1().ConfigMaps("kube-system").Get(ctx, configMapName, metav1.GetOptions{}) if err != nil { logger.Debugf("Failed to load ConfigMap %v due to error %v. Using default configuration.", configMapName, err) return @@ -653,10 +642,18 @@ func LoadCSIConfigFromConfigMap(csiConfig *CSIConfig, k kubernetes.Interface, co if lustreConfig, exists := cm.Data["lustre"]; exists { if err := yaml.Unmarshal([]byte(lustreConfig), &csiConfig.Lustre); err != nil { - logger.Debugf("Failed to parse lustre key in config map %v. Error: %v", configMapName, err) - return + logger.Warnf("Failed to parse lustre key in config map %v. Error: %v", configMapName, err) + } else { + logger.Infof("Successfully loaded lustre parameters from ConfigMap %v. Using customized configuration for csi driver.", configMapName) + } + } + + if bvConfig, exists := cm.Data["blockVolume"]; exists { + if err := yaml.Unmarshal([]byte(bvConfig), &csiConfig.Bv); err != nil { + logger.Warnf("Failed to parse block volume key in config map %v. Error: %v", configMapName, err) + } else { + logger.Infof("Successfully loaded block volume parameters from ConfigMap %v. Using customized configuration for csi driver.", configMapName) } - logger.Infof("Successfully loaded ConfigMap %v. Using customized configuration for csi driver.", configMapName) } } diff --git a/pkg/csi-util/utils_test.go b/pkg/csi-util/utils_test.go index dcdade08c7..e3bc1df47e 100644 --- a/pkg/csi-util/utils_test.go +++ b/pkg/csi-util/utils_test.go @@ -815,13 +815,13 @@ func Test_LoadCSIConfigFromConfigMap(t *testing.T) { tests := []struct { name string configMapName string - want *CSIConfig + want *util.CSIConfig }{ { name: "Parse Configs correctly when csi config map is present", configMapName: "oci-csi-config", - want: &CSIConfig{ - Lustre: &DriverConfig{ + want: &util.CSIConfig{ + Lustre: &util.DriverConfig{ SkipNodeUnstage: true, SkipLustreParameters: true, }, @@ -830,17 +830,17 @@ func Test_LoadCSIConfigFromConfigMap(t *testing.T) { { name: "Return default config if config map is not present", configMapName: "invalid", - want: &CSIConfig{ + want: &util.CSIConfig{ }, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - csiConfig := &CSIConfig{} + csiConfig := &util.CSIConfig{} LoadCSIConfigFromConfigMap(csiConfig, &util.MockKubeClient{ CoreClient: &util.MockCoreClient{}, - }, tt.configMapName, zap.S()) + }, tt.configMapName, zap.S(), context.Background()) if !reflect.DeepEqual(tt.want, csiConfig) { t.Errorf("LoadCSIConfigFromConfigMap() => got : %v, want : %v", csiConfig, tt.want) diff --git a/pkg/csi/driver/bv_node.go b/pkg/csi/driver/bv_node.go index 7071cd921a..0c2529fb7a 100644 --- a/pkg/csi/driver/bv_node.go +++ b/pkg/csi/driver/bv_node.go @@ -326,6 +326,8 @@ func (d BlockVolumeNodeDriver) NodeUnstageVolume(ctx context.Context, req *csi.N logger := d.logger.With("volumeID", req.VolumeId, "stagingPath", req.StagingTargetPath) + d.loadCSIConfig(ctx) + stagingTargetFilePath := csi_util.GetPathForBlock(req.StagingTargetPath) if acquired := d.volumeLocks.TryAcquire(req.VolumeId); !acquired { @@ -347,14 +349,14 @@ func (d BlockVolumeNodeDriver) NodeUnstageVolume(ctx context.Context, req *csi.N var err error if isRawBlockVolume { - diskPath, err = disk.GetDiskPathFromBindDeviceFilePath(logger, stagingTargetFilePath) + diskPath, err = disk.GetDiskPathFromBindDeviceFilePath(logger, stagingTargetFilePath, d.csiConfig) if err != nil { logger.With(zap.Error(err)).With("mountPath", stagingTargetFilePath).Error("unable to get diskPath from mount path") return nil, status.Error(codes.Internal, err.Error()) } } else { - diskPath, err = disk.GetDiskPathFromMountPath(logger, req.GetStagingTargetPath()) + diskPath, err = disk.GetDiskPathFromMountPath(logger, req.GetStagingTargetPath(), d.csiConfig) if err != nil { // do a clean exit in case of mount point not found @@ -469,6 +471,8 @@ func (d BlockVolumeNodeDriver) NodePublishVolume(ctx context.Context, req *csi.N logger := d.logger.With("volumeID", req.VolumeId, "targetPath", req.TargetPath) + d.loadCSIConfig(ctx) + stagingTargetFilePath := csi_util.GetPathForBlock(req.StagingTargetPath) isRawBlockVolume := false @@ -605,13 +609,13 @@ func (d BlockVolumeNodeDriver) NodePublishVolume(ctx context.Context, req *csi.N var diskErr error if isRawBlockVolume { - diskPath, diskErr = disk.GetDiskPathFromBindDeviceFilePath(logger, req.TargetPath) + diskPath, diskErr = disk.GetDiskPathFromBindDeviceFilePath(logger, req.TargetPath, d.csiConfig) if diskErr != nil { logger.With(zap.Error(diskErr)).With("mountPath", req.TargetPath).Error("unable to get diskPath from mount path") return nil, status.Error(codes.Internal, diskErr.Error()) } } else { - diskPath, diskErr = disk.GetDiskPathFromMountPath(d.logger, req.StagingTargetPath) + diskPath, diskErr = disk.GetDiskPathFromMountPath(d.logger, req.StagingTargetPath, d.csiConfig) if diskErr != nil { // do a clean exit in case of mount point not found if diskErr == disk.ErrMountPointNotFound { @@ -687,6 +691,8 @@ func (d BlockVolumeNodeDriver) NodeUnpublishVolume(ctx context.Context, req *csi logger := d.logger.With("volumeID", req.VolumeId, "targetPath", req.TargetPath) + d.loadCSIConfig(ctx) + hostUtil := hostutil.NewHostUtil() isRawBlockVolume, rbvCheckErr := hostUtil.PathIsDevice(req.TargetPath) @@ -710,13 +716,13 @@ func (d BlockVolumeNodeDriver) NodeUnpublishVolume(ctx context.Context, req *csi var err error if isRawBlockVolume { - diskPath, err = disk.GetDiskPathFromBindDeviceFilePath(logger, req.TargetPath) + diskPath, err = disk.GetDiskPathFromBindDeviceFilePath(logger, req.TargetPath, d.csiConfig) if err != nil { logger.With(zap.Error(err)).With("mountPath", req.TargetPath).Error("unable to get diskPath from mount path") return nil, status.Error(codes.Internal, err.Error()) } } else { - diskPath, err = disk.GetDiskPathFromMountPath(d.logger, req.TargetPath) + diskPath, err = disk.GetDiskPathFromMountPath(d.logger, req.TargetPath, d.csiConfig) if err != nil { // do a clean exit in case of mount point not found if err == disk.ErrMountPointNotFound { @@ -937,6 +943,8 @@ func (d BlockVolumeNodeDriver) NodeExpandVolume(ctx context.Context, req *csi.No logger := d.logger.With("volumeID", req.VolumeId, "volumePath", req.VolumePath) + d.loadCSIConfig(ctx) + if acquired := d.volumeLocks.TryAcquire(req.VolumeId); !acquired { logger.Error("Could not acquire lock for NodeExpandVolume.") return nil, status.Errorf(codes.Aborted, volumeOperationAlreadyExistsFmt, req.VolumeId) @@ -963,7 +971,7 @@ func (d BlockVolumeNodeDriver) NodeExpandVolume(ctx context.Context, req *csi.No var diskPath []string if !isRawBlockVolume { - diskPath, err = disk.GetDiskPathFromMountPath(logger, volumePath) + diskPath, err = disk.GetDiskPathFromMountPath(logger, volumePath, d.csiConfig) if err != nil { if err == disk.ErrMountPointNotFound { logger.With(zap.Error(err)).With("volumePath", volumePath).Warn("unable to fetch mount point") @@ -973,7 +981,7 @@ func (d BlockVolumeNodeDriver) NodeExpandVolume(ctx context.Context, req *csi.No return nil, status.Error(codes.Internal, err.Error()) } } else { - diskPath, err = disk.GetDiskPathFromBindDeviceFilePath(logger, volumePath) + diskPath, err = disk.GetDiskPathFromBindDeviceFilePath(logger, volumePath, d.csiConfig) if err != nil { logger.With(zap.Error(err)).Errorf("unable to get disk paths from volumePath %s", volumePath) return nil, status.Error(codes.Internal, err.Error()) @@ -1069,3 +1077,12 @@ func getMultipathDevicesFromReq(req *csi.NodeStageVolumeRequest) ([]core.Multipa return multipathDevicesList, nil } + +func (d BlockVolumeNodeDriver) loadCSIConfig(ctx context.Context) { + if d.csiConfig.IsLoaded { + return + } + d.logger.Info("Loading CSI Config Map for BV driver") + csi_util.LoadCSIConfigFromConfigMap(d.csiConfig, d.KubeClient, CSIConfigMapName, d.logger, ctx) + d.csiConfig.IsLoaded = true +} diff --git a/pkg/csi/driver/driver.go b/pkg/csi/driver/driver.go index 21ffeb3c2a..dfe5d0f6ec 100644 --- a/pkg/csi/driver/driver.go +++ b/pkg/csi/driver/driver.go @@ -34,6 +34,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/oci/instance/metadata" + "github.com/oracle/oci-cloud-controller-manager/pkg/util" "go.uber.org/zap" "google.golang.org/grpc" utilruntime "k8s.io/apimachinery/pkg/util/runtime" @@ -134,8 +135,8 @@ type NodeDriver struct { util *csi_util.Util volumeLocks *csi_util.VolumeLocks nodeMetadata *csi_util.NodeMetadata + csiConfig *util.CSIConfig csi.UnimplementedNodeServer - csiConfig *csi_util.CSIConfig } // BlockVolumeNodeDriver extends NodeDriver @@ -176,7 +177,7 @@ func newControllerDriver(kubeClientSet kubernetes.Interface, logger *zap.Sugared } } -func newNodeDriver(nodeID string, nodeMetaData *csi_util.NodeMetadata, kubeClientSet kubernetes.Interface, logger *zap.SugaredLogger, csiConfig *csi_util.CSIConfig) NodeDriver { +func newNodeDriver(nodeID string, nodeMetaData *csi_util.NodeMetadata, kubeClientSet kubernetes.Interface, logger *zap.SugaredLogger, csiConfig *util.CSIConfig) NodeDriver { return NodeDriver{ nodeID: nodeID, KubeClient: kubeClientSet, @@ -234,7 +235,7 @@ func getMetricPusher(metricPusherGetter MetricPusherGetter, logger *zap.SugaredL return metricPusher, nil } -func GetNodeDriver(name string, nodeID string, nodeMetadata *csi_util.NodeMetadata, kubeClientSet kubernetes.Interface, logger *zap.SugaredLogger, csiConfig *csi_util.CSIConfig) csi.NodeServer { +func GetNodeDriver(name string, nodeID string, nodeMetadata *csi_util.NodeMetadata, kubeClientSet kubernetes.Interface, logger *zap.SugaredLogger, csiConfig *util.CSIConfig) csi.NodeServer { if name == BlockVolumeDriverName { return BlockVolumeNodeDriver{NodeDriver: newNodeDriver(nodeID, nodeMetadata, kubeClientSet, logger, csiConfig)} } @@ -254,7 +255,7 @@ func NewNodeDriver(logger *zap.SugaredLogger, nodeOptions nodedriveroptions.Node kubeClientSet := csi_util.GetKubeClient(logger, nodeOptions.Master, nodeOptions.Kubeconfig) nodeMetadata := &csi_util.NodeMetadata{} - csiConfig := &csi_util.CSIConfig{} + csiConfig := &util.CSIConfig{} return &Driver{ controllerDriver: nil, diff --git a/pkg/csi/driver/lustre_node.go b/pkg/csi/driver/lustre_node.go index 391fa645d4..963b648cd4 100644 --- a/pkg/csi/driver/lustre_node.go +++ b/pkg/csi/driver/lustre_node.go @@ -7,6 +7,7 @@ import ( "github.com/container-storage-interface/spec/lib/go/csi" csi_util "github.com/oracle/oci-cloud-controller-manager/pkg/csi-util" + "github.com/oracle/oci-cloud-controller-manager/pkg/util" "github.com/oracle/oci-cloud-controller-manager/pkg/util/disk" "go.uber.org/zap" "google.golang.org/grpc/codes" @@ -42,7 +43,7 @@ func (d LustreNodeDriver) NodeStageVolume(ctx context.Context, req *csi.NodeStag } - d.loadCSIConfig() + d.loadCSIConfig(ctx) if lustrePostMountParameters, exists := req.GetVolumeContext()["lustrePostMountParameters"]; exists && !isSkipLustreParams(d.csiConfig) { if err := csi_util.ValidateLustreParameters(d.logger, lustrePostMountParameters); err != nil { @@ -129,7 +130,7 @@ func (d LustreNodeDriver) NodeStageVolume(ctx context.Context, req *csi.NodeStag Info("Mounting the volume to staging target path is completed.") if lustrePostMountParameters, exists := req.GetVolumeContext()["lustrePostMountParameters"]; exists { - d.loadCSIConfig() + d.loadCSIConfig(ctx) if !isSkipLustreParams(d.csiConfig) { err = lnetService.ApplyLustreParameters(logger, lustrePostMountParameters) if err != nil { @@ -147,12 +148,12 @@ func (d LustreNodeDriver) NodeStageVolume(ctx context.Context, req *csi.NodeStag return &csi.NodeStageVolumeResponse{}, nil } -func (d LustreNodeDriver) loadCSIConfig() { +func (d LustreNodeDriver) loadCSIConfig(ctx context.Context) { if d.csiConfig.IsLoaded { return } d.logger.Info("Loading CSI Config Map") - csi_util.LoadCSIConfigFromConfigMap(d.csiConfig, d.KubeClient, CSIConfigMapName, d.logger) + csi_util.LoadCSIConfigFromConfigMap(d.csiConfig, d.KubeClient, CSIConfigMapName, d.logger, ctx) d.csiConfig.IsLoaded = true } @@ -174,7 +175,7 @@ func (d LustreNodeDriver) NodeUnstageVolume(ctx context.Context, req *csi.NodeUn logger := d.logger.With("volumeID", req.VolumeId, "stagingPath", req.StagingTargetPath) - d.loadCSIConfig() + d.loadCSIConfig(ctx) if d.csiConfig != nil && d.csiConfig.Lustre != nil && d.csiConfig.Lustre.SkipNodeUnstage { logger.Info("Skipping NodeUnstageVolume based on CSI Driver Configuration.") @@ -439,6 +440,6 @@ func (d LustreNodeDriver) NodeGetInfo(ctx context.Context, request *csi.NodeGetI }, nil } -func isSkipLustreParams(csiConfig *csi_util.CSIConfig) bool { +func isSkipLustreParams(csiConfig *util.CSIConfig) bool { return csiConfig != nil && csiConfig.Lustre != nil && csiConfig.Lustre.SkipLustreParameters } diff --git a/pkg/util/commons.go b/pkg/util/commons.go index 7f6c8f0e4f..187d2986d5 100644 --- a/pkg/util/commons.go +++ b/pkg/util/commons.go @@ -44,6 +44,7 @@ const ( ErrTagLimitReached = "TAG_LIMIT_REACHED" Success = "SUCCESS" BackupCreating = "CREATING" + PANIC = "PANIC" // Components generating errors // Load Balancer @@ -160,3 +161,18 @@ func IsCommonTagPresent(initialTags *config.InitialTags) bool { return initialTags != nil && initialTags.Common != nil } + +// CSIConfig represents the structure of the ConfigMap data. +type CSIConfig struct { + Lustre *DriverConfig `yaml:"lustre"` + Bv *DriverConfig `yaml:"bv"` + IsLoaded bool +} + + +// DriverConfig represents driver-specific configurations. +type DriverConfig struct { + SkipNodeUnstage bool `yaml:"skipNodeUnstage"` + SkipLustreParameters bool `yaml:"skipLustreParameters"` + SkipBrokenSymLinks bool `yaml:"skipBrokenSymLinks"` +} diff --git a/pkg/util/disk/iscsi.go b/pkg/util/disk/iscsi.go index a60cf858e1..67805c3974 100644 --- a/pkg/util/disk/iscsi.go +++ b/pkg/util/disk/iscsi.go @@ -27,6 +27,7 @@ import ( "strings" "time" + "github.com/oracle/oci-cloud-controller-manager/pkg/util" "github.com/oracle/oci-go-sdk/v65/core" "go.uber.org/zap" "google.golang.org/grpc/codes" @@ -215,7 +216,7 @@ func NewFromMountPointPath(logger *zap.SugaredLogger, mountPath string) (Interfa if err != nil { return nil, err } - diskByPaths, err := diskByPathsForMountPoint(mountPoint) + diskByPaths, err := diskByPathsForMountPoint(mountPoint, logger, nil) if err != nil { return nil, err } @@ -242,7 +243,7 @@ func FindFromMountPointPath(logger *zap.SugaredLogger, diskByPaths []string) ([] } // GetDiskPathFromMountPath resolves a directory to a block device -func GetDiskPathFromMountPath(logger *zap.SugaredLogger, mountPath string) ([]string, error) { +func GetDiskPathFromMountPath(logger *zap.SugaredLogger, mountPath string, config *util.CSIConfig) ([]string, error) { mounter := mount.New(mountCommand) mountPoint, err := getMountPointForPath(mounter, mountPath) if err != nil { @@ -251,7 +252,7 @@ func GetDiskPathFromMountPath(logger *zap.SugaredLogger, mountPath string) ([]st if strings.HasPrefix(mountPoint.Device, "/dev/mapper") { return []string{mountPoint.Device}, nil } - diskByPaths, err := diskByPathsForMountPoint(mountPoint) + diskByPaths, err := diskByPathsForMountPoint(mountPoint, logger, config) if err != nil { return nil, err } @@ -264,7 +265,7 @@ func GetDiskPathFromMountPath(logger *zap.SugaredLogger, mountPath string) ([]st // Finding disk by path - "diskByPaths": ["/dev/disk/by-path/ip--iscsi-iqn.2015-12.com.oracleiaas:uniqfier-lun-2"] // Gets the diskPath for a bind-mounted device file -func GetDiskPathFromBindDeviceFilePath(logger *zap.SugaredLogger, mountPath string) ([]string, error) { +func GetDiskPathFromBindDeviceFilePath(logger *zap.SugaredLogger, mountPath string, config *util.CSIConfig) ([]string, error) { // Get the block device for the given mount path devices, err := FindMount(mountPath) @@ -300,7 +301,7 @@ func GetDiskPathFromBindDeviceFilePath(logger *zap.SugaredLogger, mountPath stri } // Use the device path to get diskByPaths - diskByPaths, err := diskByPathsForMountPoint(mountPoint) + diskByPaths, err := diskByPathsForMountPoint(mountPoint, logger, config) if err != nil { logger.With(zap.Error(err)).Warn("Unable to find diskByPaths for device") return nil, err @@ -585,18 +586,54 @@ func getMountPointForPath(ml mount.Interface, path string) (mount.MountPoint, er // TODO(apryde): Need to think about how best to test this/make it more // testable. -func diskByPathsForMountPoint(mountPoint mount.MountPoint) ([]string, error) { +func diskByPathsForMountPoint(mountPoint mount.MountPoint, logger *zap.SugaredLogger, config *util.CSIConfig) ([]string, error) { diskByPaths := []string{} - err := filepath.Walk("/dev/disk/by-path/", func(path string, info os.FileInfo, err error) error { - target, err := filepath.EvalSymlinks(path) - if err != nil { - return err - } - if target == mountPoint.Device { + var err error + if config != nil && config.Bv != nil && config.Bv.SkipBrokenSymLinks { + err = filepath.Walk("/dev/disk/by-path/", func(path string, info os.FileInfo, err error) error { + target, err := filepath.EvalSymlinks(path) + if err != nil { + if strings.Contains(err.Error(), "lstat") && + !strings.Contains(err.Error(), fmt.Sprintf("%s:", mountPoint.Device)) { + logger.Infof("Ignoring error '%s' for stale device path %v entry", err.Error(), path) + return nil + } + logger.Errorf("Error evaluating symlink for %s: %s", path, err.Error()) + return err + } + + if target != mountPoint.Device { + return nil + } + + // differentiating flows for ISCSI and paravirtualized devices + // Sample ISCSI path - ip-169.254.2.14:3260-iscsi-iqn.2015-12.com.oracleiaas:c47b5be3-d2fb-40a5-978b-a793c4ff4806-lun-3 + // Sample PV path - pci-0000:02:00.0-scsi-0:0:1:2 + base := filepath.Base(path) + if strings.HasPrefix(base, "ip-") && strings.Contains(base, "-iscsi-"){ + // include only if ISCSI session active + if !isISCSISessionActive(path, logger) { + logger.Infof("Ignoring path %s due to no active ISCSI session", path) + return nil + } + } + diskByPaths = append(diskByPaths, path) - } - return nil - }) + return nil + }) + } else { + err = filepath.Walk("/dev/disk/by-path/", func(path string, info os.FileInfo, err error) error { + target, err := filepath.EvalSymlinks(path) + if err != nil { + return err + } + if target == mountPoint.Device { + diskByPaths = append(diskByPaths, path) + } + return nil + }) + } + if err != nil { return nil, err } @@ -606,6 +643,56 @@ func diskByPathsForMountPoint(mountPoint mount.MountPoint) ([]string, error) { return diskByPaths, nil } +// isISCSISessionActive returns true if there is an active iSCSI session +// that matches the portal and IQN of the by-path filename. +// Example by-path: +// /dev/disk/by-path/ip-169.254.2.2:3260-iscsi-iqn.2015-12.com.oracleiaas:5638bae3-98d1-4e33-b912-9bb567d94f59-lun-2 +func isISCSISessionActive(path string, logger *zap.SugaredLogger) bool { + // For /dev/disk/by-path/ip-169.254.2.2:3260-iscsi-iqn.2015-12.com.oracleiaas:5638bae3-98d1-4e33-b912-9bb567d94f59-lun-2 + // m[0] = /dev/disk/by-path/ip-169.254.2.2:3260-iscsi-iqn.2015-12.com.oracleiaas:5638bae3-98d1-4e33-b912-9bb567d94f59-lun-2 + // m[1] = 169.254.2.2 + // m[2] = 3260 + // m[3] = iqn.2015-12.com.oracleiaas:5638bae3-98d1-4e33-b912-9bb567d94f59 + m := diskByPathPattern.FindStringSubmatch(path) + if len(m) != 4 { + logger.Errorf("mount device path %v did not match pattern; got %v", path, m) + return false + } + + // 3: Query iscsiadm for active sessions + outBytes, err := cmdexec.Command("iscsiadm", "-m", "session").CombinedOutput() + out := string(outBytes) + + if err != nil { + if strings.Contains(out, "No active sessions") { + logger.Errorf("No active iscsi sessions found on node") + return false + } + logger.Errorf("Error listing active iscsi sessions") + return false + } + + // 4: Match session line that contains BOTH portal + iqn + // iscsiadm prints lines like: + // tcp: [2] 169.254.2.3:3260,1 iqn.2015-12.com.oracleiaas:5638bae3-98d1-4e33-b912-9bb567d94f59 (non-flash) + for _, line := range strings.Split(out, "\n") { + line = strings.TrimSpace(line) + if line == "" { + continue + } + + portal := m[1]+":"+m[2] + portalMatch := strings.Contains(line, portal) + + if portalMatch && strings.Contains(line, m[3]) { + logger.Infof("Found matching iscsi session for path %s: %s", path, line) + return true + } + } + + return false +} + func GetIscsiDevicePath(disk *Disk) (string, error) { // run command ls -l /dev/disk/by-path cmdStr := fmt.Sprintf("ls -f /dev/disk/by-path/ip-%s:%d-iscsi-%s-lun-*", disk.IscsiIp, disk.Port, disk.IQN) From 3079a58cd351002e4def33ee1c7c5aa60d150e77 Mon Sep 17 00:00:00 2001 From: Yashas G Date: Thu, 4 Dec 2025 07:23:12 +0530 Subject: [PATCH 09/24] Improving CSI Node Driver Unit test coverage --- go.mod | 1 + go.sum | 1 + pkg/csi/driver/bv_node.go | 35 ++- pkg/csi/driver/bv_node_test.go | 417 +++++++++++++++++++++++++++++++ pkg/csi/driver/driver.go | 4 +- pkg/flexvolume/block/driver.go | 2 +- pkg/util/disk/iscsi.go | 11 +- pkg/util/disk/iscsi_uhp.go | 7 +- pkg/util/disk/mount_helper.go | 19 ++ pkg/util/disk/paravirtualized.go | 14 +- vendor/modules.txt | 3 + 11 files changed, 499 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index 61dd00fb25..33a7b731b9 100644 --- a/go.mod +++ b/go.mod @@ -77,6 +77,7 @@ require ( require ( github.com/go-logr/logr v1.4.2 + github.com/golang/mock v1.6.0 golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 golang.org/x/sync v0.15.0 google.golang.org/protobuf v1.36.5 diff --git a/go.sum b/go.sum index 94b0f89066..e54032b409 100644 --- a/go.sum +++ b/go.sum @@ -879,6 +879,7 @@ golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4f 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.33.0 h1:4qz2S3zmRxbGIhDIAgjxvFutSvH5EfnsYrRBj0UI0bc= golang.org/x/tools v0.33.0/go.mod h1:CIJMaWEY88juyUfo7UbgPqbC8rU2OqfAV1h2Qp0oMYI= diff --git a/pkg/csi/driver/bv_node.go b/pkg/csi/driver/bv_node.go index 0c2529fb7a..64426354db 100644 --- a/pkg/csi/driver/bv_node.go +++ b/pkg/csi/driver/bv_node.go @@ -91,39 +91,50 @@ func (d BlockVolumeNodeDriver) NodeStageVolume(ctx context.Context, req *csi.Nod multipathEnabledVolume, err = strconv.ParseBool(req.PublishContext[multipathEnabled]) if err != nil { logger.With(zap.Error(err)).Error("failed to determine if volume is multipath enabled") - return nil, status.Error(codes.Internal, err.Error()) + return nil, status.Errorf(codes.Internal, "failed to determine if volume is multipath enabled: %v", err.Error()) } } switch attachment { case attachmentTypeISCSI: if multipathEnabledVolume { + mountHandler, err = d.mounterFactory(attachmentTypeISCSI, scsiInfo, multipathEnabledVolume, logger) + if err != nil { + logger.With(zap.Error(err)).Error("Failed to create mountHandler") + return nil, status.Errorf(codes.InvalidArgument, "Failed to create mountHandler: %v", err.Error()) + } logger.Info("Volume attachment is multipath enabled") multipathDevices, err = getMultipathDevicesFromReq(req) - devicePath, err = disk.GetMultipathIscsiDevicePath(ctx, req.PublishContext[device], logger) + if err != nil { + logger.With(zap.Error(err)).Error("Failed to get multipath device list for multipath enabled volume") + return nil, status.Errorf(codes.Internal, "Failed to get multipath device list for multipath enabled volume: %v", err.Error()) + } + devicePath, err = mountHandler.GetMultipathIscsiDevicePath(ctx, req.PublishContext[device], logger) if err != nil { logger.With(zap.Error(err)).Error("Failed to get device path for multipath enabled volume") - return nil, status.Error(codes.Internal, "Failed to get device path for multipath enabled volume") + return nil, status.Errorf(codes.Internal, "Failed to get device path for multipath enabled volume: %v", err.Error()) } - mountHandler = disk.NewISCSIUHPMounter(d.logger) logger.Info("starting to stage UHP iSCSI Mounting.") } else { logger.Info("Volume attachment is multipath disabled") scsiInfo, err = csi_util.ExtractISCSIInformation(req.PublishContext) if err != nil { logger.With(zap.Error(err)).Error("Failed to get SCSI info from publish context.") - return nil, status.Error(codes.InvalidArgument, "PublishContext is invalid.") + return nil, status.Errorf(codes.InvalidArgument, "PublishContext is invalid: %v", err.Error()) } if strings.EqualFold(d.nodeMetadata.PreferredNodeIpFamily, csi_util.Ipv6Stack) { scsiInfo.IscsiIp, err = csi_util.ConvertIscsiIpFromIpv4ToIpv6(scsiInfo.IscsiIp) if err != nil { logger.With(zap.Error(err)).Error("Failed get ipv6 address for Iscsi Target.") - return nil, status.Errorf(codes.Internal, "Failed get ipv6 address for Iscsi Target.") + return nil, status.Errorf(codes.Internal, "Failed get ipv6 address for Iscsi Target: %v", err.Error()) } } - - mountHandler = disk.NewFromISCSIDisk(d.logger, scsiInfo) + mountHandler, err = d.mounterFactory(attachmentTypeISCSI, scsiInfo, multipathEnabledVolume, logger) + if err != nil { + logger.With(zap.Error(err)).Error("Failed to create mountHandler") + return nil, status.Errorf(codes.InvalidArgument, "Failed to create mountHandler: %v", err.Error()) + } logger.Info("starting to stage iSCSI Mounting.") } case attachmentTypeParavirtualized: @@ -132,7 +143,11 @@ func (d BlockVolumeNodeDriver) NodeStageVolume(ctx context.Context, req *csi.Nod logger.Error("Unable to get the device from the attribute list") return nil, status.Error(codes.InvalidArgument, "Unable to get the device from the attribute list") } - mountHandler = disk.NewFromPVDisk(d.logger) + mountHandler, err = d.mounterFactory(attachmentTypeParavirtualized, scsiInfo, multipathEnabledVolume, logger) + if err != nil { + logger.With(zap.Error(err)).Error("Failed to create mountHandler") + return nil, status.Errorf(codes.InvalidArgument, "Failed to create mountHandler: %v", err.Error()) + } logger.With("devicePath", devicePath).Info("starting to stage paravirtualized Mounting.") default: logger.Error("unknown attachment type. supported attachment types are iscsi and paravirtualized") @@ -194,7 +209,7 @@ func (d BlockVolumeNodeDriver) NodeStageVolume(ctx context.Context, req *csi.Nod } if attachment == attachmentTypeISCSI && !multipathEnabledVolume { // Wait and get device path using the publish context - devicePath, err = disk.WaitForDevicePathToExist(ctx, scsiInfo, logger) + devicePath, err = mountHandler.WaitForDevicePathToExist(ctx, scsiInfo, logger) if err != nil { logger.With(zap.Error(err)).Error("Failed to get /dev/disk/by-path device path for iscsi volume.") logoutErr := mountHandler.ISCSILogoutOnFailure() diff --git a/pkg/csi/driver/bv_node_test.go b/pkg/csi/driver/bv_node_test.go index 1c94dc66cc..bde135703c 100644 --- a/pkg/csi/driver/bv_node_test.go +++ b/pkg/csi/driver/bv_node_test.go @@ -15,8 +15,23 @@ package driver import ( + "context" + "encoding/json" "fmt" + "reflect" "testing" + + "github.com/container-storage-interface/spec/lib/go/csi" + csi_util "github.com/oracle/oci-cloud-controller-manager/pkg/csi-util" + "github.com/oracle/oci-cloud-controller-manager/pkg/logging" + "github.com/oracle/oci-cloud-controller-manager/pkg/util/disk" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" + "go.uber.org/zap" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "k8s.io/mount-utils" + "k8s.io/utils/exec" ) func Test_getDevicePathAndAttachmentType(t *testing.T) { @@ -112,3 +127,405 @@ func Test_alreadyDeletedPathCheck(t *testing.T) { }) } } + +// mockMounter implements Interface. +type mockMounter struct { + runner exec.Interface + mounter mount.Interface + logger *zap.SugaredLogger + devicePathExistWaitError error + ISCSILogoutOnFailureError error +} + +func (m mockMounter) WaitForDevicePathToExist(ctx context.Context, disk *disk.Disk, logger *zap.SugaredLogger) (string, error) { + if m.devicePathExistWaitError != nil { + return "", m.devicePathExistWaitError + } + return "", nil +} + +func (m mockMounter) GetMultipathIscsiDevicePath(ctx context.Context, consistentDevicePath string, logger *zap.SugaredLogger) (string, error) { + if consistentDevicePath == "incorrectDevice" { + return "", status.Error(codes.DeadlineExceeded, "context deadline exceeded") + } + return "", nil +} + +func (m mockMounter) AddToDB() error { + return nil +} + +func (m mockMounter) FormatAndMount(source string, target string, fstype string, options []string) error { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) Mount(source string, target string, fstype string, options []string) error { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) Login() error { + return nil +} + +func (m mockMounter) Logout() error { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) DeviceOpened(pathname string) (bool, error) { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) IsMounted(devicePath string, targetPath string) (bool, error) { + fmt.Println("IsMounted", devicePath, targetPath) + if targetPath == "idempotency-check-failure" { + return false, fmt.Errorf("failure during idempotency check") + } else if targetPath == "idempotency-check-success" { + return true, nil + } + return false, nil +} + +func (m mockMounter) UpdateQueueDepth() error { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) RemoveFromDB() error { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) SetAutomaticLogin() error { + return nil +} + +func (m mockMounter) UnmountPath(path string) error { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) Rescan(devicePath string) error { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) Resize(devicePath string, volumePath string) (bool, error) { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) WaitForVolumeLoginOrTimeout(ctx context.Context, multipathDevices []core.MultipathDevice) error { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) GetDiskFormat(devicePath string) (string, error) { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) WaitForPathToExist(path string, maxRetries int) bool { + //TODO implement me + panic("implement me") +} + +func (m mockMounter) ISCSILogoutOnFailure() error { + if m.ISCSILogoutOnFailureError != nil { + return m.ISCSILogoutOnFailureError + } + return nil +} + +func TestNodeStageVolume(t *testing.T) { + multiPathDevicesJson := []byte{} + var err error + multiPathDevicesJson, err = json.Marshal([]core.MultipathDevice{ + { + Ipv4: common.String("1.2.3.4"), + Iqn: common.String("iqn.2016-09.com.oraclecloud"), + Port: common.Int(3034), + }, + }) + if err != nil { + t.Fatalf("Error constructing multipath devices Json: %v", err) + } + multipathDevicesString := string(multiPathDevicesJson) + + testCases := []struct { + name string + req *csi.NodeStageVolumeRequest + setup func(m *mockMounter) + expectedErr error + }{ + { + name: "Volume ID not present", + req: &csi.NodeStageVolumeRequest{}, + expectedErr: status.Error(codes.InvalidArgument, "Volume ID must be provided"), + }, + { + name: "Publish context not present", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "ocid.abcd", + }, + expectedErr: status.Error(codes.InvalidArgument, "PublishContext must be provided"), + }, + { + name: "Staging path not present", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "ocid.abcd", + PublishContext: map[string]string{"attach-type": "iscsi"}, + + }, + expectedErr: status.Error(codes.InvalidArgument, "Staging Target Path must be provided"), + }, + { + name: "Volume Capability not present", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "ocid.abcd", + PublishContext: map[string]string{"attach-type": "iscsi"}, + StagingTargetPath: "/staging-path", + }, + expectedErr: status.Error(codes.InvalidArgument, "Volume Capability must be provided"), + }, + { + name: "Wrong value for multipath enabled", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "ocid.abcd", + PublishContext: map[string]string{multipathEnabled: "yes"}, + StagingTargetPath: "/staging-path", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + expectedErr: status.Error(codes.Internal, "failed to determine if volume is multipath enabled: strconv.ParseBool: parsing \"yes\": invalid syntax"), + }, + { + name: "UHP - Invalid multipath device list", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "ocid.abcd", + PublishContext: map[string]string{multipathEnabled: "true", multipathDevices: "Not a valid device list"}, + StagingTargetPath: "/staging-path", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + expectedErr: status.Error(codes.Internal, "Failed to get multipath device list for multipath enabled volume: rpc error: code = Internal desc = Failed to get multipath devices from publish context."), + }, + { + name: "UHP - Error finding friendly name for multipath device", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "ocid.abcd", + PublishContext: map[string]string{multipathEnabled: "true", multipathDevices: multipathDevicesString, disk.ISCSIPORT: "3043", + disk.ISCSIIQN: "iqn.2016-09.com.oraclecloud", disk.ISCSIIP: "1.2.3.4", device: "incorrectDevice"}, + StagingTargetPath: "/staging-path", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + expectedErr: status.Error(codes.Internal, "Failed to get device path for multipath enabled volume: rpc error: code = DeadlineExceeded desc = context deadline exceeded"), + }, + { + name: "ISCSI - Information missing in publish context", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "ocid.abcd", + PublishContext: map[string]string{disk.ISCSIPORT: "3043", disk.ISCSIIP: "1.2.3.4"}, + StagingTargetPath: "/staging-path", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + expectedErr: status.Error(codes.InvalidArgument, "PublishContext is invalid: unable to get the IQN from the attribute list"), + }, + { + name: "ISCSI - Error getting target IP in IPv6 single stack cluster", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "ocid.abcd", + PublishContext: map[string]string{disk.ISCSIPORT: "3043", disk.ISCSIIP: "fd00:c1::a9fe:a9fe", disk.ISCSIIQN: "iqn.2016-09.com.oraclecloud"}, + StagingTargetPath: "/staging-path", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + expectedErr: status.Errorf(codes.Internal, "Failed get ipv6 address for Iscsi Target: invalid iSCSIIp identified fd00:c1::a9fe:a9fe"), + }, + { + name: "Paravirtualized - Unable to get device from publish context", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "ocid.abcd", + PublishContext: map[string]string{disk.ISCSIPORT: "3043", disk.ISCSIIP: "fd00:c1::a9fe:a9fe", + disk.ISCSIIQN: "iqn.2016-09.com.oraclecloud", attachmentType: attachmentTypeParavirtualized}, + StagingTargetPath: "/staging-path", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + expectedErr: status.Error(codes.InvalidArgument, "Unable to get the device from the attribute list"), + }, + { + name: "Unknown attachment type", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "ocid.abcd", + PublishContext: map[string]string{disk.ISCSIPORT: "3043", disk.ISCSIIP: "fd00:c1::a9fe:a9fe", + disk.ISCSIIQN: "iqn.2016-09.com.oraclecloud", attachmentType: "unknown-attachment"}, + StagingTargetPath: "/staging-path", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + expectedErr: status.Error(codes.InvalidArgument, "unknown attachment type. supported attachment types are iscsi and paravirtualized"), + }, + { + name: "Error acquiring lock", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "Test-volume", + PublishContext: map[string]string{disk.ISCSIPORT: "3043", disk.ISCSIIP: "1.2.3.4", + disk.ISCSIIQN: "iqn.2016-09.com.oraclecloud"}, + StagingTargetPath: "/staging-path", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + expectedErr: status.Errorf(codes.Aborted, volumeOperationAlreadyExistsFmt, "Test-volume"), + }, + { + name: "Error from IsMounted during idempotency check", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "Idempotency-check-failure", + PublishContext: map[string]string{disk.ISCSIPORT: "3043", disk.ISCSIIP: "1.2.3.4", + disk.ISCSIIQN: "iqn.2016-09.com.oraclecloud"}, + StagingTargetPath: "idempotency-check-failure", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + expectedErr: status.Error(codes.Internal, "failure during idempotency check"), + }, + { + name: "Idempotency check success", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "Test-volume", + PublishContext: map[string]string{disk.ISCSIPORT: "3043", disk.ISCSIIP: "1.2.3.4", + disk.ISCSIIQN: "iqn.2016-09.com.oraclecloud"}, + StagingTargetPath: "idempotency-check-success", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + expectedErr: nil, + }, + { + name: "Error while logging out after WaitForDevicePathToExist failure", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "Test-volume", + PublishContext: map[string]string{disk.ISCSIPORT: "3043", disk.ISCSIIP: "1.2.3.4", + disk.ISCSIIQN: "iqn.2016-09.com.oraclecloud"}, + StagingTargetPath: "test", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + setup: func(m *mockMounter) { + m.devicePathExistWaitError = fmt.Errorf("device exist error") + m.ISCSILogoutOnFailureError = fmt.Errorf("logout error") + }, + expectedErr: status.Errorf(codes.Internal, "Failed to iscsi logout after timeout on waiting for device path to exist: %v", "logout error"), + }, + { + name: "Error while logging out after WaitForDevicePathToExist failure", + req: &csi.NodeStageVolumeRequest{ + VolumeId: "Test-volume", + PublishContext: map[string]string{disk.ISCSIPORT: "3043", disk.ISCSIIP: "1.2.3.4", + disk.ISCSIIQN: "iqn.2016-09.com.oraclecloud"}, + StagingTargetPath: "test", + VolumeCapability: &csi.VolumeCapability{ + AccessMode: &csi.VolumeCapability_AccessMode{ + Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, + }, + }, + }, + setup: func(m *mockMounter) { + m.devicePathExistWaitError = fmt.Errorf("device exist error") + m.ISCSILogoutOnFailureError = fmt.Errorf("logout error") + }, + expectedErr: status.Errorf(codes.Internal, "Failed to iscsi logout after timeout on waiting for device path to exist: %v", "logout error"), + }, + } + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + testMounter := &mockMounter{} + if tc.setup != nil { + tc.setup(testMounter) + } + testMounterFactory := func(attachment string, scsi *disk.Disk, multipath bool, log *zap.SugaredLogger) (disk.Interface, error) { + return testMounter, nil + } + var driver *BlockVolumeNodeDriver + if tc.name == "ISCSI - Error getting target IP in IPv6 single stack cluster" { + driver = &BlockVolumeNodeDriver{ + NodeDriver: NodeDriver{ + logger: logging.Logger().Sugar(), + mounterFactory: testMounterFactory, + nodeMetadata: &csi_util.NodeMetadata{ + PreferredNodeIpFamily: "IPv6", + }, + }, + } + } else if tc.name == "Error acquiring lock" { + driver = &BlockVolumeNodeDriver{ + NodeDriver: NodeDriver{ + logger: logging.Logger().Sugar(), + mounterFactory: testMounterFactory, + volumeLocks: csi_util.NewVolumeLocks(), + nodeMetadata: &csi_util.NodeMetadata{ + PreferredNodeIpFamily: "IPv4", + }, + }, + } + if acquired := driver.volumeLocks.TryAcquire("Test-volume"); !acquired { + t.Fatalf("Error acquiring volume lock for unit test") + } + } else { + driver = &BlockVolumeNodeDriver{ + NodeDriver: NodeDriver{ + logger: logging.Logger().Sugar(), + mounterFactory: testMounterFactory, + volumeLocks: csi_util.NewVolumeLocks(), + nodeMetadata: &csi_util.NodeMetadata{ + PreferredNodeIpFamily: "IPv4", + }, + }, + } + } + _, err := driver.NodeStageVolume(t.Context(), tc.req) + if !reflect.DeepEqual(err, tc.expectedErr) { + t.Fatalf("Expected error '%v' but got '%v'", tc.expectedErr, err) + } + }) + } +} diff --git a/pkg/csi/driver/driver.go b/pkg/csi/driver/driver.go index dfe5d0f6ec..51f8712070 100644 --- a/pkg/csi/driver/driver.go +++ b/pkg/csi/driver/driver.go @@ -27,7 +27,6 @@ import ( "github.com/container-storage-interface/spec/lib/go/csi" "github.com/kubernetes-csi/csi-lib-utils/protosanitizer" - "github.com/oracle/oci-cloud-controller-manager/cmd/oci-csi-node-driver/nodedriveroptions" 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" @@ -35,6 +34,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-cloud-controller-manager/pkg/util" + "github.com/oracle/oci-cloud-controller-manager/pkg/util/disk" "go.uber.org/zap" "google.golang.org/grpc" utilruntime "k8s.io/apimachinery/pkg/util/runtime" @@ -136,6 +136,7 @@ type NodeDriver struct { volumeLocks *csi_util.VolumeLocks nodeMetadata *csi_util.NodeMetadata csiConfig *util.CSIConfig + mounterFactory disk.MounterFactory csi.UnimplementedNodeServer } @@ -186,6 +187,7 @@ func newNodeDriver(nodeID string, nodeMetaData *csi_util.NodeMetadata, kubeClien volumeLocks: csi_util.NewVolumeLocks(), nodeMetadata: nodeMetaData, csiConfig: csiConfig, + mounterFactory: disk.DefaultMounterFactory, } } diff --git a/pkg/flexvolume/block/driver.go b/pkg/flexvolume/block/driver.go index 7ab34fa35a..32662c5802 100644 --- a/pkg/flexvolume/block/driver.go +++ b/pkg/flexvolume/block/driver.go @@ -479,7 +479,7 @@ func (d OCIFlexvolumeDriver) MountDevice(logger *zap.SugaredLogger, mountDir, mo ctx := context.Background() // Wait and get device path using the publish context - devicePath, err := disk.WaitForDevicePathToExist(ctx, scsiInfo, logger) + devicePath, err := iSCSIMounter.WaitForDevicePathToExist(ctx, scsiInfo, logger) if err != nil { logger.With(zap.Error(err)).Error("Failed to get /dev/disk/by-path device path for iscsi volume.") return flexvolume.Fail(logger, status.Error(codes.InvalidArgument, "Failed to get device path for iscsi volume")) diff --git a/pkg/util/disk/iscsi.go b/pkg/util/disk/iscsi.go index 67805c3974..900cdf55f9 100644 --- a/pkg/util/disk/iscsi.go +++ b/pkg/util/disk/iscsi.go @@ -118,6 +118,10 @@ type Interface interface { WaitForPathToExist(path string, maxRetries int) bool ISCSILogoutOnFailure() error + + GetMultipathIscsiDevicePath(ctx context.Context, consistentDevicePath string, logger *zap.SugaredLogger) (string, error) + + WaitForDevicePathToExist(ctx context.Context, disk *Disk, logger *zap.SugaredLogger) (string, error) } // iSCSIMounter implements Interface. @@ -450,6 +454,11 @@ func (c *iSCSIMounter) WaitForVolumeLoginOrTimeout(ctx context.Context, multipat return nil } +func (c *iSCSIMounter) GetMultipathIscsiDevicePath(ctx context.Context, consistentDevicePath string, logger *zap.SugaredLogger) (string, error) { + c.logger.Info("Attachment type ISCSI. GetMultipathIscsiDevicePath() not needed for iscsi attachment") + return "", nil +} + func (c *iSCSIMounter) FormatAndMount(source string, target string, fstype string, options []string) error { safeMounter := &mount.SafeFormatAndMount{ Interface: c.mounter, @@ -713,7 +722,7 @@ func GetIscsiDevicePath(disk *Disk) (string, error) { return "", fmt.Errorf("cannot find device path") } -func WaitForDevicePathToExist(ctx context.Context, disk *Disk, logger *zap.SugaredLogger) (string, error) { +func (c *iSCSIMounter) WaitForDevicePathToExist(ctx context.Context, disk *Disk, logger *zap.SugaredLogger) (string, error) { logger.With("disk", disk).Info("Waiting for iscsi device path to exist") ctxt, cancel := context.WithTimeout(ctx, pathPollTimeout) diff --git a/pkg/util/disk/iscsi_uhp.go b/pkg/util/disk/iscsi_uhp.go index fc12e3fc5b..67eafdc41c 100644 --- a/pkg/util/disk/iscsi_uhp.go +++ b/pkg/util/disk/iscsi_uhp.go @@ -226,7 +226,7 @@ func (c *iSCSIUHPMounter) ISCSILogoutOnFailure() error { return nil } -func GetMultipathIscsiDevicePath(ctx context.Context, consistentDevicePath string, logger *zap.SugaredLogger) (string, error) { +func (c *iSCSIUHPMounter) GetMultipathIscsiDevicePath(ctx context.Context, consistentDevicePath string, logger *zap.SugaredLogger) (string, error) { logger.With("consistentDevicePath", consistentDevicePath).Info("Getting friendly name of multipath device using consistent device path") ctxt, cancel := context.WithTimeout(ctx, pathPollTimeout) @@ -283,3 +283,8 @@ func ReadLink(symbolicLink string, logger *zap.SugaredLogger) (string, error) { return linkedPath, nil } + +func (c *iSCSIUHPMounter) WaitForDevicePathToExist(ctx context.Context, disk *Disk, logger *zap.SugaredLogger) (string, error) { + c.logger.Info("Attachment type ISCSI for UHP. WaitForDevicePathToExist() not needed for UHP ISCSI attachment") + return "", nil +} diff --git a/pkg/util/disk/mount_helper.go b/pkg/util/disk/mount_helper.go index dfd5cdc18b..97c205519a 100644 --- a/pkg/util/disk/mount_helper.go +++ b/pkg/util/disk/mount_helper.go @@ -40,6 +40,9 @@ const ( EncryptionMountCommand = "encrypt-mount" UnmountCommand = "umount" FindMountCommand = "findmnt" + + attachmentTypeISCSI = "iscsi" + attachmentTypeParavirtualized = "paravirtualized" ) func MountWithEncrypt(logger *zap.SugaredLogger, source string, target string, fstype string, options []string) error { @@ -246,3 +249,19 @@ func FindMount(target string) ([]string, error) { sources := strings.Fields(string(output)) return sources, nil } + +type MounterFactory func(attachmentType string, scsiInfo *Disk, multipath bool, logger *zap.SugaredLogger) (Interface, error) + +func DefaultMounterFactory(attachmentType string, scsiInfo *Disk, multipath bool, logger *zap.SugaredLogger) (Interface, error) { + switch attachmentType { + case attachmentTypeISCSI: + if multipath { + return NewISCSIUHPMounter(logger), nil + } + return NewFromISCSIDisk(logger, scsiInfo), nil + case attachmentTypeParavirtualized: + return NewFromPVDisk(logger), nil + default: + return nil, fmt.Errorf("unknown attachment type when creating mount handler: %s", attachmentType) + } +} diff --git a/pkg/util/disk/paravirtualized.go b/pkg/util/disk/paravirtualized.go index c2f5288fde..322497b7e5 100644 --- a/pkg/util/disk/paravirtualized.go +++ b/pkg/util/disk/paravirtualized.go @@ -18,13 +18,13 @@ import ( "context" "fmt" "os" + "path/filepath" "time" "github.com/oracle/oci-go-sdk/v65/core" "go.uber.org/zap" "k8s.io/mount-utils" "k8s.io/utils/exec" - "path/filepath" ) // iSCSIMounter implements Interface. @@ -37,6 +37,8 @@ type pvMounter struct { logger *zap.SugaredLogger } + + // NewFromPVDisk creates a new PV handler from PVDisk. func NewFromPVDisk(logger *zap.SugaredLogger) Interface { return &pvMounter{ @@ -81,6 +83,11 @@ func (c *pvMounter) RemoveFromDB() error { return nil } +func (c *pvMounter) WaitForDevicePathToExist(ctx context.Context, disk *Disk, logger *zap.SugaredLogger) (string, error) { + c.logger.Info("Attachment type paravirtualized. WaitForDevicePathToExist() not needed for paravirtualized attachment") + return "", nil +} + func (c *pvMounter) FormatAndMount(source string, target string, fstype string, options []string) error { safeMounter := &mount.SafeFormatAndMount{ Interface: c.mounter, @@ -155,6 +162,11 @@ func (c *pvMounter) GetDiskFormat(disk string) (string, error) { return getDiskFormat(c.runner, disk, c.logger) } +func (c *pvMounter) GetMultipathIscsiDevicePath(ctx context.Context, consistentDevicePath string, logger *zap.SugaredLogger) (string, error) { + c.logger.Info("Attachment type ISCSI. GetMultipathIscsiDevicePath() not needed for iscsi attachment") + return "", nil +} + func waitForPathToExist(path string, maxRetries int) bool { for i := 0; i < maxRetries; i++ { var err error diff --git a/vendor/modules.txt b/vendor/modules.txt index 9ca3b1932e..d1742d64ff 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -157,6 +157,9 @@ github.com/gogo/protobuf/gogoproto github.com/gogo/protobuf/proto github.com/gogo/protobuf/protoc-gen-gogo/descriptor github.com/gogo/protobuf/sortkeys +# github.com/golang/mock v1.6.0 +## explicit; go 1.11 +github.com/golang/mock/gomock # github.com/golang/protobuf v1.5.4 ## explicit; go 1.17 github.com/golang/protobuf/proto From 17075931cb52a0618862065fa47e8df23d38a23c Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Fri, 20 Feb 2026 12:18:21 +0530 Subject: [PATCH 10/24] Updating external-snapshotter to v8.3.0 --- go.mod | 3 - go.sum | 3 - .../protosanitizer/protosanitizer.go | 6 +- .../{ => client}/v8/LICENSE | 0 .../apis/volumegroupsnapshot/v1beta1/doc.go | 20 + .../volumegroupsnapshot/v1beta1/register.go | 57 + .../apis/volumegroupsnapshot/v1beta1/types.go | 401 ++++ .../v1beta1/zz_generated.deepcopy.go | 433 +++++ .../client/v8/apis/volumesnapshot/v1/doc.go | 20 + .../v8/apis/volumesnapshot/v1/register.go | 58 + .../client/v8/apis/volumesnapshot/v1/types.go | 471 +++++ .../v1/zz_generated.deepcopy.go | 441 +++++ .../v8/clientset/versioned/clientset.go | 133 ++ .../v8/clientset/versioned/scheme/doc.go | 20 + .../v8/clientset/versioned/scheme/register.go | 58 + .../typed/volumegroupsnapshot/v1beta1/doc.go | 20 + .../v1beta1/generated_expansion.go | 25 + .../v1beta1/volumegroupsnapshot.go | 195 ++ .../v1beta1/volumegroupsnapshot_client.go | 117 ++ .../v1beta1/volumegroupsnapshotclass.go | 168 ++ .../v1beta1/volumegroupsnapshotcontent.go | 184 ++ .../versioned/typed/volumesnapshot/v1/doc.go | 20 + .../volumesnapshot/v1/generated_expansion.go | 25 + .../typed/volumesnapshot/v1/volumesnapshot.go | 195 ++ .../v1/volumesnapshot_client.go | 117 ++ .../volumesnapshot/v1/volumesnapshotclass.go | 168 ++ .../v1/volumesnapshotcontent.go | 184 ++ .../groupsnapshot_controller_helper.go | 1653 ----------------- .../v8/pkg/metrics/metrics_group.go | 92 - .../external-snapshotter/v8/pkg/utils/pvs.go | 41 - .../external-snapshotter/v8/pkg/utils/vgs.go | 114 -- .../cancel_work_request_request_response.go | 96 + ...ile_system_compartment_request_response.go | 103 + ...orage_link_compartment_request_response.go | 112 ++ ...ate_lustre_file_system_request_response.go | 113 ++ ...te_object_storage_link_request_response.go | 109 ++ ...ete_lustre_file_system_request_response.go | 100 + ...te_object_storage_link_request_response.go | 100 + ...get_lustre_file_system_request_response.go | 96 + ...et_object_storage_link_request_response.go | 96 + .../get_sync_job_request_response.go | 105 ++ .../get_work_request_request_response.go | 99 + ...st_lustre_file_systems_request_response.go | 221 +++ ...t_object_storage_links_request_response.go | 224 +++ .../list_sync_jobs_request_response.go | 213 +++ ...st_work_request_errors_request_response.go | 199 ++ ...list_work_request_logs_request_response.go | 199 ++ .../list_work_requests_request_response.go | 277 +++ .../lustrefilestorage_client.go | 1467 +++++++++++++++ ...start_export_to_object_request_response.go | 109 ++ ...art_import_from_object_request_response.go | 109 ++ .../stop_export_to_object_request_response.go | 103 + ...top_import_from_object_request_response.go | 103 + ...ate_lustre_file_system_request_response.go | 103 + ...te_object_storage_link_request_response.go | 105 ++ vendor/modules.txt | 23 +- 56 files changed, 8106 insertions(+), 1920 deletions(-) rename vendor/github.com/kubernetes-csi/external-snapshotter/{ => client}/v8/LICENSE (100%) create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/doc.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/register.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/types.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/zz_generated.deepcopy.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/doc.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/register.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/types.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/zz_generated.deepcopy.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/clientset.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme/doc.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme/register.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/doc.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/generated_expansion.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshot.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshot_client.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshotclass.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshotcontent.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/doc.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/generated_expansion.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot_client.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotclass.go create mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotcontent.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/common-controller/groupsnapshot_controller_helper.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/metrics/metrics_group.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/pvs.go delete mode 100644 vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/vgs.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go diff --git a/go.mod b/go.mod index 33a7b731b9..7feb55b91d 100644 --- a/go.mod +++ b/go.mod @@ -42,7 +42,6 @@ require ( github.com/golang/protobuf v1.5.4 github.com/kubernetes-csi/csi-lib-utils v0.22.0 github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0 - github.com/kubernetes-csi/external-snapshotter/v8 v8.3.0 github.com/onsi/ginkgo v1.16.5 github.com/onsi/gomega v1.36.2 github.com/oracle/oci-go-sdk/v65 v65.105.0 @@ -76,8 +75,6 @@ require ( ) require ( - github.com/go-logr/logr v1.4.2 - github.com/golang/mock v1.6.0 golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 golang.org/x/sync v0.15.0 google.golang.org/protobuf v1.36.5 diff --git a/go.sum b/go.sum index e54032b409..d26bc82f89 100644 --- a/go.sum +++ b/go.sum @@ -363,8 +363,6 @@ github.com/kubernetes-csi/csi-lib-utils v0.22.0 h1:EUAs1+uHGps3OtVj4XVx16urhpI02 github.com/kubernetes-csi/csi-lib-utils v0.22.0/go.mod h1:f+PalKyS4Ujsjb9+m6Rj0W6c28y3nfea3paQ/VqjI28= github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0 h1:Q3jQ1NkFqv5o+F8dMmHd8SfEmlcwNeo1immFApntEwE= github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0/go.mod h1:E3vdYxHj2C2q6qo8/Da4g7P+IcwqRZyy3gJBzYybV9Y= -github.com/kubernetes-csi/external-snapshotter/v8 v8.3.0 h1:qkUw53bWEuHY0iVaF4V+oIS3r2vm8Sz1/xzf+D+yi80= -github.com/kubernetes-csi/external-snapshotter/v8 v8.3.0/go.mod h1:iFq0CxAt/6NfK8QFyYRpObTL3Ar/lG8H045Btk6fo7s= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 h1:SOEGU9fKiNWd/HOJuq6+3iTQz8KNCLtVX6idSoTLdUw= @@ -879,7 +877,6 @@ golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4f 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.33.0 h1:4qz2S3zmRxbGIhDIAgjxvFutSvH5EfnsYrRBj0UI0bc= golang.org/x/tools v0.33.0/go.mod h1:CIJMaWEY88juyUfo7UbgPqbC8rU2OqfAV1h2Qp0oMYI= diff --git a/vendor/github.com/kubernetes-csi/csi-lib-utils/protosanitizer/protosanitizer.go b/vendor/github.com/kubernetes-csi/csi-lib-utils/protosanitizer/protosanitizer.go index 2b63f24929..253116de16 100644 --- a/vendor/github.com/kubernetes-csi/csi-lib-utils/protosanitizer/protosanitizer.go +++ b/vendor/github.com/kubernetes-csi/csi-lib-utils/protosanitizer/protosanitizer.go @@ -68,7 +68,11 @@ func stripSingleValue(field protoreflect.FieldDescriptor, v protoreflect.Value) case protoreflect.MessageKind: return stripMessage(v.Message()) case protoreflect.EnumKind: - return field.Enum().Values().ByNumber(v.Enum()).Name() + desc := field.Enum().Values().ByNumber(v.Enum()) + if desc == nil { + return v.Enum() + } + return desc.Name() default: return v.Interface() } diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/LICENSE b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/LICENSE similarity index 100% rename from vendor/github.com/kubernetes-csi/external-snapshotter/v8/LICENSE rename to vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/LICENSE diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/doc.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/doc.go new file mode 100644 index 0000000000..f2fdf6b8b9 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/doc.go @@ -0,0 +1,20 @@ +/* +Copyright 2023 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// +k8s:deepcopy-gen=package +// +groupName=groupsnapshot.storage.k8s.io + +package v1beta1 diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/register.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/register.go new file mode 100644 index 0000000000..22cebf9451 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/register.go @@ -0,0 +1,57 @@ +/* +Copyright 2023 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" +) + +// GroupName is the group name use in this package. +const GroupName = "groupsnapshot.storage.k8s.io" + +var ( + // SchemeBuilder is the new scheme builder + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + // AddToScheme adds to scheme + AddToScheme = SchemeBuilder.AddToScheme + // SchemeGroupVersion is the group version used to register these objects. + SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"} +) + +func Resource(resource string) schema.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} + +func init() { + // We only register manually written functions here. The registration of the + // generated functions takes place in the generated files. The separation + // makes the code compile even when the generated files are missing. + SchemeBuilder.Register(addKnownTypes) +} + +// addKnownTypes adds the set of types defined in this package to the supplied scheme. +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(SchemeGroupVersion, + &VolumeGroupSnapshotClass{}, + &VolumeGroupSnapshotClassList{}, + &VolumeGroupSnapshot{}, + &VolumeGroupSnapshotList{}, + &VolumeGroupSnapshotContent{}, + &VolumeGroupSnapshotContentList{}, + ) + metav1.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/types.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/types.go new file mode 100644 index 0000000000..da0540bcfb --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/types.go @@ -0,0 +1,401 @@ +/* +Copyright 2023 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +// +kubebuilder:object:generate=true +package v1beta1 + +import ( + core_v1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + snapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" +) + +// VolumeGroupSnapshotSpec defines the desired state of a volume group snapshot. +type VolumeGroupSnapshotSpec struct { + // Source specifies where a group snapshot will be created from. + // This field is immutable after creation. + // Required. + Source VolumeGroupSnapshotSource `json:"source" protobuf:"bytes,1,opt,name=source"` + + // VolumeGroupSnapshotClassName is the name of the VolumeGroupSnapshotClass + // requested by the VolumeGroupSnapshot. + // VolumeGroupSnapshotClassName may be left nil to indicate that the default + // class will be used. + // Empty string is not allowed for this field. + // +optional + // +kubebuilder:validation:XValidation:rule="size(self) > 0",message="volumeGroupSnapshotClassName must not be the empty string when set" + VolumeGroupSnapshotClassName *string `json:"volumeGroupSnapshotClassName,omitempty" protobuf:"bytes,2,opt,name=volumeGroupSnapshotClassName"` +} + +// VolumeGroupSnapshotSource specifies whether the underlying group snapshot should be +// dynamically taken upon creation or if a pre-existing VolumeGroupSnapshotContent +// object should be used. +// Exactly one of its members must be set. +// Members in VolumeGroupSnapshotSource are immutable. +// +kubebuilder:validation:XValidation:rule="!has(oldSelf.selector) || has(self.selector)", message="selector is required once set" +// +kubebuilder:validation:XValidation:rule="!has(oldSelf.volumeGroupSnapshotContentName) || has(self.volumeGroupSnapshotContentName)", message="volumeGroupSnapshotContentName is required once set" +// +kubebuilder:validation:XValidation:rule="(has(self.selector) && !has(self.volumeGroupSnapshotContentName)) || (!has(self.selector) && has(self.volumeGroupSnapshotContentName))", message="exactly one of selector and volumeGroupSnapshotContentName must be set" +type VolumeGroupSnapshotSource struct { + // Selector is a label query over persistent volume claims that are to be + // grouped together for snapshotting. + // This labelSelector will be used to match the label added to a PVC. + // If the label is added or removed to a volume after a group snapshot + // is created, the existing group snapshots won't be modified. + // Once a VolumeGroupSnapshotContent is created and the sidecar starts to process + // it, the volume list will not change with retries. + // +optional + // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="selector is immutable" + Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,1,opt,name=selector"` + + // VolumeGroupSnapshotContentName specifies the name of a pre-existing VolumeGroupSnapshotContent + // object representing an existing volume group snapshot. + // This field should be set if the volume group snapshot already exists and + // only needs a representation in Kubernetes. + // This field is immutable. + // +optional + // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumeGroupSnapshotContentName is immutable" + VolumeGroupSnapshotContentName *string `json:"volumeGroupSnapshotContentName,omitempty" protobuf:"bytes,2,opt,name=volumeGroupSnapshotContentName"` +} + +// VolumeGroupSnapshotStatus defines the observed state of volume group snapshot. +type VolumeGroupSnapshotStatus struct { + // BoundVolumeGroupSnapshotContentName is the name of the VolumeGroupSnapshotContent + // object to which this VolumeGroupSnapshot object intends to bind to. + // If not specified, it indicates that the VolumeGroupSnapshot object has not + // been successfully bound to a VolumeGroupSnapshotContent object yet. + // NOTE: To avoid possible security issues, consumers must verify binding between + // VolumeGroupSnapshot and VolumeGroupSnapshotContent objects is successful + // (by validating that both VolumeGroupSnapshot and VolumeGroupSnapshotContent + // point at each other) before using this object. + // +optional + BoundVolumeGroupSnapshotContentName *string `json:"boundVolumeGroupSnapshotContentName,omitempty" protobuf:"bytes,1,opt,name=boundVolumeGroupSnapshotContentName"` + + // CreationTime is the timestamp when the point-in-time group snapshot is taken + // by the underlying storage system. + // If not specified, it may indicate that the creation time of the group snapshot + // is unknown. + // The format of this field is a Unix nanoseconds time encoded as an int64. + // On Unix, the command date +%s%N returns the current time in nanoseconds + // since 1970-01-01 00:00:00 UTC. + // This field is updated based on the CreationTime field in VolumeGroupSnapshotContentStatus + // +optional + CreationTime *metav1.Time `json:"creationTime,omitempty" protobuf:"bytes,2,opt,name=creationTime"` + + // ReadyToUse indicates if all the individual snapshots in the group are ready + // to be used to restore a group of volumes. + // ReadyToUse becomes true when ReadyToUse of all individual snapshots become true. + // If not specified, it means the readiness of a group snapshot is unknown. + // +optional + ReadyToUse *bool `json:"readyToUse,omitempty" protobuf:"varint,3,opt,name=readyToUse"` + + // Error is the last observed error during group snapshot creation, if any. + // This field could be helpful to upper level controllers (i.e., application + // controller) to decide whether they should continue on waiting for the group + // snapshot to be created based on the type of error reported. + // The snapshot controller will keep retrying when an error occurs during the + // group snapshot creation. Upon success, this error field will be cleared. + // +optional + Error *snapshotv1.VolumeSnapshotError `json:"error,omitempty" protobuf:"bytes,4,opt,name=error,casttype=VolumeSnapshotError"` +} + +//+genclient +//+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VolumeGroupSnapshot is a user's request for creating either a point-in-time +// group snapshot or binding to a pre-existing group snapshot. +// +kubebuilder:object:root=true +// +kubebuilder:resource:scope=Namespaced,shortName=vgs +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if all the individual snapshots in the group are ready to be used to restore a group of volumes." +// +kubebuilder:printcolumn:name="VolumeGroupSnapshotClass",type=string,JSONPath=`.spec.volumeGroupSnapshotClassName`,description="The name of the VolumeGroupSnapshotClass requested by the VolumeGroupSnapshot." +// +kubebuilder:printcolumn:name="VolumeGroupSnapshotContent",type=string,JSONPath=`.status.boundVolumeGroupSnapshotContentName`,description="Name of the VolumeGroupSnapshotContent object to which the VolumeGroupSnapshot object intends to bind to. Please note that verification of binding actually requires checking both VolumeGroupSnapshot and VolumeGroupSnapshotContent to ensure both are pointing at each other. Binding MUST be verified prior to usage of this object." +// +kubebuilder:printcolumn:name="CreationTime",type=date,JSONPath=`.status.creationTime`,description="Timestamp when the point-in-time group snapshot was taken by the underlying storage system." +// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +type VolumeGroupSnapshot struct { + metav1.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec defines the desired characteristics of a group snapshot requested by a user. + // Required. + Spec VolumeGroupSnapshotSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` + // Status represents the current information of a group snapshot. + // Consumers must verify binding between VolumeGroupSnapshot and + // VolumeGroupSnapshotContent objects is successful (by validating that both + // VolumeGroupSnapshot and VolumeGroupSnapshotContent point to each other) before + // using this object. + // +optional + Status *VolumeGroupSnapshotStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// VolumeGroupSnapshotList contains a list of VolumeGroupSnapshot objects. +type VolumeGroupSnapshotList struct { + metav1.TypeMeta `json:",inline"` + // +optional + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // Items is the list of VolumeGroupSnapshots. + Items []VolumeGroupSnapshot `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +//+genclient +//+genclient:nonNamespaced +//+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VolumeGroupSnapshotClass specifies parameters that a underlying storage system +// uses when creating a volume group snapshot. A specific VolumeGroupSnapshotClass +// is used by specifying its name in a VolumeGroupSnapshot object. +// VolumeGroupSnapshotClasses are non-namespaced. +// +kubebuilder:object:root=true +// +kubebuilder:resource:scope=Cluster,shortName=vgsclass;vgsclasses +// +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.driver` +// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.deletionPolicy`,description="Determines whether a VolumeGroupSnapshotContent created through the VolumeGroupSnapshotClass should be deleted when its bound VolumeGroupSnapshot is deleted." +// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +type VolumeGroupSnapshotClass struct { + metav1.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Driver is the name of the storage driver expected to handle this VolumeGroupSnapshotClass. + // Required. + Driver string `json:"driver" protobuf:"bytes,2,opt,name=driver"` + + // Parameters is a key-value map with storage driver specific parameters for + // creating group snapshots. + // These values are opaque to Kubernetes and are passed directly to the driver. + // +optional + Parameters map[string]string `json:"parameters,omitempty" protobuf:"bytes,3,rep,name=parameters"` + + // DeletionPolicy determines whether a VolumeGroupSnapshotContent created + // through the VolumeGroupSnapshotClass should be deleted when its bound + // VolumeGroupSnapshot is deleted. + // Supported values are "Retain" and "Delete". + // "Retain" means that the VolumeGroupSnapshotContent and its physical group + // snapshot on underlying storage system are kept. + // "Delete" means that the VolumeGroupSnapshotContent and its physical group + // snapshot on underlying storage system are deleted. + // Required. + DeletionPolicy snapshotv1.DeletionPolicy `json:"deletionPolicy" protobuf:"bytes,4,opt,name=deletionPolicy"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VolumeGroupSnapshotClassList is a collection of VolumeGroupSnapshotClasses. +// +kubebuilder:object:root=true +type VolumeGroupSnapshotClassList struct { + metav1.TypeMeta `json:",inline"` + // Standard list metadata + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + // +optional + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Items is the list of VolumeGroupSnapshotClasses. + Items []VolumeGroupSnapshotClass `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VolumeGroupSnapshotContent represents the actual "on-disk" group snapshot object +// in the underlying storage system +// +kubebuilder:object:root=true +// +kubebuilder:resource:scope=Cluster,shortName=vgsc;vgscs +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if all the individual snapshots in the group are ready to be used to restore a group of volumes." +// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.spec.deletionPolicy`,description="Determines whether this VolumeGroupSnapshotContent and its physical group snapshot on the underlying storage system should be deleted when its bound VolumeGroupSnapshot is deleted." +// +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.spec.driver`,description="Name of the CSI driver used to create the physical group snapshot on the underlying storage system." +// +kubebuilder:printcolumn:name="VolumeGroupSnapshotClass",type=string,JSONPath=`.spec.volumeGroupSnapshotClassName`,description="Name of the VolumeGroupSnapshotClass from which this group snapshot was (or will be) created." +// +kubebuilder:printcolumn:name="VolumeGroupSnapshotNamespace",type=string,JSONPath=`.spec.volumeGroupSnapshotRef.namespace`,description="Namespace of the VolumeGroupSnapshot object to which this VolumeGroupSnapshotContent object is bound." +// +kubebuilder:printcolumn:name="VolumeGroupSnapshot",type=string,JSONPath=`.spec.volumeGroupSnapshotRef.name`,description="Name of the VolumeGroupSnapshot object to which this VolumeGroupSnapshotContent object is bound." +// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +type VolumeGroupSnapshotContent struct { + metav1.TypeMeta `json:",inline"` + // Standard list metadata + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec defines properties of a VolumeGroupSnapshotContent created by the underlying storage system. + // Required. + Spec VolumeGroupSnapshotContentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` + // status represents the current information of a group snapshot. + // +optional + Status *VolumeGroupSnapshotContentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VolumeGroupSnapshotContentList is a list of VolumeGroupSnapshotContent objects +// +kubebuilder:object:root=true +type VolumeGroupSnapshotContentList struct { + metav1.TypeMeta `json:",inline"` + // Standard list metadata + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + // +optional + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Items is the list of VolumeGroupSnapshotContents. + Items []VolumeGroupSnapshotContent `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// VolumeGroupSnapshotContentSpec describes the common attributes of a group snapshot content +type VolumeGroupSnapshotContentSpec struct { + // VolumeGroupSnapshotRef specifies the VolumeGroupSnapshot object to which this + // VolumeGroupSnapshotContent object is bound. + // VolumeGroupSnapshot.Spec.VolumeGroupSnapshotContentName field must reference to + // this VolumeGroupSnapshotContent's name for the bidirectional binding to be valid. + // For a pre-existing VolumeGroupSnapshotContent object, name and namespace of the + // VolumeGroupSnapshot object MUST be provided for binding to happen. + // This field is immutable after creation. + // Required. + // +kubebuilder:validation:XValidation:rule="has(self.name) && has(self.__namespace__)",message="both volumeGroupSnapshotRef.name and volumeGroupSnapshotRef.namespace must be set" + VolumeGroupSnapshotRef core_v1.ObjectReference `json:"volumeGroupSnapshotRef" protobuf:"bytes,1,opt,name=volumeGroupSnapshotRef"` + + // DeletionPolicy determines whether this VolumeGroupSnapshotContent and the + // physical group snapshot on the underlying storage system should be deleted + // when the bound VolumeGroupSnapshot is deleted. + // Supported values are "Retain" and "Delete". + // "Retain" means that the VolumeGroupSnapshotContent and its physical group + // snapshot on underlying storage system are kept. + // "Delete" means that the VolumeGroupSnapshotContent and its physical group + // snapshot on underlying storage system are deleted. + // For dynamically provisioned group snapshots, this field will automatically + // be filled in by the CSI snapshotter sidecar with the "DeletionPolicy" field + // defined in the corresponding VolumeGroupSnapshotClass. + // For pre-existing snapshots, users MUST specify this field when creating the + // VolumeGroupSnapshotContent object. + // Required. + DeletionPolicy snapshotv1.DeletionPolicy `json:"deletionPolicy" protobuf:"bytes,2,opt,name=deletionPolicy"` + + // Driver is the name of the CSI driver used to create the physical group snapshot on + // the underlying storage system. + // This MUST be the same as the name returned by the CSI GetPluginName() call for + // that driver. + // Required. + Driver string `json:"driver" protobuf:"bytes,3,opt,name=driver"` + + // VolumeGroupSnapshotClassName is the name of the VolumeGroupSnapshotClass from + // which this group snapshot was (or will be) created. + // Note that after provisioning, the VolumeGroupSnapshotClass may be deleted or + // recreated with different set of values, and as such, should not be referenced + // post-snapshot creation. + // For dynamic provisioning, this field must be set. + // This field may be unset for pre-provisioned snapshots. + // +optional + VolumeGroupSnapshotClassName *string `json:"volumeGroupSnapshotClassName,omitempty" protobuf:"bytes,4,opt,name=volumeGroupSnapshotClassName"` + + // Source specifies whether the snapshot is (or should be) dynamically provisioned + // or already exists, and just requires a Kubernetes object representation. + // This field is immutable after creation. + // Required. + Source VolumeGroupSnapshotContentSource `json:"source" protobuf:"bytes,5,opt,name=source"` +} + +// VolumeGroupSnapshotContentStatus defines the observed state of VolumeGroupSnapshotContent. +type VolumeGroupSnapshotContentStatus struct { + // VolumeGroupSnapshotHandle is a unique id returned by the CSI driver + // to identify the VolumeGroupSnapshot on the storage system. + // If a storage system does not provide such an id, the + // CSI driver can choose to return the VolumeGroupSnapshot name. + // +optional + VolumeGroupSnapshotHandle *string `json:"volumeGroupSnapshotHandle,omitempty" protobuf:"bytes,1,opt,name=volumeGroupSnapshotHandle"` + + // CreationTime is the timestamp when the point-in-time group snapshot is taken + // by the underlying storage system. + // If not specified, it indicates the creation time is unknown. + // If not specified, it means the readiness of a group snapshot is unknown. + // The format of this field is a Unix nanoseconds time encoded as an int64. + // On Unix, the command date +%s%N returns the current time in nanoseconds + // since 1970-01-01 00:00:00 UTC. + // This field is the source for the CreationTime field in VolumeGroupSnapshotStatus + // +optional + CreationTime *metav1.Time `json:"creationTime,omitempty" protobuf:"bytes,2,opt,name=creationTime"` + + // ReadyToUse indicates if all the individual snapshots in the group are ready to be + // used to restore a group of volumes. + // ReadyToUse becomes true when ReadyToUse of all individual snapshots become true. + // +optional + ReadyToUse *bool `json:"readyToUse,omitempty" protobuf:"varint,3,opt,name=readyToUse"` + + // Error is the last observed error during group snapshot creation, if any. + // Upon success after retry, this error field will be cleared. + // +optional + Error *snapshotv1.VolumeSnapshotError `json:"error,omitempty" protobuf:"bytes,4,opt,name=error,casttype=VolumeSnapshotError"` + + // VolumeSnapshotHandlePairList is a list of CSI "volume_id" and "snapshot_id" + // pair returned by the CSI driver to identify snapshots and their source volumes + // on the storage system. + // +optional + VolumeSnapshotHandlePairList []VolumeSnapshotHandlePair `json:"volumeSnapshotHandlePairList,omitempty" protobuf:"bytes,6,opt,name=volumeSnapshotHandlePairList"` +} + +// VolumeGroupSnapshotContentSource represents the CSI source of a group snapshot. +// Exactly one of its members must be set. +// Members in VolumeGroupSnapshotContentSource are immutable. +// +kubebuilder:validation:XValidation:rule="!has(oldSelf.volumeHandles) || has(self.volumeHandles)", message="volumeHandles is required once set" +// +kubebuilder:validation:XValidation:rule="!has(oldSelf.groupSnapshotHandles) || has(self.groupSnapshotHandles)", message="groupSnapshotHandles is required once set" +// +kubebuilder:validation:XValidation:rule="(has(self.volumeHandles) && !has(self.groupSnapshotHandles)) || (!has(self.volumeHandles) && has(self.groupSnapshotHandles))", message="exactly one of volumeHandles and groupSnapshotHandles must be set" +type VolumeGroupSnapshotContentSource struct { + // VolumeHandles is a list of volume handles on the backend to be snapshotted + // together. It is specified for dynamic provisioning of the VolumeGroupSnapshot. + // This field is immutable. + // +optional + // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumeHandles is immutable" + VolumeHandles []string `json:"volumeHandles,omitempty" protobuf:"bytes,1,opt,name=volumeHandles"` + + // GroupSnapshotHandles specifies the CSI "group_snapshot_id" of a pre-existing + // group snapshot and a list of CSI "snapshot_id" of pre-existing snapshots + // on the underlying storage system for which a Kubernetes object + // representation was (or should be) created. + // This field is immutable. + // +optional + // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="groupSnapshotHandles is immutable" + GroupSnapshotHandles *GroupSnapshotHandles `json:"groupSnapshotHandles,omitempty" protobuf:"bytes,2,opt,name=groupSnapshotHandles"` +} + +type GroupSnapshotHandles struct { + // VolumeGroupSnapshotHandle specifies the CSI "group_snapshot_id" of a pre-existing + // group snapshot on the underlying storage system for which a Kubernetes object + // representation was (or should be) created. + // This field is immutable. + // Required. + VolumeGroupSnapshotHandle string `json:"volumeGroupSnapshotHandle" protobuf:"bytes,1,opt,name=volumeGroupSnapshotHandle"` + + // VolumeSnapshotHandles is a list of CSI "snapshot_id" of pre-existing + // snapshots on the underlying storage system for which Kubernetes objects + // representation were (or should be) created. + // This field is immutable. + // Required. + VolumeSnapshotHandles []string `json:"volumeSnapshotHandles" protobuf:"bytes,2,opt,name=volumeSnapshotHandles"` +} + +// VolumeSnapshotHandlePair defines a pair of a source volume handle and a snapshot handle +type VolumeSnapshotHandlePair struct { + // VolumeHandle is a unique id returned by the CSI driver to identify a volume + // on the storage system + // Required. + VolumeHandle string `json:"volumeHandle" protobuf:"bytes,1,opt,name=volumeHandle"` + + // SnapshotHandle is a unique id returned by the CSI driver to identify a volume + // snapshot on the storage system + // Required. + SnapshotHandle string `json:"snapshotHandle" protobuf:"bytes,2,opt,name=snapshotHandle"` +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/zz_generated.deepcopy.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..4c59130dfd --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/zz_generated.deepcopy.go @@ -0,0 +1,433 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by deepcopy-gen. DO NOT EDIT. + +package v1beta1 + +import ( + v1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GroupSnapshotHandles) DeepCopyInto(out *GroupSnapshotHandles) { + *out = *in + if in.VolumeSnapshotHandles != nil { + in, out := &in.VolumeSnapshotHandles, &out.VolumeSnapshotHandles + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupSnapshotHandles. +func (in *GroupSnapshotHandles) DeepCopy() *GroupSnapshotHandles { + if in == nil { + return nil + } + out := new(GroupSnapshotHandles) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshot) DeepCopyInto(out *VolumeGroupSnapshot) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + if in.Status != nil { + in, out := &in.Status, &out.Status + *out = new(VolumeGroupSnapshotStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshot. +func (in *VolumeGroupSnapshot) DeepCopy() *VolumeGroupSnapshot { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshot) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeGroupSnapshot) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotClass) DeepCopyInto(out *VolumeGroupSnapshotClass) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Parameters != nil { + in, out := &in.Parameters, &out.Parameters + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotClass. +func (in *VolumeGroupSnapshotClass) DeepCopy() *VolumeGroupSnapshotClass { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotClass) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeGroupSnapshotClass) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotClassList) DeepCopyInto(out *VolumeGroupSnapshotClassList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VolumeGroupSnapshotClass, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotClassList. +func (in *VolumeGroupSnapshotClassList) DeepCopy() *VolumeGroupSnapshotClassList { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotClassList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeGroupSnapshotClassList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotContent) DeepCopyInto(out *VolumeGroupSnapshotContent) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + if in.Status != nil { + in, out := &in.Status, &out.Status + *out = new(VolumeGroupSnapshotContentStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotContent. +func (in *VolumeGroupSnapshotContent) DeepCopy() *VolumeGroupSnapshotContent { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotContent) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeGroupSnapshotContent) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotContentList) DeepCopyInto(out *VolumeGroupSnapshotContentList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VolumeGroupSnapshotContent, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotContentList. +func (in *VolumeGroupSnapshotContentList) DeepCopy() *VolumeGroupSnapshotContentList { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotContentList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeGroupSnapshotContentList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotContentSource) DeepCopyInto(out *VolumeGroupSnapshotContentSource) { + *out = *in + if in.VolumeHandles != nil { + in, out := &in.VolumeHandles, &out.VolumeHandles + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.GroupSnapshotHandles != nil { + in, out := &in.GroupSnapshotHandles, &out.GroupSnapshotHandles + *out = new(GroupSnapshotHandles) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotContentSource. +func (in *VolumeGroupSnapshotContentSource) DeepCopy() *VolumeGroupSnapshotContentSource { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotContentSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotContentSpec) DeepCopyInto(out *VolumeGroupSnapshotContentSpec) { + *out = *in + out.VolumeGroupSnapshotRef = in.VolumeGroupSnapshotRef + if in.VolumeGroupSnapshotClassName != nil { + in, out := &in.VolumeGroupSnapshotClassName, &out.VolumeGroupSnapshotClassName + *out = new(string) + **out = **in + } + in.Source.DeepCopyInto(&out.Source) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotContentSpec. +func (in *VolumeGroupSnapshotContentSpec) DeepCopy() *VolumeGroupSnapshotContentSpec { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotContentSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotContentStatus) DeepCopyInto(out *VolumeGroupSnapshotContentStatus) { + *out = *in + if in.VolumeGroupSnapshotHandle != nil { + in, out := &in.VolumeGroupSnapshotHandle, &out.VolumeGroupSnapshotHandle + *out = new(string) + **out = **in + } + if in.CreationTime != nil { + in, out := &in.CreationTime, &out.CreationTime + *out = (*in).DeepCopy() + } + if in.ReadyToUse != nil { + in, out := &in.ReadyToUse, &out.ReadyToUse + *out = new(bool) + **out = **in + } + if in.Error != nil { + in, out := &in.Error, &out.Error + *out = new(v1.VolumeSnapshotError) + (*in).DeepCopyInto(*out) + } + if in.VolumeSnapshotHandlePairList != nil { + in, out := &in.VolumeSnapshotHandlePairList, &out.VolumeSnapshotHandlePairList + *out = make([]VolumeSnapshotHandlePair, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotContentStatus. +func (in *VolumeGroupSnapshotContentStatus) DeepCopy() *VolumeGroupSnapshotContentStatus { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotContentStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotList) DeepCopyInto(out *VolumeGroupSnapshotList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VolumeGroupSnapshot, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotList. +func (in *VolumeGroupSnapshotList) DeepCopy() *VolumeGroupSnapshotList { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeGroupSnapshotList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotSource) DeepCopyInto(out *VolumeGroupSnapshotSource) { + *out = *in + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(metav1.LabelSelector) + (*in).DeepCopyInto(*out) + } + if in.VolumeGroupSnapshotContentName != nil { + in, out := &in.VolumeGroupSnapshotContentName, &out.VolumeGroupSnapshotContentName + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotSource. +func (in *VolumeGroupSnapshotSource) DeepCopy() *VolumeGroupSnapshotSource { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotSpec) DeepCopyInto(out *VolumeGroupSnapshotSpec) { + *out = *in + in.Source.DeepCopyInto(&out.Source) + if in.VolumeGroupSnapshotClassName != nil { + in, out := &in.VolumeGroupSnapshotClassName, &out.VolumeGroupSnapshotClassName + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotSpec. +func (in *VolumeGroupSnapshotSpec) DeepCopy() *VolumeGroupSnapshotSpec { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeGroupSnapshotStatus) DeepCopyInto(out *VolumeGroupSnapshotStatus) { + *out = *in + if in.BoundVolumeGroupSnapshotContentName != nil { + in, out := &in.BoundVolumeGroupSnapshotContentName, &out.BoundVolumeGroupSnapshotContentName + *out = new(string) + **out = **in + } + if in.CreationTime != nil { + in, out := &in.CreationTime, &out.CreationTime + *out = (*in).DeepCopy() + } + if in.ReadyToUse != nil { + in, out := &in.ReadyToUse, &out.ReadyToUse + *out = new(bool) + **out = **in + } + if in.Error != nil { + in, out := &in.Error, &out.Error + *out = new(v1.VolumeSnapshotError) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeGroupSnapshotStatus. +func (in *VolumeGroupSnapshotStatus) DeepCopy() *VolumeGroupSnapshotStatus { + if in == nil { + return nil + } + out := new(VolumeGroupSnapshotStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotHandlePair) DeepCopyInto(out *VolumeSnapshotHandlePair) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotHandlePair. +func (in *VolumeSnapshotHandlePair) DeepCopy() *VolumeSnapshotHandlePair { + if in == nil { + return nil + } + out := new(VolumeSnapshotHandlePair) + in.DeepCopyInto(out) + return out +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/doc.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/doc.go new file mode 100644 index 0000000000..462e9d485f --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/doc.go @@ -0,0 +1,20 @@ +/* +Copyright 2018 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// +k8s:deepcopy-gen=package +// +groupName=snapshot.storage.k8s.io + +package v1 diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/register.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/register.go new file mode 100644 index 0000000000..cca3da0b94 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/register.go @@ -0,0 +1,58 @@ +/* +Copyright 2018 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" +) + +// GroupName is the group name use in this package. +const GroupName = "snapshot.storage.k8s.io" + +var ( + // SchemeBuilder is the new scheme builder + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + // AddToScheme adds to scheme + AddToScheme = SchemeBuilder.AddToScheme + // SchemeGroupVersion is the group version used to register these objects. + SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} +) + +// Resource takes an unqualified resource and returns a Group-qualified GroupResource. +func Resource(resource string) schema.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} + +func init() { + // We only register manually written functions here. The registration of the + // generated functions takes place in the generated files. The separation + // makes the code compile even when the generated files are missing. + SchemeBuilder.Register(addKnownTypes) +} + +// addKnownTypes adds the set of types defined in this package to the supplied scheme. +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(SchemeGroupVersion, + &VolumeSnapshotClass{}, + &VolumeSnapshotClassList{}, + &VolumeSnapshot{}, + &VolumeSnapshotList{}, + &VolumeSnapshotContent{}, + &VolumeSnapshotContentList{}, + ) + metav1.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/types.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/types.go new file mode 100644 index 0000000000..36f60dc958 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/types.go @@ -0,0 +1,471 @@ +/* +Copyright 2020 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// +kubebuilder:object:generate=true +package v1 + +import ( + core_v1 "k8s.io/api/core/v1" + "k8s.io/apimachinery/pkg/api/resource" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VolumeSnapshot is a user's request for either creating a point-in-time +// snapshot of a persistent volume, or binding to a pre-existing snapshot. +// +kubebuilder:object:root=true +// +kubebuilder:resource:scope=Namespaced,shortName=vs +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if the snapshot is ready to be used to restore a volume." +// +kubebuilder:printcolumn:name="SourcePVC",type=string,JSONPath=`.spec.source.persistentVolumeClaimName`,description="If a new snapshot needs to be created, this contains the name of the source PVC from which this snapshot was (or will be) created." +// +kubebuilder:printcolumn:name="SourceSnapshotContent",type=string,JSONPath=`.spec.source.volumeSnapshotContentName`,description="If a snapshot already exists, this contains the name of the existing VolumeSnapshotContent object representing the existing snapshot." +// +kubebuilder:printcolumn:name="RestoreSize",type=string,JSONPath=`.status.restoreSize`,description="Represents the minimum size of volume required to rehydrate from this snapshot." +// +kubebuilder:printcolumn:name="SnapshotClass",type=string,JSONPath=`.spec.volumeSnapshotClassName`,description="The name of the VolumeSnapshotClass requested by the VolumeSnapshot." +// +kubebuilder:printcolumn:name="SnapshotContent",type=string,JSONPath=`.status.boundVolumeSnapshotContentName`,description="Name of the VolumeSnapshotContent object to which the VolumeSnapshot object intends to bind to. Please note that verification of binding actually requires checking both VolumeSnapshot and VolumeSnapshotContent to ensure both are pointing at each other. Binding MUST be verified prior to usage of this object." +// +kubebuilder:printcolumn:name="CreationTime",type=date,JSONPath=`.status.creationTime`,description="Timestamp when the point-in-time snapshot was taken by the underlying storage system." +// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +type VolumeSnapshot struct { + metav1.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // spec defines the desired characteristics of a snapshot requested by a user. + // More info: https://kubernetes.io/docs/concepts/storage/volume-snapshots#volumesnapshots + // Required. + Spec VolumeSnapshotSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` + + // status represents the current information of a snapshot. + // Consumers must verify binding between VolumeSnapshot and + // VolumeSnapshotContent objects is successful (by validating that both + // VolumeSnapshot and VolumeSnapshotContent point at each other) before + // using this object. + // +optional + Status *VolumeSnapshotStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// VolumeSnapshotList is a list of VolumeSnapshot objects +type VolumeSnapshotList struct { + metav1.TypeMeta `json:",inline"` + // +optional + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // List of VolumeSnapshots + Items []VolumeSnapshot `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// VolumeSnapshotSpec describes the common attributes of a volume snapshot. +type VolumeSnapshotSpec struct { + // source specifies where a snapshot will be created from. + // This field is immutable after creation. + // Required. + Source VolumeSnapshotSource `json:"source" protobuf:"bytes,1,opt,name=source"` + + // VolumeSnapshotClassName is the name of the VolumeSnapshotClass + // requested by the VolumeSnapshot. + // VolumeSnapshotClassName may be left nil to indicate that the default + // SnapshotClass should be used. + // A given cluster may have multiple default Volume SnapshotClasses: one + // default per CSI Driver. If a VolumeSnapshot does not specify a SnapshotClass, + // VolumeSnapshotSource will be checked to figure out what the associated + // CSI Driver is, and the default VolumeSnapshotClass associated with that + // CSI Driver will be used. If more than one VolumeSnapshotClass exist for + // a given CSI Driver and more than one have been marked as default, + // CreateSnapshot will fail and generate an event. + // Empty string is not allowed for this field. + // +optional + // +kubebuilder:validation:XValidation:rule="size(self) > 0",message="volumeSnapshotClassName must not be the empty string when set" + VolumeSnapshotClassName *string `json:"volumeSnapshotClassName,omitempty" protobuf:"bytes,2,opt,name=volumeSnapshotClassName"` +} + +// VolumeSnapshotSource specifies whether the underlying snapshot should be +// dynamically taken upon creation or if a pre-existing VolumeSnapshotContent +// object should be used. +// Exactly one of its members must be set. +// Members in VolumeSnapshotSource are immutable. +// +kubebuilder:validation:XValidation:rule="!has(oldSelf.persistentVolumeClaimName) || has(self.persistentVolumeClaimName)", message="persistentVolumeClaimName is required once set" +// +kubebuilder:validation:XValidation:rule="!has(oldSelf.volumeSnapshotContentName) || has(self.volumeSnapshotContentName)", message="volumeSnapshotContentName is required once set" +// +kubebuilder:validation:XValidation:rule="(has(self.volumeSnapshotContentName) && !has(self.persistentVolumeClaimName)) || (!has(self.volumeSnapshotContentName) && has(self.persistentVolumeClaimName))", message="exactly one of volumeSnapshotContentName and persistentVolumeClaimName must be set" +type VolumeSnapshotSource struct { + // persistentVolumeClaimName specifies the name of the PersistentVolumeClaim + // object representing the volume from which a snapshot should be created. + // This PVC is assumed to be in the same namespace as the VolumeSnapshot + // object. + // This field should be set if the snapshot does not exists, and needs to be + // created. + // This field is immutable. + // +optional + // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="persistentVolumeClaimName is immutable" + PersistentVolumeClaimName *string `json:"persistentVolumeClaimName,omitempty" protobuf:"bytes,1,opt,name=persistentVolumeClaimName"` + + // volumeSnapshotContentName specifies the name of a pre-existing VolumeSnapshotContent + // object representing an existing volume snapshot. + // This field should be set if the snapshot already exists and only needs a representation in Kubernetes. + // This field is immutable. + // +optional + // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumeSnapshotContentName is immutable" + VolumeSnapshotContentName *string `json:"volumeSnapshotContentName,omitempty" protobuf:"bytes,2,opt,name=volumeSnapshotContentName"` +} + +// VolumeSnapshotStatus is the status of the VolumeSnapshot +// Note that CreationTime, RestoreSize, ReadyToUse, and Error are in both +// VolumeSnapshotStatus and VolumeSnapshotContentStatus. Fields in VolumeSnapshotStatus +// are updated based on fields in VolumeSnapshotContentStatus. They are eventual +// consistency. These fields are duplicate in both objects due to the following reasons: +// - Fields in VolumeSnapshotContentStatus can be used for filtering when importing a +// volumesnapshot. +// - VolumsnapshotStatus is used by end users because they cannot see VolumeSnapshotContent. +// - CSI snapshotter sidecar is light weight as it only watches VolumeSnapshotContent +// object, not VolumeSnapshot object. +type VolumeSnapshotStatus struct { + // boundVolumeSnapshotContentName is the name of the VolumeSnapshotContent + // object to which this VolumeSnapshot object intends to bind to. + // If not specified, it indicates that the VolumeSnapshot object has not been + // successfully bound to a VolumeSnapshotContent object yet. + // NOTE: To avoid possible security issues, consumers must verify binding between + // VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that + // both VolumeSnapshot and VolumeSnapshotContent point at each other) before using + // this object. + // +optional + BoundVolumeSnapshotContentName *string `json:"boundVolumeSnapshotContentName,omitempty" protobuf:"bytes,1,opt,name=boundVolumeSnapshotContentName"` + + // creationTime is the timestamp when the point-in-time snapshot is taken + // by the underlying storage system. + // In dynamic snapshot creation case, this field will be filled in by the + // snapshot controller with the "creation_time" value returned from CSI + // "CreateSnapshot" gRPC call. + // For a pre-existing snapshot, this field will be filled with the "creation_time" + // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. + // If not specified, it may indicate that the creation time of the snapshot is unknown. + // +optional + CreationTime *metav1.Time `json:"creationTime,omitempty" protobuf:"bytes,2,opt,name=creationTime"` + + // readyToUse indicates if the snapshot is ready to be used to restore a volume. + // In dynamic snapshot creation case, this field will be filled in by the + // snapshot controller with the "ready_to_use" value returned from CSI + // "CreateSnapshot" gRPC call. + // For a pre-existing snapshot, this field will be filled with the "ready_to_use" + // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, + // otherwise, this field will be set to "True". + // If not specified, it means the readiness of a snapshot is unknown. + // +optional + ReadyToUse *bool `json:"readyToUse,omitempty" protobuf:"varint,3,opt,name=readyToUse"` + + // restoreSize represents the minimum size of volume required to create a volume + // from this snapshot. + // In dynamic snapshot creation case, this field will be filled in by the + // snapshot controller with the "size_bytes" value returned from CSI + // "CreateSnapshot" gRPC call. + // For a pre-existing snapshot, this field will be filled with the "size_bytes" + // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. + // When restoring a volume from this snapshot, the size of the volume MUST NOT + // be smaller than the restoreSize if it is specified, otherwise the restoration will fail. + // If not specified, it indicates that the size is unknown. + // +optional + RestoreSize *resource.Quantity `json:"restoreSize,omitempty" protobuf:"bytes,4,opt,name=restoreSize"` + + // error is the last observed error during snapshot creation, if any. + // This field could be helpful to upper level controllers(i.e., application controller) + // to decide whether they should continue on waiting for the snapshot to be created + // based on the type of error reported. + // The snapshot controller will keep retrying when an error occurs during the + // snapshot creation. Upon success, this error field will be cleared. + // +optional + Error *VolumeSnapshotError `json:"error,omitempty" protobuf:"bytes,5,opt,name=error,casttype=VolumeSnapshotError"` + + // VolumeGroupSnapshotName is the name of the VolumeGroupSnapshot of which this + // VolumeSnapshot is a part of. + // +optional + VolumeGroupSnapshotName *string `json:"volumeGroupSnapshotName,omitempty" protobuf:"bytes,6,opt,name=volumeGroupSnapshotName"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VolumeSnapshotClass specifies parameters that a underlying storage system uses when +// creating a volume snapshot. A specific VolumeSnapshotClass is used by specifying its +// name in a VolumeSnapshot object. +// VolumeSnapshotClasses are non-namespaced +// +kubebuilder:object:root=true +// +kubebuilder:resource:scope=Cluster,shortName=vsclass;vsclasses +// +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.driver` +// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.deletionPolicy`,description="Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted." +// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +type VolumeSnapshotClass struct { + metav1.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // driver is the name of the storage driver that handles this VolumeSnapshotClass. + // Required. + Driver string `json:"driver" protobuf:"bytes,2,opt,name=driver"` + + // parameters is a key-value map with storage driver specific parameters for creating snapshots. + // These values are opaque to Kubernetes. + // +optional + Parameters map[string]string `json:"parameters,omitempty" protobuf:"bytes,3,rep,name=parameters"` + + // deletionPolicy determines whether a VolumeSnapshotContent created through + // the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted. + // Supported values are "Retain" and "Delete". + // "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. + // "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. + // Required. + DeletionPolicy DeletionPolicy `json:"deletionPolicy" protobuf:"bytes,4,opt,name=deletionPolicy"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VolumeSnapshotClassList is a collection of VolumeSnapshotClasses. +// +kubebuilder:object:root=true +type VolumeSnapshotClassList struct { + metav1.TypeMeta `json:",inline"` + // Standard list metadata + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + // +optional + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // items is the list of VolumeSnapshotClasses + Items []VolumeSnapshotClass `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VolumeSnapshotContent represents the actual "on-disk" snapshot object in the +// underlying storage system +// +kubebuilder:object:root=true +// +kubebuilder:resource:scope=Cluster,shortName=vsc;vscs +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if the snapshot is ready to be used to restore a volume." +// +kubebuilder:printcolumn:name="RestoreSize",type=integer,JSONPath=`.status.restoreSize`,description="Represents the complete size of the snapshot in bytes" +// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.spec.deletionPolicy`,description="Determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted." +// +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.spec.driver`,description="Name of the CSI driver used to create the physical snapshot on the underlying storage system." +// +kubebuilder:printcolumn:name="VolumeSnapshotClass",type=string,JSONPath=`.spec.volumeSnapshotClassName`,description="Name of the VolumeSnapshotClass to which this snapshot belongs." +// +kubebuilder:printcolumn:name="VolumeSnapshot",type=string,JSONPath=`.spec.volumeSnapshotRef.name`,description="Name of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound." +// +kubebuilder:printcolumn:name="VolumeSnapshotNamespace",type=string,JSONPath=`.spec.volumeSnapshotRef.namespace`,description="Namespace of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound." +// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +type VolumeSnapshotContent struct { + metav1.TypeMeta `json:",inline"` + // Standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // spec defines properties of a VolumeSnapshotContent created by the underlying storage system. + // Required. + Spec VolumeSnapshotContentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` + + // status represents the current information of a snapshot. + // +optional + Status *VolumeSnapshotContentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VolumeSnapshotContentList is a list of VolumeSnapshotContent objects +// +kubebuilder:object:root=true +type VolumeSnapshotContentList struct { + metav1.TypeMeta `json:",inline"` + // +optional + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // items is the list of VolumeSnapshotContents + Items []VolumeSnapshotContent `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// VolumeSnapshotContentSpec is the specification of a VolumeSnapshotContent +// +kubebuilder:validation:XValidation:rule="!has(oldSelf.sourceVolumeMode) || has(self.sourceVolumeMode)", message="sourceVolumeMode is required once set" +type VolumeSnapshotContentSpec struct { + // volumeSnapshotRef specifies the VolumeSnapshot object to which this + // VolumeSnapshotContent object is bound. + // VolumeSnapshot.Spec.VolumeSnapshotContentName field must reference to + // this VolumeSnapshotContent's name for the bidirectional binding to be valid. + // For a pre-existing VolumeSnapshotContent object, name and namespace of the + // VolumeSnapshot object MUST be provided for binding to happen. + // This field is immutable after creation. + // Required. + // +kubebuilder:validation:XValidation:rule="has(self.name) && has(self.__namespace__)",message="both spec.volumeSnapshotRef.name and spec.volumeSnapshotRef.namespace must be set" + VolumeSnapshotRef core_v1.ObjectReference `json:"volumeSnapshotRef" protobuf:"bytes,1,opt,name=volumeSnapshotRef"` + + // deletionPolicy determines whether this VolumeSnapshotContent and its physical snapshot on + // the underlying storage system should be deleted when its bound VolumeSnapshot is deleted. + // Supported values are "Retain" and "Delete". + // "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. + // "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. + // For dynamically provisioned snapshots, this field will automatically be filled in by the + // CSI snapshotter sidecar with the "DeletionPolicy" field defined in the corresponding + // VolumeSnapshotClass. + // For pre-existing snapshots, users MUST specify this field when creating the + // VolumeSnapshotContent object. + // Required. + DeletionPolicy DeletionPolicy `json:"deletionPolicy" protobuf:"bytes,2,opt,name=deletionPolicy"` + + // driver is the name of the CSI driver used to create the physical snapshot on + // the underlying storage system. + // This MUST be the same as the name returned by the CSI GetPluginName() call for + // that driver. + // Required. + Driver string `json:"driver" protobuf:"bytes,3,opt,name=driver"` + + // name of the VolumeSnapshotClass from which this snapshot was (or will be) + // created. + // Note that after provisioning, the VolumeSnapshotClass may be deleted or + // recreated with different set of values, and as such, should not be referenced + // post-snapshot creation. + // +optional + VolumeSnapshotClassName *string `json:"volumeSnapshotClassName,omitempty" protobuf:"bytes,4,opt,name=volumeSnapshotClassName"` + + // source specifies whether the snapshot is (or should be) dynamically provisioned + // or already exists, and just requires a Kubernetes object representation. + // This field is immutable after creation. + // Required. + Source VolumeSnapshotContentSource `json:"source" protobuf:"bytes,5,opt,name=source"` + + // SourceVolumeMode is the mode of the volume whose snapshot is taken. + // Can be either “Filesystem” or “Block”. + // If not specified, it indicates the source volume's mode is unknown. + // This field is immutable. + // This field is an alpha field. + // +optional + // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="sourceVolumeMode is immutable" + SourceVolumeMode *core_v1.PersistentVolumeMode `json:"sourceVolumeMode" protobuf:"bytes,6,opt,name=sourceVolumeMode"` +} + +// VolumeSnapshotContentSource represents the CSI source of a snapshot. +// Exactly one of its members must be set. +// Members in VolumeSnapshotContentSource are immutable. +// +kubebuilder:validation:XValidation:rule="!has(oldSelf.volumeHandle) || has(self.volumeHandle)", message="volumeHandle is required once set" +// +kubebuilder:validation:XValidation:rule="!has(oldSelf.snapshotHandle) || has(self.snapshotHandle)", message="snapshotHandle is required once set" +// +kubebuilder:validation:XValidation:rule="(has(self.volumeHandle) && !has(self.snapshotHandle)) || (!has(self.volumeHandle) && has(self.snapshotHandle))", message="exactly one of volumeHandle and snapshotHandle must be set" +type VolumeSnapshotContentSource struct { + // volumeHandle specifies the CSI "volume_id" of the volume from which a snapshot + // should be dynamically taken from. + // This field is immutable. + // +optional + // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumeHandle is immutable" + VolumeHandle *string `json:"volumeHandle,omitempty" protobuf:"bytes,1,opt,name=volumeHandle"` + + // snapshotHandle specifies the CSI "snapshot_id" of a pre-existing snapshot on + // the underlying storage system for which a Kubernetes object representation + // was (or should be) created. + // This field is immutable. + // +optional + // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="snapshotHandle is immutable" + SnapshotHandle *string `json:"snapshotHandle,omitempty" protobuf:"bytes,2,opt,name=snapshotHandle"` +} + +// VolumeSnapshotContentStatus is the status of a VolumeSnapshotContent object +// Note that CreationTime, RestoreSize, ReadyToUse, and Error are in both +// VolumeSnapshotStatus and VolumeSnapshotContentStatus. Fields in VolumeSnapshotStatus +// are updated based on fields in VolumeSnapshotContentStatus. They are eventual +// consistency. These fields are duplicate in both objects due to the following reasons: +// - Fields in VolumeSnapshotContentStatus can be used for filtering when importing a +// volumesnapshot. +// - VolumsnapshotStatus is used by end users because they cannot see VolumeSnapshotContent. +// - CSI snapshotter sidecar is light weight as it only watches VolumeSnapshotContent +// object, not VolumeSnapshot object. +type VolumeSnapshotContentStatus struct { + // snapshotHandle is the CSI "snapshot_id" of a snapshot on the underlying storage system. + // If not specified, it indicates that dynamic snapshot creation has either failed + // or it is still in progress. + // +optional + SnapshotHandle *string `json:"snapshotHandle,omitempty" protobuf:"bytes,1,opt,name=snapshotHandle"` + + // creationTime is the timestamp when the point-in-time snapshot is taken + // by the underlying storage system. + // In dynamic snapshot creation case, this field will be filled in by the + // CSI snapshotter sidecar with the "creation_time" value returned from CSI + // "CreateSnapshot" gRPC call. + // For a pre-existing snapshot, this field will be filled with the "creation_time" + // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. + // If not specified, it indicates the creation time is unknown. + // The format of this field is a Unix nanoseconds time encoded as an int64. + // On Unix, the command `date +%s%N` returns the current time in nanoseconds + // since 1970-01-01 00:00:00 UTC. + // +optional + CreationTime *int64 `json:"creationTime,omitempty" protobuf:"varint,2,opt,name=creationTime"` + + // restoreSize represents the complete size of the snapshot in bytes. + // In dynamic snapshot creation case, this field will be filled in by the + // CSI snapshotter sidecar with the "size_bytes" value returned from CSI + // "CreateSnapshot" gRPC call. + // For a pre-existing snapshot, this field will be filled with the "size_bytes" + // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. + // When restoring a volume from this snapshot, the size of the volume MUST NOT + // be smaller than the restoreSize if it is specified, otherwise the restoration will fail. + // If not specified, it indicates that the size is unknown. + // +kubebuilder:validation:Minimum=0 + // +optional + RestoreSize *int64 `json:"restoreSize,omitempty" protobuf:"bytes,3,opt,name=restoreSize"` + + // readyToUse indicates if a snapshot is ready to be used to restore a volume. + // In dynamic snapshot creation case, this field will be filled in by the + // CSI snapshotter sidecar with the "ready_to_use" value returned from CSI + // "CreateSnapshot" gRPC call. + // For a pre-existing snapshot, this field will be filled with the "ready_to_use" + // value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, + // otherwise, this field will be set to "True". + // If not specified, it means the readiness of a snapshot is unknown. + // +optional. + ReadyToUse *bool `json:"readyToUse,omitempty" protobuf:"varint,4,opt,name=readyToUse"` + + // error is the last observed error during snapshot creation, if any. + // Upon success after retry, this error field will be cleared. + // +optional + Error *VolumeSnapshotError `json:"error,omitempty" protobuf:"bytes,5,opt,name=error,casttype=VolumeSnapshotError"` + + // VolumeGroupSnapshotHandle is the CSI "group_snapshot_id" of a group snapshot + // on the underlying storage system. + // +optional + VolumeGroupSnapshotHandle *string `json:"volumeGroupSnapshotHandle,omitempty" protobuf:"bytes,6,opt,name=volumeGroupSnapshotHandle"` +} + +// DeletionPolicy describes a policy for end-of-life maintenance of volume snapshot contents +// +kubebuilder:validation:Enum=Delete;Retain +type DeletionPolicy string + +const ( + // volumeSnapshotContentDelete means the snapshot will be deleted from the + // underlying storage system on release from its volume snapshot. + VolumeSnapshotContentDelete DeletionPolicy = "Delete" + + // volumeSnapshotContentRetain means the snapshot will be left in its current + // state on release from its volume snapshot. + VolumeSnapshotContentRetain DeletionPolicy = "Retain" +) + +// VolumeSnapshotError describes an error encountered during snapshot creation. +type VolumeSnapshotError struct { + // time is the timestamp when the error was encountered. + // +optional + Time *metav1.Time `json:"time,omitempty" protobuf:"bytes,1,opt,name=time"` + + // message is a string detailing the encountered error during snapshot + // creation if specified. + // NOTE: message may be logged, and it should not contain sensitive + // information. + // +optional + Message *string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/zz_generated.deepcopy.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/zz_generated.deepcopy.go new file mode 100644 index 0000000000..a590aef060 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1/zz_generated.deepcopy.go @@ -0,0 +1,441 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by deepcopy-gen. DO NOT EDIT. + +package v1 + +import ( + corev1 "k8s.io/api/core/v1" + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshot) DeepCopyInto(out *VolumeSnapshot) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + if in.Status != nil { + in, out := &in.Status, &out.Status + *out = new(VolumeSnapshotStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshot. +func (in *VolumeSnapshot) DeepCopy() *VolumeSnapshot { + if in == nil { + return nil + } + out := new(VolumeSnapshot) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeSnapshot) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotClass) DeepCopyInto(out *VolumeSnapshotClass) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Parameters != nil { + in, out := &in.Parameters, &out.Parameters + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotClass. +func (in *VolumeSnapshotClass) DeepCopy() *VolumeSnapshotClass { + if in == nil { + return nil + } + out := new(VolumeSnapshotClass) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeSnapshotClass) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotClassList) DeepCopyInto(out *VolumeSnapshotClassList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VolumeSnapshotClass, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotClassList. +func (in *VolumeSnapshotClassList) DeepCopy() *VolumeSnapshotClassList { + if in == nil { + return nil + } + out := new(VolumeSnapshotClassList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeSnapshotClassList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotContent) DeepCopyInto(out *VolumeSnapshotContent) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + if in.Status != nil { + in, out := &in.Status, &out.Status + *out = new(VolumeSnapshotContentStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotContent. +func (in *VolumeSnapshotContent) DeepCopy() *VolumeSnapshotContent { + if in == nil { + return nil + } + out := new(VolumeSnapshotContent) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeSnapshotContent) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotContentList) DeepCopyInto(out *VolumeSnapshotContentList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VolumeSnapshotContent, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotContentList. +func (in *VolumeSnapshotContentList) DeepCopy() *VolumeSnapshotContentList { + if in == nil { + return nil + } + out := new(VolumeSnapshotContentList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeSnapshotContentList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotContentSource) DeepCopyInto(out *VolumeSnapshotContentSource) { + *out = *in + if in.VolumeHandle != nil { + in, out := &in.VolumeHandle, &out.VolumeHandle + *out = new(string) + **out = **in + } + if in.SnapshotHandle != nil { + in, out := &in.SnapshotHandle, &out.SnapshotHandle + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotContentSource. +func (in *VolumeSnapshotContentSource) DeepCopy() *VolumeSnapshotContentSource { + if in == nil { + return nil + } + out := new(VolumeSnapshotContentSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotContentSpec) DeepCopyInto(out *VolumeSnapshotContentSpec) { + *out = *in + out.VolumeSnapshotRef = in.VolumeSnapshotRef + if in.VolumeSnapshotClassName != nil { + in, out := &in.VolumeSnapshotClassName, &out.VolumeSnapshotClassName + *out = new(string) + **out = **in + } + in.Source.DeepCopyInto(&out.Source) + if in.SourceVolumeMode != nil { + in, out := &in.SourceVolumeMode, &out.SourceVolumeMode + *out = new(corev1.PersistentVolumeMode) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotContentSpec. +func (in *VolumeSnapshotContentSpec) DeepCopy() *VolumeSnapshotContentSpec { + if in == nil { + return nil + } + out := new(VolumeSnapshotContentSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotContentStatus) DeepCopyInto(out *VolumeSnapshotContentStatus) { + *out = *in + if in.SnapshotHandle != nil { + in, out := &in.SnapshotHandle, &out.SnapshotHandle + *out = new(string) + **out = **in + } + if in.CreationTime != nil { + in, out := &in.CreationTime, &out.CreationTime + *out = new(int64) + **out = **in + } + if in.RestoreSize != nil { + in, out := &in.RestoreSize, &out.RestoreSize + *out = new(int64) + **out = **in + } + if in.ReadyToUse != nil { + in, out := &in.ReadyToUse, &out.ReadyToUse + *out = new(bool) + **out = **in + } + if in.Error != nil { + in, out := &in.Error, &out.Error + *out = new(VolumeSnapshotError) + (*in).DeepCopyInto(*out) + } + if in.VolumeGroupSnapshotHandle != nil { + in, out := &in.VolumeGroupSnapshotHandle, &out.VolumeGroupSnapshotHandle + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotContentStatus. +func (in *VolumeSnapshotContentStatus) DeepCopy() *VolumeSnapshotContentStatus { + if in == nil { + return nil + } + out := new(VolumeSnapshotContentStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotError) DeepCopyInto(out *VolumeSnapshotError) { + *out = *in + if in.Time != nil { + in, out := &in.Time, &out.Time + *out = (*in).DeepCopy() + } + if in.Message != nil { + in, out := &in.Message, &out.Message + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotError. +func (in *VolumeSnapshotError) DeepCopy() *VolumeSnapshotError { + if in == nil { + return nil + } + out := new(VolumeSnapshotError) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotList) DeepCopyInto(out *VolumeSnapshotList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VolumeSnapshot, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotList. +func (in *VolumeSnapshotList) DeepCopy() *VolumeSnapshotList { + if in == nil { + return nil + } + out := new(VolumeSnapshotList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VolumeSnapshotList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotSource) DeepCopyInto(out *VolumeSnapshotSource) { + *out = *in + if in.PersistentVolumeClaimName != nil { + in, out := &in.PersistentVolumeClaimName, &out.PersistentVolumeClaimName + *out = new(string) + **out = **in + } + if in.VolumeSnapshotContentName != nil { + in, out := &in.VolumeSnapshotContentName, &out.VolumeSnapshotContentName + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotSource. +func (in *VolumeSnapshotSource) DeepCopy() *VolumeSnapshotSource { + if in == nil { + return nil + } + out := new(VolumeSnapshotSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotSpec) DeepCopyInto(out *VolumeSnapshotSpec) { + *out = *in + in.Source.DeepCopyInto(&out.Source) + if in.VolumeSnapshotClassName != nil { + in, out := &in.VolumeSnapshotClassName, &out.VolumeSnapshotClassName + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotSpec. +func (in *VolumeSnapshotSpec) DeepCopy() *VolumeSnapshotSpec { + if in == nil { + return nil + } + out := new(VolumeSnapshotSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotStatus) DeepCopyInto(out *VolumeSnapshotStatus) { + *out = *in + if in.BoundVolumeSnapshotContentName != nil { + in, out := &in.BoundVolumeSnapshotContentName, &out.BoundVolumeSnapshotContentName + *out = new(string) + **out = **in + } + if in.CreationTime != nil { + in, out := &in.CreationTime, &out.CreationTime + *out = (*in).DeepCopy() + } + if in.ReadyToUse != nil { + in, out := &in.ReadyToUse, &out.ReadyToUse + *out = new(bool) + **out = **in + } + if in.RestoreSize != nil { + in, out := &in.RestoreSize, &out.RestoreSize + x := (*in).DeepCopy() + *out = &x + } + if in.Error != nil { + in, out := &in.Error, &out.Error + *out = new(VolumeSnapshotError) + (*in).DeepCopyInto(*out) + } + if in.VolumeGroupSnapshotName != nil { + in, out := &in.VolumeGroupSnapshotName, &out.VolumeGroupSnapshotName + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotStatus. +func (in *VolumeSnapshotStatus) DeepCopy() *VolumeSnapshotStatus { + if in == nil { + return nil + } + out := new(VolumeSnapshotStatus) + in.DeepCopyInto(out) + return out +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/clientset.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/clientset.go new file mode 100644 index 0000000000..050de3b875 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/clientset.go @@ -0,0 +1,133 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package versioned + +import ( + "fmt" + "net/http" + + groupsnapshotv1beta1 "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1" + snapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1" + discovery "k8s.io/client-go/discovery" + rest "k8s.io/client-go/rest" + flowcontrol "k8s.io/client-go/util/flowcontrol" +) + +type Interface interface { + Discovery() discovery.DiscoveryInterface + GroupsnapshotV1beta1() groupsnapshotv1beta1.GroupsnapshotV1beta1Interface + SnapshotV1() snapshotv1.SnapshotV1Interface +} + +// Clientset contains the clients for groups. +type Clientset struct { + *discovery.DiscoveryClient + groupsnapshotV1beta1 *groupsnapshotv1beta1.GroupsnapshotV1beta1Client + snapshotV1 *snapshotv1.SnapshotV1Client +} + +// GroupsnapshotV1beta1 retrieves the GroupsnapshotV1beta1Client +func (c *Clientset) GroupsnapshotV1beta1() groupsnapshotv1beta1.GroupsnapshotV1beta1Interface { + return c.groupsnapshotV1beta1 +} + +// SnapshotV1 retrieves the SnapshotV1Client +func (c *Clientset) SnapshotV1() snapshotv1.SnapshotV1Interface { + return c.snapshotV1 +} + +// Discovery retrieves the DiscoveryClient +func (c *Clientset) Discovery() discovery.DiscoveryInterface { + if c == nil { + return nil + } + return c.DiscoveryClient +} + +// NewForConfig creates a new Clientset for the given config. +// If config's RateLimiter is not set and QPS and Burst are acceptable, +// NewForConfig will generate a rate-limiter in configShallowCopy. +// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), +// where httpClient was generated with rest.HTTPClientFor(c). +func NewForConfig(c *rest.Config) (*Clientset, error) { + configShallowCopy := *c + + if configShallowCopy.UserAgent == "" { + configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent() + } + + // share the transport between all clients + httpClient, err := rest.HTTPClientFor(&configShallowCopy) + if err != nil { + return nil, err + } + + return NewForConfigAndClient(&configShallowCopy, httpClient) +} + +// NewForConfigAndClient creates a new Clientset for the given config and http client. +// Note the http client provided takes precedence over the configured transport values. +// If config's RateLimiter is not set and QPS and Burst are acceptable, +// NewForConfigAndClient will generate a rate-limiter in configShallowCopy. +func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error) { + configShallowCopy := *c + if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 { + if configShallowCopy.Burst <= 0 { + return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0") + } + configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst) + } + + var cs Clientset + var err error + cs.groupsnapshotV1beta1, err = groupsnapshotv1beta1.NewForConfigAndClient(&configShallowCopy, httpClient) + if err != nil { + return nil, err + } + cs.snapshotV1, err = snapshotv1.NewForConfigAndClient(&configShallowCopy, httpClient) + if err != nil { + return nil, err + } + + cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfigAndClient(&configShallowCopy, httpClient) + if err != nil { + return nil, err + } + return &cs, nil +} + +// NewForConfigOrDie creates a new Clientset for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *Clientset { + cs, err := NewForConfig(c) + if err != nil { + panic(err) + } + return cs +} + +// New creates a new Clientset for the given RESTClient. +func New(c rest.Interface) *Clientset { + var cs Clientset + cs.groupsnapshotV1beta1 = groupsnapshotv1beta1.New(c) + cs.snapshotV1 = snapshotv1.New(c) + + cs.DiscoveryClient = discovery.NewDiscoveryClient(c) + return &cs +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme/doc.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme/doc.go new file mode 100644 index 0000000000..0fe2de9138 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme/doc.go @@ -0,0 +1,20 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +// This package contains the scheme of the automatically generated clientset. +package scheme diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme/register.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme/register.go new file mode 100644 index 0000000000..6f8c4fdf00 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme/register.go @@ -0,0 +1,58 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package scheme + +import ( + groupsnapshotv1beta1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1" + snapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" + serializer "k8s.io/apimachinery/pkg/runtime/serializer" + utilruntime "k8s.io/apimachinery/pkg/util/runtime" +) + +var Scheme = runtime.NewScheme() +var Codecs = serializer.NewCodecFactory(Scheme) +var ParameterCodec = runtime.NewParameterCodec(Scheme) +var localSchemeBuilder = runtime.SchemeBuilder{ + groupsnapshotv1beta1.AddToScheme, + snapshotv1.AddToScheme, +} + +// AddToScheme adds all types of this clientset into the given scheme. This allows composition +// of clientsets, like in: +// +// import ( +// "k8s.io/client-go/kubernetes" +// clientsetscheme "k8s.io/client-go/kubernetes/scheme" +// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" +// ) +// +// kclientset, _ := kubernetes.NewForConfig(c) +// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) +// +// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types +// correctly. +var AddToScheme = localSchemeBuilder.AddToScheme + +func init() { + v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"}) + utilruntime.Must(AddToScheme(Scheme)) +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/doc.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/doc.go new file mode 100644 index 0000000000..c70a3f5319 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/doc.go @@ -0,0 +1,20 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +// This package has the automatically generated typed clients. +package v1beta1 diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/generated_expansion.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/generated_expansion.go new file mode 100644 index 0000000000..10f62712e4 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/generated_expansion.go @@ -0,0 +1,25 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1beta1 + +type VolumeGroupSnapshotExpansion interface{} + +type VolumeGroupSnapshotClassExpansion interface{} + +type VolumeGroupSnapshotContentExpansion interface{} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshot.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshot.go new file mode 100644 index 0000000000..8687a330f8 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshot.go @@ -0,0 +1,195 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1beta1 + +import ( + "context" + "time" + + v1beta1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1" + scheme "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// VolumeGroupSnapshotsGetter has a method to return a VolumeGroupSnapshotInterface. +// A group's client should implement this interface. +type VolumeGroupSnapshotsGetter interface { + VolumeGroupSnapshots(namespace string) VolumeGroupSnapshotInterface +} + +// VolumeGroupSnapshotInterface has methods to work with VolumeGroupSnapshot resources. +type VolumeGroupSnapshotInterface interface { + Create(ctx context.Context, volumeGroupSnapshot *v1beta1.VolumeGroupSnapshot, opts v1.CreateOptions) (*v1beta1.VolumeGroupSnapshot, error) + Update(ctx context.Context, volumeGroupSnapshot *v1beta1.VolumeGroupSnapshot, opts v1.UpdateOptions) (*v1beta1.VolumeGroupSnapshot, error) + UpdateStatus(ctx context.Context, volumeGroupSnapshot *v1beta1.VolumeGroupSnapshot, opts v1.UpdateOptions) (*v1beta1.VolumeGroupSnapshot, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.VolumeGroupSnapshot, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.VolumeGroupSnapshotList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VolumeGroupSnapshot, err error) + VolumeGroupSnapshotExpansion +} + +// volumeGroupSnapshots implements VolumeGroupSnapshotInterface +type volumeGroupSnapshots struct { + client rest.Interface + ns string +} + +// newVolumeGroupSnapshots returns a VolumeGroupSnapshots +func newVolumeGroupSnapshots(c *GroupsnapshotV1beta1Client, namespace string) *volumeGroupSnapshots { + return &volumeGroupSnapshots{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the volumeGroupSnapshot, and returns the corresponding volumeGroupSnapshot object, and an error if there is any. +func (c *volumeGroupSnapshots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.VolumeGroupSnapshot, err error) { + result = &v1beta1.VolumeGroupSnapshot{} + err = c.client.Get(). + Namespace(c.ns). + Resource("volumegroupsnapshots"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of VolumeGroupSnapshots that match those selectors. +func (c *volumeGroupSnapshots) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.VolumeGroupSnapshotList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1beta1.VolumeGroupSnapshotList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("volumegroupsnapshots"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested volumeGroupSnapshots. +func (c *volumeGroupSnapshots) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("volumegroupsnapshots"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a volumeGroupSnapshot and creates it. Returns the server's representation of the volumeGroupSnapshot, and an error, if there is any. +func (c *volumeGroupSnapshots) Create(ctx context.Context, volumeGroupSnapshot *v1beta1.VolumeGroupSnapshot, opts v1.CreateOptions) (result *v1beta1.VolumeGroupSnapshot, err error) { + result = &v1beta1.VolumeGroupSnapshot{} + err = c.client.Post(). + Namespace(c.ns). + Resource("volumegroupsnapshots"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeGroupSnapshot). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a volumeGroupSnapshot and updates it. Returns the server's representation of the volumeGroupSnapshot, and an error, if there is any. +func (c *volumeGroupSnapshots) Update(ctx context.Context, volumeGroupSnapshot *v1beta1.VolumeGroupSnapshot, opts v1.UpdateOptions) (result *v1beta1.VolumeGroupSnapshot, err error) { + result = &v1beta1.VolumeGroupSnapshot{} + err = c.client.Put(). + Namespace(c.ns). + Resource("volumegroupsnapshots"). + Name(volumeGroupSnapshot.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeGroupSnapshot). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *volumeGroupSnapshots) UpdateStatus(ctx context.Context, volumeGroupSnapshot *v1beta1.VolumeGroupSnapshot, opts v1.UpdateOptions) (result *v1beta1.VolumeGroupSnapshot, err error) { + result = &v1beta1.VolumeGroupSnapshot{} + err = c.client.Put(). + Namespace(c.ns). + Resource("volumegroupsnapshots"). + Name(volumeGroupSnapshot.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeGroupSnapshot). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the volumeGroupSnapshot and deletes it. Returns an error if one occurs. +func (c *volumeGroupSnapshots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("volumegroupsnapshots"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *volumeGroupSnapshots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("volumegroupsnapshots"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched volumeGroupSnapshot. +func (c *volumeGroupSnapshots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VolumeGroupSnapshot, err error) { + result = &v1beta1.VolumeGroupSnapshot{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("volumegroupsnapshots"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshot_client.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshot_client.go new file mode 100644 index 0000000000..49ecc7cf5e --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshot_client.go @@ -0,0 +1,117 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1beta1 + +import ( + "net/http" + + v1beta1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1" + "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme" + rest "k8s.io/client-go/rest" +) + +type GroupsnapshotV1beta1Interface interface { + RESTClient() rest.Interface + VolumeGroupSnapshotsGetter + VolumeGroupSnapshotClassesGetter + VolumeGroupSnapshotContentsGetter +} + +// GroupsnapshotV1beta1Client is used to interact with features provided by the groupsnapshot.storage.k8s.io group. +type GroupsnapshotV1beta1Client struct { + restClient rest.Interface +} + +func (c *GroupsnapshotV1beta1Client) VolumeGroupSnapshots(namespace string) VolumeGroupSnapshotInterface { + return newVolumeGroupSnapshots(c, namespace) +} + +func (c *GroupsnapshotV1beta1Client) VolumeGroupSnapshotClasses() VolumeGroupSnapshotClassInterface { + return newVolumeGroupSnapshotClasses(c) +} + +func (c *GroupsnapshotV1beta1Client) VolumeGroupSnapshotContents() VolumeGroupSnapshotContentInterface { + return newVolumeGroupSnapshotContents(c) +} + +// NewForConfig creates a new GroupsnapshotV1beta1Client for the given config. +// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), +// where httpClient was generated with rest.HTTPClientFor(c). +func NewForConfig(c *rest.Config) (*GroupsnapshotV1beta1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + httpClient, err := rest.HTTPClientFor(&config) + if err != nil { + return nil, err + } + return NewForConfigAndClient(&config, httpClient) +} + +// NewForConfigAndClient creates a new GroupsnapshotV1beta1Client for the given config and http client. +// Note the http client provided takes precedence over the configured transport values. +func NewForConfigAndClient(c *rest.Config, h *http.Client) (*GroupsnapshotV1beta1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientForConfigAndClient(&config, h) + if err != nil { + return nil, err + } + return &GroupsnapshotV1beta1Client{client}, nil +} + +// NewForConfigOrDie creates a new GroupsnapshotV1beta1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *GroupsnapshotV1beta1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new GroupsnapshotV1beta1Client for the given RESTClient. +func New(c rest.Interface) *GroupsnapshotV1beta1Client { + return &GroupsnapshotV1beta1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv := v1beta1.SchemeGroupVersion + config.GroupVersion = &gv + config.APIPath = "/apis" + config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *GroupsnapshotV1beta1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshotclass.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshotclass.go new file mode 100644 index 0000000000..642cedd705 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshotclass.go @@ -0,0 +1,168 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1beta1 + +import ( + "context" + "time" + + v1beta1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1" + scheme "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// VolumeGroupSnapshotClassesGetter has a method to return a VolumeGroupSnapshotClassInterface. +// A group's client should implement this interface. +type VolumeGroupSnapshotClassesGetter interface { + VolumeGroupSnapshotClasses() VolumeGroupSnapshotClassInterface +} + +// VolumeGroupSnapshotClassInterface has methods to work with VolumeGroupSnapshotClass resources. +type VolumeGroupSnapshotClassInterface interface { + Create(ctx context.Context, volumeGroupSnapshotClass *v1beta1.VolumeGroupSnapshotClass, opts v1.CreateOptions) (*v1beta1.VolumeGroupSnapshotClass, error) + Update(ctx context.Context, volumeGroupSnapshotClass *v1beta1.VolumeGroupSnapshotClass, opts v1.UpdateOptions) (*v1beta1.VolumeGroupSnapshotClass, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.VolumeGroupSnapshotClass, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.VolumeGroupSnapshotClassList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VolumeGroupSnapshotClass, err error) + VolumeGroupSnapshotClassExpansion +} + +// volumeGroupSnapshotClasses implements VolumeGroupSnapshotClassInterface +type volumeGroupSnapshotClasses struct { + client rest.Interface +} + +// newVolumeGroupSnapshotClasses returns a VolumeGroupSnapshotClasses +func newVolumeGroupSnapshotClasses(c *GroupsnapshotV1beta1Client) *volumeGroupSnapshotClasses { + return &volumeGroupSnapshotClasses{ + client: c.RESTClient(), + } +} + +// Get takes name of the volumeGroupSnapshotClass, and returns the corresponding volumeGroupSnapshotClass object, and an error if there is any. +func (c *volumeGroupSnapshotClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.VolumeGroupSnapshotClass, err error) { + result = &v1beta1.VolumeGroupSnapshotClass{} + err = c.client.Get(). + Resource("volumegroupsnapshotclasses"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of VolumeGroupSnapshotClasses that match those selectors. +func (c *volumeGroupSnapshotClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.VolumeGroupSnapshotClassList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1beta1.VolumeGroupSnapshotClassList{} + err = c.client.Get(). + Resource("volumegroupsnapshotclasses"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested volumeGroupSnapshotClasses. +func (c *volumeGroupSnapshotClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Resource("volumegroupsnapshotclasses"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a volumeGroupSnapshotClass and creates it. Returns the server's representation of the volumeGroupSnapshotClass, and an error, if there is any. +func (c *volumeGroupSnapshotClasses) Create(ctx context.Context, volumeGroupSnapshotClass *v1beta1.VolumeGroupSnapshotClass, opts v1.CreateOptions) (result *v1beta1.VolumeGroupSnapshotClass, err error) { + result = &v1beta1.VolumeGroupSnapshotClass{} + err = c.client.Post(). + Resource("volumegroupsnapshotclasses"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeGroupSnapshotClass). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a volumeGroupSnapshotClass and updates it. Returns the server's representation of the volumeGroupSnapshotClass, and an error, if there is any. +func (c *volumeGroupSnapshotClasses) Update(ctx context.Context, volumeGroupSnapshotClass *v1beta1.VolumeGroupSnapshotClass, opts v1.UpdateOptions) (result *v1beta1.VolumeGroupSnapshotClass, err error) { + result = &v1beta1.VolumeGroupSnapshotClass{} + err = c.client.Put(). + Resource("volumegroupsnapshotclasses"). + Name(volumeGroupSnapshotClass.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeGroupSnapshotClass). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the volumeGroupSnapshotClass and deletes it. Returns an error if one occurs. +func (c *volumeGroupSnapshotClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Resource("volumegroupsnapshotclasses"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *volumeGroupSnapshotClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Resource("volumegroupsnapshotclasses"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched volumeGroupSnapshotClass. +func (c *volumeGroupSnapshotClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VolumeGroupSnapshotClass, err error) { + result = &v1beta1.VolumeGroupSnapshotClass{} + err = c.client.Patch(pt). + Resource("volumegroupsnapshotclasses"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshotcontent.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshotcontent.go new file mode 100644 index 0000000000..eafada5895 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1/volumegroupsnapshotcontent.go @@ -0,0 +1,184 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1beta1 + +import ( + "context" + "time" + + v1beta1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1" + scheme "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// VolumeGroupSnapshotContentsGetter has a method to return a VolumeGroupSnapshotContentInterface. +// A group's client should implement this interface. +type VolumeGroupSnapshotContentsGetter interface { + VolumeGroupSnapshotContents() VolumeGroupSnapshotContentInterface +} + +// VolumeGroupSnapshotContentInterface has methods to work with VolumeGroupSnapshotContent resources. +type VolumeGroupSnapshotContentInterface interface { + Create(ctx context.Context, volumeGroupSnapshotContent *v1beta1.VolumeGroupSnapshotContent, opts v1.CreateOptions) (*v1beta1.VolumeGroupSnapshotContent, error) + Update(ctx context.Context, volumeGroupSnapshotContent *v1beta1.VolumeGroupSnapshotContent, opts v1.UpdateOptions) (*v1beta1.VolumeGroupSnapshotContent, error) + UpdateStatus(ctx context.Context, volumeGroupSnapshotContent *v1beta1.VolumeGroupSnapshotContent, opts v1.UpdateOptions) (*v1beta1.VolumeGroupSnapshotContent, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.VolumeGroupSnapshotContent, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.VolumeGroupSnapshotContentList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VolumeGroupSnapshotContent, err error) + VolumeGroupSnapshotContentExpansion +} + +// volumeGroupSnapshotContents implements VolumeGroupSnapshotContentInterface +type volumeGroupSnapshotContents struct { + client rest.Interface +} + +// newVolumeGroupSnapshotContents returns a VolumeGroupSnapshotContents +func newVolumeGroupSnapshotContents(c *GroupsnapshotV1beta1Client) *volumeGroupSnapshotContents { + return &volumeGroupSnapshotContents{ + client: c.RESTClient(), + } +} + +// Get takes name of the volumeGroupSnapshotContent, and returns the corresponding volumeGroupSnapshotContent object, and an error if there is any. +func (c *volumeGroupSnapshotContents) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.VolumeGroupSnapshotContent, err error) { + result = &v1beta1.VolumeGroupSnapshotContent{} + err = c.client.Get(). + Resource("volumegroupsnapshotcontents"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of VolumeGroupSnapshotContents that match those selectors. +func (c *volumeGroupSnapshotContents) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.VolumeGroupSnapshotContentList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1beta1.VolumeGroupSnapshotContentList{} + err = c.client.Get(). + Resource("volumegroupsnapshotcontents"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested volumeGroupSnapshotContents. +func (c *volumeGroupSnapshotContents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Resource("volumegroupsnapshotcontents"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a volumeGroupSnapshotContent and creates it. Returns the server's representation of the volumeGroupSnapshotContent, and an error, if there is any. +func (c *volumeGroupSnapshotContents) Create(ctx context.Context, volumeGroupSnapshotContent *v1beta1.VolumeGroupSnapshotContent, opts v1.CreateOptions) (result *v1beta1.VolumeGroupSnapshotContent, err error) { + result = &v1beta1.VolumeGroupSnapshotContent{} + err = c.client.Post(). + Resource("volumegroupsnapshotcontents"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeGroupSnapshotContent). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a volumeGroupSnapshotContent and updates it. Returns the server's representation of the volumeGroupSnapshotContent, and an error, if there is any. +func (c *volumeGroupSnapshotContents) Update(ctx context.Context, volumeGroupSnapshotContent *v1beta1.VolumeGroupSnapshotContent, opts v1.UpdateOptions) (result *v1beta1.VolumeGroupSnapshotContent, err error) { + result = &v1beta1.VolumeGroupSnapshotContent{} + err = c.client.Put(). + Resource("volumegroupsnapshotcontents"). + Name(volumeGroupSnapshotContent.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeGroupSnapshotContent). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *volumeGroupSnapshotContents) UpdateStatus(ctx context.Context, volumeGroupSnapshotContent *v1beta1.VolumeGroupSnapshotContent, opts v1.UpdateOptions) (result *v1beta1.VolumeGroupSnapshotContent, err error) { + result = &v1beta1.VolumeGroupSnapshotContent{} + err = c.client.Put(). + Resource("volumegroupsnapshotcontents"). + Name(volumeGroupSnapshotContent.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeGroupSnapshotContent). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the volumeGroupSnapshotContent and deletes it. Returns an error if one occurs. +func (c *volumeGroupSnapshotContents) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Resource("volumegroupsnapshotcontents"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *volumeGroupSnapshotContents) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Resource("volumegroupsnapshotcontents"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched volumeGroupSnapshotContent. +func (c *volumeGroupSnapshotContents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VolumeGroupSnapshotContent, err error) { + result = &v1beta1.VolumeGroupSnapshotContent{} + err = c.client.Patch(pt). + Resource("volumegroupsnapshotcontents"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/doc.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/doc.go new file mode 100644 index 0000000000..03b25c753e --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/doc.go @@ -0,0 +1,20 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +// This package has the automatically generated typed clients. +package v1 diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/generated_expansion.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/generated_expansion.go new file mode 100644 index 0000000000..c52fe570ed --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/generated_expansion.go @@ -0,0 +1,25 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +type VolumeSnapshotExpansion interface{} + +type VolumeSnapshotClassExpansion interface{} + +type VolumeSnapshotContentExpansion interface{} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot.go new file mode 100644 index 0000000000..c99b491750 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot.go @@ -0,0 +1,195 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + "context" + "time" + + v1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" + scheme "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// VolumeSnapshotsGetter has a method to return a VolumeSnapshotInterface. +// A group's client should implement this interface. +type VolumeSnapshotsGetter interface { + VolumeSnapshots(namespace string) VolumeSnapshotInterface +} + +// VolumeSnapshotInterface has methods to work with VolumeSnapshot resources. +type VolumeSnapshotInterface interface { + Create(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.CreateOptions) (*v1.VolumeSnapshot, error) + Update(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.UpdateOptions) (*v1.VolumeSnapshot, error) + UpdateStatus(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.UpdateOptions) (*v1.VolumeSnapshot, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.VolumeSnapshot, error) + List(ctx context.Context, opts metav1.ListOptions) (*v1.VolumeSnapshotList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshot, err error) + VolumeSnapshotExpansion +} + +// volumeSnapshots implements VolumeSnapshotInterface +type volumeSnapshots struct { + client rest.Interface + ns string +} + +// newVolumeSnapshots returns a VolumeSnapshots +func newVolumeSnapshots(c *SnapshotV1Client, namespace string) *volumeSnapshots { + return &volumeSnapshots{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the volumeSnapshot, and returns the corresponding volumeSnapshot object, and an error if there is any. +func (c *volumeSnapshots) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshot, err error) { + result = &v1.VolumeSnapshot{} + err = c.client.Get(). + Namespace(c.ns). + Resource("volumesnapshots"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of VolumeSnapshots that match those selectors. +func (c *volumeSnapshots) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1.VolumeSnapshotList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("volumesnapshots"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested volumeSnapshots. +func (c *volumeSnapshots) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("volumesnapshots"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a volumeSnapshot and creates it. Returns the server's representation of the volumeSnapshot, and an error, if there is any. +func (c *volumeSnapshots) Create(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.CreateOptions) (result *v1.VolumeSnapshot, err error) { + result = &v1.VolumeSnapshot{} + err = c.client.Post(). + Namespace(c.ns). + Resource("volumesnapshots"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeSnapshot). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a volumeSnapshot and updates it. Returns the server's representation of the volumeSnapshot, and an error, if there is any. +func (c *volumeSnapshots) Update(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.UpdateOptions) (result *v1.VolumeSnapshot, err error) { + result = &v1.VolumeSnapshot{} + err = c.client.Put(). + Namespace(c.ns). + Resource("volumesnapshots"). + Name(volumeSnapshot.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeSnapshot). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *volumeSnapshots) UpdateStatus(ctx context.Context, volumeSnapshot *v1.VolumeSnapshot, opts metav1.UpdateOptions) (result *v1.VolumeSnapshot, err error) { + result = &v1.VolumeSnapshot{} + err = c.client.Put(). + Namespace(c.ns). + Resource("volumesnapshots"). + Name(volumeSnapshot.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeSnapshot). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the volumeSnapshot and deletes it. Returns an error if one occurs. +func (c *volumeSnapshots) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("volumesnapshots"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *volumeSnapshots) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("volumesnapshots"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched volumeSnapshot. +func (c *volumeSnapshots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshot, err error) { + result = &v1.VolumeSnapshot{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("volumesnapshots"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot_client.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot_client.go new file mode 100644 index 0000000000..877208fd6c --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshot_client.go @@ -0,0 +1,117 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + "net/http" + + v1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" + "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme" + rest "k8s.io/client-go/rest" +) + +type SnapshotV1Interface interface { + RESTClient() rest.Interface + VolumeSnapshotsGetter + VolumeSnapshotClassesGetter + VolumeSnapshotContentsGetter +} + +// SnapshotV1Client is used to interact with features provided by the snapshot.storage.k8s.io group. +type SnapshotV1Client struct { + restClient rest.Interface +} + +func (c *SnapshotV1Client) VolumeSnapshots(namespace string) VolumeSnapshotInterface { + return newVolumeSnapshots(c, namespace) +} + +func (c *SnapshotV1Client) VolumeSnapshotClasses() VolumeSnapshotClassInterface { + return newVolumeSnapshotClasses(c) +} + +func (c *SnapshotV1Client) VolumeSnapshotContents() VolumeSnapshotContentInterface { + return newVolumeSnapshotContents(c) +} + +// NewForConfig creates a new SnapshotV1Client for the given config. +// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), +// where httpClient was generated with rest.HTTPClientFor(c). +func NewForConfig(c *rest.Config) (*SnapshotV1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + httpClient, err := rest.HTTPClientFor(&config) + if err != nil { + return nil, err + } + return NewForConfigAndClient(&config, httpClient) +} + +// NewForConfigAndClient creates a new SnapshotV1Client for the given config and http client. +// Note the http client provided takes precedence over the configured transport values. +func NewForConfigAndClient(c *rest.Config, h *http.Client) (*SnapshotV1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientForConfigAndClient(&config, h) + if err != nil { + return nil, err + } + return &SnapshotV1Client{client}, nil +} + +// NewForConfigOrDie creates a new SnapshotV1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *SnapshotV1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new SnapshotV1Client for the given RESTClient. +func New(c rest.Interface) *SnapshotV1Client { + return &SnapshotV1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv := v1.SchemeGroupVersion + config.GroupVersion = &gv + config.APIPath = "/apis" + config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *SnapshotV1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotclass.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotclass.go new file mode 100644 index 0000000000..5fa38735a8 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotclass.go @@ -0,0 +1,168 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + "context" + "time" + + v1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" + scheme "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// VolumeSnapshotClassesGetter has a method to return a VolumeSnapshotClassInterface. +// A group's client should implement this interface. +type VolumeSnapshotClassesGetter interface { + VolumeSnapshotClasses() VolumeSnapshotClassInterface +} + +// VolumeSnapshotClassInterface has methods to work with VolumeSnapshotClass resources. +type VolumeSnapshotClassInterface interface { + Create(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, opts metav1.CreateOptions) (*v1.VolumeSnapshotClass, error) + Update(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, opts metav1.UpdateOptions) (*v1.VolumeSnapshotClass, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.VolumeSnapshotClass, error) + List(ctx context.Context, opts metav1.ListOptions) (*v1.VolumeSnapshotClassList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshotClass, err error) + VolumeSnapshotClassExpansion +} + +// volumeSnapshotClasses implements VolumeSnapshotClassInterface +type volumeSnapshotClasses struct { + client rest.Interface +} + +// newVolumeSnapshotClasses returns a VolumeSnapshotClasses +func newVolumeSnapshotClasses(c *SnapshotV1Client) *volumeSnapshotClasses { + return &volumeSnapshotClasses{ + client: c.RESTClient(), + } +} + +// Get takes name of the volumeSnapshotClass, and returns the corresponding volumeSnapshotClass object, and an error if there is any. +func (c *volumeSnapshotClasses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshotClass, err error) { + result = &v1.VolumeSnapshotClass{} + err = c.client.Get(). + Resource("volumesnapshotclasses"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of VolumeSnapshotClasses that match those selectors. +func (c *volumeSnapshotClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotClassList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1.VolumeSnapshotClassList{} + err = c.client.Get(). + Resource("volumesnapshotclasses"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested volumeSnapshotClasses. +func (c *volumeSnapshotClasses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Resource("volumesnapshotclasses"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a volumeSnapshotClass and creates it. Returns the server's representation of the volumeSnapshotClass, and an error, if there is any. +func (c *volumeSnapshotClasses) Create(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, opts metav1.CreateOptions) (result *v1.VolumeSnapshotClass, err error) { + result = &v1.VolumeSnapshotClass{} + err = c.client.Post(). + Resource("volumesnapshotclasses"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeSnapshotClass). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a volumeSnapshotClass and updates it. Returns the server's representation of the volumeSnapshotClass, and an error, if there is any. +func (c *volumeSnapshotClasses) Update(ctx context.Context, volumeSnapshotClass *v1.VolumeSnapshotClass, opts metav1.UpdateOptions) (result *v1.VolumeSnapshotClass, err error) { + result = &v1.VolumeSnapshotClass{} + err = c.client.Put(). + Resource("volumesnapshotclasses"). + Name(volumeSnapshotClass.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeSnapshotClass). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the volumeSnapshotClass and deletes it. Returns an error if one occurs. +func (c *volumeSnapshotClasses) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { + return c.client.Delete(). + Resource("volumesnapshotclasses"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *volumeSnapshotClasses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Resource("volumesnapshotclasses"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched volumeSnapshotClass. +func (c *volumeSnapshotClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshotClass, err error) { + result = &v1.VolumeSnapshotClass{} + err = c.client.Patch(pt). + Resource("volumesnapshotclasses"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotcontent.go b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotcontent.go new file mode 100644 index 0000000000..d425cb3db5 --- /dev/null +++ b/vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1/volumesnapshotcontent.go @@ -0,0 +1,184 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + "context" + "time" + + v1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" + scheme "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// VolumeSnapshotContentsGetter has a method to return a VolumeSnapshotContentInterface. +// A group's client should implement this interface. +type VolumeSnapshotContentsGetter interface { + VolumeSnapshotContents() VolumeSnapshotContentInterface +} + +// VolumeSnapshotContentInterface has methods to work with VolumeSnapshotContent resources. +type VolumeSnapshotContentInterface interface { + Create(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.CreateOptions) (*v1.VolumeSnapshotContent, error) + Update(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.UpdateOptions) (*v1.VolumeSnapshotContent, error) + UpdateStatus(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.UpdateOptions) (*v1.VolumeSnapshotContent, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.VolumeSnapshotContent, error) + List(ctx context.Context, opts metav1.ListOptions) (*v1.VolumeSnapshotContentList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshotContent, err error) + VolumeSnapshotContentExpansion +} + +// volumeSnapshotContents implements VolumeSnapshotContentInterface +type volumeSnapshotContents struct { + client rest.Interface +} + +// newVolumeSnapshotContents returns a VolumeSnapshotContents +func newVolumeSnapshotContents(c *SnapshotV1Client) *volumeSnapshotContents { + return &volumeSnapshotContents{ + client: c.RESTClient(), + } +} + +// Get takes name of the volumeSnapshotContent, and returns the corresponding volumeSnapshotContent object, and an error if there is any. +func (c *volumeSnapshotContents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VolumeSnapshotContent, err error) { + result = &v1.VolumeSnapshotContent{} + err = c.client.Get(). + Resource("volumesnapshotcontents"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of VolumeSnapshotContents that match those selectors. +func (c *volumeSnapshotContents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VolumeSnapshotContentList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1.VolumeSnapshotContentList{} + err = c.client.Get(). + Resource("volumesnapshotcontents"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested volumeSnapshotContents. +func (c *volumeSnapshotContents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Resource("volumesnapshotcontents"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a volumeSnapshotContent and creates it. Returns the server's representation of the volumeSnapshotContent, and an error, if there is any. +func (c *volumeSnapshotContents) Create(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.CreateOptions) (result *v1.VolumeSnapshotContent, err error) { + result = &v1.VolumeSnapshotContent{} + err = c.client.Post(). + Resource("volumesnapshotcontents"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeSnapshotContent). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a volumeSnapshotContent and updates it. Returns the server's representation of the volumeSnapshotContent, and an error, if there is any. +func (c *volumeSnapshotContents) Update(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.UpdateOptions) (result *v1.VolumeSnapshotContent, err error) { + result = &v1.VolumeSnapshotContent{} + err = c.client.Put(). + Resource("volumesnapshotcontents"). + Name(volumeSnapshotContent.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeSnapshotContent). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *volumeSnapshotContents) UpdateStatus(ctx context.Context, volumeSnapshotContent *v1.VolumeSnapshotContent, opts metav1.UpdateOptions) (result *v1.VolumeSnapshotContent, err error) { + result = &v1.VolumeSnapshotContent{} + err = c.client.Put(). + Resource("volumesnapshotcontents"). + Name(volumeSnapshotContent.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(volumeSnapshotContent). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the volumeSnapshotContent and deletes it. Returns an error if one occurs. +func (c *volumeSnapshotContents) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { + return c.client.Delete(). + Resource("volumesnapshotcontents"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *volumeSnapshotContents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Resource("volumesnapshotcontents"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched volumeSnapshotContent. +func (c *volumeSnapshotContents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VolumeSnapshotContent, err error) { + result = &v1.VolumeSnapshotContent{} + err = c.client.Patch(pt). + Resource("volumesnapshotcontents"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/common-controller/groupsnapshot_controller_helper.go b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/common-controller/groupsnapshot_controller_helper.go deleted file mode 100644 index c6f91ed4b9..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/common-controller/groupsnapshot_controller_helper.go +++ /dev/null @@ -1,1653 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package common_controller - -import ( - "context" - "crypto/sha256" - "errors" - "fmt" - "time" - - v1 "k8s.io/api/core/v1" - apierrs "k8s.io/apimachinery/pkg/api/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/apimachinery/pkg/types" - "k8s.io/client-go/kubernetes/scheme" - ref "k8s.io/client-go/tools/reference" - klog "k8s.io/klog/v2" - - crdv1beta1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1" - crdv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" - "github.com/kubernetes-csi/external-snapshotter/v8/pkg/metrics" - "github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils" -) - -func (ctrl *csiSnapshotCommonController) storeGroupSnapshotUpdate(groupsnapshot interface{}) (bool, error) { - return utils.StoreObjectUpdate(ctrl.groupSnapshotStore, groupsnapshot, "groupsnapshot") -} - -func (ctrl *csiSnapshotCommonController) storeGroupSnapshotContentUpdate(groupsnapshotcontent interface{}) (bool, error) { - return utils.StoreObjectUpdate(ctrl.groupSnapshotContentStore, groupsnapshotcontent, "groupsnapshotcontent") -} - -// getGroupSnapshotClass is a helper function to get group snapshot class from the group snapshot class name. -func (ctrl *csiSnapshotCommonController) getGroupSnapshotClass(className string) (*crdv1beta1.VolumeGroupSnapshotClass, error) { - klog.V(5).Infof("getGroupSnapshotClass: VolumeGroupSnapshotClassName [%s]", className) - - groupSnapshotClass, err := ctrl.groupSnapshotClassLister.Get(className) - if err != nil { - klog.Errorf("failed to retrieve group snapshot class %s from the informer: %q", className, err) - return nil, err - } - - return groupSnapshotClass, nil -} - -// updateGroupSnapshotErrorStatusWithEvent saves new groupsnapshot.Status to API -// server and emits given event on the group snapshot. It saves the status and -// emits the event only when the status has actually changed from the version -// saved in API server. -// -// Parameters: -// -// - groupSnapshot - group snapshot to update -// - setReadyToFalse bool - indicates whether to set the group snapshot's -// ReadyToUse status to false. -// if true, ReadyToUse will be set to false; -// otherwise, ReadyToUse will not be changed. -// - eventtype, reason, message - event to send, see EventRecorder.Event() -func (ctrl *csiSnapshotCommonController) updateGroupSnapshotErrorStatusWithEvent(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, setReadyToFalse bool, eventtype, reason, message string) error { - klog.V(5).Infof("updateGroupSnapshotErrorStatusWithEvent[%s]", utils.GroupSnapshotKey(groupSnapshot)) - - if groupSnapshot.Status != nil && groupSnapshot.Status.Error != nil && *groupSnapshot.Status.Error.Message == message { - klog.V(4).Infof("updateGroupSnapshotErrorStatusWithEvent[%s]: the same error %v is already set", groupSnapshot.Name, groupSnapshot.Status.Error) - return nil - } - groupSnapshotClone := groupSnapshot.DeepCopy() - if groupSnapshotClone.Status == nil { - groupSnapshotClone.Status = &crdv1beta1.VolumeGroupSnapshotStatus{} - } - statusError := &crdv1.VolumeSnapshotError{ - Time: &metav1.Time{ - Time: time.Now(), - }, - Message: &message, - } - groupSnapshotClone.Status.Error = statusError - // Only update ReadyToUse in VolumeGroupSnapshot's Status to false if setReadyToFalse is true. - if setReadyToFalse { - ready := false - groupSnapshotClone.Status.ReadyToUse = &ready - } - newSnapshot, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshotClone.Namespace).UpdateStatus(context.TODO(), groupSnapshotClone, metav1.UpdateOptions{}) - - // Emit the event even if the status update fails so that user can see the error - ctrl.eventRecorder.Event(newSnapshot, eventtype, reason, message) - - if err != nil { - klog.V(4).Infof("updating VolumeGroupSnapshot[%s] error status failed %v", utils.GroupSnapshotKey(groupSnapshot), err) - return err - } - - _, err = ctrl.storeGroupSnapshotUpdate(newSnapshot) - if err != nil { - klog.V(4).Infof("updating VolumeGroupSnapshot[%s] error status: cannot update internal cache %v", utils.GroupSnapshotKey(groupSnapshot), err) - return err - } - - return nil -} - -// SetDefaultGroupSnapshotClass is a helper function to figure out the default -// group snapshot class. -// For pre-provisioned case, it's an no-op. -// For dynamic provisioning, it gets the default GroupSnapshotClasses in the -// system if there is any (could be multiple), and finds the one with the same -// CSI Driver as a PV from which a group snapshot will be taken. -func (ctrl *csiSnapshotCommonController) SetDefaultGroupSnapshotClass(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshotClass, *crdv1beta1.VolumeGroupSnapshot, error) { - klog.V(5).Infof("SetDefaultGroupSnapshotClass for group snapshot [%s]", groupSnapshot.Name) - - if groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil { - // don't return error for pre-provisioned group snapshots - klog.V(5).Infof("Don't need to find GroupSnapshotClass for pre-provisioned group snapshot [%s]", groupSnapshot.Name) - return nil, groupSnapshot, nil - } - - // Find default group snapshot class if available - list, err := ctrl.groupSnapshotClassLister.List(labels.Everything()) - if err != nil { - return nil, groupSnapshot, err - } - - pvDriver, err := ctrl.pvDriverFromGroupSnapshot(groupSnapshot) - if err != nil { - klog.Errorf("failed to get pv csi driver from group snapshot %s/%s: %q", groupSnapshot.Namespace, groupSnapshot.Name, err) - return nil, groupSnapshot, err - } - - defaultClasses := []*crdv1beta1.VolumeGroupSnapshotClass{} - for _, groupSnapshotClass := range list { - if utils.IsVolumeGroupSnapshotClassDefaultAnnotation(groupSnapshotClass.ObjectMeta) && pvDriver == groupSnapshotClass.Driver { - defaultClasses = append(defaultClasses, groupSnapshotClass) - klog.V(5).Infof("get defaultGroupClass added: %s, driver: %s", groupSnapshotClass.Name, pvDriver) - } - } - if len(defaultClasses) == 0 { - return nil, groupSnapshot, fmt.Errorf("cannot find default group snapshot class") - } - if len(defaultClasses) > 1 { - klog.V(4).Infof("get DefaultGroupSnapshotClass %d defaults found", len(defaultClasses)) - return nil, groupSnapshot, fmt.Errorf("%d default snapshot classes were found", len(defaultClasses)) - } - klog.V(5).Infof("setDefaultGroupSnapshotClass [%s]: default VolumeGroupSnapshotClassName [%s]", groupSnapshot.Name, defaultClasses[0].Name) - groupSnapshotClone := groupSnapshot.DeepCopy() - groupSnapshotClone.Spec.VolumeGroupSnapshotClassName = &(defaultClasses[0].Name) - newGroupSnapshot, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshotClone.Namespace).Update(context.TODO(), groupSnapshotClone, metav1.UpdateOptions{}) - if err != nil { - klog.V(4).Infof("updating VolumeGroupSnapshot[%s] default group snapshot class failed %v", utils.GroupSnapshotKey(groupSnapshot), err) - } - _, updateErr := ctrl.storeGroupSnapshotUpdate(newGroupSnapshot) - if updateErr != nil { - // We will get a "group snapshot update" event soon, this is not a big error - klog.V(4).Infof("setDefaultSnapshotClass [%s]: cannot update internal cache: %v", utils.GroupSnapshotKey(groupSnapshot), updateErr) - } - - return defaultClasses[0], newGroupSnapshot, nil -} - -// pvDriverFromGroupSnapshot is a helper function to get the CSI driver name from the targeted persistent volume. -// It looks up every PVC from which the group snapshot is specified to be created from, and looks for the PVC's -// corresponding PV. Bi-directional binding will be verified between PVC and PV before the PV's CSI driver is returned. -// For an non-CSI volume, it returns an error immediately as it's not supported. -func (ctrl *csiSnapshotCommonController) pvDriverFromGroupSnapshot(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (string, error) { - pvs, err := ctrl.getVolumesFromVolumeGroupSnapshot(groupSnapshot) - if err != nil { - return "", err - } - // Take any volume to get the driver - if pvs[0].Spec.PersistentVolumeSource.CSI == nil { - return "", fmt.Errorf("snapshotting non-CSI volumes is not supported, group snapshot:%s/%s", groupSnapshot.Namespace, groupSnapshot.Name) - } - return pvs[0].Spec.PersistentVolumeSource.CSI.Driver, nil -} - -// getVolumesFromVolumeGroupSnapshot returns the list of PersistentVolume from a VolumeGroupSnapshot. -func (ctrl *csiSnapshotCommonController) getVolumesFromVolumeGroupSnapshot(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) ([]*v1.PersistentVolume, error) { - var pvReturnList []*v1.PersistentVolume - pvcs, err := ctrl.getClaimsFromVolumeGroupSnapshot(groupSnapshot) - if err != nil { - return nil, err - } - - for _, pvc := range pvcs { - if pvc.Status.Phase != v1.ClaimBound { - return nil, fmt.Errorf("the PVC %s is not yet bound to a PV, will not attempt to take a group snapshot", pvc.Name) - } - pvName := pvc.Spec.VolumeName - pv, err := ctrl.client.CoreV1().PersistentVolumes().Get(context.TODO(), pvName, metav1.GetOptions{}) - if err != nil { - return nil, fmt.Errorf("failed to retrieve PV %s from the API server: %q", pvName, err) - } - - // Verify binding between PV/PVC is still valid - bound := ctrl.isVolumeBoundToClaim(pv, &pvc) - if bound == false { - klog.Warningf("binding between PV %s and PVC %s is broken", pvName, pvc.Name) - return nil, fmt.Errorf("claim in dataSource not bound or invalid") - } - pvReturnList = append(pvReturnList, pv) - klog.V(5).Infof("getVolumeFromVolumeGroupSnapshot: group snapshot [%s] PV name [%s]", groupSnapshot.Name, pvName) - } - - return pvReturnList, nil -} - -// getClaimsFromVolumeGroupSnapshot is a helper function to get a list of PVCs from VolumeGroupSnapshot. -func (ctrl *csiSnapshotCommonController) getClaimsFromVolumeGroupSnapshot(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) ([]v1.PersistentVolumeClaim, error) { - labelSelector := groupSnapshot.Spec.Source.Selector - - // Get PVC that has group snapshot label applied. - pvcList, err := ctrl.client.CoreV1().PersistentVolumeClaims(groupSnapshot.Namespace).List(context.TODO(), metav1.ListOptions{LabelSelector: labels.Set(labelSelector.MatchLabels).String()}) - if err != nil { - return nil, fmt.Errorf("failed to list PVCs with label selector %s: %q", metav1.FormatLabelSelector(labelSelector), err) - } - if len(pvcList.Items) == 0 { - return nil, fmt.Errorf("label selector %s for group snapshot not applied to any PVC", metav1.FormatLabelSelector(labelSelector)) - } - return pvcList.Items, nil -} - -// updateGroupSnapshot runs in worker thread and handles "groupsnapshot added", -// "groupsnapshot updated" and "periodic sync" events. -func (ctrl *csiSnapshotCommonController) updateGroupSnapshot(ctx context.Context, groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { - // Store the new group snapshot version in the cache and do not process it - // if this is an old version. - klog.V(5).Infof("updateGroupSnapshot %q", utils.GroupSnapshotKey(groupSnapshot)) - newGroupSnapshot, err := ctrl.storeGroupSnapshotUpdate(groupSnapshot) - if err != nil { - klog.Errorf("%v", err) - } - if !newGroupSnapshot { - return nil - } - - err = ctrl.syncGroupSnapshot(ctx, groupSnapshot) - if err != nil { - if apierrs.IsConflict(err) { - // Version conflict error happens quite often and the controller - // recovers from it easily. - klog.V(3).Infof("could not sync group snapshot %q: %+v", utils.GroupSnapshotKey(groupSnapshot), err) - } else { - klog.Errorf("could not sync group snapshot %q: %+v", utils.GroupSnapshotKey(groupSnapshot), err) - } - return err - } - return nil -} - -// deleteGroupSnapshot runs in worker thread and handles "groupsnapshot deleted" event. -func (ctrl *csiSnapshotCommonController) deleteGroupSnapshot(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) { - _ = ctrl.groupSnapshotStore.Delete(groupSnapshot) - klog.V(4).Infof("group snapshot %q deleted", utils.GroupSnapshotKey(groupSnapshot)) - - driverName, err := ctrl.getGroupSnapshotDriverName(groupSnapshot) - if err != nil { - klog.Errorf("failed to getGroupSnapshotDriverName while recording metrics for group snapshot %q: %v", utils.GroupSnapshotKey(groupSnapshot), err) - } else { - deleteOperationKey := metrics.NewOperationKey(metrics.DeleteGroupSnapshotOperationName, groupSnapshot.UID) - ctrl.metricsManager.RecordMetrics(deleteOperationKey, metrics.NewSnapshotOperationStatus(metrics.SnapshotStatusTypeSuccess), driverName) - } - - groupSnapshotContentName := "" - if groupSnapshot.Status != nil && groupSnapshot.Status.BoundVolumeGroupSnapshotContentName != nil { - groupSnapshotContentName = *groupSnapshot.Status.BoundVolumeGroupSnapshotContentName - } - if groupSnapshotContentName == "" { - klog.V(5).Infof("deleteGroupSnapshot[%q]: group snapshot content not bound", utils.GroupSnapshotKey(groupSnapshot)) - return - } - - // sync the group snapshot content when its group snapshot is deleted. Explicitly sync'ing - // the group snapshot content here in response to group snapshot deletion prevents the group - // snapshot content from waiting until the next sync period for its release. - klog.V(5).Infof("deleteGroupSnapshot[%q]: scheduling sync of group snapshot content %s", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContentName) - ctrl.groupSnapshotContentQueue.Add(groupSnapshotContentName) -} - -// syncGroupSnapshot is the main controller method to decide what to do with a -// group snapshot. It's invoked by appropriate cache.Controller callbacks when -// a group snapshot is created, updated or periodically synced. We do not -// differentiate between these events. -// For easier readability, it is split into syncUnreadyGroupSnapshot and syncReadyGroupSnapshot -func (ctrl *csiSnapshotCommonController) syncGroupSnapshot(ctx context.Context, groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { - klog.V(5).Infof("synchronizing VolumeGroupSnapshot[%s]", utils.GroupSnapshotKey(groupSnapshot)) - - klog.V(5).Infof("syncGroupSnapshot [%s]: check if we should remove finalizer on group snapshot PVC source and remove it if we can", utils.GroupSnapshotKey(groupSnapshot)) - - // Proceed with group snapshot deletion and remove finalizers when needed - if groupSnapshot.ObjectMeta.DeletionTimestamp != nil { - return ctrl.processGroupSnapshotWithDeletionTimestamp(ctx, groupSnapshot) - } - - klog.V(5).Infof("syncGroupSnapshot[%s]: validate group snapshot to make sure source has been correctly specified", utils.GroupSnapshotKey(groupSnapshot)) - if (groupSnapshot.Spec.Source.Selector == nil && groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName == nil) || - (groupSnapshot.Spec.Source.Selector != nil && groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil) { - err := fmt.Errorf("Exactly one of Selector and VolumeGroupSnapshotContentName should be specified") - klog.Errorf("syncGroupSnapshot[%s]: validation error, %s", utils.GroupSnapshotKey(groupSnapshot), err.Error()) - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotValidationError", err.Error()) - return err - } - - klog.V(5).Infof("syncGroupSnapshot: check if we should add finalizers on group snapshot [%s]", utils.GroupSnapshotKey(groupSnapshot)) - if err := ctrl.checkandAddGroupSnapshotFinalizers(groupSnapshot); err != nil { - klog.Errorf("error checkandAddGroupSnapshotFinalizers for group snapshot [%s]: %v", utils.GroupSnapshotKey(groupSnapshot), err) - ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeWarning, "GroupSnapshotFinalizerError", fmt.Sprintf("Failed to check and update group snapshot: %s", err.Error())) - return err - } - - // Need to build or update groupSnapshot.Status in following cases: - // 1) groupSnapshot.Status is nil - // 2) groupSnapshot.Status.ReadyToUse is false - // 3) groupSnapshot.Status.IsBoundVolumeGroupSnapshotContentNameSet is not set - // 4) groupSnapshot.Status.IsVolumeSnapshotRefListSet is not set - if !utils.IsGroupSnapshotReady(groupSnapshot) || !utils.IsBoundVolumeGroupSnapshotContentNameSet(groupSnapshot) { - return ctrl.syncUnreadyGroupSnapshot(ctx, groupSnapshot) - } - return ctrl.syncReadyGroupSnapshot(groupSnapshot) -} - -// syncReadyGroupSnapshot checks the group snapshot which has been bound to group -// snapshot content successfully before. -// If there is any problem with the binding (e.g., group snapshot points to a -// non-existent group snapshot content), update the group snapshot status and emit event. -func (ctrl *csiSnapshotCommonController) syncReadyGroupSnapshot(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { - if !utils.IsBoundVolumeGroupSnapshotContentNameSet(groupSnapshot) { - return fmt.Errorf("group snapshot %s is not bound to a group snapshot content", utils.GroupSnapshotKey(groupSnapshot)) - } - groupSnapshotContent, err := ctrl.getGroupSnapshotContentFromStore(*groupSnapshot.Status.BoundVolumeGroupSnapshotContentName) - if err != nil { - return nil - } - if groupSnapshotContent == nil { - // this meant there is no matching group snapshot content in cache found - // update status of the group snapshot and return - return ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMissing", "VolumeGroupSnapshotContent is missing") - } - klog.V(5).Infof("syncReadyGroupSnapshot[%s]: VolumeGroupSnapshotContent %q found", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent.Name) - // check binding from group snapshot content side to make sure the binding is still valid - if !utils.IsVolumeGroupSnapshotRefSet(groupSnapshot, groupSnapshotContent) { - // group snapshot is bound but group snapshot content is not pointing to the group snapshot - return ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotMisbound", "VolumeGroupSnapshotContent is not bound to the VolumeGroupSnapshot correctly") - } - - // everything is verified, return - return nil -} - -// getGroupSnapshotContentFromStore tries to find a VolumeGroupSnapshotContent from group -// snapshot content cache store by name. -// Note that if no VolumeGroupSnapshotContent exists in the cache store and no error -// encountered, it returns (nil, nil) -func (ctrl *csiSnapshotCommonController) getGroupSnapshotContentFromStore(contentName string) (*crdv1beta1.VolumeGroupSnapshotContent, error) { - obj, exist, err := ctrl.groupSnapshotContentStore.GetByKey(contentName) - if err != nil { - // should never reach here based on implementation at: - // https://github.com/kubernetes/client-go/blob/master/tools/cache/store.go#L226 - return nil, err - } - if !exist { - // not able to find a matching group snapshot content - return nil, nil - } - groupSnapshotContent, ok := obj.(*crdv1beta1.VolumeGroupSnapshotContent) - if !ok { - return nil, fmt.Errorf("expected VolumeGroupSnapshotContent, got %+v", obj) - } - return groupSnapshotContent, nil -} - -// syncUnreadyGroupSnapshot is the main controller method to decide what to do -// with a group snapshot which is not set to ready. -func (ctrl *csiSnapshotCommonController) syncUnreadyGroupSnapshot(ctx context.Context, groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { - uniqueGroupSnapshotName := utils.GroupSnapshotKey(groupSnapshot) - klog.V(5).Infof("syncUnreadyGroupSnapshot %s", uniqueGroupSnapshotName) - driverName, err := ctrl.getGroupSnapshotDriverName(groupSnapshot) - if err != nil { - klog.Errorf("failed to getGroupSnapshotDriverName while recording metrics for groupsnapshot %q: %s", utils.GroupSnapshotKey(groupSnapshot), err) - } - - groupSnapshotProvisionType := metrics.DynamicGroupSnapshotType - if groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil { - groupSnapshotProvisionType = metrics.PreProvisionedGroupSnapshotType - } - - // Start metrics operations for volumegroupsnapshot - if !utils.IsGroupSnapshotCreated(groupSnapshot) { - // Only start CreateGroupSnapshot operation if the groupsnapshot has not been cut - ctrl.metricsManager.OperationStart( - metrics.NewOperationKey(metrics.CreateGroupSnapshotOperationName, groupSnapshot.UID), - metrics.NewOperationValue(driverName, groupSnapshotProvisionType), - ) - } - ctrl.metricsManager.OperationStart( - metrics.NewOperationKey(metrics.CreateGroupSnapshotAndReadyOperationName, groupSnapshot.UID), - metrics.NewOperationValue(driverName, groupSnapshotProvisionType), - ) - - // Pre-provisioned snapshot - if groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil { - groupSnapshotContent, err := ctrl.getPreprovisionedGroupSnapshotContentFromStore(groupSnapshot) - if err != nil { - return err - } - - // if no group snapshot content found yet, update status and return - if groupSnapshotContent == nil { - // can not find the desired VolumeGroupSnapshotContent from cache store - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMissing", "VolumeGroupSnapshotContent is missing") - klog.V(4).Infof("syncUnreadyGroupSnapshot[%s]: group snapshot content %q requested but not found, will try again", utils.GroupSnapshotKey(groupSnapshot), *groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName) - - return fmt.Errorf("group snapshot %s requests an non-existing group snapshot content %s", utils.GroupSnapshotKey(groupSnapshot), *groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName) - } - - // Set VolumeGroupSnapshotRef UID - newGroupSnapshotContent, err := ctrl.checkAndBindGroupSnapshotContent(groupSnapshot, groupSnapshotContent) - if err != nil { - // group snapshot is bound but group snapshot content is not bound to group snapshot correctly - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotBindFailed", fmt.Sprintf("GroupSnapshot failed to bind VolumeGroupSnapshotContent, %v", err)) - return fmt.Errorf("group snapshot %s is bound, but VolumeGroupSnapshotContent %s is not bound to the VolumeGroupSnapshot correctly, %v", uniqueGroupSnapshotName, groupSnapshotContent.Name, err) - } - - // update group snapshot status - klog.V(5).Infof("syncUnreadyGroupSnapshot [%s]: trying to update group snapshot status", utils.GroupSnapshotKey(groupSnapshot)) - if _, err = ctrl.updateGroupSnapshotStatus(groupSnapshot, newGroupSnapshotContent); err != nil { - // update group snapshot status failed - klog.V(4).Infof("failed to update group snapshot %s status: %v", utils.GroupSnapshotKey(groupSnapshot), err) - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, false, v1.EventTypeWarning, "GroupSnapshotStatusUpdateFailed", fmt.Sprintf("GroupSnapshot status update failed, %v", err)) - return err - } - - return nil - } - - // groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName == nil - dynamically created group snapshot - klog.V(5).Infof("getDynamicallyProvisionedGroupContentFromStore for snapshot %s", uniqueGroupSnapshotName) - contentObj, err := ctrl.getDynamicallyProvisionedGroupContentFromStore(groupSnapshot) - if err != nil { - klog.V(4).Infof("getDynamicallyProvisionedGroupContentFromStore[%s]: error when getting group snapshot content for group snapshot %v", uniqueGroupSnapshotName, err) - return err - } - - if contentObj != nil { - klog.V(5).Infof("Found VolumeGroupSnapshotContent object %s for group snapshot %s", contentObj.Name, uniqueGroupSnapshotName) - if contentObj.Spec.Source.GroupSnapshotHandles != nil { - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotHandleSet", fmt.Sprintf("GroupSnapshot handle should not be set in group snapshot content %s for dynamic provisioning", uniqueGroupSnapshotName)) - return fmt.Errorf("VolumeGroupSnapshotHandle should not be set in the group snapshot content for dynamic provisioning for group snapshot %s", uniqueGroupSnapshotName) - } - - newGroupSnapshotContentObj, err := ctrl.createSnapshotsForGroupSnapshotContent(ctx, contentObj, groupSnapshot) - if err != nil { - klog.V(4).Infof("createSnapshotsForGroupSnapshotContent[%s]: failed to create snapshots and snapshotcontents for group snapshot %v: %v", - contentObj.Name, groupSnapshot.Name, err.Error()) - return err - } - - updatedGroupSnapshot, err := ctrl.bindandUpdateVolumeGroupSnapshot(newGroupSnapshotContentObj, groupSnapshot) - if err != nil { - klog.V(4).Infof("bindandUpdateVolumeGroupSnapshot[%s]: failed to bind group snapshot content [%s] to group snapshot %v", uniqueGroupSnapshotName, contentObj.Name, err) - return err - } - klog.V(5).Infof("bindandUpdateVolumeGroupSnapshot %v", updatedGroupSnapshot) - return nil - } - - // If reach here, it is a dynamically provisioned group snapshot, and the VolumeGroupSnapshotContent object is not yet created. - var groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent - if groupSnapshotContent, err = ctrl.createGroupSnapshotContent(groupSnapshot); err != nil { - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentCreationFailed", fmt.Sprintf("failed to create group snapshot content with error %v", err)) - return err - } - - // Update group snapshot status with BoundVolumeGroupSnapshotContentName - klog.V(5).Infof("syncUnreadyGroupSnapshot [%s]: trying to update group snapshot status", utils.GroupSnapshotKey(groupSnapshot)) - if _, err = ctrl.updateGroupSnapshotStatus(groupSnapshot, groupSnapshotContent); err != nil { - // update group snapshot status failed - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, false, v1.EventTypeWarning, "GroupSnapshotStatusUpdateFailed", fmt.Sprintf("GroupSnapshot status update failed, %v", err)) - return err - } - return nil -} - -func (ctrl *csiSnapshotCommonController) createSnapshotsForGroupSnapshotContent( - ctx context.Context, - groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent, - groupSnapshot *crdv1beta1.VolumeGroupSnapshot, -) (*crdv1beta1.VolumeGroupSnapshotContent, error) { - // No status is present, or no volume snapshot was provisioned. - // Let's wait for the snapshotter sidecar to fill it. - if groupSnapshotContent.Status == nil || len(groupSnapshotContent.Status.VolumeSnapshotHandlePairList) == 0 { - return groupSnapshotContent, nil - } - - // No volume group snapshot handle is present. - // Let's wait for the snapshotter sidecar to fill it. - if groupSnapshotContent.Status.VolumeGroupSnapshotHandle == nil { - return groupSnapshotContent, nil - } - - // The contents of the volume group snapshot class are needed to set the - // metadata containing the secrets to recover the snapshots - if groupSnapshot.Spec.VolumeGroupSnapshotClassName == nil { - return groupSnapshotContent, fmt.Errorf( - "createSnapshotsForGroupSnapshotContent: internal error: cannot find reference to volume group snapshot class") - } - - groupSnapshotClass, err := ctrl.groupSnapshotClassLister.Get(*groupSnapshot.Spec.VolumeGroupSnapshotClassName) - if err != nil { - return groupSnapshotContent, fmt.Errorf( - "createSnapshotsForGroupSnapshotContent: failed to get volume snapshot class %s: %q", - *groupSnapshot.Spec.VolumeGroupSnapshotClassName, err) - } - - groupSnapshotSecret, err := utils.GetGroupSnapshotSecretReference( - utils.GroupSnapshotterSecretParams, - groupSnapshotClass.Parameters, - groupSnapshotContent.GetObjectMeta().GetName(), nil) - if err != nil { - return groupSnapshotContent, fmt.Errorf( - "createSnapshotsForGroupSnapshotContent: failed to get secret reference for group snapshot content %s: %v", - groupSnapshotContent.Name, err) - } - - // Phase 1: create the VolumeSnapshotContent and VolumeSnapshot objects - klog.V(4).Infof( - "createSnapshotsForGroupSnapshotContent[%s]: creating volumesnapshots and volumesnapshotcontent for group snapshot content", - groupSnapshotContent.Name) - - for _, snapshot := range groupSnapshotContent.Status.VolumeSnapshotHandlePairList { - snapshotHandle := snapshot.SnapshotHandle - volumeHandle := snapshot.VolumeHandle - - pv, err := ctrl.findPersistentVolumeByCSIDriverHandle(groupSnapshotContent.Spec.Driver, volumeHandle) - if err != nil { - klog.Errorf( - "updateGroupSnapshotContentStatus: error while finding PV for volumeHandle:[%s] and CSI driver:[%s]: %s", - volumeHandle, - groupSnapshotContent.Spec.Driver, - err) - } - - volumeSnapshotContentName := getSnapshotContentNameForVolumeGroupSnapshotContent( - string(groupSnapshot.UID), volumeHandle) - - volumeSnapshotName := getSnapshotNameForVolumeGroupSnapshotContent( - string(groupSnapshot.UID), volumeHandle) - - volumeSnapshotNamespace := groupSnapshotContent.Spec.VolumeGroupSnapshotRef.Namespace - - volumeSnapshotContent := &crdv1.VolumeSnapshotContent{ - ObjectMeta: metav1.ObjectMeta{ - Name: volumeSnapshotContentName, - Annotations: map[string]string{ - utils.VolumeGroupSnapshotHandleAnnotation: *groupSnapshotContent.Status.VolumeGroupSnapshotHandle, - }, - }, - Spec: crdv1.VolumeSnapshotContentSpec{ - VolumeSnapshotRef: v1.ObjectReference{ - Kind: "VolumeSnapshot", - Name: volumeSnapshotName, - Namespace: volumeSnapshotNamespace, - }, - DeletionPolicy: groupSnapshotContent.Spec.DeletionPolicy, - Driver: groupSnapshotContent.Spec.Driver, - Source: crdv1.VolumeSnapshotContentSource{ - VolumeHandle: &volumeHandle, - }, - }, - // The status will be set by VolumeSnapshotContent reconciler - // in the CSI snapshotter sidecar. - } - - if pv != nil { - volumeSnapshotContent.Spec.SourceVolumeMode = pv.Spec.VolumeMode - } - - if groupSnapshotSecret != nil { - klog.V(5).Infof("createSnapshotsForGroupSnapshotContent: set annotation [%s] on volume snapshot content [%s].", utils.AnnDeletionSecretRefName, volumeSnapshotContent.Name) - metav1.SetMetaDataAnnotation(&volumeSnapshotContent.ObjectMeta, utils.AnnDeletionSecretRefName, groupSnapshotSecret.Name) - - klog.V(5).Infof("createSnapshotsForGroupSnapshotContent: set annotation [%s] on volume snapshot content [%s].", utils.AnnDeletionSecretRefNamespace, volumeSnapshotContent.Name) - metav1.SetMetaDataAnnotation(&volumeSnapshotContent.ObjectMeta, utils.AnnDeletionSecretRefNamespace, groupSnapshotSecret.Namespace) - } - - volumeSnapshot := &crdv1.VolumeSnapshot{ - ObjectMeta: metav1.ObjectMeta{ - Name: volumeSnapshotName, - Namespace: volumeSnapshotNamespace, - OwnerReferences: []metav1.OwnerReference{ - utils.BuildVolumeGroupSnapshotOwnerReference(groupSnapshot), - }, - Finalizers: []string{utils.VolumeSnapshotInGroupFinalizer}, - }, - // The spec stanza is set immediately - // The status will be set by VolumeSnapshot reconciler - } - - if pv != nil { - volumeSnapshot.Spec.Source.PersistentVolumeClaimName = &pv.Spec.ClaimRef.Name - } else { - // If no persistent volume was found, set the PVC name to empty - var emptyString string - volumeSnapshot.Spec.Source.PersistentVolumeClaimName = &emptyString - } - - createdVolumeSnapshotContent, err := ctrl.clientset.SnapshotV1().VolumeSnapshotContents().Create(ctx, volumeSnapshotContent, metav1.CreateOptions{}) - if err != nil && !apierrs.IsAlreadyExists(err) { - return groupSnapshotContent, fmt.Errorf( - "createSnapshotsForGroupSnapshotContent: creating volumesnapshotcontent %w", err) - } - - createdVolumeSnapshot, err := ctrl.clientset.SnapshotV1().VolumeSnapshots(volumeSnapshotNamespace).Create(ctx, volumeSnapshot, metav1.CreateOptions{}) - if err != nil && !apierrs.IsAlreadyExists(err) { - return groupSnapshotContent, fmt.Errorf( - "createSnapshotsForGroupSnapshotContent: creating volumesnapshot %w", err) - } - - // bind the volume snapshot content to the volume snapshot - // like a dynamically provisioned snapshot would do - volumeSnapshotContent.Spec.VolumeSnapshotRef.UID = createdVolumeSnapshot.UID - _, err = utils.PatchVolumeSnapshotContent(volumeSnapshotContent, []utils.PatchOp{ - { - Op: "replace", - Path: "/spec/volumeSnapshotRef/uid", - Value: volumeSnapshotContent.Spec.VolumeSnapshotRef.UID, - }, - }, ctrl.clientset) - if err != nil { - return groupSnapshotContent, fmt.Errorf( - "createSnapshotsForGroupSnapshotContent: binding volumesnapshotcontent to volumesnapshot %w", err) - } - - // bind the volume snapshot to the volume snapshot content - // like a dynamically provisioned snapshot would do - _, err = utils.PatchVolumeSnapshot(createdVolumeSnapshot, []utils.PatchOp{ - { - Op: "replace", - Path: "/status", - Value: &crdv1.VolumeSnapshotStatus{}, - }, - { - Op: "replace", - Path: "/status/boundVolumeSnapshotContentName", - Value: volumeSnapshotContentName, - }, - }, ctrl.clientset, "status") - if err != nil { - return groupSnapshotContent, fmt.Errorf( - "createSnapshotsForGroupSnapshotContent: binding volumesnapshot to volumesnapshotcontent %w", err) - } - - // set the snapshot handle and the group snapshot handle - // inside the volume snapshot content to allow - // the CSI Snapshotter sidecar to reconcile its status - _, err = utils.PatchVolumeSnapshotContent(createdVolumeSnapshotContent, []utils.PatchOp{ - { - Op: "replace", - Path: "/status", - Value: &crdv1.VolumeSnapshotContentStatus{}, - }, - { - Op: "replace", - Path: "/status/snapshotHandle", - Value: snapshotHandle, - }, - { - Op: "replace", - Path: "/status/volumeGroupSnapshotHandle", - Value: groupSnapshotContent.Status.VolumeGroupSnapshotHandle, - }, - }, ctrl.clientset, "status") - if err != nil { - return groupSnapshotContent, fmt.Errorf( - "createSnapshotsForGroupSnapshotContent: setting snapshotHandle in volumesnapshotcontent %w", err) - } - - } - - return groupSnapshotContent, nil -} - -// findPersistentVolumeByCSIDriverHandle looks at an existing PersistentVolume -// by CSI driver name and volume handle. -func (ctrl *csiSnapshotCommonController) findPersistentVolumeByCSIDriverHandle(driverName, volumeHandle string) (*v1.PersistentVolume, error) { - pvList, err := ctrl.pvIndexer.ByIndex( - utils.CSIDriverHandleIndexName, - utils.PersistentVolumeKeyFuncByCSIDriverHandle(driverName, volumeHandle), - ) - switch { - case err != nil: - return nil, err - - case len(pvList) == 0: - return nil, nil - - case len(pvList) > 1: - klog.Errorf( - "findPersistentVolumeByCSIDriverHandle: multiple PVs found for for volumeHandle:[%s] and CSI driver:[%s]", - volumeHandle, - driverName) - return nil, fmt.Errorf("multiple PVs found") - - default: - if pvObject, ok := pvList[0].(*v1.PersistentVolume); ok { - return pvObject, nil - } - - klog.Errorf( - "findPersistentVolumeByCSIDriverHandle: found erroneous content in the index") - klog.V(5).Info("findPersistentVolumeByCSIDriverHandle: erroneous content", pvList[0]) - return nil, fmt.Errorf("found erroneous indexed content") - } -} - -// getSnapshotNameForVolumeGroupSnapshotContent returns a unique snapshot name for a VolumeGroupSnapshotContent. -func getSnapshotNameForVolumeGroupSnapshotContent(groupSnapshotUUID, volumeHandle string) string { - return fmt.Sprintf("snapshot-%x", sha256.Sum256([]byte(groupSnapshotUUID+volumeHandle))) -} - -// getSnapshotContentNameForVolumeGroupSnapshotContent returns a unique content name for the -// passed in VolumeGroupSnapshotContent. -func getSnapshotContentNameForVolumeGroupSnapshotContent(groupSnapshotUUID, volumeHandle string) string { - return fmt.Sprintf("snapcontent-%x", sha256.Sum256([]byte(groupSnapshotUUID+volumeHandle))) -} - -// getPreprovisionedGroupSnapshotContentFromStore tries to find a pre-provisioned -// volume group snapshot content object from group snapshot content cache store -// for the passed in VolumeGroupSnapshot. -// Note that this function assumes the passed in VolumeGroupSnapshot is a pre-provisioned -// one, i.e., groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil. -// If no matching group snapshot content is found, it returns (nil, nil). -// If it found a group snapshot content which is not a pre-provisioned one, it -// updates the status of the group snapshot with an event and returns an error. -// If it found a group snapshot content which does not point to the passed in -// VolumeGroupSnapshot, it updates the status of the group snapshot with an event -// and returns an error. -// Otherwise, the found group snapshot content will be returned. -func (ctrl *csiSnapshotCommonController) getPreprovisionedGroupSnapshotContentFromStore(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshotContent, error) { - contentName := *groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName - if contentName == "" { - return nil, fmt.Errorf("empty VolumeGroupSnapshotContentName for group snapshot %s", utils.GroupSnapshotKey(groupSnapshot)) - } - groupSnapshotContent, err := ctrl.getGroupSnapshotContentFromStore(contentName) - if err != nil { - return nil, err - } - if groupSnapshotContent == nil { - // can not find the desired VolumeGroupSnapshotContent from cache store - return nil, nil - } - // check whether the content is a pre-provisioned VolumeGroupSnapshotContent - if groupSnapshotContent.Spec.Source.GroupSnapshotHandles == nil { - // found a group snapshot content which represents a dynamically provisioned group snapshot - // update the group snapshot and return an error - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMismatch", "VolumeGroupSnapshotContent is dynamically provisioned while expecting a pre-provisioned one") - klog.V(4).Infof("sync group snapshot[%s]: group snapshot content %q is dynamically provisioned while expecting a pre-provisioned one", utils.GroupSnapshotKey(groupSnapshot), contentName) - return nil, fmt.Errorf("group snapshot %s expects a pre-provisioned VolumeGroupSnapshotContent %s but gets a dynamically provisioned one", utils.GroupSnapshotKey(groupSnapshot), contentName) - } - // verify the group snapshot content points back to the group snapshot - ref := groupSnapshotContent.Spec.VolumeGroupSnapshotRef - if ref.Name != groupSnapshot.Name || ref.Namespace != groupSnapshot.Namespace || (ref.UID != "" && ref.UID != groupSnapshot.UID) { - klog.V(4).Infof("sync group snapshot[%s]: VolumeGroupSnapshotContent %s is bound to another group snapshot %v", utils.GroupSnapshotKey(groupSnapshot), contentName, ref) - msg := fmt.Sprintf("VolumeGroupSnapshotContent [%s] is bound to a different group snapshot", contentName) - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMisbound", msg) - return nil, errors.New(msg) - } - return groupSnapshotContent, nil -} - -// checkandBindGroupSnapshotContent checks whether the VolumeGroupSnapshotRef in -// the group snapshot content matches the given group snapshot. If match, it binds -// the group snapshot content with the group snapshot. This is for static binding where -// user has specified group snapshot name but not UID of the group snapshot in -// groupSnapshotContent.Spec.VolumeGroupSnapshotRef. -func (ctrl *csiSnapshotCommonController) checkAndBindGroupSnapshotContent(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) (*crdv1beta1.VolumeGroupSnapshotContent, error) { - if groupSnapshotContent.Spec.VolumeGroupSnapshotRef.Name != groupSnapshot.Name { - return nil, fmt.Errorf("Could not bind group snapshot %s and group snapshot content %s, the VolumeGroupSnapshotRef does not match", groupSnapshot.Name, groupSnapshotContent.Name) - } else if groupSnapshotContent.Spec.VolumeGroupSnapshotRef.UID != "" && groupSnapshotContent.Spec.VolumeGroupSnapshotRef.UID != groupSnapshot.UID { - return nil, fmt.Errorf("Could not bind group snapshot %s and group snapshot content %s, the VolumeGroupSnapshotRef does not match", groupSnapshot.Name, groupSnapshotContent.Name) - } else if groupSnapshotContent.Spec.VolumeGroupSnapshotRef.UID != "" && groupSnapshotContent.Spec.VolumeGroupSnapshotClassName != nil { - return groupSnapshotContent, nil - } - - patches := []utils.PatchOp{ - { - Op: "replace", - Path: "/spec/volumeGroupSnapshotRef/uid", - Value: string(groupSnapshot.UID), - }, - } - if groupSnapshot.Spec.VolumeGroupSnapshotClassName != nil { - className := *(groupSnapshot.Spec.VolumeGroupSnapshotClassName) - patches = append(patches, utils.PatchOp{ - Op: "replace", - Path: "/spec/volumeGroupSnapshotClassName", - Value: className, - }) - } - - newContent, err := utils.PatchVolumeGroupSnapshotContent(groupSnapshotContent, patches, ctrl.clientset) - if err != nil { - klog.V(4).Infof("updating VolumeGroupSnapshotContent[%s] error status failed %v", groupSnapshotContent.Name, err) - return groupSnapshotContent, err - } - - _, err = ctrl.storeGroupSnapshotContentUpdate(newContent) - if err != nil { - klog.V(4).Infof("updating VolumeGroupSnapshotContent[%s] error status: cannot update internal cache %v", newContent.Name, err) - return newContent, err - } - return newContent, nil -} - -// updateGroupSnapshotStatus updates group snapshot status based on group snapshot content status -func (ctrl *csiSnapshotCommonController) updateGroupSnapshotStatus(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) (*crdv1beta1.VolumeGroupSnapshot, error) { - klog.V(5).Infof("updateGroupSnapshotStatus[%s]", utils.GroupSnapshotKey(groupSnapshot)) - - boundContentName := groupSnapshotContent.Name - var createdAt *time.Time - if groupSnapshotContent.Status != nil && groupSnapshotContent.Status.CreationTime != nil { - createdAt = &groupSnapshotContent.Status.CreationTime.DeepCopy().Time - } - var readyToUse bool - if groupSnapshotContent.Status != nil && groupSnapshotContent.Status.ReadyToUse != nil { - readyToUse = *groupSnapshotContent.Status.ReadyToUse - } - var volumeSnapshotErr *crdv1.VolumeSnapshotError - if groupSnapshotContent.Status != nil && groupSnapshotContent.Status.Error != nil { - volumeSnapshotErr = groupSnapshotContent.Status.Error.DeepCopy() - } - - klog.V(5).Infof("updateGroupSnapshotStatus: updating VolumeGroupSnapshot [%+v] based on VolumeGroupSnapshotContentStatus [%+v]", groupSnapshot, groupSnapshotContent.Status) - - groupSnapshotObj, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshot.Namespace).Get(context.TODO(), groupSnapshot.Name, metav1.GetOptions{}) - if err != nil { - return nil, fmt.Errorf("error get group snapshot %s from api server: %v", utils.GroupSnapshotKey(groupSnapshot), err) - } - - var newStatus *crdv1beta1.VolumeGroupSnapshotStatus - updated := false - if groupSnapshotObj.Status == nil { - newStatus = &crdv1beta1.VolumeGroupSnapshotStatus{ - BoundVolumeGroupSnapshotContentName: &boundContentName, - ReadyToUse: &readyToUse, - } - if createdAt != nil { - newStatus.CreationTime = &metav1.Time{Time: *createdAt} - } - if volumeSnapshotErr != nil { - newStatus.Error = volumeSnapshotErr - } - - updated = true - } else { - newStatus = groupSnapshotObj.Status.DeepCopy() - if newStatus.BoundVolumeGroupSnapshotContentName == nil { - newStatus.BoundVolumeGroupSnapshotContentName = &boundContentName - updated = true - } - if newStatus.CreationTime == nil && createdAt != nil { - newStatus.CreationTime = &metav1.Time{Time: *createdAt} - updated = true - } - if newStatus.ReadyToUse == nil || *newStatus.ReadyToUse != readyToUse { - newStatus.ReadyToUse = &readyToUse - updated = true - if readyToUse && newStatus.Error != nil { - newStatus.Error = nil - } - } - if (newStatus.Error == nil && volumeSnapshotErr != nil) || (newStatus.Error != nil && volumeSnapshotErr != nil && newStatus.Error.Time != nil && volumeSnapshotErr.Time != nil && &newStatus.Error.Time != &volumeSnapshotErr.Time) || (newStatus.Error != nil && volumeSnapshotErr == nil) { - newStatus.Error = volumeSnapshotErr - updated = true - } - } - - if updated { - groupSnapshotClone := groupSnapshotObj.DeepCopy() - groupSnapshotClone.Status = newStatus - - // We need to record metrics before updating the status due to a bug causing cache entries after a failed UpdateStatus call. - // Must meet the following criteria to emit a successful CreateGroupSnapshot status - // 1. Previous status was nil OR Previous status had a nil CreationTime - // 2. New status must be non-nil with a non-nil CreationTime - driverName := groupSnapshotContent.Spec.Driver - createOperationKey := metrics.NewOperationKey(metrics.CreateGroupSnapshotOperationName, groupSnapshot.UID) - - // Must meet the following criteria to emit a successful CreateGroupSnapshot status - // 1. Previous status was nil OR Previous status had a nil CreationTime - // 2. New status must be non-nil with a non-nil CreationTime - if !utils.IsGroupSnapshotCreated(groupSnapshotObj) && utils.IsGroupSnapshotCreated(groupSnapshotClone) { - msg := fmt.Sprintf("GroupSnapshot %s was successfully created by the CSI driver.", utils.GroupSnapshotKey(groupSnapshot)) - ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeNormal, "GroupSnapshotCreated", msg) - ctrl.metricsManager.RecordVolumeGroupSnapshotMetrics(createOperationKey, metrics.NewSnapshotOperationStatus(metrics.SnapshotStatusTypeSuccess), driverName) - } - - // Must meet the following criteria to emit a successful CreateGroupSnapshotAndReady status - // 1. Previous status was nil OR Previous status had a nil ReadyToUse OR Previous status had a false ReadyToUse - // 2. New status must be non-nil with a ReadyToUse as true - if !utils.IsGroupSnapshotReady(groupSnapshotObj) && utils.IsGroupSnapshotReady(groupSnapshotClone) { - msg := fmt.Sprintf("GroupSnapshot %s is ready to use.", utils.GroupSnapshotKey(groupSnapshot)) - ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeNormal, "GroupSnapshotReady", msg) - createAndReadyOperation := metrics.NewOperationKey(metrics.CreateGroupSnapshotAndReadyOperationName, groupSnapshot.UID) - ctrl.metricsManager.RecordMetrics(createAndReadyOperation, metrics.NewSnapshotOperationStatus(metrics.SnapshotStatusTypeSuccess), driverName) - } - - newGroupSnapshotObj, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshotClone.Namespace).UpdateStatus(context.TODO(), groupSnapshotClone, metav1.UpdateOptions{}) - if err != nil { - return nil, newControllerUpdateError(utils.GroupSnapshotKey(groupSnapshot), err.Error()) - } - - return newGroupSnapshotObj, nil - } - - return groupSnapshotObj, nil -} - -// getDynamicallyProvisionedGroupContentFromStore tries to find a dynamically created -// group snapshot content object for the passed in VolumeGroupSnapshot from the -// group snapshot content store. -// Note that this function assumes the passed in VolumeGroupSnapshot is a dynamic -// one which requests creating a group snapshot from a group of PVCs. -// If no matching VolumeGroupSnapshotContent exists in the group snapshot content -// cache store, it returns (nil, nil) -// If a group snapshot content is found but it's not dynamically provisioned, -// the passed in group snapshot status will be updated with an error along with -// an event, and an error will be returned. -// If a group snapshot content is found but it does not point to the passed in VolumeGroupSnapshot, -// the passed in group snapshot will be updated with an error along with an event, -// and an error will be returned. -func (ctrl *csiSnapshotCommonController) getDynamicallyProvisionedGroupContentFromStore(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshotContent, error) { - contentName := utils.GetDynamicSnapshotContentNameForGroupSnapshot(groupSnapshot) - groupSnapshotContent, err := ctrl.getGroupSnapshotContentFromStore(contentName) - if err != nil { - return nil, err - } - if groupSnapshotContent == nil { - // no matching group snapshot content with the desired name has been found in cache - return nil, nil - } - // check whether the group snapshot content represents a dynamically provisioned snapshot - if groupSnapshotContent.Spec.Source.GroupSnapshotHandles != nil { - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMismatch", "VolumeGroupSnapshotContent "+contentName+" is pre-provisioned while expecting a dynamically provisioned one") - klog.V(4).Infof("sync group snapshot[%s]: group snapshot content %s is pre-provisioned while expecting a dynamically provisioned one", utils.GroupSnapshotKey(groupSnapshot), contentName) - return nil, fmt.Errorf("group snapshot %s expects a dynamically provisioned VolumeGroupSnapshotContent %s but gets a pre-provisioned one", utils.GroupSnapshotKey(groupSnapshot), contentName) - } - // check whether the group snapshot content points back to the passed in VolumeGroupSnapshot - ref := groupSnapshotContent.Spec.VolumeGroupSnapshotRef - // Unlike a pre-provisioned group snapshot content, whose Spec.VolumeGroupSnapshotRef.UID will be - // left to be empty to allow binding to a group snapshot, a dynamically provisioned - // group snapshot content MUST have its Spec.VolumeGroupSnapshotRef.UID set to the group snapshot's - // UID from which it's been created, thus ref.UID == "" is not a legit case here. - if ref.Name != groupSnapshot.Name || ref.Namespace != groupSnapshot.Namespace || ref.UID != groupSnapshot.UID { - klog.V(4).Infof("sync group snapshot[%s]: VolumeGroupSnapshotContent %s is bound to another group snapshot %v", utils.GroupSnapshotKey(groupSnapshot), contentName, ref) - msg := fmt.Sprintf("VolumeGroupSnapshotContent [%s] is bound to a different group snapshot", contentName) - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshot, true, v1.EventTypeWarning, "GroupSnapshotContentMisbound", msg) - return nil, errors.New(msg) - } - return groupSnapshotContent, nil -} - -// This routine sets snapshot.Spec.Source.VolumeGroupSnapshotContentName -func (ctrl *csiSnapshotCommonController) bindandUpdateVolumeGroupSnapshot(groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent, groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshot, error) { - klog.V(5).Infof("bindandUpdateVolumeGroupSnapshot for group snapshot [%s]: groupSnapshotContent [%s]", groupSnapshot.Name, groupSnapshotContent.Name) - groupSnapshotObj, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshot.Namespace).Get(context.TODO(), groupSnapshot.Name, metav1.GetOptions{}) - if err != nil { - return nil, fmt.Errorf("error get group snapshot %s from api server: %v", utils.GroupSnapshotKey(groupSnapshot), err) - } - - // Copy the group snapshot object before updating it - groupSnapshotCopy := groupSnapshotObj.DeepCopy() - // update group snapshot status - var updateGroupSnapshot *crdv1beta1.VolumeGroupSnapshot - klog.V(5).Infof("bindandUpdateVolumeGroupSnapshot [%s]: trying to update group snapshot status", utils.GroupSnapshotKey(groupSnapshotCopy)) - updateGroupSnapshot, err = ctrl.updateGroupSnapshotStatus(groupSnapshotCopy, groupSnapshotContent) - if err == nil { - groupSnapshotCopy = updateGroupSnapshot - } - if err != nil { - // update group snapshot status failed - klog.V(4).Infof("failed to update group snapshot %s status: %v", utils.GroupSnapshotKey(groupSnapshot), err) - ctrl.updateGroupSnapshotErrorStatusWithEvent(groupSnapshotCopy, true, v1.EventTypeWarning, "GroupSnapshotStatusUpdateFailed", fmt.Sprintf("GroupSnapshot status update failed, %v", err)) - return nil, err - } - - _, err = ctrl.storeGroupSnapshotUpdate(groupSnapshotCopy) - if err != nil { - klog.Errorf("%v", err) - } - - klog.V(5).Infof("bindandUpdateVolumeGroupSnapshot for group snapshot completed [%#v]", groupSnapshotCopy) - return groupSnapshotCopy, nil -} - -// createGroupSnapshotContent will only be called for dynamic provisioning -func (ctrl *csiSnapshotCommonController) createGroupSnapshotContent(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshotContent, error) { - klog.Infof("createGroupSnapshotContent: Creating group snapshot content for group snapshot %s through the plugin ...", utils.GroupSnapshotKey(groupSnapshot)) - - /* - TODO: Add PVC finalizer - */ - - groupSnapshotClass, volumes, contentName, snapshotterSecretRef, err := ctrl.getCreateGroupSnapshotInput(groupSnapshot) - if err != nil { - return nil, fmt.Errorf("failed to get input parameters to create group snapshot %s: %q", groupSnapshot.Name, err) - } - - snapshotRef, err := ref.GetReference(scheme.Scheme, groupSnapshot) - if err != nil { - return nil, err - } - var volumeHandles []string - for _, pv := range volumes { - if pv.Spec.CSI == nil { - err := fmt.Errorf( - "cannot snapshot a non-CSI volume for group snapshot %s: %s", - utils.GroupSnapshotKey(groupSnapshot), pv.Name) - klog.Error(err.Error()) - ctrl.eventRecorder.Event( - groupSnapshot, - v1.EventTypeWarning, - "CreateGroupSnapshotContentFailed", - fmt.Sprintf("Cannot snapshot a non-CSI volume: %s", pv.Name), - ) - return nil, err - } - - volumeCSIDriver := pv.Spec.CSI.Driver - classCSIDriver := groupSnapshotClass.Driver - if volumeCSIDriver != classCSIDriver { - strErr := fmt.Sprintf( - "Volume CSI driver (%s) mismatch with VolumeGroupSnapshotClass (%s) %s: %s", - volumeCSIDriver, classCSIDriver, utils.GroupSnapshotKey(groupSnapshot), pv.Name) - klog.Error(strErr) - ctrl.eventRecorder.Event( - groupSnapshot, - v1.EventTypeWarning, - "CreateGroupSnapshotContentFailed", - strErr, - ) - return nil, newControllerUpdateError(utils.GroupSnapshotKey(groupSnapshot), strErr) - - } - volumeHandles = append(volumeHandles, pv.Spec.CSI.VolumeHandle) - } - - groupSnapshotContent := &crdv1beta1.VolumeGroupSnapshotContent{ - ObjectMeta: metav1.ObjectMeta{ - Name: contentName, - }, - Spec: crdv1beta1.VolumeGroupSnapshotContentSpec{ - VolumeGroupSnapshotRef: *snapshotRef, - Source: crdv1beta1.VolumeGroupSnapshotContentSource{ - VolumeHandles: volumeHandles, - }, - VolumeGroupSnapshotClassName: &(groupSnapshotClass.Name), - DeletionPolicy: groupSnapshotClass.DeletionPolicy, - Driver: groupSnapshotClass.Driver, - }, - } - - /* - Add secret reference details - */ - if snapshotterSecretRef != nil { - klog.V(5).Infof("createGroupSnapshotContent: set annotation [%s] on volume group snapshot content [%s].", utils.AnnDeletionGroupSecretRefName, groupSnapshotContent.Name) - metav1.SetMetaDataAnnotation(&groupSnapshotContent.ObjectMeta, utils.AnnDeletionGroupSecretRefName, snapshotterSecretRef.Name) - - klog.V(5).Infof("creategroupSnapshotContent: set annotation [%s] on volume group snapshot content [%s].", utils.AnnDeletionGroupSecretRefNamespace, groupSnapshotContent.Name) - metav1.SetMetaDataAnnotation(&groupSnapshotContent.ObjectMeta, utils.AnnDeletionGroupSecretRefNamespace, snapshotterSecretRef.Namespace) - } - - var updateGroupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent - klog.V(5).Infof("volume group snapshot content %#v", groupSnapshotContent) - // Try to create the VolumeGroupSnapshotContent object - klog.V(5).Infof("createGroupSnapshotContent [%s]: trying to save volume group snapshot content %s", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent.Name) - if updateGroupSnapshotContent, err = ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshotContents().Create(context.TODO(), groupSnapshotContent, metav1.CreateOptions{}); err == nil || apierrs.IsAlreadyExists(err) { - // Save succeeded. - if err != nil { - klog.V(3).Infof("volume group snapshot content %q for group snapshot %q already exists, reusing", groupSnapshotContent.Name, utils.GroupSnapshotKey(groupSnapshot)) - err = nil - updateGroupSnapshotContent = groupSnapshotContent - } else { - klog.V(3).Infof("volume group snapshot content %q for group snapshot %q saved, %v", groupSnapshotContent.Name, utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent) - } - } - - if err != nil { - strerr := fmt.Sprintf("Error creating volume group snapshot content object for group snapshot %s: %v.", utils.GroupSnapshotKey(groupSnapshot), err) - klog.Error(strerr) - ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeWarning, "CreateGroupSnapshotContentFailed", strerr) - return nil, newControllerUpdateError(utils.GroupSnapshotKey(groupSnapshot), err.Error()) - } - - msg := fmt.Sprintf("Waiting for a group snapshot %s to be created by the CSI driver.", utils.GroupSnapshotKey(groupSnapshot)) - ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeNormal, "CreatingGroupSnapshot", msg) - - // Update group snapshot content in the cache store - _, err = ctrl.storeGroupSnapshotContentUpdate(updateGroupSnapshotContent) - if err != nil { - klog.Errorf("failed to update group snapshot content store %v", err) - } - - return updateGroupSnapshotContent, nil -} - -func (ctrl *csiSnapshotCommonController) getCreateGroupSnapshotInput(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) (*crdv1beta1.VolumeGroupSnapshotClass, []*v1.PersistentVolume, string, *v1.SecretReference, error) { - className := groupSnapshot.Spec.VolumeGroupSnapshotClassName - klog.V(5).Infof("getCreateGroupSnapshotInput [%s]", groupSnapshot.Name) - var groupSnapshotClass *crdv1beta1.VolumeGroupSnapshotClass - var err error - if className != nil { - groupSnapshotClass, err = ctrl.getGroupSnapshotClass(*className) - if err != nil { - klog.Errorf("getCreateGroupSnapshotInput failed to getClassFromVolumeGroupSnapshot %s", err) - return nil, nil, "", nil, err - } - } else { - klog.Errorf("failed to getCreateGroupSnapshotInput %s without a group snapshot class", groupSnapshot.Name) - return nil, nil, "", nil, fmt.Errorf("failed to take group snapshot %s without a group snapshot class", groupSnapshot.Name) - } - - volumes, err := ctrl.getVolumesFromVolumeGroupSnapshot(groupSnapshot) - if err != nil { - klog.Errorf("getCreateGroupSnapshotInput failed to get PersistentVolume objects [%s]: Error: [%#v]", groupSnapshot.Name, err) - return nil, nil, "", nil, err - } - - // Create VolumeGroupSnapshotContent name - contentName := utils.GetDynamicSnapshotContentNameForGroupSnapshot(groupSnapshot) - - // Get the secret reference - snapshotterSecretRef, err := utils.GetGroupSnapshotSecretReference(utils.GroupSnapshotterSecretParams, groupSnapshotClass.Parameters, contentName, groupSnapshot) - if err != nil { - return nil, nil, "", nil, err - } - - return groupSnapshotClass, volumes, contentName, snapshotterSecretRef, nil -} - -// syncGroupSnapshotContent deals with one key off the queue -func (ctrl *csiSnapshotCommonController) syncGroupSnapshotContent(groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) error { - groupSnapshotName := utils.GroupSnapshotRefKey(&groupSnapshotContent.Spec.VolumeGroupSnapshotRef) - klog.V(4).Infof("synchronizing VolumeGroupSnapshotContent[%s]: group snapshot content is bound to group snapshot %s", groupSnapshotContent.Name, groupSnapshotName) - - klog.V(5).Infof("syncGroupSnapshotContent[%s]: check if we should add invalid label on group snapshot content", groupSnapshotContent.Name) - - if (groupSnapshotContent.Spec.Source.GroupSnapshotHandles == nil && len(groupSnapshotContent.Spec.Source.VolumeHandles) == 0) || - (groupSnapshotContent.Spec.Source.GroupSnapshotHandles != nil && len(groupSnapshotContent.Spec.Source.VolumeHandles) > 0) { - err := fmt.Errorf("Exactly one of GroupSnapshotHandles and VolumeHandles should be specified") - klog.Errorf("syncGroupSnapshotContent[%s]: validation error, %s", groupSnapshotContent.Name, err.Error()) - ctrl.eventRecorder.Event(groupSnapshotContent, v1.EventTypeWarning, "GroupContentValidationError", err.Error()) - return err - } - - // The VolumeGroupSnapshotContent is reserved for a VolumeGroupSnapshot; - // that VolumeGroupSnapshot has not yet been bound to this VolumeGroupSnapshotContent; - // syncGroupSnapshot will handle it. - if groupSnapshotContent.Spec.VolumeGroupSnapshotRef.UID == "" { - klog.V(4).Infof("syncGroupSnapshotContent [%s]: VolumeGroupSnapshotContent is pre-bound to VolumeGroupSnapshot %s", groupSnapshotContent.Name, groupSnapshotName) - return nil - } - - if utils.NeedToAddGroupSnapshotContentFinalizer(groupSnapshotContent) { - // Group Snapshot Content is not being deleted -> it should have the finalizer. - klog.V(5).Infof("syncGroupSnapshotContent [%s]: Add Finalizer for VolumeGroupSnapshotContent", groupSnapshotContent.Name) - return ctrl.addGroupSnapshotContentFinalizer(groupSnapshotContent) - } - - // Check if group snapshot exists in cache store - // If getGroupSnapshotFromStore returns (nil, nil), it means group snapshot not found - // and it may have already been deleted, and it will fall into the - // group snapshot == nil case below - var groupSnapshot *crdv1beta1.VolumeGroupSnapshot - groupSnapshot, err := ctrl.getGroupSnapshotFromStore(groupSnapshotName) - if err != nil { - return err - } - - if groupSnapshot != nil && groupSnapshot.UID != groupSnapshotContent.Spec.VolumeGroupSnapshotRef.UID { - // The group snapshot that the group snapshot content was pointing to was deleted, and another - // with the same name created. - klog.V(4).Infof("syncGroupSnapshotContent [%s]: group snapshot %s has different UID, the old one must have been deleted", groupSnapshotContent.Name, groupSnapshotName) - // Treat the group snapshot content as bound to a missing snapshot. - groupSnapshot = nil - } else { - // Check if groupSnapshot.Status is different from groupSnapshotContent.Status - // and add group snapshot to queue if there is a difference and it is worth - // triggering a group snapshot status update. - if groupSnapshot != nil && ctrl.needsUpdateGroupSnapshotStatus(groupSnapshot, groupSnapshotContent) { - klog.V(4).Infof("synchronizing VolumeGroupSnapshotContent for group snapshot [%s]: update group snapshot status to true if needed.", groupSnapshotName) - // Manually trigger a group snapshot status update to happen - // right away so that it is in-sync with the group snapshot content status - ctrl.groupSnapshotQueue.Add(groupSnapshotName) - } - } - return nil -} - -// getGroupSnapshotFromStore finds group snapshot from the cache store. -// If getGroupSnapshotFromStore returns (nil, nil), it means group snapshot not -// found and it may have already been deleted. -func (ctrl *csiSnapshotCommonController) getGroupSnapshotFromStore(groupSnapshotName string) (*crdv1beta1.VolumeGroupSnapshot, error) { - // Get the VolumeGroupSnapshot by _name_ - var groupSnapshot *crdv1beta1.VolumeGroupSnapshot - obj, found, err := ctrl.groupSnapshotStore.GetByKey(groupSnapshotName) - if err != nil { - return nil, err - } - if !found { - klog.V(4).Infof("getGroupSnapshotFromStore: group snapshot %s not found", groupSnapshotName) - // Fall through with group snapshot = nil - return nil, nil - } - var ok bool - groupSnapshot, ok = obj.(*crdv1beta1.VolumeGroupSnapshot) - if !ok { - return nil, fmt.Errorf("cannot convert object from group snapshot cache to group snapshot %q!?: %#v", groupSnapshotName, obj) - } - klog.V(4).Infof("getGroupSnapshotFromStore: group snapshot %s found", groupSnapshotName) - - return groupSnapshot, nil -} - -// needsUpdateGroupSnapshotStatus compares group snapshot status with the group snapshot content -// status and decide if group snapshot status needs to be updated based on group snapshot content -// status -func (ctrl *csiSnapshotCommonController) needsUpdateGroupSnapshotStatus(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) bool { - klog.V(5).Infof("needsUpdateGroupSnapshotStatus[%s]", utils.GroupSnapshotKey(groupSnapshot)) - - if groupSnapshot.Status == nil && groupSnapshotContent.Status != nil { - return true - } - if groupSnapshotContent.Status == nil { - return false - } - if groupSnapshot.Status.BoundVolumeGroupSnapshotContentName == nil { - return true - } - if groupSnapshot.Status.CreationTime == nil && groupSnapshotContent.Status.CreationTime != nil { - return true - } - if groupSnapshot.Status.ReadyToUse == nil && groupSnapshotContent.Status.ReadyToUse != nil { - return true - } - if groupSnapshot.Status.ReadyToUse != nil && groupSnapshotContent.Status.ReadyToUse != nil && groupSnapshot.Status.ReadyToUse != groupSnapshotContent.Status.ReadyToUse { - return true - } - - return false -} - -// addGroupSnapshotContentFinalizer adds a Finalizer for VolumeGroupSnapshotContent. -func (ctrl *csiSnapshotCommonController) addGroupSnapshotContentFinalizer(groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) error { - var patches []utils.PatchOp - if len(groupSnapshotContent.Finalizers) > 0 { - // Add to the end of the finalizers if we have any other finalizers - patches = append(patches, utils.PatchOp{ - Op: "add", - Path: "/metadata/finalizers/-", - Value: utils.VolumeGroupSnapshotContentFinalizer, - }) - } else { - // Replace finalizers with new array if there are no other finalizers - patches = append(patches, utils.PatchOp{ - Op: "add", - Path: "/metadata/finalizers", - Value: []string{utils.VolumeGroupSnapshotContentFinalizer}, - }) - } - newGroupSnapshotContent, err := utils.PatchVolumeGroupSnapshotContent(groupSnapshotContent, patches, ctrl.clientset) - if err != nil { - return newControllerUpdateError(groupSnapshotContent.Name, err.Error()) - } - - _, err = ctrl.storeGroupSnapshotContentUpdate(newGroupSnapshotContent) - if err != nil { - klog.Errorf("failed to update group snapshot content store %v", err) - } - - klog.V(5).Infof("Added protection finalizer to volume group snapshot content %s", newGroupSnapshotContent.Name) - return nil -} - -// checkandAddGroupSnapshotFinalizers checks and adds group snapshot finailzers when needed -func (ctrl *csiSnapshotCommonController) checkandAddGroupSnapshotFinalizers(groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { - // get the group snapshot content for this group snapshot - var ( - groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent - err error - ) - if groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil { - groupSnapshotContent, err = ctrl.getPreprovisionedGroupSnapshotContentFromStore(groupSnapshot) - } else { - groupSnapshotContent, err = ctrl.getDynamicallyProvisionedGroupContentFromStore(groupSnapshot) - } - if err != nil { - return err - } - - // A bound finalizer is needed ONLY when all following conditions are satisfied: - // 1. the VolumeGroupSnapshot is bound to a VolumeGroupSnapshotContent - // 2. the VolumeGroupSnapshot does not have deletion timestamp set - // Note that if a matching VolumeGroupSnapshotContent is found, it must point back to the VolumeGroupSnapshot - if groupSnapshotContent != nil && utils.NeedToAddGroupSnapshotBoundFinalizer(groupSnapshot) { - // Snapshot is not being deleted -> it should have the finalizer. - klog.V(5).Infof("checkandAddGroupSnapshotFinalizers: Add Finalizer for VolumeGroupSnapshot[%s]", utils.GroupSnapshotKey(groupSnapshot)) - return ctrl.addGroupSnapshotFinalizer(groupSnapshot, true) - - } - return nil -} - -// addGroupSnapshotFinalizer adds a Finalizer to a VolumeGroupSnapshot. -func (ctrl *csiSnapshotCommonController) addGroupSnapshotFinalizer(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, addBoundFinalizer bool) error { - var updatedGroupSnapshot *crdv1beta1.VolumeGroupSnapshot - var err error - - // NOTE(ggriffiths): Must perform an update if no finalizers exist. - // Unable to find a patch that correctly updated the finalizers if none currently exist. - if len(groupSnapshot.ObjectMeta.Finalizers) == 0 { - groupSnapshotClone := groupSnapshot.DeepCopy() - if addBoundFinalizer { - groupSnapshotClone.ObjectMeta.Finalizers = append(groupSnapshotClone.ObjectMeta.Finalizers, utils.VolumeGroupSnapshotBoundFinalizer) - } - updatedGroupSnapshot, err = ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshotClone.Namespace).Update(context.TODO(), groupSnapshotClone, metav1.UpdateOptions{}) - if err != nil { - return newControllerUpdateError(utils.GroupSnapshotKey(groupSnapshot), err.Error()) - } - } else { - // Otherwise, perform a patch - var patches []utils.PatchOp - - if addBoundFinalizer { - patches = append(patches, utils.PatchOp{ - Op: "add", - Path: "/metadata/finalizers/-", - Value: utils.VolumeGroupSnapshotBoundFinalizer, - }) - } - - updatedGroupSnapshot, err = utils.PatchVolumeGroupSnapshot(groupSnapshot, patches, ctrl.clientset) - if err != nil { - return newControllerUpdateError(utils.GroupSnapshotKey(groupSnapshot), err.Error()) - } - } - - _, err = ctrl.storeGroupSnapshotUpdate(updatedGroupSnapshot) - if err != nil { - klog.Errorf("failed to update group snapshot store %v", err) - } - - klog.V(5).Infof("Added protection finalizer to volume group snapshot %s", utils.GroupSnapshotKey(updatedGroupSnapshot)) - return nil -} - -// processGroupSnapshotWithDeletionTimestamp processes finalizers and deletes the -// group snapshot content when appropriate. It has the following steps: -// 1. Get the VolumeGroupSnapshotContent which the to-be-deleted VolumeGroupSnapshot -// points to and verifies bi-directional binding. -// 2. Call checkandRemoveGroupSnapshotFinalizersAndCheckandDeleteGroupSnapshotContent() -// with information obtained from step 1. This function name is very long but the -// name suggests what it does. It determines whether to remove finalizers on group -// snapshot and whether to delete group snapshot content. -func (ctrl *csiSnapshotCommonController) processGroupSnapshotWithDeletionTimestamp(ctx context.Context, groupSnapshot *crdv1beta1.VolumeGroupSnapshot) error { - klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp VolumeGroupSnapshot[%s]: %s", utils.GroupSnapshotKey(groupSnapshot), utils.GetGroupSnapshotStatusForLogging(groupSnapshot)) - - driverName, err := ctrl.getGroupSnapshotDriverName(groupSnapshot) - if err != nil { - klog.Errorf("failed to getGroupSnapshotDriverName while recording metrics for group snapshot %q: %v", utils.GroupSnapshotKey(groupSnapshot), err) - } - - groupSnapshotProvisionType := metrics.DynamicGroupSnapshotType - if groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName != nil { - groupSnapshotProvisionType = metrics.PreProvisionedGroupSnapshotType - } - - // Processing delete, start operation metric - deleteOperationKey := metrics.NewOperationKey(metrics.DeleteGroupSnapshotOperationName, groupSnapshot.UID) - deleteOperationValue := metrics.NewOperationValue(driverName, groupSnapshotProvisionType) - ctrl.metricsManager.OperationStart(deleteOperationKey, deleteOperationValue) - - var groupSnapshotContentName string - if groupSnapshot.Status != nil && groupSnapshot.Status.BoundVolumeGroupSnapshotContentName != nil { - groupSnapshotContentName = *groupSnapshot.Status.BoundVolumeGroupSnapshotContentName - } - // for a dynamically created group snapshot, it's possible that a group snapshot - // content has been created however the Status of the group snapshot has not - // been updated yet, i.e., failed right after group snapshot content creation. - // In this case, use the fixed naming scheme to get the group snapshot content - // name and search - if groupSnapshotContentName == "" && &groupSnapshot.Spec.Source.VolumeGroupSnapshotContentName == nil { - groupSnapshotContentName = utils.GetDynamicSnapshotContentNameForGroupSnapshot(groupSnapshot) - } - // find a group snapshot content from cache store, note that it's completely legit - // that no group snapshot content has been found from group snapshot content - // cache store - groupSnapshotContent, err := ctrl.getGroupSnapshotContentFromStore(groupSnapshotContentName) - if err != nil { - return err - } - // check whether the group snapshot content points back to the passed in group - // snapshot, note that binding should always be bi-directional to trigger the - // deletion on group snapshot content or adding any annotation to the group - // snapshot content - var deleteGroupSnapshotContent bool - if groupSnapshotContent != nil && utils.IsVolumeGroupSnapshotRefSet(groupSnapshot, groupSnapshotContent) { - // group snapshot content points back to group snapshot, whether or not - // to delete a group snapshot content now depends on the deletion policy - // of it. - deleteGroupSnapshotContent = (groupSnapshotContent.Spec.DeletionPolicy == crdv1.VolumeSnapshotContentDelete) - } else { - // the group snapshot content is nil or points to a different group snapshot, reset group snapshot content to nil - // such that there is no operation done on the found group snapshot content in - // checkandRemoveSnapshotFinalizersAndCheckandDeleteContent - groupSnapshotContent = nil - } - - klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp[%s]: check if group snapshot is a candidate for deletion", utils.GroupSnapshotKey(groupSnapshot)) - if !utils.IsGroupSnapshotDeletionCandidate(groupSnapshot) { - return nil - } - - // Look up for members of this volume group snapshot - snapshotMembers, err := ctrl.findGroupSnapshotMembers( - types.NamespacedName{ - Name: groupSnapshot.Name, - Namespace: groupSnapshot.Namespace, - }, - ) - if err != nil { - klog.Errorf( - "processGroupSnapshotWithDeletionTimestamp[%s]: Failed to look for snapshot members: %v", - utils.GroupSnapshotKey(groupSnapshot), - err.Error()) - return err - } - - // check if an individual snapshot belonging to the group snapshot is being - // used for restore a PVC - // If yes, do nothing and wait until PVC restoration finishes - for _, snapshot := range snapshotMembers { - snapshot, err := ctrl.snapshotLister.VolumeSnapshots(groupSnapshot.Namespace).Get(snapshot.Name) - if err != nil { - if apierrs.IsNotFound(err) { - continue - } - return err - } - if ctrl.isVolumeBeingCreatedFromSnapshot(snapshot) { - msg := fmt.Sprintf("Snapshot %s belonging to VolumeGroupSnapshot %s is being used to restore a PVC", utils.SnapshotKey(snapshot), utils.GroupSnapshotKey(groupSnapshot)) - klog.V(4).Info(msg) - ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeWarning, "SnapshotDeletePending", msg) - // TODO(@xiangqian): should requeue this? - return nil - } - - } - - // regardless of the deletion policy, set VolumeGroupSnapshotBeingDeleted on - // group snapshot content object, this is to allow snapshotter sidecar controller - // to conduct a delete operation whenever the group snapshot content has deletion - // timestamp set. - if groupSnapshotContent != nil { - klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp[%s]: Set VolumeGroupSnapshotBeingDeleted annotation on the group snapshot content [%s]", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent.Name) - updatedGroupSnapshotContent, err := ctrl.setAnnVolumeGroupSnapshotBeingDeleted(groupSnapshotContent) - if err != nil { - klog.V(4).Infof("processGroupSnapshotWithDeletionTimestamp[%s]: failed to set VolumeGroupSnapshotBeingDeleted annotation on the group snapshot content [%s]: %v", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent.Name, err) - return err - } - groupSnapshotContent = updatedGroupSnapshotContent - } - - // VolumeGroupSnapshot should be deleted. Check and remove finalizers - // If group snapshot content exists and has a deletion policy of Delete, set - // DeletionTimeStamp on the group snapshot content; - // VolumeGroupSnapshotContent won't be deleted immediately due to the VolumeGroupSnapshotContentFinalizer - if groupSnapshotContent != nil && deleteGroupSnapshotContent { - klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp[%s]: set DeletionTimeStamp on group snapshot content [%s].", utils.GroupSnapshotKey(groupSnapshot), groupSnapshotContent.Name) - err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshotContents().Delete(ctx, groupSnapshotContent.Name, metav1.DeleteOptions{}) - if err != nil { - ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeWarning, "GroupSnapshotContentObjectDeleteError", "Failed to delete group snapshot content API object") - return fmt.Errorf("failed to delete VolumeGroupSnapshotContent %s from API server: %q", groupSnapshotContent.Name, err) - } - } - - klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp[%s]: Delete individual snapshots that are part of the group snapshot", utils.GroupSnapshotKey(groupSnapshot)) - - // Delete the individual snapshots part of the group snapshot - for _, snapshot := range snapshotMembers { - err := ctrl.clientset.SnapshotV1(). - VolumeSnapshots(groupSnapshot.Namespace). - Delete(context.TODO(), snapshot.Name, metav1.DeleteOptions{}) - if err != nil && !apierrs.IsNotFound(err) { - msg := fmt.Sprintf( - "failed to delete snapshot API object %s/%s part of group snapshot %s: %v", - groupSnapshot.Namespace, - snapshot.Name, - utils.GroupSnapshotKey(groupSnapshot), err) - klog.Error(msg) - ctrl.eventRecorder.Event(groupSnapshot, v1.EventTypeWarning, "SnapshotDeleteError", msg) - return errors.New(msg) - } - } - - klog.V(5).Infof("processGroupSnapshotWithDeletionTimestamp[%s] : Remove Finalizer for VolumeGroupSnapshot", utils.GroupSnapshotKey(groupSnapshot)) - // remove VolumeSnapshotBoundFinalizer on the VolumeGroupSnapshot object: - // a. If there is no group snapshot content found, remove the finalizer. - // b. If the group snapshot content is being deleted, i.e., with deleteGroupSnapshotContent == true, - // keep this finalizer until the group snapshot content object is removed - // from API server by group snapshot sidecar controller. - // c. If deletion will not cascade to the group snapshot content, remove - // the finalizer on the group snapshot such that it can be removed from - // the API server. - removeBoundFinalizer := !(groupSnapshotContent != nil && deleteGroupSnapshotContent) - return ctrl.removeGroupSnapshotFinalizer(groupSnapshot, removeBoundFinalizer) -} - -func (ctrl *csiSnapshotCommonController) setAnnVolumeGroupSnapshotBeingDeleted(groupSnapshotContent *crdv1beta1.VolumeGroupSnapshotContent) (*crdv1beta1.VolumeGroupSnapshotContent, error) { - if groupSnapshotContent == nil { - return groupSnapshotContent, nil - } - // Set AnnVolumeGroupSnapshotBeingDeleted if it is not set yet - if !metav1.HasAnnotation(groupSnapshotContent.ObjectMeta, utils.AnnVolumeGroupSnapshotBeingDeleted) { - klog.V(5).Infof("setAnnVolumeGroupSnapshotBeingDeleted: set annotation [%s] on group snapshot content [%s].", utils.AnnVolumeGroupSnapshotBeingDeleted, groupSnapshotContent.Name) - var patches []utils.PatchOp - metav1.SetMetaDataAnnotation(&groupSnapshotContent.ObjectMeta, utils.AnnVolumeGroupSnapshotBeingDeleted, "yes") - patches = append(patches, utils.PatchOp{ - Op: "replace", - Path: "/metadata/annotations", - Value: groupSnapshotContent.ObjectMeta.GetAnnotations(), - }) - - patchedGroupSnapshotContent, err := utils.PatchVolumeGroupSnapshotContent(groupSnapshotContent, patches, ctrl.clientset) - if err != nil { - return groupSnapshotContent, newControllerUpdateError(groupSnapshotContent.Name, err.Error()) - } - - // update group snapshot content if update is successful - groupSnapshotContent = patchedGroupSnapshotContent - - _, err = ctrl.storeGroupSnapshotContentUpdate(groupSnapshotContent) - if err != nil { - klog.V(4).Infof("setAnnVolumeGroupSnapshotBeingDeleted for group snapshot content [%s]: cannot update internal cache %v", groupSnapshotContent.Name, err) - return groupSnapshotContent, err - } - klog.V(5).Infof("setAnnVolumeGroupSnapshotBeingDeleted: volume group snapshot content %+v", groupSnapshotContent) - } - return groupSnapshotContent, nil -} - -// findGroupSnapshotMembers get the list of members of a group snapshot -// using the local cache and indexer -func (ctrl *csiSnapshotCommonController) findGroupSnapshotMembers(groupSnapshotName types.NamespacedName) ([]*crdv1.VolumeSnapshot, error) { - // Look up for the members of this volume group snapshot - snapshotMembers, err := ctrl.snapshotIndexer.ByIndex( - utils.VolumeSnapshotParentGroupIndex, - utils.VolumeSnapshotParentGroupKeyFuncByComponents( - groupSnapshotName, - ), - ) - if err != nil { - return nil, err - } - - result := make([]*crdv1.VolumeSnapshot, len(snapshotMembers)) - for i := range snapshotMembers { - var ok bool - result[i], ok = snapshotMembers[i].(*crdv1.VolumeSnapshot) - if !ok { - return nil, fmt.Errorf("unexpected content found in snapshot index: %v", snapshotMembers[i]) - } - } - - return result, nil -} - -// removeGroupSnapshotFinalizer removes a Finalizer for VolumeGroupSnapshot. -func (ctrl *csiSnapshotCommonController) removeGroupSnapshotFinalizer(groupSnapshot *crdv1beta1.VolumeGroupSnapshot, removeBoundFinalizer bool) error { - if !removeBoundFinalizer { - return nil - } - - // TODO: Remove PVC Finalizer - - groupSnapshotClone := groupSnapshot.DeepCopy() - groupSnapshotClone.ObjectMeta.Finalizers = utils.RemoveString(groupSnapshotClone.ObjectMeta.Finalizers, utils.VolumeGroupSnapshotBoundFinalizer) - newGroupSnapshot, err := ctrl.clientset.GroupsnapshotV1beta1().VolumeGroupSnapshots(groupSnapshotClone.Namespace).Update(context.TODO(), groupSnapshotClone, metav1.UpdateOptions{}) - if err != nil { - return newControllerUpdateError(groupSnapshot.Name, err.Error()) - } - - _, err = ctrl.storeGroupSnapshotUpdate(newGroupSnapshot) - if err != nil { - klog.Errorf("failed to update group snapshot store %v", err) - } - - klog.V(5).Infof("Removed protection finalizer from volume group snapshot %s", utils.GroupSnapshotKey(groupSnapshot)) - return nil -} - -// getGroupSnapshotDriverName is a helper function to get driver from the VolumeGroupSnapshot. -// We try to get the driverName in multiple ways, as snapshot controller metrics depend on the correct driverName. -func (ctrl *csiSnapshotCommonController) getGroupSnapshotDriverName(vgs *crdv1beta1.VolumeGroupSnapshot) (string, error) { - klog.V(5).Infof("getGroupSnapshotDriverName: VolumeGroupSnapshot[%s]", vgs.Name) - var driverName string - - // Pre-Provisioned groupsnapshots have contentName as source - var contentName string - if vgs.Spec.Source.VolumeGroupSnapshotContentName != nil { - contentName = *vgs.Spec.Source.VolumeGroupSnapshotContentName - } - - // Get Driver name from GroupSnapshotContent if we found a contentName - if contentName != "" { - content, err := ctrl.groupSnapshotContentLister.Get(contentName) - if err != nil { - klog.Errorf("getGroupSnapshotDriverName: failed to get groupSnapshotContent: %v", contentName) - } else { - driverName = content.Spec.Driver - } - - if driverName != "" { - return driverName, nil - } - } - - // Dynamic groupsnapshots will have a groupsnapshotclass with a driver - if vgs.Spec.VolumeGroupSnapshotClassName != nil { - class, err := ctrl.getGroupSnapshotClass(*vgs.Spec.VolumeGroupSnapshotClassName) - if err != nil { - klog.Errorf("getGroupSnapshotDriverName: failed to get groupSnapshotClass: %v", *vgs.Spec.VolumeGroupSnapshotClassName) - } else { - driverName = class.Driver - } - } - - return driverName, nil -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/metrics/metrics_group.go b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/metrics/metrics_group.go deleted file mode 100644 index 5c5a6fb2ab..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/metrics/metrics_group.go +++ /dev/null @@ -1,92 +0,0 @@ -/* -Copyright 2024 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package metrics - -import ( - "time" -) - -const ( - // CreateGroupSnapshotOperationName is the operation that tracks how long the controller takes to create a groupsnapshot. - // Specifically, the operation metric is emitted based on the following timestamps: - // - Start_time: controller notices the first time that there is a new VolumeGroupSnapshot CR to dynamically provision a groupsnapshot - // - End_time: controller notices that the CR has a status with CreationTime field set to be non-nil - CreateGroupSnapshotOperationName = "CreateGroupSnapshot" - - // CreateGroupSnapshotAndReadyOperationName is the operation that tracks how long the controller takes to create a groupsnapshot and for it to be ready. - // Specifically, the operation metric is emitted based on the following timestamps: - // - Start_time: controller notices the first time that there is a new VolumeGroupSnapshot CR(both dynamic and pre-provisioned cases) - // - End_time: controller notices that the CR has a status with Ready To Use field set to be true - CreateGroupSnapshotAndReadyOperationName = "CreateGroupSnapshotAndReady" - - // DeleteGroupSnapshotOperationName is the operation that tracks how long a groupsnapshot deletion takes. - // Specifically, the operation metric is emitted based on the following timestamps: - // - Start_time: controller notices the first time that there is a deletion timestamp placed on the VolumeGroupSnapshot CR and the CR is ready to be deleted. - // Note that if the CR is being used by a PVC for rehydration, the controller should *NOT* set the start_time. - // - End_time: controller removed all finalizers on the VolumeGroupSnapshot CR such that the CR is ready to be removed in the API server. - DeleteGroupSnapshotOperationName = "DeleteGroupSnapshot" - // DynamicGroupSnapshotType represents a groupsnapshot that is being dynamically provisioned - DynamicGroupSnapshotType = snapshotProvisionType("dynamic") - // PreProvisionedGroupSnapshotType represents a groupsnapshot that is pre-provisioned - PreProvisionedGroupSnapshotType = snapshotProvisionType("pre-provisioned") -) - -// RecordVolumeGroupMetrics emits operation metrics -func (opMgr *operationMetricsManager) RecordVolumeGroupSnapshotMetrics(opKey OperationKey, opStatus OperationStatus, driverName string) { - opMgr.mu.Lock() - defer opMgr.mu.Unlock() - opVal, exists := opMgr.cache[opKey] - if !exists { - // the operation has not been cached, return directly - return - } - status := string(SnapshotStatusTypeUnknown) - if opStatus != nil { - status = opStatus.String() - } - - // if we do not know the driverName while recording metrics, - // refer to the cached version instead. - if driverName == "" || driverName == unknownDriverName { - driverName = opVal.Driver - } - - operationDuration := time.Since(opVal.startTime).Seconds() - opMgr.opLatencyMetrics.WithLabelValues(driverName, opKey.Name, opVal.SnapshotType, status).Observe(operationDuration) - - // Report cancel metrics if we are deleting an unfinished VolumeGroupSnapshot - if opKey.Name == DeleteGroupSnapshotOperationName { - // check if we have a CreateGroupSnapshot operation pending for this - createKey := NewOperationKey(CreateGroupSnapshotOperationName, opKey.ResourceID) - obj, exists := opMgr.cache[createKey] - if exists { - // record a cancel metric if found - opMgr.recordCancelMetricLocked(obj, createKey, operationDuration) - } - - // check if we have a CreateGroupSnapshotAndReady operation pending for this - createAndReadyKey := NewOperationKey(CreateGroupSnapshotAndReadyOperationName, opKey.ResourceID) - obj, exists = opMgr.cache[createAndReadyKey] - if exists { - // record a cancel metric if found - opMgr.recordCancelMetricLocked(obj, createAndReadyKey, operationDuration) - } - } - - delete(opMgr.cache, opKey) - opMgr.opInFlight.Set(float64(len(opMgr.cache))) -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/pvs.go b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/pvs.go deleted file mode 100644 index b2ba5a2671..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/pvs.go +++ /dev/null @@ -1,41 +0,0 @@ -/* -Copyright 2024 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package utils - -import ( - "fmt" - - v1 "k8s.io/api/core/v1" -) - -const CSIDriverHandleIndexName = "ByVolumeHandle" - -// PersistentVolumeKeyFunc maps a persistent volume to a string usable -// as KeyFunc to recover it from the CSI driver name and the volume handle. -// If the passed PV is not CSI-based, it will return the empty string -func PersistentVolumeKeyFunc(pv *v1.PersistentVolume) string { - if pv != nil && pv.Spec.CSI != nil { - return fmt.Sprintf("%s^%s", pv.Spec.CSI.Driver, pv.Spec.CSI.VolumeHandle) - } - return "" -} - -// PersistentVolumeKeyFuncByCSIDriverHandle returns the key to be used form -// the individual data components -func PersistentVolumeKeyFuncByCSIDriverHandle(driverName, volumeHandle string) string { - return fmt.Sprintf("%s^%s", driverName, volumeHandle) -} diff --git a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/vgs.go b/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/vgs.go deleted file mode 100644 index 1c29cbe602..0000000000 --- a/vendor/github.com/kubernetes-csi/external-snapshotter/v8/pkg/utils/vgs.go +++ /dev/null @@ -1,114 +0,0 @@ -/* -Copyright 2024 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package utils - -import ( - "fmt" - - crdv1beta1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1" - crdv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" -) - -// VolumeSnapshotParentGroupIndex is the name of the cache index hosting the relationship -// between volume snapshots and their volume group snapshot owner -const VolumeSnapshotParentGroupIndex = "ByVolumeGroupSnapshotMembership" - -// getVolumeGroupSnapshotParentObjectName returns the name of the parent group snapshot, if present. -// The second return value is true when the parent object have been found, false otherwise. -func getVolumeGroupSnapshotParentObjectName(snapshot *crdv1.VolumeSnapshot) string { - if snapshot == nil { - return "" - } - - apiVersion := fmt.Sprintf( - "%s/%s", - crdv1beta1.SchemeGroupVersion.Group, - crdv1beta1.SchemeGroupVersion.Version, - ) - - for _, owner := range snapshot.ObjectMeta.OwnerReferences { - if owner.Kind == "VolumeGroupSnapshot" && owner.APIVersion == apiVersion { - return owner.Name - } - } - - return "" -} - -// IsVolumeGroupSnapshotMember returns true if the passed VolumeSnapshot object -// is a member of a VolumeGroupSnapshot. -func IsVolumeGroupSnapshotMember(snapshot *crdv1.VolumeSnapshot) bool { - parentName := getVolumeGroupSnapshotParentObjectName(snapshot) - return len(parentName) > 0 -} - -// VolumeSnapshotParentGroupKeyFunc maps a member snapshot to the name -// of the parent VolumeGroupSnapshot -func VolumeSnapshotParentGroupKeyFunc(snapshot *crdv1.VolumeSnapshot) string { - parentName := getVolumeGroupSnapshotParentObjectName(snapshot) - if len(parentName) == 0 { - return "" - } - - return VolumeSnapshotParentGroupKeyFuncByComponents(types.NamespacedName{ - Namespace: snapshot.Namespace, - Name: parentName, - }) -} - -// VolumeSnapshotParentGroupKeyFuncByComponents computes the index key for a certain -// name and namespace pair -func VolumeSnapshotParentGroupKeyFuncByComponents(objectKey types.NamespacedName) string { - return fmt.Sprintf("%s^%s", objectKey.Namespace, objectKey.Name) -} - -// NeedToAddVolumeGroupSnapshotOwnership checks if the passed snapshot is a member -// of a volume group snapshot but the ownership is missing -func NeedToAddVolumeGroupSnapshotOwnership(snapshot *crdv1.VolumeSnapshot) bool { - parentObjectName := getVolumeGroupSnapshotParentObjectName(snapshot) - if len(parentObjectName) > 0 { - return false - } - - // Group snapshot ownership should be added only when - // the snapshot is marked with its group snapshot name - if snapshot == nil || - snapshot.Status == nil || - snapshot.Status.VolumeGroupSnapshotName == nil || - len(*snapshot.Status.VolumeGroupSnapshotName) == 0 { - return false - } - - return true -} - -// BuildVolumeGroupSnapshotOwnerReference creates a OwnerReference record declaring an -// object as a child of passed VolumeGroupSnapshot -func BuildVolumeGroupSnapshotOwnerReference(parentGroup *crdv1beta1.VolumeGroupSnapshot) metav1.OwnerReference { - return metav1.OwnerReference{ - APIVersion: fmt.Sprintf( - "%s/%s", - crdv1beta1.SchemeGroupVersion.Group, - crdv1beta1.SchemeGroupVersion.Version, - ), - Kind: "VolumeGroupSnapshot", - Name: parentGroup.Name, - UID: parentGroup.UID, - } -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go new file mode 100644 index 0000000000..e8f11d9f21 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CancelWorkRequestRequest wrapper for the CancelWorkRequest operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequestRequest. +type CancelWorkRequestRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 CancelWorkRequestRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CancelWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CancelWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CancelWorkRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CancelWorkRequestResponse wrapper for the CancelWorkRequest operation +type CancelWorkRequestResponse 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 CancelWorkRequestResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CancelWorkRequestResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go new file mode 100644 index 0000000000..e52138834d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeLustreFileSystemCompartmentRequest wrapper for the ChangeLustreFileSystemCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeLustreFileSystemCompartment.go.html to see an example of how to use ChangeLustreFileSystemCompartmentRequest. +type ChangeLustreFileSystemCompartmentRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. + LustreFileSystemId *string `mandatory:"true" contributesTo:"path" name:"lustreFileSystemId"` + + // The information to be updated. + ChangeLustreFileSystemCompartmentDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 ChangeLustreFileSystemCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeLustreFileSystemCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeLustreFileSystemCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeLustreFileSystemCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeLustreFileSystemCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeLustreFileSystemCompartmentResponse wrapper for the ChangeLustreFileSystemCompartment operation +type ChangeLustreFileSystemCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + // Use 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 ChangeLustreFileSystemCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeLustreFileSystemCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go new file mode 100644 index 0000000000..f0e22e8831 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go @@ -0,0 +1,112 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeObjectStorageLinkCompartmentRequest wrapper for the ChangeObjectStorageLinkCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeObjectStorageLinkCompartment.go.html to see an example of how to use ChangeObjectStorageLinkCompartmentRequest. +type ChangeObjectStorageLinkCompartmentRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // The information to be updated. + ChangeObjectStorageLinkCompartmentDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 running 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 removed 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 ChangeObjectStorageLinkCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeObjectStorageLinkCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeObjectStorageLinkCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeObjectStorageLinkCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeObjectStorageLinkCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeObjectStorageLinkCompartmentResponse wrapper for the ChangeObjectStorageLinkCompartment operation +type ChangeObjectStorageLinkCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ObjectStorageLink instance + ObjectStorageLink `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 ChangeObjectStorageLinkCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeObjectStorageLinkCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go new file mode 100644 index 0000000000..b62ba01282 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go @@ -0,0 +1,113 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateLustreFileSystemRequest wrapper for the CreateLustreFileSystem operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateLustreFileSystem.go.html to see an example of how to use CreateLustreFileSystemRequest. +type CreateLustreFileSystemRequest struct { + + // Details for the new Lustre file system. + CreateLustreFileSystemDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 CreateLustreFileSystemRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateLustreFileSystemRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateLustreFileSystemRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateLustreFileSystemRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateLustreFileSystemRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateLustreFileSystemResponse wrapper for the CreateLustreFileSystem operation +type CreateLustreFileSystemResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The LustreFileSystem instance + LustreFileSystem `presentIn:"body"` + + // URL for the created Lustre file system. The lustreFileSystem OCID is generated after this request is sent. + Location *string `presentIn:"header" name:"location"` + + // Same as location. + ContentLocation *string `presentIn:"header" name:"content-location"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + // Use 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 CreateLustreFileSystemResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateLustreFileSystemResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go new file mode 100644 index 0000000000..5415864659 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateObjectStorageLinkRequest wrapper for the CreateObjectStorageLink operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateObjectStorageLink.go.html to see an example of how to use CreateObjectStorageLinkRequest. +type CreateObjectStorageLinkRequest struct { + + // Details for the new Object Storage link. + CreateObjectStorageLinkDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 CreateObjectStorageLinkRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateObjectStorageLinkRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateObjectStorageLinkRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateObjectStorageLinkRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateObjectStorageLinkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateObjectStorageLinkResponse wrapper for the CreateObjectStorageLink operation +type CreateObjectStorageLinkResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ObjectStorageLink instance + ObjectStorageLink `presentIn:"body"` + + // URL for the created Object Storage link. The Object Storage link OCID is generated after this request is sent. + Location *string `presentIn:"header" name:"location"` + + // Same as location. + ContentLocation *string `presentIn:"header" name:"content-location"` + + // 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 CreateObjectStorageLinkResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateObjectStorageLinkResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go new file mode 100644 index 0000000000..42f9289a34 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteLustreFileSystemRequest wrapper for the DeleteLustreFileSystem operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteLustreFileSystem.go.html to see an example of how to use DeleteLustreFileSystemRequest. +type DeleteLustreFileSystemRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. + LustreFileSystemId *string `mandatory:"true" contributesTo:"path" name:"lustreFileSystemId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 DeleteLustreFileSystemRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteLustreFileSystemRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteLustreFileSystemRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteLustreFileSystemRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteLustreFileSystemRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteLustreFileSystemResponse wrapper for the DeleteLustreFileSystem operation +type DeleteLustreFileSystemResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + // Use 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 DeleteLustreFileSystemResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteLustreFileSystemResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go new file mode 100644 index 0000000000..65a8f851ba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteObjectStorageLinkRequest wrapper for the DeleteObjectStorageLink operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteObjectStorageLink.go.html to see an example of how to use DeleteObjectStorageLinkRequest. +type DeleteObjectStorageLinkRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 DeleteObjectStorageLinkRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteObjectStorageLinkRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteObjectStorageLinkRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteObjectStorageLinkRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteObjectStorageLinkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteObjectStorageLinkResponse wrapper for the DeleteObjectStorageLink operation +type DeleteObjectStorageLinkResponse 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + // Use GetWorkRequest with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response DeleteObjectStorageLinkResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteObjectStorageLinkResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go new file mode 100644 index 0000000000..c856c12a92 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetLustreFileSystemRequest wrapper for the GetLustreFileSystem operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetLustreFileSystem.go.html to see an example of how to use GetLustreFileSystemRequest. +type GetLustreFileSystemRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. + LustreFileSystemId *string `mandatory:"true" contributesTo:"path" name:"lustreFileSystemId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 GetLustreFileSystemRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetLustreFileSystemRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetLustreFileSystemRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetLustreFileSystemRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetLustreFileSystemRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetLustreFileSystemResponse wrapper for the GetLustreFileSystem operation +type GetLustreFileSystemResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The LustreFileSystem instance + LustreFileSystem `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 GetLustreFileSystemResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetLustreFileSystemResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go new file mode 100644 index 0000000000..0d04382d9b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetObjectStorageLinkRequest wrapper for the GetObjectStorageLink operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetObjectStorageLink.go.html to see an example of how to use GetObjectStorageLinkRequest. +type GetObjectStorageLinkRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 GetObjectStorageLinkRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetObjectStorageLinkRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetObjectStorageLinkRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetObjectStorageLinkRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetObjectStorageLinkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetObjectStorageLinkResponse wrapper for the GetObjectStorageLink operation +type GetObjectStorageLinkResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ObjectStorageLink instance + ObjectStorageLink `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 GetObjectStorageLinkResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetObjectStorageLinkResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go new file mode 100644 index 0000000000..df1abe6635 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetSyncJobRequest wrapper for the GetSyncJob operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetSyncJob.go.html to see an example of how to use GetSyncJobRequest. +type GetSyncJobRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the sync job. + SyncJobId *string `mandatory:"true" contributesTo:"path" name:"syncJobId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 GetSyncJobRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetSyncJobRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetSyncJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetSyncJobRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetSyncJobRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetSyncJobResponse wrapper for the GetSyncJob operation +type GetSyncJobResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SyncJob instance + SyncJob `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 GetSyncJobResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetSyncJobResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go new file mode 100644 index 0000000000..d1f1ccadbf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetWorkRequestRequest wrapper for the GetWorkRequest operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. +type GetWorkRequestRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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("%s", 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"` + + // A decimal number representing the number of seconds the client 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/lustrefilestorage/list_lustre_file_systems_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go new file mode 100644 index 0000000000..446f864823 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go @@ -0,0 +1,221 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListLustreFileSystemsRequest wrapper for the ListLustreFileSystems operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListLustreFileSystems.go.html to see an example of how to use ListLustreFileSystemsRequest. +type ListLustreFileSystemsRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" 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 lifecycle state. The + // state value is case-insensitive. + LifecycleState LustreFileSystemLifecycleStateEnum `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 OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. + Id *string `mandatory:"false" contributesTo:"query" name:"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.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.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`). + SortOrder ListLustreFileSystemsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. You can provide only one sort order. Default order for `timeCreated` + // is descending. Default order for `displayName` is ascending. + SortBy ListLustreFileSystemsSortByEnum `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 ListLustreFileSystemsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListLustreFileSystemsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListLustreFileSystemsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListLustreFileSystemsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListLustreFileSystemsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLustreFileSystemLifecycleStateEnum(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(GetLustreFileSystemLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListLustreFileSystemsSortOrderEnum(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(GetListLustreFileSystemsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListLustreFileSystemsSortByEnum(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(GetListLustreFileSystemsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListLustreFileSystemsResponse wrapper for the ListLustreFileSystems operation +type ListLustreFileSystemsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of LustreFileSystemCollection instances + LustreFileSystemCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListLustreFileSystemsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListLustreFileSystemsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListLustreFileSystemsSortOrderEnum Enum with underlying type: string +type ListLustreFileSystemsSortOrderEnum string + +// Set of constants representing the allowable values for ListLustreFileSystemsSortOrderEnum +const ( + ListLustreFileSystemsSortOrderAsc ListLustreFileSystemsSortOrderEnum = "ASC" + ListLustreFileSystemsSortOrderDesc ListLustreFileSystemsSortOrderEnum = "DESC" +) + +var mappingListLustreFileSystemsSortOrderEnum = map[string]ListLustreFileSystemsSortOrderEnum{ + "ASC": ListLustreFileSystemsSortOrderAsc, + "DESC": ListLustreFileSystemsSortOrderDesc, +} + +var mappingListLustreFileSystemsSortOrderEnumLowerCase = map[string]ListLustreFileSystemsSortOrderEnum{ + "asc": ListLustreFileSystemsSortOrderAsc, + "desc": ListLustreFileSystemsSortOrderDesc, +} + +// GetListLustreFileSystemsSortOrderEnumValues Enumerates the set of values for ListLustreFileSystemsSortOrderEnum +func GetListLustreFileSystemsSortOrderEnumValues() []ListLustreFileSystemsSortOrderEnum { + values := make([]ListLustreFileSystemsSortOrderEnum, 0) + for _, v := range mappingListLustreFileSystemsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListLustreFileSystemsSortOrderEnumStringValues Enumerates the set of values in String for ListLustreFileSystemsSortOrderEnum +func GetListLustreFileSystemsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListLustreFileSystemsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListLustreFileSystemsSortOrderEnum(val string) (ListLustreFileSystemsSortOrderEnum, bool) { + enum, ok := mappingListLustreFileSystemsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListLustreFileSystemsSortByEnum Enum with underlying type: string +type ListLustreFileSystemsSortByEnum string + +// Set of constants representing the allowable values for ListLustreFileSystemsSortByEnum +const ( + ListLustreFileSystemsSortByTimecreated ListLustreFileSystemsSortByEnum = "timeCreated" + ListLustreFileSystemsSortByDisplayname ListLustreFileSystemsSortByEnum = "displayName" +) + +var mappingListLustreFileSystemsSortByEnum = map[string]ListLustreFileSystemsSortByEnum{ + "timeCreated": ListLustreFileSystemsSortByTimecreated, + "displayName": ListLustreFileSystemsSortByDisplayname, +} + +var mappingListLustreFileSystemsSortByEnumLowerCase = map[string]ListLustreFileSystemsSortByEnum{ + "timecreated": ListLustreFileSystemsSortByTimecreated, + "displayname": ListLustreFileSystemsSortByDisplayname, +} + +// GetListLustreFileSystemsSortByEnumValues Enumerates the set of values for ListLustreFileSystemsSortByEnum +func GetListLustreFileSystemsSortByEnumValues() []ListLustreFileSystemsSortByEnum { + values := make([]ListLustreFileSystemsSortByEnum, 0) + for _, v := range mappingListLustreFileSystemsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListLustreFileSystemsSortByEnumStringValues Enumerates the set of values in String for ListLustreFileSystemsSortByEnum +func GetListLustreFileSystemsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListLustreFileSystemsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListLustreFileSystemsSortByEnum(val string) (ListLustreFileSystemsSortByEnum, bool) { + enum, ok := mappingListLustreFileSystemsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go new file mode 100644 index 0000000000..02c56cf8d0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go @@ -0,0 +1,224 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListObjectStorageLinksRequest wrapper for the ListObjectStorageLinks operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListObjectStorageLinks.go.html to see an example of how to use ListObjectStorageLinksRequest. +type ListObjectStorageLinksRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" 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 lifecycle state. The + // state value is case-insensitive. + LifecycleState ObjectStorageLinkLifecycleStateEnum `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 OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + Id *string `mandatory:"false" contributesTo:"query" name:"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.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.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`). + SortOrder ListObjectStorageLinksSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. You can provide only one sort order. Default order for `timeCreated` + // is descending. Default order for `displayName` is ascending. + SortBy ListObjectStorageLinksSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. + LustreFileSystemId *string `mandatory:"false" contributesTo:"query" name:"lustreFileSystemId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 ListObjectStorageLinksRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListObjectStorageLinksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListObjectStorageLinksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListObjectStorageLinksRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListObjectStorageLinksRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingObjectStorageLinkLifecycleStateEnum(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(GetObjectStorageLinkLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListObjectStorageLinksSortOrderEnum(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(GetListObjectStorageLinksSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListObjectStorageLinksSortByEnum(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(GetListObjectStorageLinksSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListObjectStorageLinksResponse wrapper for the ListObjectStorageLinks operation +type ListObjectStorageLinksResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ObjectStorageLinkCollection instances + ObjectStorageLinkCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListObjectStorageLinksResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListObjectStorageLinksResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListObjectStorageLinksSortOrderEnum Enum with underlying type: string +type ListObjectStorageLinksSortOrderEnum string + +// Set of constants representing the allowable values for ListObjectStorageLinksSortOrderEnum +const ( + ListObjectStorageLinksSortOrderAsc ListObjectStorageLinksSortOrderEnum = "ASC" + ListObjectStorageLinksSortOrderDesc ListObjectStorageLinksSortOrderEnum = "DESC" +) + +var mappingListObjectStorageLinksSortOrderEnum = map[string]ListObjectStorageLinksSortOrderEnum{ + "ASC": ListObjectStorageLinksSortOrderAsc, + "DESC": ListObjectStorageLinksSortOrderDesc, +} + +var mappingListObjectStorageLinksSortOrderEnumLowerCase = map[string]ListObjectStorageLinksSortOrderEnum{ + "asc": ListObjectStorageLinksSortOrderAsc, + "desc": ListObjectStorageLinksSortOrderDesc, +} + +// GetListObjectStorageLinksSortOrderEnumValues Enumerates the set of values for ListObjectStorageLinksSortOrderEnum +func GetListObjectStorageLinksSortOrderEnumValues() []ListObjectStorageLinksSortOrderEnum { + values := make([]ListObjectStorageLinksSortOrderEnum, 0) + for _, v := range mappingListObjectStorageLinksSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListObjectStorageLinksSortOrderEnumStringValues Enumerates the set of values in String for ListObjectStorageLinksSortOrderEnum +func GetListObjectStorageLinksSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListObjectStorageLinksSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListObjectStorageLinksSortOrderEnum(val string) (ListObjectStorageLinksSortOrderEnum, bool) { + enum, ok := mappingListObjectStorageLinksSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListObjectStorageLinksSortByEnum Enum with underlying type: string +type ListObjectStorageLinksSortByEnum string + +// Set of constants representing the allowable values for ListObjectStorageLinksSortByEnum +const ( + ListObjectStorageLinksSortByTimecreated ListObjectStorageLinksSortByEnum = "timeCreated" + ListObjectStorageLinksSortByDisplayname ListObjectStorageLinksSortByEnum = "displayName" +) + +var mappingListObjectStorageLinksSortByEnum = map[string]ListObjectStorageLinksSortByEnum{ + "timeCreated": ListObjectStorageLinksSortByTimecreated, + "displayName": ListObjectStorageLinksSortByDisplayname, +} + +var mappingListObjectStorageLinksSortByEnumLowerCase = map[string]ListObjectStorageLinksSortByEnum{ + "timecreated": ListObjectStorageLinksSortByTimecreated, + "displayname": ListObjectStorageLinksSortByDisplayname, +} + +// GetListObjectStorageLinksSortByEnumValues Enumerates the set of values for ListObjectStorageLinksSortByEnum +func GetListObjectStorageLinksSortByEnumValues() []ListObjectStorageLinksSortByEnum { + values := make([]ListObjectStorageLinksSortByEnum, 0) + for _, v := range mappingListObjectStorageLinksSortByEnum { + values = append(values, v) + } + return values +} + +// GetListObjectStorageLinksSortByEnumStringValues Enumerates the set of values in String for ListObjectStorageLinksSortByEnum +func GetListObjectStorageLinksSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListObjectStorageLinksSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListObjectStorageLinksSortByEnum(val string) (ListObjectStorageLinksSortByEnum, bool) { + enum, ok := mappingListObjectStorageLinksSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go new file mode 100644 index 0000000000..1630840836 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go @@ -0,0 +1,213 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListSyncJobsRequest wrapper for the ListSyncJobs operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListSyncJobs.go.html to see an example of how to use ListSyncJobsRequest. +type ListSyncJobsRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // 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.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.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`). + SortOrder ListSyncJobsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A filter to return only resources that match the given lifecycle state. The + // state value is case-insensitive. + LifecycleState SyncJobLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The field to sort by. You can provide only one sort order. Default order for `timeCreated` + // is descending. Default order for `displayName` is ascending. + SortBy ListSyncJobsSortByEnum `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 ListSyncJobsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListSyncJobsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListSyncJobsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListSyncJobsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListSyncJobsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListSyncJobsSortOrderEnum(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(GetListSyncJobsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingSyncJobLifecycleStateEnum(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(GetSyncJobLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListSyncJobsSortByEnum(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(GetListSyncJobsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListSyncJobsResponse wrapper for the ListSyncJobs operation +type ListSyncJobsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of SyncJobCollection instances + SyncJobCollection `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.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 ListSyncJobsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListSyncJobsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListSyncJobsSortOrderEnum Enum with underlying type: string +type ListSyncJobsSortOrderEnum string + +// Set of constants representing the allowable values for ListSyncJobsSortOrderEnum +const ( + ListSyncJobsSortOrderAsc ListSyncJobsSortOrderEnum = "ASC" + ListSyncJobsSortOrderDesc ListSyncJobsSortOrderEnum = "DESC" +) + +var mappingListSyncJobsSortOrderEnum = map[string]ListSyncJobsSortOrderEnum{ + "ASC": ListSyncJobsSortOrderAsc, + "DESC": ListSyncJobsSortOrderDesc, +} + +var mappingListSyncJobsSortOrderEnumLowerCase = map[string]ListSyncJobsSortOrderEnum{ + "asc": ListSyncJobsSortOrderAsc, + "desc": ListSyncJobsSortOrderDesc, +} + +// GetListSyncJobsSortOrderEnumValues Enumerates the set of values for ListSyncJobsSortOrderEnum +func GetListSyncJobsSortOrderEnumValues() []ListSyncJobsSortOrderEnum { + values := make([]ListSyncJobsSortOrderEnum, 0) + for _, v := range mappingListSyncJobsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListSyncJobsSortOrderEnumStringValues Enumerates the set of values in String for ListSyncJobsSortOrderEnum +func GetListSyncJobsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListSyncJobsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSyncJobsSortOrderEnum(val string) (ListSyncJobsSortOrderEnum, bool) { + enum, ok := mappingListSyncJobsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListSyncJobsSortByEnum Enum with underlying type: string +type ListSyncJobsSortByEnum string + +// Set of constants representing the allowable values for ListSyncJobsSortByEnum +const ( + ListSyncJobsSortByTimecreated ListSyncJobsSortByEnum = "timeCreated" +) + +var mappingListSyncJobsSortByEnum = map[string]ListSyncJobsSortByEnum{ + "timeCreated": ListSyncJobsSortByTimecreated, +} + +var mappingListSyncJobsSortByEnumLowerCase = map[string]ListSyncJobsSortByEnum{ + "timecreated": ListSyncJobsSortByTimecreated, +} + +// GetListSyncJobsSortByEnumValues Enumerates the set of values for ListSyncJobsSortByEnum +func GetListSyncJobsSortByEnumValues() []ListSyncJobsSortByEnum { + values := make([]ListSyncJobsSortByEnum, 0) + for _, v := range mappingListSyncJobsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListSyncJobsSortByEnumStringValues Enumerates the set of values in String for ListSyncJobsSortByEnum +func GetListSyncJobsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + } +} + +// GetMappingListSyncJobsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSyncJobsSortByEnum(val string) (ListSyncJobsSortByEnum, bool) { + enum, ok := mappingListSyncJobsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go new file mode 100644 index 0000000000..3e79fc829d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go @@ -0,0 +1,199 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest. +type ListWorkRequestErrorsRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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.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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending. + SortBy ListWorkRequestErrorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListWorkRequestErrorsSortOrderEnum `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 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 _, ok := GetMappingListWorkRequestErrorsSortByEnum(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(GetListWorkRequestErrorsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListWorkRequestErrorsSortOrderEnum(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(GetListWorkRequestErrorsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", 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 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.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 ListWorkRequestErrorsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListWorkRequestErrorsSortByEnum Enum with underlying type: string +type ListWorkRequestErrorsSortByEnum string + +// Set of constants representing the allowable values for ListWorkRequestErrorsSortByEnum +const ( + ListWorkRequestErrorsSortByTimestamp ListWorkRequestErrorsSortByEnum = "timestamp" +) + +var mappingListWorkRequestErrorsSortByEnum = map[string]ListWorkRequestErrorsSortByEnum{ + "timestamp": ListWorkRequestErrorsSortByTimestamp, +} + +var mappingListWorkRequestErrorsSortByEnumLowerCase = map[string]ListWorkRequestErrorsSortByEnum{ + "timestamp": ListWorkRequestErrorsSortByTimestamp, +} + +// GetListWorkRequestErrorsSortByEnumValues Enumerates the set of values for ListWorkRequestErrorsSortByEnum +func GetListWorkRequestErrorsSortByEnumValues() []ListWorkRequestErrorsSortByEnum { + values := make([]ListWorkRequestErrorsSortByEnum, 0) + for _, v := range mappingListWorkRequestErrorsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestErrorsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortByEnum +func GetListWorkRequestErrorsSortByEnumStringValues() []string { + return []string{ + "timestamp", + } +} + +// GetMappingListWorkRequestErrorsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestErrorsSortByEnum(val string) (ListWorkRequestErrorsSortByEnum, bool) { + enum, ok := mappingListWorkRequestErrorsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListWorkRequestErrorsSortOrderEnum Enum with underlying type: string +type ListWorkRequestErrorsSortOrderEnum string + +// Set of constants representing the allowable values for ListWorkRequestErrorsSortOrderEnum +const ( + ListWorkRequestErrorsSortOrderAsc ListWorkRequestErrorsSortOrderEnum = "ASC" + ListWorkRequestErrorsSortOrderDesc ListWorkRequestErrorsSortOrderEnum = "DESC" +) + +var mappingListWorkRequestErrorsSortOrderEnum = map[string]ListWorkRequestErrorsSortOrderEnum{ + "ASC": ListWorkRequestErrorsSortOrderAsc, + "DESC": ListWorkRequestErrorsSortOrderDesc, +} + +var mappingListWorkRequestErrorsSortOrderEnumLowerCase = map[string]ListWorkRequestErrorsSortOrderEnum{ + "asc": ListWorkRequestErrorsSortOrderAsc, + "desc": ListWorkRequestErrorsSortOrderDesc, +} + +// GetListWorkRequestErrorsSortOrderEnumValues Enumerates the set of values for ListWorkRequestErrorsSortOrderEnum +func GetListWorkRequestErrorsSortOrderEnumValues() []ListWorkRequestErrorsSortOrderEnum { + values := make([]ListWorkRequestErrorsSortOrderEnum, 0) + for _, v := range mappingListWorkRequestErrorsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestErrorsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortOrderEnum +func GetListWorkRequestErrorsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListWorkRequestErrorsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestErrorsSortOrderEnum(val string) (ListWorkRequestErrorsSortOrderEnum, bool) { + enum, ok := mappingListWorkRequestErrorsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go new file mode 100644 index 0000000000..f8c49d2a42 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go @@ -0,0 +1,199 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest. +type ListWorkRequestLogsRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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.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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending. + SortBy ListWorkRequestLogsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListWorkRequestLogsSortOrderEnum `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 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 _, ok := GetMappingListWorkRequestLogsSortByEnum(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(GetListWorkRequestLogsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListWorkRequestLogsSortOrderEnum(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(GetListWorkRequestLogsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", 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 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.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 ListWorkRequestLogsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListWorkRequestLogsSortByEnum Enum with underlying type: string +type ListWorkRequestLogsSortByEnum string + +// Set of constants representing the allowable values for ListWorkRequestLogsSortByEnum +const ( + ListWorkRequestLogsSortByTimestamp ListWorkRequestLogsSortByEnum = "timestamp" +) + +var mappingListWorkRequestLogsSortByEnum = map[string]ListWorkRequestLogsSortByEnum{ + "timestamp": ListWorkRequestLogsSortByTimestamp, +} + +var mappingListWorkRequestLogsSortByEnumLowerCase = map[string]ListWorkRequestLogsSortByEnum{ + "timestamp": ListWorkRequestLogsSortByTimestamp, +} + +// GetListWorkRequestLogsSortByEnumValues Enumerates the set of values for ListWorkRequestLogsSortByEnum +func GetListWorkRequestLogsSortByEnumValues() []ListWorkRequestLogsSortByEnum { + values := make([]ListWorkRequestLogsSortByEnum, 0) + for _, v := range mappingListWorkRequestLogsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestLogsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortByEnum +func GetListWorkRequestLogsSortByEnumStringValues() []string { + return []string{ + "timestamp", + } +} + +// GetMappingListWorkRequestLogsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestLogsSortByEnum(val string) (ListWorkRequestLogsSortByEnum, bool) { + enum, ok := mappingListWorkRequestLogsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListWorkRequestLogsSortOrderEnum Enum with underlying type: string +type ListWorkRequestLogsSortOrderEnum string + +// Set of constants representing the allowable values for ListWorkRequestLogsSortOrderEnum +const ( + ListWorkRequestLogsSortOrderAsc ListWorkRequestLogsSortOrderEnum = "ASC" + ListWorkRequestLogsSortOrderDesc ListWorkRequestLogsSortOrderEnum = "DESC" +) + +var mappingListWorkRequestLogsSortOrderEnum = map[string]ListWorkRequestLogsSortOrderEnum{ + "ASC": ListWorkRequestLogsSortOrderAsc, + "DESC": ListWorkRequestLogsSortOrderDesc, +} + +var mappingListWorkRequestLogsSortOrderEnumLowerCase = map[string]ListWorkRequestLogsSortOrderEnum{ + "asc": ListWorkRequestLogsSortOrderAsc, + "desc": ListWorkRequestLogsSortOrderDesc, +} + +// GetListWorkRequestLogsSortOrderEnumValues Enumerates the set of values for ListWorkRequestLogsSortOrderEnum +func GetListWorkRequestLogsSortOrderEnumValues() []ListWorkRequestLogsSortOrderEnum { + values := make([]ListWorkRequestLogsSortOrderEnum, 0) + for _, v := range mappingListWorkRequestLogsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestLogsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortOrderEnum +func GetListWorkRequestLogsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListWorkRequestLogsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestLogsSortOrderEnum(val string) (ListWorkRequestLogsSortOrderEnum, bool) { + enum, ok := mappingListWorkRequestLogsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go new file mode 100644 index 0000000000..49e56868b1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go @@ -0,0 +1,277 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestsRequest wrapper for the ListWorkRequests operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. +type ListWorkRequestsRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + WorkRequestId *string `mandatory:"false" contributesTo:"query" name:"workRequestId"` + + // A filter to return only the resources that match the given lifecycle state. + Status ListWorkRequestsStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. + ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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.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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListWorkRequestsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order may be provided. Default order for `timeAccepted` is descending. + SortBy ListWorkRequestsSortByEnum `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 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 := GetMappingListWorkRequestsStatusEnum(string(request.Status)); !ok && request.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", request.Status, strings.Join(GetListWorkRequestsStatusEnumStringValues(), ","))) + } + 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("%s", 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 WorkRequestSummaryCollection instances + WorkRequestSummaryCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + 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 +} + +// ListWorkRequestsStatusEnum Enum with underlying type: string +type ListWorkRequestsStatusEnum string + +// Set of constants representing the allowable values for ListWorkRequestsStatusEnum +const ( + ListWorkRequestsStatusAccepted ListWorkRequestsStatusEnum = "ACCEPTED" + ListWorkRequestsStatusInProgress ListWorkRequestsStatusEnum = "IN_PROGRESS" + ListWorkRequestsStatusWaiting ListWorkRequestsStatusEnum = "WAITING" + ListWorkRequestsStatusNeedsAttention ListWorkRequestsStatusEnum = "NEEDS_ATTENTION" + ListWorkRequestsStatusFailed ListWorkRequestsStatusEnum = "FAILED" + ListWorkRequestsStatusSucceeded ListWorkRequestsStatusEnum = "SUCCEEDED" + ListWorkRequestsStatusCanceling ListWorkRequestsStatusEnum = "CANCELING" + ListWorkRequestsStatusCanceled ListWorkRequestsStatusEnum = "CANCELED" +) + +var mappingListWorkRequestsStatusEnum = map[string]ListWorkRequestsStatusEnum{ + "ACCEPTED": ListWorkRequestsStatusAccepted, + "IN_PROGRESS": ListWorkRequestsStatusInProgress, + "WAITING": ListWorkRequestsStatusWaiting, + "NEEDS_ATTENTION": ListWorkRequestsStatusNeedsAttention, + "FAILED": ListWorkRequestsStatusFailed, + "SUCCEEDED": ListWorkRequestsStatusSucceeded, + "CANCELING": ListWorkRequestsStatusCanceling, + "CANCELED": ListWorkRequestsStatusCanceled, +} + +var mappingListWorkRequestsStatusEnumLowerCase = map[string]ListWorkRequestsStatusEnum{ + "accepted": ListWorkRequestsStatusAccepted, + "in_progress": ListWorkRequestsStatusInProgress, + "waiting": ListWorkRequestsStatusWaiting, + "needs_attention": ListWorkRequestsStatusNeedsAttention, + "failed": ListWorkRequestsStatusFailed, + "succeeded": ListWorkRequestsStatusSucceeded, + "canceling": ListWorkRequestsStatusCanceling, + "canceled": ListWorkRequestsStatusCanceled, +} + +// GetListWorkRequestsStatusEnumValues Enumerates the set of values for ListWorkRequestsStatusEnum +func GetListWorkRequestsStatusEnumValues() []ListWorkRequestsStatusEnum { + values := make([]ListWorkRequestsStatusEnum, 0) + for _, v := range mappingListWorkRequestsStatusEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestsStatusEnumStringValues Enumerates the set of values in String for ListWorkRequestsStatusEnum +func GetListWorkRequestsStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "WAITING", + "NEEDS_ATTENTION", + "FAILED", + "SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingListWorkRequestsStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestsStatusEnum(val string) (ListWorkRequestsStatusEnum, bool) { + enum, ok := mappingListWorkRequestsStatusEnumLowerCase[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 ( + ListWorkRequestsSortByTimeaccepted ListWorkRequestsSortByEnum = "timeAccepted" +) + +var mappingListWorkRequestsSortByEnum = map[string]ListWorkRequestsSortByEnum{ + "timeAccepted": ListWorkRequestsSortByTimeaccepted, +} + +var mappingListWorkRequestsSortByEnumLowerCase = map[string]ListWorkRequestsSortByEnum{ + "timeaccepted": ListWorkRequestsSortByTimeaccepted, +} + +// 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{ + "timeAccepted", + } +} + +// 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/lustrefilestorage/lustrefilestorage_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go new file mode 100644 index 0000000000..502e6cef14 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go @@ -0,0 +1,1467 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// LustreFileStorageClient a client for LustreFileStorage +type LustreFileStorageClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewLustreFileStorageClientWithConfigurationProvider Creates a new default LustreFileStorage client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewLustreFileStorageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client LustreFileStorageClient, err error) { + if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newLustreFileStorageClientFromBaseClient(baseClient, provider) +} + +// NewLustreFileStorageClientWithOboToken Creates a new default LustreFileStorage 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 NewLustreFileStorageClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client LustreFileStorageClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newLustreFileStorageClientFromBaseClient(baseClient, configProvider) +} + +func newLustreFileStorageClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client LustreFileStorageClient, err error) { + // LustreFileStorage service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("LustreFileStorage")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = LustreFileStorageClient{BaseClient: baseClient} + client.BasePath = "20250228" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *LustreFileStorageClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *LustreFileStorageClient) 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 *LustreFileStorageClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CancelWorkRequest Cancels a work request. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequest API. +// A default retry strategy applies to this operation CancelWorkRequest() +func (client LustreFileStorageClient) CancelWorkRequest(ctx context.Context, request CancelWorkRequestRequest) (response CancelWorkRequestResponse, 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.cancelWorkRequest, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CancelWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CancelWorkRequestResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CancelWorkRequestResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CancelWorkRequestResponse") + } + return +} + +// cancelWorkRequest implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) cancelWorkRequest(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 CancelWorkRequestResponse + 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/lustre/20250228/WorkRequest/CancelWorkRequest" + err = common.PostProcessServiceError(err, "LustreFileStorage", "CancelWorkRequest", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeLustreFileSystemCompartment Moves a Lustre file system into a different compartment within the same tenancy. For information about moving resources between +// compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeLustreFileSystemCompartment.go.html to see an example of how to use ChangeLustreFileSystemCompartment API. +// A default retry strategy applies to this operation ChangeLustreFileSystemCompartment() +func (client LustreFileStorageClient) ChangeLustreFileSystemCompartment(ctx context.Context, request ChangeLustreFileSystemCompartmentRequest) (response ChangeLustreFileSystemCompartmentResponse, 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.changeLustreFileSystemCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeLustreFileSystemCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeLustreFileSystemCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeLustreFileSystemCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeLustreFileSystemCompartmentResponse") + } + return +} + +// changeLustreFileSystemCompartment implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) changeLustreFileSystemCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/lustreFileSystems/{lustreFileSystemId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeLustreFileSystemCompartmentResponse + 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/lustre/20250228/LustreFileSystem/ChangeLustreFileSystemCompartment" + err = common.PostProcessServiceError(err, "LustreFileStorage", "ChangeLustreFileSystemCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeObjectStorageLinkCompartment Moves an Object Storage link into a different compartment within the same tenancy. For information about moving resources between +// compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeObjectStorageLinkCompartment.go.html to see an example of how to use ChangeObjectStorageLinkCompartment API. +// A default retry strategy applies to this operation ChangeObjectStorageLinkCompartment() +func (client LustreFileStorageClient) ChangeObjectStorageLinkCompartment(ctx context.Context, request ChangeObjectStorageLinkCompartmentRequest) (response ChangeObjectStorageLinkCompartmentResponse, 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.changeObjectStorageLinkCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeObjectStorageLinkCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeObjectStorageLinkCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeObjectStorageLinkCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeObjectStorageLinkCompartmentResponse") + } + return +} + +// changeObjectStorageLinkCompartment implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) changeObjectStorageLinkCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/objectStorageLinks/{objectStorageLinkId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeObjectStorageLinkCompartmentResponse + 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/lustre/20250228/ObjectStorageLink/ChangeObjectStorageLinkCompartment" + err = common.PostProcessServiceError(err, "LustreFileStorage", "ChangeObjectStorageLinkCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateLustreFileSystem Creates a Lustre file system. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateLustreFileSystem.go.html to see an example of how to use CreateLustreFileSystem API. +// A default retry strategy applies to this operation CreateLustreFileSystem() +func (client LustreFileStorageClient) CreateLustreFileSystem(ctx context.Context, request CreateLustreFileSystemRequest) (response CreateLustreFileSystemResponse, 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.createLustreFileSystem, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateLustreFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateLustreFileSystemResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateLustreFileSystemResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateLustreFileSystemResponse") + } + return +} + +// createLustreFileSystem implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) createLustreFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/lustreFileSystems", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateLustreFileSystemResponse + 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/lustre/20250228/LustreFileSystem/CreateLustreFileSystem" + err = common.PostProcessServiceError(err, "LustreFileStorage", "CreateLustreFileSystem", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateObjectStorageLink Creates an Object Storage link. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateObjectStorageLink.go.html to see an example of how to use CreateObjectStorageLink API. +// A default retry strategy applies to this operation CreateObjectStorageLink() +func (client LustreFileStorageClient) CreateObjectStorageLink(ctx context.Context, request CreateObjectStorageLinkRequest) (response CreateObjectStorageLinkResponse, 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.createObjectStorageLink, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateObjectStorageLinkResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateObjectStorageLinkResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateObjectStorageLinkResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateObjectStorageLinkResponse") + } + return +} + +// createObjectStorageLink implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) createObjectStorageLink(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/objectStorageLinks", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateObjectStorageLinkResponse + 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/lustre/20250228/ObjectStorageLink/CreateObjectStorageLink" + err = common.PostProcessServiceError(err, "LustreFileStorage", "CreateObjectStorageLink", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteLustreFileSystem Deletes a Lustre file system. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteLustreFileSystem.go.html to see an example of how to use DeleteLustreFileSystem API. +// A default retry strategy applies to this operation DeleteLustreFileSystem() +func (client LustreFileStorageClient) DeleteLustreFileSystem(ctx context.Context, request DeleteLustreFileSystemRequest) (response DeleteLustreFileSystemResponse, 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.deleteLustreFileSystem, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteLustreFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteLustreFileSystemResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteLustreFileSystemResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteLustreFileSystemResponse") + } + return +} + +// deleteLustreFileSystem implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) deleteLustreFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/lustreFileSystems/{lustreFileSystemId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteLustreFileSystemResponse + 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/lustre/20250228/LustreFileSystem/DeleteLustreFileSystem" + err = common.PostProcessServiceError(err, "LustreFileStorage", "DeleteLustreFileSystem", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteObjectStorageLink Deletes an Object Storage link. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteObjectStorageLink.go.html to see an example of how to use DeleteObjectStorageLink API. +// A default retry strategy applies to this operation DeleteObjectStorageLink() +func (client LustreFileStorageClient) DeleteObjectStorageLink(ctx context.Context, request DeleteObjectStorageLinkRequest) (response DeleteObjectStorageLinkResponse, 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.deleteObjectStorageLink, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteObjectStorageLinkResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteObjectStorageLinkResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteObjectStorageLinkResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteObjectStorageLinkResponse") + } + return +} + +// deleteObjectStorageLink implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) deleteObjectStorageLink(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/objectStorageLinks/{objectStorageLinkId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteObjectStorageLinkResponse + 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/lustre/20250228/ObjectStorageLink/DeleteObjectStorageLink" + err = common.PostProcessServiceError(err, "LustreFileStorage", "DeleteObjectStorageLink", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetLustreFileSystem Gets information about a Lustre file system. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetLustreFileSystem.go.html to see an example of how to use GetLustreFileSystem API. +// A default retry strategy applies to this operation GetLustreFileSystem() +func (client LustreFileStorageClient) GetLustreFileSystem(ctx context.Context, request GetLustreFileSystemRequest) (response GetLustreFileSystemResponse, 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.getLustreFileSystem, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetLustreFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetLustreFileSystemResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetLustreFileSystemResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetLustreFileSystemResponse") + } + return +} + +// getLustreFileSystem implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) getLustreFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/lustreFileSystems/{lustreFileSystemId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetLustreFileSystemResponse + 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/lustre/20250228/LustreFileSystem/GetLustreFileSystem" + err = common.PostProcessServiceError(err, "LustreFileStorage", "GetLustreFileSystem", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetObjectStorageLink Gets information about an Object Storage link. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetObjectStorageLink.go.html to see an example of how to use GetObjectStorageLink API. +// A default retry strategy applies to this operation GetObjectStorageLink() +func (client LustreFileStorageClient) GetObjectStorageLink(ctx context.Context, request GetObjectStorageLinkRequest) (response GetObjectStorageLinkResponse, 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.getObjectStorageLink, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetObjectStorageLinkResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetObjectStorageLinkResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetObjectStorageLinkResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetObjectStorageLinkResponse") + } + return +} + +// getObjectStorageLink implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) getObjectStorageLink(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/objectStorageLinks/{objectStorageLinkId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetObjectStorageLinkResponse + 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/lustre/20250228/ObjectStorageLink/GetObjectStorageLink" + err = common.PostProcessServiceError(err, "LustreFileStorage", "GetObjectStorageLink", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetSyncJob Gets details of a sync job associated with an Object Storage link when `objectStorageLink` and a unique ID are provided. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetSyncJob.go.html to see an example of how to use GetSyncJob API. +// A default retry strategy applies to this operation GetSyncJob() +func (client LustreFileStorageClient) GetSyncJob(ctx context.Context, request GetSyncJobRequest) (response GetSyncJobResponse, 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.getSyncJob, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetSyncJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetSyncJobResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetSyncJobResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetSyncJobResponse") + } + return +} + +// getSyncJob implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) getSyncJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/objectStorageLinks/{objectStorageLinkId}/syncJobs/{syncJobId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetSyncJobResponse + 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/lustre/20250228/ObjectStorageLink/GetSyncJob" + err = common.PostProcessServiceError(err, "LustreFileStorage", "GetSyncJob", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetWorkRequest Gets the details of a work request. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. +// A default retry strategy applies to this operation GetWorkRequest() +func (client LustreFileStorageClient) 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 LustreFileStorageClient) 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/lustre/20250228/WorkRequest/GetWorkRequest" + err = common.PostProcessServiceError(err, "LustreFileStorage", "GetWorkRequest", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListLustreFileSystems Gets a list of Lustre file systems. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListLustreFileSystems.go.html to see an example of how to use ListLustreFileSystems API. +// A default retry strategy applies to this operation ListLustreFileSystems() +func (client LustreFileStorageClient) ListLustreFileSystems(ctx context.Context, request ListLustreFileSystemsRequest) (response ListLustreFileSystemsResponse, 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.listLustreFileSystems, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListLustreFileSystemsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListLustreFileSystemsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListLustreFileSystemsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListLustreFileSystemsResponse") + } + return +} + +// listLustreFileSystems implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) listLustreFileSystems(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/lustreFileSystems", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListLustreFileSystemsResponse + 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/lustre/20250228/LustreFileSystemCollection/ListLustreFileSystems" + err = common.PostProcessServiceError(err, "LustreFileStorage", "ListLustreFileSystems", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListObjectStorageLinks Gets a list of Object Storage links. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListObjectStorageLinks.go.html to see an example of how to use ListObjectStorageLinks API. +// A default retry strategy applies to this operation ListObjectStorageLinks() +func (client LustreFileStorageClient) ListObjectStorageLinks(ctx context.Context, request ListObjectStorageLinksRequest) (response ListObjectStorageLinksResponse, 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.listObjectStorageLinks, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListObjectStorageLinksResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListObjectStorageLinksResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListObjectStorageLinksResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListObjectStorageLinksResponse") + } + return +} + +// listObjectStorageLinks implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) listObjectStorageLinks(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/objectStorageLinks", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListObjectStorageLinksResponse + 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/lustre/20250228/ObjectStorageLinkCollection/ListObjectStorageLinks" + err = common.PostProcessServiceError(err, "LustreFileStorage", "ListObjectStorageLinks", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListSyncJobs Lists all sync jobs associated with the Object Storage link. Contains a unique ID for each sync job. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListSyncJobs.go.html to see an example of how to use ListSyncJobs API. +// A default retry strategy applies to this operation ListSyncJobs() +func (client LustreFileStorageClient) ListSyncJobs(ctx context.Context, request ListSyncJobsRequest) (response ListSyncJobsResponse, 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.listSyncJobs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListSyncJobsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListSyncJobsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListSyncJobsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListSyncJobsResponse") + } + return +} + +// listSyncJobs implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) listSyncJobs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/objectStorageLinks/{objectStorageLinkId}/syncJobs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListSyncJobsResponse + 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/lustre/20250228/ObjectStorageLink/ListSyncJobs" + err = common.PostProcessServiceError(err, "LustreFileStorage", "ListSyncJobs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequestErrors Lists the errors for a work request. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. +// A default retry strategy applies to this operation ListWorkRequestErrors() +func (client LustreFileStorageClient) 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 LustreFileStorageClient) 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/lustre/20250228/WorkRequestError/ListWorkRequestErrors" + err = common.PostProcessServiceError(err, "LustreFileStorage", "ListWorkRequestErrors", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequestLogs Lists the logs for a work request. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. +// A default retry strategy applies to this operation ListWorkRequestLogs() +func (client LustreFileStorageClient) 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 LustreFileStorageClient) 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/lustre/20250228/WorkRequestLogEntry/ListWorkRequestLogs" + err = common.PostProcessServiceError(err, "LustreFileStorage", "ListWorkRequestLogs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequests Lists the work requests in a compartment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. +// A default retry strategy applies to this operation ListWorkRequests() +func (client LustreFileStorageClient) 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 LustreFileStorageClient) 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/lustre/20250228/WorkRequest/ListWorkRequests" + err = common.PostProcessServiceError(err, "LustreFileStorage", "ListWorkRequests", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StartExportToObject Starts the export of data from the Lustre file system to Object Storage. +// The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartExportToObject.go.html to see an example of how to use StartExportToObject API. +// A default retry strategy applies to this operation StartExportToObject() +func (client LustreFileStorageClient) StartExportToObject(ctx context.Context, request StartExportToObjectRequest) (response StartExportToObjectResponse, 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.startExportToObject, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StartExportToObjectResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StartExportToObjectResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StartExportToObjectResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StartExportToObjectResponse") + } + return +} + +// startExportToObject implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) startExportToObject(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/objectStorageLinks/{objectStorageLinkId}/actions/startExportToObject", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StartExportToObjectResponse + 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/lustre/20250228/ObjectStorageLink/StartExportToObject" + err = common.PostProcessServiceError(err, "LustreFileStorage", "StartExportToObject", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StartImportFromObject Starts the import of data from Object Storage to the Lustre file system. +// The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartImportFromObject.go.html to see an example of how to use StartImportFromObject API. +// A default retry strategy applies to this operation StartImportFromObject() +func (client LustreFileStorageClient) StartImportFromObject(ctx context.Context, request StartImportFromObjectRequest) (response StartImportFromObjectResponse, 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.startImportFromObject, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StartImportFromObjectResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StartImportFromObjectResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StartImportFromObjectResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StartImportFromObjectResponse") + } + return +} + +// startImportFromObject implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) startImportFromObject(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/objectStorageLinks/{objectStorageLinkId}/actions/startImportFromObject", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StartImportFromObjectResponse + 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/lustre/20250228/ObjectStorageLink/StartImportFromObject" + err = common.PostProcessServiceError(err, "LustreFileStorage", "StartImportFromObject", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StopExportToObject Stops the export of data from the Lustre file system to Object Storage. +// The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopExportToObject.go.html to see an example of how to use StopExportToObject API. +// A default retry strategy applies to this operation StopExportToObject() +func (client LustreFileStorageClient) StopExportToObject(ctx context.Context, request StopExportToObjectRequest) (response StopExportToObjectResponse, 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.stopExportToObject, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StopExportToObjectResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StopExportToObjectResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StopExportToObjectResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StopExportToObjectResponse") + } + return +} + +// stopExportToObject implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) stopExportToObject(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/objectStorageLinks/{objectStorageLinkId}/actions/stopExportToObject", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StopExportToObjectResponse + 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/lustre/20250228/ObjectStorageLink/StopExportToObject" + err = common.PostProcessServiceError(err, "LustreFileStorage", "StopExportToObject", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StopImportFromObject Stops the import of data from Object Storage to the Lustre file system. +// The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopImportFromObject.go.html to see an example of how to use StopImportFromObject API. +// A default retry strategy applies to this operation StopImportFromObject() +func (client LustreFileStorageClient) StopImportFromObject(ctx context.Context, request StopImportFromObjectRequest) (response StopImportFromObjectResponse, 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.stopImportFromObject, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StopImportFromObjectResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StopImportFromObjectResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StopImportFromObjectResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StopImportFromObjectResponse") + } + return +} + +// stopImportFromObject implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) stopImportFromObject(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/objectStorageLinks/{objectStorageLinkId}/actions/stopImportFromObject", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StopImportFromObjectResponse + 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/lustre/20250228/ObjectStorageLink/StopImportFromObject" + err = common.PostProcessServiceError(err, "LustreFileStorage", "StopImportFromObject", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateLustreFileSystem Updates a Lustre file system. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateLustreFileSystem.go.html to see an example of how to use UpdateLustreFileSystem API. +// A default retry strategy applies to this operation UpdateLustreFileSystem() +func (client LustreFileStorageClient) UpdateLustreFileSystem(ctx context.Context, request UpdateLustreFileSystemRequest) (response UpdateLustreFileSystemResponse, 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.updateLustreFileSystem, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateLustreFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateLustreFileSystemResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateLustreFileSystemResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateLustreFileSystemResponse") + } + return +} + +// updateLustreFileSystem implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) updateLustreFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/lustreFileSystems/{lustreFileSystemId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateLustreFileSystemResponse + 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/lustre/20250228/LustreFileSystem/UpdateLustreFileSystem" + err = common.PostProcessServiceError(err, "LustreFileStorage", "UpdateLustreFileSystem", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateObjectStorageLink Updates an Object Storage link. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateObjectStorageLink.go.html to see an example of how to use UpdateObjectStorageLink API. +// A default retry strategy applies to this operation UpdateObjectStorageLink() +func (client LustreFileStorageClient) UpdateObjectStorageLink(ctx context.Context, request UpdateObjectStorageLinkRequest) (response UpdateObjectStorageLinkResponse, 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.updateObjectStorageLink, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateObjectStorageLinkResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateObjectStorageLinkResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateObjectStorageLinkResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateObjectStorageLinkResponse") + } + return +} + +// updateObjectStorageLink implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) updateObjectStorageLink(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/objectStorageLinks/{objectStorageLinkId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateObjectStorageLinkResponse + 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/lustre/20250228/ObjectStorageLink/UpdateObjectStorageLink" + err = common.PostProcessServiceError(err, "LustreFileStorage", "UpdateObjectStorageLink", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go new file mode 100644 index 0000000000..7b0e213234 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StartExportToObjectRequest wrapper for the StartExportToObject operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartExportToObject.go.html to see an example of how to use StartExportToObjectRequest. +type StartExportToObjectRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 running 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 removed 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 StartExportToObjectRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StartExportToObjectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request StartExportToObjectRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StartExportToObjectRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request StartExportToObjectRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StartExportToObjectResponse wrapper for the StartExportToObject operation +type StartExportToObjectResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SyncJob instance + SyncJob `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 StartExportToObjectResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StartExportToObjectResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go new file mode 100644 index 0000000000..beb01e8c83 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StartImportFromObjectRequest wrapper for the StartImportFromObject operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartImportFromObject.go.html to see an example of how to use StartImportFromObjectRequest. +type StartImportFromObjectRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 running 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 removed 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 StartImportFromObjectRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StartImportFromObjectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request StartImportFromObjectRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StartImportFromObjectRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request StartImportFromObjectRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StartImportFromObjectResponse wrapper for the StartImportFromObject operation +type StartImportFromObjectResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SyncJob instance + SyncJob `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 StartImportFromObjectResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StartImportFromObjectResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go new file mode 100644 index 0000000000..34c51040c6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StopExportToObjectRequest wrapper for the StopExportToObject operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopExportToObject.go.html to see an example of how to use StopExportToObjectRequest. +type StopExportToObjectRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 running 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 removed 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 StopExportToObjectRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StopExportToObjectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request StopExportToObjectRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StopExportToObjectRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request StopExportToObjectRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StopExportToObjectResponse wrapper for the StopExportToObject operation +type StopExportToObjectResponse 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 StopExportToObjectResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StopExportToObjectResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go new file mode 100644 index 0000000000..d3584f2cf3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StopImportFromObjectRequest wrapper for the StopImportFromObject operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopImportFromObject.go.html to see an example of how to use StopImportFromObjectRequest. +type StopImportFromObjectRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 running 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 removed 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 StopImportFromObjectRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StopImportFromObjectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request StopImportFromObjectRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StopImportFromObjectRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request StopImportFromObjectRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StopImportFromObjectResponse wrapper for the StopImportFromObject operation +type StopImportFromObjectResponse 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 StopImportFromObjectResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StopImportFromObjectResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go new file mode 100644 index 0000000000..f03549f60f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateLustreFileSystemRequest wrapper for the UpdateLustreFileSystem operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateLustreFileSystem.go.html to see an example of how to use UpdateLustreFileSystemRequest. +type UpdateLustreFileSystemRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. + LustreFileSystemId *string `mandatory:"true" contributesTo:"path" name:"lustreFileSystemId"` + + // The information to be updated. + UpdateLustreFileSystemDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 UpdateLustreFileSystemRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateLustreFileSystemRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateLustreFileSystemRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateLustreFileSystemRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateLustreFileSystemRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateLustreFileSystemResponse wrapper for the UpdateLustreFileSystem operation +type UpdateLustreFileSystemResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + // Use 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 UpdateLustreFileSystemResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateLustreFileSystemResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go new file mode 100644 index 0000000000..9f6373afba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateObjectStorageLinkRequest wrapper for the UpdateObjectStorageLink operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateObjectStorageLink.go.html to see an example of how to use UpdateObjectStorageLinkRequest. +type UpdateObjectStorageLinkRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // The information to be updated. + UpdateObjectStorageLinkDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 UpdateObjectStorageLinkRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateObjectStorageLinkRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateObjectStorageLinkRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateObjectStorageLinkRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateObjectStorageLinkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateObjectStorageLinkResponse wrapper for the UpdateObjectStorageLink operation +type UpdateObjectStorageLinkResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ObjectStorageLink instance + ObjectStorageLink `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 UpdateObjectStorageLinkResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateObjectStorageLinkResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/modules.txt b/vendor/modules.txt index d1742d64ff..3738b92f25 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -157,9 +157,6 @@ github.com/gogo/protobuf/gogoproto github.com/gogo/protobuf/proto github.com/gogo/protobuf/protoc-gen-gogo/descriptor github.com/gogo/protobuf/sortkeys -# github.com/golang/mock v1.6.0 -## explicit; go 1.11 -github.com/golang/mock/gomock # github.com/golang/protobuf v1.5.4 ## explicit; go 1.17 github.com/golang/protobuf/proto @@ -275,17 +272,17 @@ github.com/klauspost/compress/internal/le github.com/klauspost/compress/internal/snapref github.com/klauspost/compress/zstd github.com/klauspost/compress/zstd/internal/xxhash -# github.com/kubernetes-csi/csi-lib-utils v0.20.0 -## explicit; go 1.23.1 +# github.com/kubernetes-csi/csi-lib-utils v0.22.0 +## explicit; go 1.24.0 github.com/kubernetes-csi/csi-lib-utils/protosanitizer -# github.com/kubernetes-csi/external-snapshotter/client/v6 v6.3.0 -## explicit; go 1.20 -github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumegroupsnapshot/v1alpha1 -github.com/kubernetes-csi/external-snapshotter/client/v6/apis/volumesnapshot/v1 -github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned -github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/scheme -github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumegroupsnapshot/v1alpha1 -github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned/typed/volumesnapshot/v1 +# github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0 +## explicit; go 1.22.0 +github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1 +github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1 +github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned +github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme +github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumegroupsnapshot/v1beta1 +github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/typed/volumesnapshot/v1 # github.com/kylelemons/godebug v1.1.0 ## explicit; go 1.11 github.com/kylelemons/godebug/diff From a3eba12d0abf056bb41d92ef23f745e54b409501 Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Thu, 22 Jan 2026 15:58:18 +0530 Subject: [PATCH 11/24] Adding Lustre controller csi driver --- .../oci-csi-controller-driver.go | 6 +- .../csioptions/csioptions.go | 87 +- .../csioptions/csioptions_test.go | 57 ++ hack/run_e2e_test.sh | 21 + .../lustre-storage-class.yaml | 27 + .../providers/oci/config/config.go | 1 + .../providers/oci/instances_test.go | 8 +- pkg/csi-util/utils.go | 2 +- pkg/csi/driver/bv_controller_test.go | 8 +- pkg/csi/driver/csi_recovery.go | 39 + pkg/csi/driver/csi_recovery_test.go | 22 + pkg/csi/driver/driver.go | 42 +- pkg/csi/driver/fss_controller_test.go | 4 +- pkg/csi/driver/lustre_controller.go | 465 +++++++++ pkg/csi/driver/lustre_controller_test.go | 942 ++++++++++++++++++ pkg/csi/driver/lustre_node.go | 29 +- pkg/csi/driver/lustre_params.go | 291 ++++++ pkg/csi/driver/lustre_params_test.go | 407 ++++++++ pkg/metrics/constants.go | 5 + pkg/oci/client/block_storage.go | 3 +- pkg/oci/client/client.go | 18 +- pkg/oci/client/lustre.go | 301 ++++++ pkg/util/commons_test.go | 4 + pkg/util/mock_oci_clients.go | 6 + pkg/volume/provisioner/block/block_test.go | 8 +- pkg/volume/provisioner/fss/fss_test.go | 8 +- test/e2e/cloud-provider-oci/lustre.go | 164 +++ test/e2e/cloud-provider-oci/lustre_static.go | 114 --- test/e2e/framework/framework.go | 47 +- test/e2e/framework/lustre_util.go | 97 ++ test/e2e/framework/pvc_util.go | 256 ++++- .../v65/lustrefilestorage/action_type.go | 72 ++ .../available_compute_capacity.go | 39 + .../cancel_work_request_request_response.go | 4 - .../lustrefilestorage/capacity_reservation.go | 42 + .../capacity_reservation_info.go | 74 ++ .../capacity_reservation_info_collection.go | 39 + .../capacity_reservation_info_summary.go | 74 ++ .../capacity_reservations_collection.go | 39 + ..._lustre_file_system_compartment_details.go | 39 + ...ile_system_compartment_request_response.go | 4 - ...object_storage_link_compartment_details.go | 39 + ...orage_link_compartment_request_response.go | 4 - .../cluster_placement_group.go | 39 + .../v65/lustrefilestorage/cpg_override.go | 58 ++ .../cpg_override_collection.go | 39 + .../lustrefilestorage/cpg_override_summary.go | 58 ++ ...reate_capacity_reservation_info_details.go | 60 ++ ...acity_reservation_info_request_response.go | 99 ++ .../create_cpg_override_details.go | 48 + .../create_cpg_override_request_response.go | 99 ++ .../create_lfs_cpg_info_details.go | 47 + .../create_lfs_cpg_info_request_response.go | 99 ++ .../create_lustre_file_system_details.go | 144 +++ ...ate_lustre_file_system_request_response.go | 4 - .../create_management_cell_details.go | 168 ++++ ...create_management_cell_request_response.go | 99 ++ .../create_map_tenancy_configuration.go | 39 + .../create_object_storage_link_details.go | 75 ++ ...te_object_storage_link_request_response.go | 4 - .../lustrefilestorage/create_pool_details.go | 102 ++ .../create_pool_request_response.go | 99 ++ .../create_tenancy_override_details.go | 42 + ...reate_tenancy_override_request_response.go | 99 ++ .../current_compute_capacity.go | 39 + ...y_overrides_for_tenant_request_response.go | 92 ++ ...acity_reservation_info_request_response.go | 92 ++ .../delete_cpg_override_request_response.go | 92 ++ .../delete_lfs_cpg_info_request_response.go | 92 ++ ...ete_lustre_file_system_request_response.go | 4 - ...delete_management_cell_request_response.go | 96 ++ ...te_object_storage_link_request_response.go | 4 - .../delete_pool_request_response.go | 92 ++ ..._tenancy_configuration_request_response.go | 96 ++ ...elete_tenancy_override_request_response.go | 95 ++ .../desired_compute_count.go | 39 + .../v65/lustrefilestorage/details.go | 45 + .../lustrefilestorage/fault_domain_usage.go | 41 + ...acity_reservation_info_request_response.go | 92 ++ .../get_cpg_override_request_response.go | 92 ++ .../get_lfs_cpg_info_request_response.go | 92 ++ ...get_lustre_file_system_request_response.go | 4 - .../get_management_cell_request_response.go | 92 ++ ...et_object_storage_link_request_response.go | 4 - .../get_pool_request_response.go | 92 ++ .../get_sync_job_request_response.go | 4 - .../get_tenancy_override_request_response.go | 92 ++ .../get_work_request_request_response.go | 4 - .../lustrefilestorage/inject_fault_details.go | 53 + .../inject_fault_output_details.go | 39 + .../inject_fault_request_response.go | 101 ++ .../v65/lustrefilestorage/lfs_cpg_info.go | 60 ++ .../lfs_cpg_info_collection.go | 39 + .../lustrefilestorage/lfs_cpg_info_summary.go | 60 ++ ...city_reservation_infos_request_response.go | 157 +++ .../list_cpg_overrides_request_response.go | 154 +++ .../list_lfs_cpg_infos_request_response.go | 155 +++ ...st_lustre_file_systems_request_response.go | 4 - .../list_management_cells_request_response.go | 158 +++ ...t_object_storage_links_request_response.go | 4 - .../list_pools_request_response.go | 148 +++ .../list_profiles_request_response.go | 151 +++ .../list_sync_jobs_request_response.go | 4 - ...tenancy_configurations_request_response.go | 151 +++ ...list_tenancy_overrides_request_response.go | 148 +++ ...st_work_request_errors_request_response.go | 4 - ...list_work_request_logs_request_response.go | 4 - .../list_work_requests_request_response.go | 4 - .../lustrefilestorage/lustre_file_system.go | 256 +++++ .../lustre_file_system_collection.go | 39 + .../lustre_file_system_summary.go | 188 ++++ ...estorage_capacityreservationinfo_client.go | 367 +++++++ .../lustrefilestorage_client.go | 212 ++-- .../lustrefilestorage_configmgmt_client.go | 313 ++++++ .../lustrefilestorage_cpgoverride_client.go | 367 +++++++ .../lustrefilestorage_internal_client.go | 146 +++ .../lustrefilestorage_lfscpginfo_client.go | 367 +++++++ .../lustrefilestorage_lfspool_client.go | 367 +++++++ .../lustrefilestorage_mgmtcell_client.go | 367 +++++++ ...ustrefilestorage_tenancyoverride_client.go | 421 ++++++++ .../lustrefilestorage/maintenance_window.go | 108 ++ .../v65/lustrefilestorage/management_cell.go | 189 ++++ .../management_cell_collection.go | 39 + .../management_cell_summary.go | 89 ++ .../map_tenancy_configuration.go | 44 + .../map_tenancy_configuration_collection.go | 39 + .../map_tenancy_configuration_details.go | 39 + ..._tenancy_configuration_request_response.go | 105 ++ .../network_security_group.go | 42 + .../lustrefilestorage/object_storage_link.go | 166 +++ .../object_storage_link_collection.go | 39 + .../object_storage_link_summary.go | 107 ++ .../v65/lustrefilestorage/operation_status.go | 80 ++ .../v65/lustrefilestorage/operation_type.go | 68 ++ .../pause_sync_job_details.go | 39 + .../pause_sync_job_request_response.go | 102 ++ .../oci-go-sdk/v65/lustrefilestorage/pool.go | 108 ++ .../v65/lustrefilestorage/pool_collection.go | 39 + .../v65/lustrefilestorage/pool_summary.go | 108 ++ .../lustrefilestorage/profile_collection.go | 39 + .../v65/lustrefilestorage/profile_summary.go | 42 + .../reserved_and_used_count.go | 42 + .../root_squash_configuration.go | 100 ++ .../v65/lustrefilestorage/sort_order.go | 56 ++ ...start_export_to_object_request_response.go | 4 - ...art_import_from_object_request_response.go | 4 - .../stop_export_to_object_request_response.go | 4 - ...top_import_from_object_request_response.go | 4 - .../v65/lustrefilestorage/subnet.go | 39 + .../v65/lustrefilestorage/sync_job.go | 207 ++++ .../lustrefilestorage/sync_job_collection.go | 39 + .../v65/lustrefilestorage/sync_job_summary.go | 146 +++ .../tenancy_configuration_summary.go | 44 + .../v65/lustrefilestorage/tenancy_override.go | 42 + .../tenancy_override_collection.go | 39 + .../tenancy_override_summary.go | 42 + .../unpause_sync_job_details.go | 39 + .../unpause_sync_job_request_response.go | 102 ++ ...pdate_capacity_reservation_info_details.go | 57 ++ ...acity_reservation_info_request_response.go | 98 ++ .../update_cpg_override_details.go | 45 + .../update_cpg_override_request_response.go | 98 ++ .../update_lfs_cpg_info_details.go | 44 + .../update_lfs_cpg_info_request_response.go | 98 ++ .../update_lustre_file_system_details.go | 69 ++ ...ate_lustre_file_system_request_response.go | 4 - .../update_management_cell_details.go | 160 +++ ...update_management_cell_request_response.go | 99 ++ .../update_object_storage_link_details.go | 56 ++ ...te_object_storage_link_request_response.go | 4 - .../lustrefilestorage/update_pool_details.go | 102 ++ .../update_pool_request_response.go | 98 ++ .../update_tenancy_override_details.go | 39 + ...pdate_tenancy_override_request_response.go | 101 ++ .../v65/lustrefilestorage/work_request.go | 79 ++ .../lustrefilestorage/work_request_error.go | 47 + .../work_request_error_collection.go | 39 + .../work_request_log_entry.go | 43 + .../work_request_log_entry_collection.go | 39 + .../work_request_resource.go | 54 + .../lustrefilestorage/work_request_summary.go | 77 ++ .../work_request_summary_collection.go | 39 + vendor/modules.txt | 1 + 183 files changed, 15768 insertions(+), 380 deletions(-) create mode 100644 manifests/container-storage-interface/lustre-storage-class.yaml create mode 100644 pkg/csi/driver/csi_recovery.go create mode 100644 pkg/csi/driver/csi_recovery_test.go create mode 100644 pkg/csi/driver/lustre_controller.go create mode 100644 pkg/csi/driver/lustre_controller_test.go create mode 100644 pkg/csi/driver/lustre_params.go create mode 100644 pkg/csi/driver/lustre_params_test.go create mode 100644 pkg/oci/client/lustre.go create mode 100644 test/e2e/cloud-provider-oci/lustre.go delete mode 100644 test/e2e/cloud-provider-oci/lustre_static.go create mode 100644 test/e2e/framework/lustre_util.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/action_type.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/available_compute_capacity.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservations_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cluster_placement_group.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_map_tenancy_configuration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/current_compute_capacity.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_all_tenancy_overrides_for_tenant_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_capacity_reservation_info_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_cpg_override_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lfs_cpg_info_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_management_cell_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_pool_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_configuration_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_override_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/desired_compute_count.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/fault_domain_usage.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_capacity_reservation_info_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_cpg_override_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lfs_cpg_info_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_management_cell_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_pool_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_tenancy_override_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_output_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_capacity_reservation_infos_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_cpg_overrides_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lfs_cpg_infos_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_management_cells_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_pools_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_profiles_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_configurations_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_overrides_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_capacityreservationinfo_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_configmgmt_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_cpgoverride_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_internal_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfscpginfo_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfspool_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_mgmtcell_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_tenancyoverride_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/maintenance_window.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/network_security_group.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/operation_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/operation_type.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/reserved_and_used_count.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/root_squash_configuration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sort_order.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/subnet.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_configuration_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_error.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_error_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_log_entry.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_log_entry_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_resource.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_summary_collection.go diff --git a/cmd/oci-csi-controller-driver/csi-controller-driver/oci-csi-controller-driver.go b/cmd/oci-csi-controller-driver/csi-controller-driver/oci-csi-controller-driver.go index 51f6041be7..f8fbde1627 100644 --- a/cmd/oci-csi-controller-driver/csi-controller-driver/oci-csi-controller-driver.go +++ b/cmd/oci-csi-controller-driver/csi-controller-driver/oci-csi-controller-driver.go @@ -24,7 +24,8 @@ import ( ) const ( - bvCsiDriver = "BV" + bvCsiDriver = "BV" + lustreCsiDriver = "Lustre" ) // StartControllerDriver main function to start CSI Controller Driver @@ -45,6 +46,9 @@ func StartControllerDriver(csioptions csioptions.CSIOptions, csiDriver driver.CS if csiDriver == bvCsiDriver { controllerDriverConfig := &driver.ControllerDriverConfig{CsiEndpoint: csioptions.Endpoint, CsiKubeConfig: csioptions.Kubeconfig, CsiMaster: csioptions.Master, EnableControllerServer: true, DriverName: driver.BlockVolumeDriverName, DriverVersion: driver.BlockVolumeDriverVersion, ClusterIpFamily: clusterIpFamily} drv, err = driver.NewControllerDriver(logger, *controllerDriverConfig) + } else if csiDriver == lustreCsiDriver { + controllerDriverConfig := &driver.ControllerDriverConfig{CsiEndpoint: csioptions.LustreEndpoint, CsiKubeConfig: csioptions.Kubeconfig, CsiMaster: csioptions.Master, EnableControllerServer: true, DriverName: driver.LustreDriverName, DriverVersion: driver.LustreDriverVersion, ClusterIpFamily: clusterIpFamily} + drv, err = driver.NewControllerDriver(logger, *controllerDriverConfig) } else { controllerDriverConfig := &driver.ControllerDriverConfig{CsiEndpoint: csioptions.FssEndpoint, CsiKubeConfig: csioptions.Kubeconfig, CsiMaster: csioptions.Master, EnableControllerServer: true, DriverName: driver.FSSDriverName, DriverVersion: driver.FSSDriverVersion, ClusterIpFamily: clusterIpFamily} drv, err = driver.NewControllerDriver(logger, *controllerDriverConfig) diff --git a/cmd/oci-csi-controller-driver/csioptions/csioptions.go b/cmd/oci-csi-controller-driver/csioptions/csioptions.go index 6e478a19c1..201bf5d056 100644 --- a/cmd/oci-csi-controller-driver/csioptions/csioptions.go +++ b/cmd/oci-csi-controller-driver/csioptions/csioptions.go @@ -25,40 +25,51 @@ import ( const ( fssAddressSuffix = "-fss.sock" fssVolumeNameAppendedPrefix = "-fss" + + lustreAddressSuffix = "-lustre.sock" + lustreVolumeNameAppendedPrefix = "-lustre" + CrossNamespaceVolumeDataSource = "CrossNamespaceVolumeDataSource" VolumeAttributesClass = "VolumeAttributesClass" ) // CSIOptions structure which contains flag values type CSIOptions struct { - Master string - Kubeconfig string - CsiAddress string - Endpoint string - FssCsiAddress string - FssEndpoint string - VolumeNamePrefix string - FssVolumeNamePrefix string - VolumeNameUUIDLength int - ShowVersion bool - RetryIntervalStart time.Duration - RetryIntervalMax time.Duration - WorkerThreads uint - OperationTimeout time.Duration - EnableLeaderElection bool - LeaderElectionType string - LeaderElectionNamespace string - StrictTopology bool - Resync time.Duration - Timeout time.Duration - FeatureGates map[string]bool - FinalizerThreads uint - MetricsAddress string - MetricsPath string - ExtraCreateMetadata bool - ReconcileSync time.Duration - EnableResizer bool - GroupSnapshotNamePrefix string + Master string + Kubeconfig string + CsiAddress string + Endpoint string + FssCsiAddress string + FssEndpoint string + VolumeNamePrefix string + FssVolumeNamePrefix string + LustreCsiAddress string + LustreEndpoint string + LustreVolumeNamePrefix string + VolumeNameUUIDLength int + ShowVersion bool + RetryIntervalStart time.Duration + RetryIntervalMax time.Duration + WorkerThreads uint + OperationTimeout time.Duration + EnableLeaderElection bool + LeaderElectionType string + LeaderElectionNamespace string + StrictTopology bool + ImmediateTopology bool + Resync time.Duration + Timeout time.Duration + FeatureGates map[string]bool + FinalizerThreads uint + MetricsAddress string + HttpEndpoint string + MetricsPath string + ExtraCreateMetadata bool + ReconcileSync time.Duration + EnableResizer bool + ControllerPublishReadOnly bool + DefaultFSType string + GroupSnapshotNamePrefix string GroupSnapshotNameUUIDLength int } @@ -74,6 +85,9 @@ func NewCSIOptions() *CSIOptions { FssEndpoint: *flag.String("fss-csi-endpoint", "unix://tmp/csi-fss.sock", "CSI FSS endpoint"), VolumeNamePrefix: *flag.String("csi-volume-name-prefix", "pvc", "Prefix to apply to the name of a created volume."), FssVolumeNamePrefix: *flag.String("fss-csi-volume-name-prefix", "pvc", "Prefix to apply to the name of a volume created for FSS."), + LustreCsiAddress: *flag.String("lustre-csi-address", "/run/lustre/socket", "Address of the CSI Lustre driver socket."), + LustreEndpoint: *flag.String("lustre-csi-endpoint", "unix://tmp/csi-lustre.sock", "CSI Lustre endpoint"), + LustreVolumeNamePrefix: *flag.String("lustre-csi-volume-name-prefix", "pvc", "Prefix to apply to the name of a volume created for Lustre."), VolumeNameUUIDLength: *flag.Int("csi-volume-name-uuid-length", -1, "Truncates generated UUID of a created volume to this length. Defaults behavior is to NOT truncate."), ShowVersion: *flag.Bool("csi-version", false, "Show version."), RetryIntervalStart: *flag.Duration("csi-retry-interval-start", time.Second, "Initial retry interval of failed provisioning or deletion. It doubles with each failure, up to retry-interval-max."), @@ -116,6 +130,23 @@ func GetFssVolumeNamePrefix(csiVolumeNamePrefix string) string { return csiVolumeNamePrefix + fssVolumeNameAppendedPrefix } +// GetLustreAddress returns the lustreAddress based on csiAddress +func GetLustreAddress(csiAddress, defaultAddress string) string { + logger := zap.L().Sugar() + address := strings.Split(csiAddress, ".sock") + if len(address) != 2 || !strings.HasSuffix(csiAddress, ".sock") { + logger.Errorf("failed to parse csi-address : %s. Defaulting to : %s", csiAddress, defaultAddress) + return defaultAddress + } + lustreAddress := address[0] + lustreAddressSuffix + return lustreAddress +} + +// GetLustreVolumeNamePrefix returns the lustreVolumeNamePrefix based on csiVolumeNamePrefix +func GetLustreVolumeNamePrefix(csiVolumeNamePrefix string) string { + return csiVolumeNamePrefix + lustreVolumeNameAppendedPrefix +} + // UpdateFeatureGates add CrossNamespaceVolumeDataSource (default value false) to featureGate if not present // add VolumeAttributesClass (default value false) to featureGate if not present diff --git a/cmd/oci-csi-controller-driver/csioptions/csioptions_test.go b/cmd/oci-csi-controller-driver/csioptions/csioptions_test.go index fa5d5c6c0a..a0b1fa15e2 100644 --- a/cmd/oci-csi-controller-driver/csioptions/csioptions_test.go +++ b/cmd/oci-csi-controller-driver/csioptions/csioptions_test.go @@ -74,3 +74,60 @@ func Test_GetFssVolumeNamePrefix(t *testing.T) { }) } } + +func Test_GetLustreAddress(t *testing.T) { + testCases := map[string]struct { + csiAddress string + expectedLustreAddress string + defaultAddress string + }{ + "Valid csi address": { + csiAddress: "/var/run/shared-tmpfs/csi.sock", + expectedLustreAddress: "/var/run/shared-tmpfs/csi-lustre.sock", + defaultAddress: "/var/run/shared-tmpfs/csi-lustre.sock", + }, + "Invalid csi address": { + csiAddress: "/var/run/shared-tmpfs/csi.sock.sock", + expectedLustreAddress: "/var/run/shared-tmpfs/csi-lustre.sock", + defaultAddress: "/var/run/shared-tmpfs/csi-lustre.sock", + }, + "Valid csi endpoint": { + csiAddress: "unix:///var/run/shared-tmpfs/csi.sock", + expectedLustreAddress: "unix:///var/run/shared-tmpfs/csi-lustre.sock", + defaultAddress: "unix:///var/run/shared-tmpfs/csi-lustre.sock", + }, + "Invalid csi endpoint": { + csiAddress: "unix:///var/run/shared-tmpfs/csi-lustre.sock.sock", + expectedLustreAddress: "unix:///var/run/shared-tmpfs/csi-lustre.sock", + defaultAddress: "unix:///var/run/shared-tmpfs/csi-lustre.sock", + }, + } + for name, tc := range testCases { + t.Run(name, func(t *testing.T) { + lustreAddress := GetLustreAddress(tc.csiAddress, tc.defaultAddress) + if tc.expectedLustreAddress != lustreAddress { + t.Errorf("Expected \n%+v\n but got \n%+v", tc.expectedLustreAddress, lustreAddress) + } + }) + } +} + +func Test_GetLustreVolumeNamePrefix(t *testing.T) { + testCases := map[string]struct { + csiPrefix string + expectedPrefix string + }{ + "Valid csi address": { + csiPrefix: "csi", + expectedPrefix: "csi-lustre", + }, + } + for name, tc := range testCases { + t.Run(name, func(t *testing.T) { + lustreVolumeNamePrefix := GetLustreVolumeNamePrefix(tc.csiPrefix) + if tc.expectedPrefix != lustreVolumeNamePrefix { + t.Errorf("Expected \n%+v\n but got \n%+v", tc.expectedPrefix, lustreVolumeNamePrefix) + } + }) + } +} diff --git a/hack/run_e2e_test.sh b/hack/run_e2e_test.sh index b6e8859a3c..02e20cac54 100755 --- a/hack/run_e2e_test.sh +++ b/hack/run_e2e_test.sh @@ -52,6 +52,7 @@ function run_e2e_tests_existing_cluster() { test/e2e/cloud-provider-oci -- \ --cluster-kubeconfig=${CLUSTER_KUBECONFIG} \ --cloud-config=${CLOUD_CONFIG} \ + --compartment1=${COMPARTMENT} \ --adlocation=${ADLOCATION} \ --delete-namespace=${DELETE_NAMESPACE} \ --image-pull-repo=${IMAGE_PULL_REPO} \ @@ -65,6 +66,12 @@ function run_e2e_tests_existing_cluster() { --architecture=${ARCHITECTURE} \ --volume-handle=${FSS_VOLUME_HANDLE} \ --lustre-volume-handle=${LUSTRE_VOLUME_HANDLE} \ + --lustre-subnet-cidr=${LUSTRE_SUBNET_CIDR} \ + --enable-lustre-tests=${ENABLE_LUSTRE_TESTS} \ + --lustre-worker-node-image=${LUSTRE_WORKER_NODE_IMAGE} \ + --lustre-kms-key=${LUSTRE_KMS_KEY} \ + --lustre-subnet=${LUSTRE_SUBNET} \ + --lustre-ad=${LUSTRE_AD} \ --static-snapshot-compartment-id=${STATIC_SNAPSHOT_COMPARTMENT_ID} \ --enable-parallel-run=${ENABLE_PARALLEL_RUN} \ --run-uhp-e2e=${RUN_UHP_E2E} \ @@ -75,6 +82,7 @@ function run_e2e_tests_existing_cluster() { test/e2e/cloud-provider-oci -- \ --cluster-kubeconfig=${CLUSTER_KUBECONFIG} \ --cloud-config=${CLOUD_CONFIG} \ + --compartment1=${COMPARTMENT} \ --adlocation=${ADLOCATION} \ --delete-namespace=${DELETE_NAMESPACE} \ --image-pull-repo=${IMAGE_PULL_REPO} \ @@ -88,6 +96,12 @@ function run_e2e_tests_existing_cluster() { --architecture=${ARCHITECTURE} \ --volume-handle=${FSS_VOLUME_HANDLE} \ --lustre-volume-handle=${LUSTRE_VOLUME_HANDLE} \ + --lustre-subnet-cidr=${LUSTRE_SUBNET_CIDR} \ + --enable-lustre-tests=${ENABLE_LUSTRE_TESTS} \ + --lustre-worker-node-image=${LUSTRE_WORKER_NODE_IMAGE} \ + --lustre-kms-key=${LUSTRE_KMS_KEY} \ + --lustre-subnet=${LUSTRE_SUBNET} \ + --lustre-ad=${LUSTRE_AD} \ --static-snapshot-compartment-id=${STATIC_SNAPSHOT_COMPARTMENT_ID} \ --enable-parallel-run=${ENABLE_PARALLEL_RUN} \ --run-uhp-e2e=${RUN_UHP_E2E} \ @@ -151,6 +165,13 @@ echo "CLOUD_CONFIG is ${CLOUD_CONFIG}" echo "MNT_TARGET_ID is ${MNT_TARGET_ID}" echo "MNT_TARGET_SUBNET_ID is ${MNT_TARGET_SUBNET_ID}" echo "MNT_TARGET_COMPARTMENT_ID is ${MNT_TARGET_COMPARTMENT_ID}" +echo "LUSTRE_VOLUME_HANDLE is ${LUSTRE_VOLUME_HANDLE}" +echo "LUSTRE_SUBNET_CIDR is ${LUSTRE_SUBNET_CIDR}" +echo "ENABLE_LUSTRE_TESTS is ${ENABLE_LUSTRE_TESTS}" +echo "LUSTRE_WORKER_NODE_IMAGE is ${LUSTRE_WORKER_NODE_IMAGE}" +echo "LUSTRE_KMS_KEY is ${LUSTRE_KMS_KEY}" +echo "LUSTRE_SUBNET is ${LUSTRE_SUBNET}" +echo "LUSTRE_AD is ${LUSTRE_AD}" function run_tests () { set_image_pull_repo_and_delete_namespace_flag diff --git a/manifests/container-storage-interface/lustre-storage-class.yaml b/manifests/container-storage-interface/lustre-storage-class.yaml new file mode 100644 index 0000000000..7e9d747c4c --- /dev/null +++ b/manifests/container-storage-interface/lustre-storage-class.yaml @@ -0,0 +1,27 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: oci-lustre-high-perf +provisioner: lustre.csi.oraclecloud.com +reclaimPolicy: Delete +allowVolumeExpansion: false +volumeBindingMode: WaitForFirstConsumer +parameters: + # Required + subnetId: "ocid1.subnet.oc1.phx.aaaaaaaaaaaaaaaaaaaaaaaaaaa" + availabilityDomain: "PHX-AD-1" + performanceTier: "MBPS_PER_TB_125" # allowed: MBPS_PER_TB_125|MBPS_PER_TB_250|MBPS_PER_TB_500|MBPS_PER_TB_1000 + #Optional + compartmentId: "ocid1.compartment.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaa" + nsgIds: '["ocid1.networksecuritygroup.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaa","ocid1.networksecuritygroup.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaa"]' + kmsKeyId: "ocid1.key.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaa" + fileSystemName: "lustrefs" + rootSquashEnabled: "true" # default false + rootSquashUid: "65534" # default 65534 + rootSquashGid: "65534" # default 65534 + rootSquashClientExceptions: '["10.0.2.4"]' # max 10 entries + setupLnet: "false" + lustreSubnetCidr: "10.0.2.0/24" + lustrePostMountParameters: '[{"*.*.*MDT*.lru_size": 11200}]' + oci.oraclecloud.com/initial-defined-tags-override: '{"Operations": {"CostCenter": "42"}}' + oci.oraclecloud.com/initial-freeform-tags-override: '{"Department": "Finance"}' diff --git a/pkg/cloudprovider/providers/oci/config/config.go b/pkg/cloudprovider/providers/oci/config/config.go index ddc6b439b9..bfff86540f 100644 --- a/pkg/cloudprovider/providers/oci/config/config.go +++ b/pkg/cloudprovider/providers/oci/config/config.go @@ -126,6 +126,7 @@ type InitialTags struct { LoadBalancer *TagConfig `yaml:"loadBalancer"` BlockVolume *TagConfig `yaml:"blockVolume"` FSS *TagConfig `yaml:"fss"` + Lustre *TagConfig `yaml:"lustre"` Common *TagConfig `yaml:"common"` } diff --git a/pkg/cloudprovider/providers/oci/instances_test.go b/pkg/cloudprovider/providers/oci/instances_test.go index d86ab909f1..f93afb2ef6 100644 --- a/pkg/cloudprovider/providers/oci/instances_test.go +++ b/pkg/cloudprovider/providers/oci/instances_test.go @@ -873,6 +873,10 @@ type MockSecurityListManagerFactory func(mode string) MockSecurityListManager type MockOCIClient struct{} +func (c MockOCIClient) Lustre() client.LustreInterface { + return nil +} + func (MockOCIClient) Compute() client.ComputeInterface { return &MockComputeClient{} } @@ -1402,10 +1406,6 @@ func (MockIdentityClient) GetAvailabilityDomainByName(ctx context.Context, compa return nil, nil } -func (MockIdentityClient) ListAvailabilityDomains(ctx context.Context, compartmentID string) ([]identity.AvailabilityDomain, error) { - return nil, nil -} - type mockInstanceCache struct{} func (m mockInstanceCache) Add(obj interface{}) error { diff --git a/pkg/csi-util/utils.go b/pkg/csi-util/utils.go index 234cd3e8ae..91daa3f88d 100644 --- a/pkg/csi-util/utils.go +++ b/pkg/csi-util/utils.go @@ -720,8 +720,8 @@ func TruncateError(err error, maxBytes int) error { // before gRPC timeout. If the parent has no deadline, it returns the parent unchanged. // // Example: -// ctx = ShortenContextBeforeDeadline(ctx, 5*time.Second) // +// ctx = ShortenContextBeforeDeadline(ctx, 5*time.Second) func ShortenContextBeforeDeadline(parent context.Context, buffer time.Duration) (context.Context, context.CancelFunc) { deadline, hasDeadline := parent.Deadline() if !hasDeadline { diff --git a/pkg/csi/driver/bv_controller_test.go b/pkg/csi/driver/bv_controller_test.go index 1d42671724..ed417b39b7 100644 --- a/pkg/csi/driver/bv_controller_test.go +++ b/pkg/csi/driver/bv_controller_test.go @@ -294,6 +294,10 @@ type MockProvisionerClient struct { Storage *MockBlockStorageClient } +func (p *MockProvisionerClient) Lustre() client.LustreInterface { + return nil +} + func (c *MockBlockStorageClient) AwaitVolumeAvailableORTimeout(ctx context.Context, id string) (*core.Volume, error) { volume := volumes[id] if volume == nil { @@ -823,10 +827,6 @@ type MockIdentityClient struct { common.BaseClient } -func (mockClient MockIdentityClient) ListAvailabilityDomains(ctx context.Context, compartmentID string) ([]identity.AvailabilityDomain, error) { - return nil, nil -} - // ListAvailabilityDomains mocks the client ListAvailabilityDomains implementation func (mockClient MockIdentityClient) GetAvailabilityDomainByName(ctx context.Context, compartmentID, name string) (*identity.AvailabilityDomain, error) { var ad1 string diff --git a/pkg/csi/driver/csi_recovery.go b/pkg/csi/driver/csi_recovery.go new file mode 100644 index 0000000000..3f28998131 --- /dev/null +++ b/pkg/csi/driver/csi_recovery.go @@ -0,0 +1,39 @@ +package driver + +import ( + "fmt" + "runtime/debug" + + "github.com/oracle/oci-cloud-controller-manager/pkg/metrics" + "github.com/oracle/oci-cloud-controller-manager/pkg/util" + "go.uber.org/zap" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +// MakeCSIPanicRecovery returns a defer-able closure that recovers from panics in CSI RPCs, +// logs the panic with a stack trace, and emits a panic metric. Use like: +// defer MakeCSIPanicRecovery(logger, metricPusher, "CreateVolume", map[string]string{ metrics.ResourceOCIDDimension: req.GetName() }, &err, codes.Internal)() + +func MakeCSIPanicRecoveryWithError(logger *zap.SugaredLogger, metricPusher *metrics.MetricPusher, op string, extraDims map[string]string, + outErr *error, code codes.Code) func() { + return func() { + if rec := recover(); rec != nil { + err := fmt.Errorf("panic recovered %v stack is %s", rec, string(debug.Stack())) + logger.With(zap.Error(err)).With("operation", op).Error("Recovered from panic in CSI RPC") + + dimensionsMap := map[string]string{} + for k, v := range extraDims { + dimensionsMap[k] = v + } + metricDimension := util.GetMetricDimensionForComponent(util.PANIC, util.CSIStorageType) + dimensionsMap[metrics.ComponentDimension] = metricDimension + metrics.SendMetricData(metricPusher, metricDimension, 1, dimensionsMap) + + // If the method didn't already set an error, convert the panic to a gRPC error. + if outErr != nil && *outErr == nil { + *outErr = status.Errorf(code, "Internal error occurred while processing request.") + } + } + } +} diff --git a/pkg/csi/driver/csi_recovery_test.go b/pkg/csi/driver/csi_recovery_test.go new file mode 100644 index 0000000000..77b3d4fc11 --- /dev/null +++ b/pkg/csi/driver/csi_recovery_test.go @@ -0,0 +1,22 @@ +package driver + +import ( + "testing" + + "go.uber.org/zap" + "google.golang.org/grpc/codes" +) + +func TestMakeCSIPanicRecovery_Recovers(t *testing.T) { + logger, _ := zap.NewDevelopment() + log := logger.Sugar() + var err error + func() { + defer func() { log.Infof("Error returned from panic recory : %v", err) }() + defer MakeCSIPanicRecoveryWithError(log, nil, "UnitTestOp", map[string]string{"test": "true"}, &err, codes.Internal)() + panic("boom") + //code after panic doesn't run, but this as we are recovering from panic, test suite will not crash + //which will validate this functionality + }() + +} diff --git a/pkg/csi/driver/driver.go b/pkg/csi/driver/driver.go index 51f8712070..42bbfa3ab6 100644 --- a/pkg/csi/driver/driver.go +++ b/pkg/csi/driver/driver.go @@ -55,6 +55,7 @@ func init() { BlockVolumeDriverName = getEnv("BLOCK_VOLUME_DRIVER_NAME", "blockvolume.csi.oraclecloud.com") FSSDriverName = getEnv("FSS_VOLUME_DRIVER_NAME", "fss.csi.oraclecloud.com") LustreDriverName = getEnv("LUSTRE_VOLUME_DRIVER_NAME", "lustre.csi.oraclecloud.com") + } func getEnv(key, fallback string) string { @@ -127,15 +128,20 @@ type FSSControllerDriver struct { serviceAccountLister listersv1.ServiceAccountLister } +// LustreControllerDriver extends ControllerDriver for Lustre CSI Controller RPCs. +type LustreControllerDriver struct { + ControllerDriver +} + // NodeDriver implements CSI Node interfaces type NodeDriver struct { - nodeID string - KubeClient kubernetes.Interface - logger *zap.SugaredLogger - util *csi_util.Util - volumeLocks *csi_util.VolumeLocks - nodeMetadata *csi_util.NodeMetadata - csiConfig *util.CSIConfig + nodeID string + KubeClient kubernetes.Interface + logger *zap.SugaredLogger + util *csi_util.Util + volumeLocks *csi_util.VolumeLocks + nodeMetadata *csi_util.NodeMetadata + csiConfig *util.CSIConfig mounterFactory disk.MounterFactory csi.UnimplementedNodeServer } @@ -180,13 +186,13 @@ func newControllerDriver(kubeClientSet kubernetes.Interface, logger *zap.Sugared func newNodeDriver(nodeID string, nodeMetaData *csi_util.NodeMetadata, kubeClientSet kubernetes.Interface, logger *zap.SugaredLogger, csiConfig *util.CSIConfig) NodeDriver { return NodeDriver{ - nodeID: nodeID, - KubeClient: kubeClientSet, - logger: logger, - util: &csi_util.Util{Logger: logger}, - volumeLocks: csi_util.NewVolumeLocks(), - nodeMetadata: nodeMetaData, - csiConfig: csiConfig, + nodeID: nodeID, + KubeClient: kubeClientSet, + logger: logger, + util: &csi_util.Util{Logger: logger}, + volumeLocks: csi_util.NewVolumeLocks(), + nodeMetadata: nodeMetaData, + csiConfig: csiConfig, mounterFactory: disk.DefaultMounterFactory, } } @@ -211,9 +217,10 @@ func GetControllerDriver(name string, kubeClientSet kubernetes.Interface, logger if !cache.WaitForCacheSync(wait.NeverStop, serviceAccountInformer.Informer().HasSynced) { utilruntime.HandleError(fmt.Errorf("timed out waiting for informers to sync")) } - return &FSSControllerDriver{ControllerDriver: newControllerDriver(kubeClientSet, logger, config, c, metricPusher, clusterIpFamily), serviceAccountLister: serviceAccountInformer.Lister()} - + } + if name == LustreDriverName { + return &LustreControllerDriver{ControllerDriver: newControllerDriver(kubeClientSet, logger, config, c, metricPusher, clusterIpFamily)} } return nil } @@ -300,6 +307,9 @@ func (d *Driver) GetControllerDriver() csi.ControllerServer { if d.name == FSSDriverName { return d.controllerDriver.(*FSSControllerDriver) } + if d.name == LustreDriverName { + return d.controllerDriver.(*LustreControllerDriver) + } return nil } diff --git a/pkg/csi/driver/fss_controller_test.go b/pkg/csi/driver/fss_controller_test.go index 4a2dbb4cad..0c0411bfce 100644 --- a/pkg/csi/driver/fss_controller_test.go +++ b/pkg/csi/driver/fss_controller_test.go @@ -403,7 +403,9 @@ func (p *MockProvisionerClient) FSS(ociClientConfig *client.OCIClientConfig) cli type MockFSSProvisionerClient struct { Storage *MockFileStorageClient } - +func (m MockFSSProvisionerClient) Lustre() client.LustreInterface { + return nil +} func (m MockFSSProvisionerClient) Compute() client.ComputeInterface { return &MockComputeClient{} } diff --git a/pkg/csi/driver/lustre_controller.go b/pkg/csi/driver/lustre_controller.go new file mode 100644 index 0000000000..6bc5a3f5bc --- /dev/null +++ b/pkg/csi/driver/lustre_controller.go @@ -0,0 +1,465 @@ +package driver + +import ( + "context" + "fmt" + "strings" + "time" + + "github.com/container-storage-interface/spec/lib/go/csi" + csi_util "github.com/oracle/oci-cloud-controller-manager/pkg/csi-util" + "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" + lustre "github.com/oracle/oci-go-sdk/v65/lustrefilestorage" + "go.uber.org/zap" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "k8s.io/utils/pointer" +) + +var ( + lustreSupportedVolumeCapabilities = []csi.VolumeCapability_AccessMode{ + {Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}, + {Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_READER_ONLY}, + {Mode: csi.VolumeCapability_AccessMode_MULTI_NODE_READER_ONLY}, + {Mode: csi.VolumeCapability_AccessMode_MULTI_NODE_SINGLE_WRITER}, + {Mode: csi.VolumeCapability_AccessMode_MULTI_NODE_MULTI_WRITER}, + } +) + +const ( + // KB is 1000 bytes + KB = 1000 + // MB is 1000 KB + MB = 1000 * KB + // GB is 1000 MB + GB = 1000 * MB +) + +// ControllerGetCapabilities advertises the controller RPCs supported by Lustre. +func (d *LustreControllerDriver) ControllerGetCapabilities(ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error) { + newCap := func(cap csi.ControllerServiceCapability_RPC_Type) *csi.ControllerServiceCapability { + return &csi.ControllerServiceCapability{ + Type: &csi.ControllerServiceCapability_Rpc{ + Rpc: &csi.ControllerServiceCapability_RPC{ + Type: cap, + }, + }, + } + } + var caps []*csi.ControllerServiceCapability + caps = append(caps, newCap(csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME)) + return &csi.ControllerGetCapabilitiesResponse{Capabilities: caps}, nil +} + +// CreateVolume implements CSI CreateVolume for Lustre. +func (d *LustreControllerDriver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (resp *csi.CreateVolumeResponse, err error) { + defer MakeCSIPanicRecoveryWithError(d.logger, d.metricPusher, "LustreControllerDriver.CreateVolume", map[string]string{metrics.ResourceOCIDDimension: req.GetName()}, &err, codes.Internal)() + startTime := time.Now() + log := d.logger.With("csiOperation", "create", "volumeName", req.GetName()) + log.Debugf("CreateVolume request (lustre): %v", req) + + if req.GetName() == "" { + return nil, status.Error(codes.InvalidArgument, "Name must be provided in CreateVolumeRequest") + } + if caps := req.GetVolumeCapabilities(); caps == nil || len(caps) == 0 { + return nil, status.Error(codes.InvalidArgument, "VolumeCapabilities must be provided in CreateVolumeRequest") + } + if err := d.checkLustreSupportedVolumeCapabilities(req.GetVolumeCapabilities()); err != nil { + return nil, status.Errorf(codes.InvalidArgument, "Requested Volume Capability not supported: %v", err) + } + + // Prepare metrics dimensions + metricDimensions := map[string]string{ + metrics.ResourceOCIDDimension: req.GetName(), + } + + identityClient := d.client.Identity(nil) + if identityClient == nil { + return nil, status.Error(codes.Internal, "Unable to create identity client") + } + lustreClient := d.client.Lustre() + if lustreClient == nil { + return nil, status.Error(codes.Internal, "Unable to create lustre client") + } + + // Parse StorageClass parameters + log, _, sc, err := extractLustreStorageClassParameters(ctx, d, log, req.GetName(), req.GetParameters(), identityClient) + if err != nil { + metricDimensions[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.ErrValidation, util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreProvision, time.Since(startTime).Seconds(), metricDimensions) + return nil, err + } + + // Merge cluster default tags with SC overrides + if enableOkeSystemTags && util.IsCommonTagPresent(d.config.Tags) { + sc.SCTags = util.MergeTagConfig(sc.SCTags, d.config.Tags.Common) + } + + displayName := req.GetName() + existingLustreFileSystems, err := lustreClient.ListLustreFileSystems(ctx, sc.CompartmentId, sc.AvailabilityDomain, displayName) + if err != nil && !client.IsNotFound(err) { + log.With("service", "lustre", "verb", "list", "resource", "lustreFilesystem", "statusCode", util.GetHttpStatusCode(err)). + With(zap.Error(err)).Error("Failed to list Lustre file systems for idempotency check") + metricDimensions[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.GetError(err), util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreProvision, time.Since(startTime).Seconds(), metricDimensions) + return nil, status.Errorf(codes.Internal, "Failed to check existing file systems: %v", err) + } + + if len(existingLustreFileSystems) > 1 { + log.Errorf("Duplicate Lustre file systems with displayName %v exist", displayName) + metricDimensions[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.ErrValidation, util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreProvision, time.Since(startTime).Seconds(), metricDimensions) + return nil, status.Errorf(codes.AlreadyExists, "Duplicate Lustre file systems with displayName %v exist", displayName) + } + + if len(existingLustreFileSystems) == 1 { + existingId := existingLustreFileSystems[0].Id + existingLustreFs, err := lustreClient.GetLustreFileSystem(ctx, *existingId) + if err != nil { + metricDimensions[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.GetError(err), util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreProvision, time.Since(startTime).Seconds(), metricDimensions) + log.Errorf("Failed to fetch existing filesystem: %v", err) + return nil, status.Errorf(codes.Internal, "Failed to fetch existing filesystem: %v", err) + } + switch existingLustreFs.LifecycleState { + case lustre.LustreFileSystemLifecycleStateActive: + return d.sendCreateVolumeSuccessResponse(log, existingLustreFs, metricDimensions, startTime, sc) + case lustre.LustreFileSystemLifecycleStateCreating: + existingLustreFs, err = lustreClient.AwaitLustreFileSystemActive(ctx, log, *existingId) + if err != nil || existingLustreFs == nil { + metricDimensions[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.GetError(err), util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreProvision, time.Since(startTime).Seconds(), metricDimensions) + return nil, status.Errorf(codes.DeadlineExceeded, "deadline reached while waiting for LustreFilesystem to become active, error : %v", err) + } + return d.sendCreateVolumeSuccessResponse(log, existingLustreFs, metricDimensions, startTime, sc) + + default: + // Best-effort: if FAILED, try to fetch work request errors to append a reason + errMsg := fmt.Errorf("LustreFileSystem provisioning failed. Filesystem is in %v state and not usable.", existingLustreFs.LifecycleState) + if existingLustreFs.LifecycleState == lustre.LustreFileSystemLifecycleStateFailed { + // Attempt to find the most recent CREATE_LUSTRE_FILE_SYSTEM work request for this filesystem to find out why it went into FAILED state + var errorFromWorkRequest string + wrs, lerr := d.client.Lustre().ListWorkRequests(ctx, sc.CompartmentId, *existingLustreFs.Id) + if lerr == nil { + for _, wr := range wrs { + if wr.OperationType == lustre.OperationTypeCreateLustreFileSystem { + // Fetch errors for this work request id + if wr.Id != nil { + errs, eerr := d.client.Lustre().ListWorkRequestErrors(ctx, *wr.Id, *existingLustreFs.Id) + if eerr == nil && len(errs) > 0 { + // pick the latest error message + if errs[0].Message != nil { + errorFromWorkRequest = *errs[0].Message + } + } + } + break + } + } + } + if errorFromWorkRequest != "" { + log.With("workRequestError", errorFromWorkRequest).Error("Filesystem failed with work request error") + errMsg = fmt.Errorf("%v Error from workrequest : %s", errMsg, errorFromWorkRequest) + } + } + log.Error(errMsg) + metricDimensions[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.ErrValidation, util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreProvision, time.Since(startTime).Seconds(), metricDimensions) + return nil, status.Error(codes.Aborted, errMsg.Error()) + } + } + + capacityRange := req.GetCapacityRange() + capacityInBytes := capacityRange.GetRequiredBytes() + capacityInGbs := 31200 //Setting default capacity of 31200 GB + if capacityInBytes > 0 { + capacityInGbs = int(csi_util.RoundUpSize(req.CapacityRange.RequiredBytes, 1*GB)) + } + log = log.With("Capacity", capacityInGbs) + + // Create new filesystem + createRequestDetails := createLustreFilesystemRequest(displayName, sc, capacityInGbs) + lustreFs, err := lustreClient.CreateLustreFileSystem(ctx, createRequestDetails) + if err != nil { + log.With("service", "lustre", "verb", "create", "resource", "lustreFilesystem", "statusCode", util.GetHttpStatusCode(err)). + With(zap.Error(err)).Error("Lustre filesystem creation failed") + metricDimensions[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.GetError(err), util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreProvision, time.Since(startTime).Seconds(), metricDimensions) + return nil, status.Errorf(codes.Internal, "Lustre filesystem creation failed, error : %v", err) + } + + lustreFs, err = lustreClient.AwaitLustreFileSystemActive(ctx, log, *lustreFs.Id) + if err != nil { + log.With(zap.Error(err)).Error("Error occurred while waiting for LustreFilesystem to become active.") + metricDimensions[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.GetError(err), util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreProvision, time.Since(startTime).Seconds(), metricDimensions) + return nil, status.Errorf(codes.DeadlineExceeded, "deadline reached while waiting for LustreFilesystem to become active, error : %v", err) + } + + return d.sendCreateVolumeSuccessResponse(log, lustreFs, metricDimensions, startTime, sc) +} + +func createLustreFilesystemRequest(displayName string, sc *LustreStorageClassParameters, capacityInGbs int) lustre.CreateLustreFileSystemDetails { + createDetails := lustre.CreateLustreFileSystemDetails{ + DisplayName: &displayName, + CompartmentId: &sc.CompartmentId, + AvailabilityDomain: &sc.AvailabilityDomain, + FileSystemName: &sc.FileSystemName, + CapacityInGBs: &capacityInGbs, + SubnetId: &sc.SubnetId, + PerformanceTier: lustre.CreateLustreFileSystemDetailsPerformanceTierEnum(sc.PerformanceTier), + RootSquashConfiguration: &lustre.RootSquashConfiguration{ + IdentitySquash: func() lustre.RootSquashConfigurationIdentitySquashEnum { + if sc.RootSquashEnabled { + return lustre.RootSquashConfigurationIdentitySquashRoot + } + return lustre.RootSquashConfigurationIdentitySquashNone + }(), + }, + } + if sc.RootSquashEnabled { + if len(sc.RootSquashClientExceptions) > 0 { + createDetails.RootSquashConfiguration.ClientExceptions = sc.RootSquashClientExceptions + } + if sc.RootSquashUidSpecified { + createDetails.RootSquashConfiguration.SquashUid = func() *int64 { v := int64(sc.RootSquashUid); return &v }() + } + if sc.RootSquashGidSpecified { + createDetails.RootSquashConfiguration.SquashGid = func() *int64 { v := int64(sc.RootSquashGid); return &v }() + } + } + if sc.SCTags.FreeformTags != nil { + createDetails.FreeformTags = sc.SCTags.FreeformTags + } + if sc.SCTags.DefinedTags != nil { + createDetails.DefinedTags = sc.SCTags.DefinedTags + } + if sc.KmsKeyId != "" { + createDetails.KmsKeyId = &sc.KmsKeyId + } + if len(sc.NSGIds) > 0 { + createDetails.NsgIds = sc.NSGIds + } + return createDetails +} + +func (d *LustreControllerDriver) sendCreateVolumeSuccessResponse(log *zap.SugaredLogger, lustreFs *lustre.LustreFileSystem, metricDimensions map[string]string, startTime time.Time, sc *LustreStorageClassParameters) (*csi.CreateVolumeResponse, error) { + volumeHandle := buildLustreVolumeHandle(lustreFs) + metricDimensions[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.Success, util.CSIStorageType) + metricDimensions[metrics.ResourceOCIDDimension] = *lustreFs.Id + metrics.SendMetricData(d.metricPusher, metrics.LustreProvision, time.Since(startTime).Seconds(), metricDimensions) + log.With("volumeID", *lustreFs.Id).With("volumeHandle", volumeHandle).Info("Lustre filesystem successfully created") + volumeContext := map[string]string{} + if sc.SetupLnet != "" { + volumeContext["setupLnet"] = sc.SetupLnet + } + if sc.LustreSubnetCidr != "" { + volumeContext["lustreSubnetCidr"] = sc.LustreSubnetCidr + } + if sc.LustrePostMountParameters != "" { + volumeContext["lustrePostMountParameters"] = sc.LustrePostMountParameters + } + + return &csi.CreateVolumeResponse{ + Volume: &csi.Volume{ + VolumeId: volumeHandle, + CapacityBytes: int64(*lustreFs.CapacityInGBs * GB), + VolumeContext: volumeContext, + }, + }, nil +} + +// DeleteVolume implements CSI DeleteVolume RPC for Lustre Driver. +func (d *LustreControllerDriver) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest) (resp *csi.DeleteVolumeResponse, err error) { + defer MakeCSIPanicRecoveryWithError(d.logger, d.metricPusher, "LustreControllerDriver.DeleteVolume", map[string]string{metrics.ResourceOCIDDimension: req.GetVolumeId()}, &err, codes.Internal)() + startTime := time.Now() + log := d.logger.With("csiOperation", "delete", "volumeID", req.GetVolumeId()) + log.Debug("Request being passed in DeleteVolume gRPC ", req) + if req.GetVolumeId() == "" { + return nil, status.Error(codes.InvalidArgument, "Volume ID must be provided") + } + + dim := make(map[string]string) + + lustreFilesystemId := extractLustreFilesystemId(req.GetVolumeId()) + if lustreFilesystemId == "" { + dim[metrics.ResourceOCIDDimension] = req.GetVolumeId() + dim[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.ErrValidation, util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreDelete, time.Since(startTime).Seconds(), dim) + return nil, status.Errorf(codes.InvalidArgument, "Invalid Volume ID provided %s", req.GetVolumeId()) + } + dim[metrics.ResourceOCIDDimension] = lustreFilesystemId + + log = log.With("lustreFilesystemId", lustreFilesystemId) + + lustreClient := d.client.Lustre() + if lustreClient == nil { + return nil, status.Error(codes.Internal, "Unable to create lustre client") + } + + log.Info("Getting lustre file system to be deleted") + + fs, err := lustreClient.GetLustreFileSystem(ctx, lustreFilesystemId) + if err != nil { + if client.IsNotFound(err) { + log.Info("Lustre File system does not exist, returning deletion success.") + return &csi.DeleteVolumeResponse{}, nil + } + log.With("service", "lustre", "verb", "get", "resource", "lustreFilesystem", "statusCode", util.GetHttpStatusCode(err)). + With(zap.Error(err)).Error("Failed to get Lustre filesystem for deletion.") + dim[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.GetError(err), util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreDelete, time.Since(startTime).Seconds(), dim) + return nil, status.Errorf(codes.Internal, "Failed to get Lustre filesystem for deletion, error: %v", err.Error()) + } + + switch fs.LifecycleState { + case lustre.LustreFileSystemLifecycleStateDeleted: + log.Info("Lustre File system is in Deleted state, returning deletion success.") + return &csi.DeleteVolumeResponse{}, nil + case lustre.LustreFileSystemLifecycleStateDeleting: + log.Info("Lustre File system is in Deleting state, waiting for deletion to complete.") + default: + if err := lustreClient.DeleteLustreFileSystem(ctx, lustreFilesystemId); err != nil { + log.With("service", "lustre", "verb", "delete", "resource", "lustreFilesystem", "statusCode", util.GetHttpStatusCode(err)). + With(zap.Error(err)).Error("Failed to delete Lustre filesystem") + dim[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.GetError(err), util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreDelete, time.Since(startTime).Seconds(), dim) + return nil, status.Errorf(codes.Internal, "Failed to delete Lustre filesystem, error : %v", err) + } + } + + if err := lustreClient.AwaitLustreFileSystemDeleted(ctx, log, lustreFilesystemId); err != nil { + dim[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.GetError(err), util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreDelete, time.Since(startTime).Seconds(), dim) + return nil, status.Errorf(codes.DeadlineExceeded, "Error while waiting for Lustre Filesystem to be Deleted, error : %v", err.Error()) + } + dim[metrics.ComponentDimension] = util.GetMetricDimensionForComponent(util.Success, util.CSIStorageType) + metrics.SendMetricData(d.metricPusher, metrics.LustreDelete, time.Since(startTime).Seconds(), dim) + return &csi.DeleteVolumeResponse{}, nil +} + +// ValidateVolumeCapabilities implements CSI ValidateVolumeCapabilities for Lustre. +func (d *LustreControllerDriver) ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (resp *csi.ValidateVolumeCapabilitiesResponse, err error) { + defer MakeCSIPanicRecoveryWithError(d.logger, d.metricPusher, "LustreControllerDriver.ValidateVolumeCapabilities", map[string]string{metrics.ResourceOCIDDimension: req.GetVolumeId()}, &err, codes.Internal)() + if req.GetVolumeId() == "" { + return nil, status.Error(codes.InvalidArgument, "Volume ID must be provided") + } + if req.GetVolumeCapabilities() == nil { + return nil, status.Error(codes.InvalidArgument, "VolumeCapabilities must be provided") + } + if err := d.checkLustreSupportedVolumeCapabilities(req.GetVolumeCapabilities()); err != nil { + return nil, status.Errorf(codes.InvalidArgument, "Requested Volume Capability not supported: %v", err) + } + + log := d.logger.With("csiOperation", "validate", "volumeID", req.GetVolumeId()) + + lustreFilesystemId := extractLustreFilesystemId(req.GetVolumeId()) + if lustreFilesystemId == "" { + log.Errorf("Invalid Volume ID provided") + return nil, status.Errorf(codes.InvalidArgument, "Invalid Volume ID provided") + } + log = d.logger.With("lustreFilesystemId", lustreFilesystemId) + + lustreClient := d.client.Lustre() + if lustreClient == nil { + log.Error("Unable to create lustre client") + return nil, status.Error(codes.Internal, "Unable to create lustre client") + } + lustreFilesystem, err := lustreClient.GetLustreFileSystem(ctx, lustreFilesystemId) + if err != nil { + log.With("service", "lustre", "verb", "get", "resource", "lustreFilesystem", "statusCode", util.GetHttpStatusCode(err)). + With(zap.Error(err)).Error("Lustre filesystem not found") + return nil, status.Errorf(codes.NotFound, "Lustre filesystem not found: %v", err) + } + + // Verify identity consistency + expected := buildLustreVolumeHandle(lustreFilesystem) + if req.GetVolumeId() != expected { + log = d.logger.With("Volume indentity mismatch. VolumeId from request : %v, Volume Id from actual filesystem %v.", req.GetVolumeId(), expected) + return nil, status.Errorf(codes.NotFound, "Volume identity mismatch") + } + + return &csi.ValidateVolumeCapabilitiesResponse{ + Confirmed: &csi.ValidateVolumeCapabilitiesResponse_Confirmed{ + VolumeCapabilities: req.GetVolumeCapabilities(), + }, + }, nil +} + +func (d *LustreControllerDriver) checkLustreSupportedVolumeCapabilities(volumeCaps []*csi.VolumeCapability) error { + hasSupport := func(cap *csi.VolumeCapability) error { + if blk := cap.GetBlock(); blk != nil { + return status.Error(codes.InvalidArgument, "Lustre contoller driver does not support volume mode block") + } + for _, c := range lustreSupportedVolumeCapabilities { + if c.GetMode() == cap.AccessMode.GetMode() { + return nil + } + } + return status.Errorf(codes.InvalidArgument, "Lustre contoller driver does not support access mode %v", cap.AccessMode.GetMode()) + } + + for _, c := range volumeCaps { + if err := hasSupport(c); err != nil { + return err + } + } + return nil +} + +func (d *LustreControllerDriver) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} +func (d *LustreControllerDriver) ControllerUnpublishVolume(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} +func (d *LustreControllerDriver) ControllerModifyVolume(ctx context.Context, req *csi.ControllerModifyVolumeRequest) (*csi.ControllerModifyVolumeResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} +func (d *LustreControllerDriver) ListVolumes(ctx context.Context, request *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} +func (d *LustreControllerDriver) GetCapacity(ctx context.Context, request *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} +func (d *LustreControllerDriver) CreateSnapshot(ctx context.Context, request *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} +func (d *LustreControllerDriver) DeleteSnapshot(ctx context.Context, request *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} +func (d *LustreControllerDriver) ListSnapshots(ctx context.Context, request *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} +func (d *LustreControllerDriver) ControllerExpandVolume(ctx context.Context, request *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} +func (d *LustreControllerDriver) ControllerGetVolume(ctx context.Context, request *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error) { + return nil, status.Error(codes.Unimplemented, "") +} + +// helpers +// buildLustreVolumeHandle composes the CSI volume id from Lustre Filesystem object +// :@:/ +func buildLustreVolumeHandle(lustreFilesystem *lustre.LustreFileSystem) string { + id := pointer.StringDeref(lustreFilesystem.Id, "") + managementServiceAddress := pointer.StringDeref(lustreFilesystem.ManagementServiceAddress, "") + lnet := pointer.StringDeref(lustreFilesystem.Lnet, "") + fsName := pointer.StringDeref(lustreFilesystem.FileSystemName, "") + return fmt.Sprintf("%s:%s@%s:/%s", id, managementServiceAddress, lnet, fsName) +} + +// extractLustreFilesystemId returns the OCID prefix from a Lustre volume id or empty if malformed. +// ex: volumeID => ocid1.lustrefilesystem.oc1.phx.aaaaaaa:10.0.1.10@tcp:/lustrefs +func extractLustreFilesystemId(volumeID string) string { + if volumeID == "" || !strings.HasPrefix(volumeID, "ocid") { + return "" + } + idx := strings.Index(volumeID, ":") + if idx == -1 { + return "" + } + return volumeID[:idx] +} diff --git a/pkg/csi/driver/lustre_controller_test.go b/pkg/csi/driver/lustre_controller_test.go new file mode 100644 index 0000000000..5d919c6a6b --- /dev/null +++ b/pkg/csi/driver/lustre_controller_test.go @@ -0,0 +1,942 @@ +package driver + +import ( + "context" + "os" + "strings" + "testing" + + "github.com/container-storage-interface/spec/lib/go/csi" + providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" + "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" + ociidentity "github.com/oracle/oci-go-sdk/v65/identity" + lustre "github.com/oracle/oci-go-sdk/v65/lustrefilestorage" + "go.uber.org/zap" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "k8s.io/utils/pointer" +) + +// mockNotFoundError implements ServiceError for testing oci error cases +type mockNotFoundError struct { + statusCode int + message string + code string + opcRequestID string +} + +func (e mockNotFoundError) GetHTTPStatusCode() int { return e.statusCode } +func (e mockNotFoundError) GetMessage() string { return e.message } +func (e mockNotFoundError) GetCode() string { return e.code } +func (e mockNotFoundError) GetOpcRequestID() string { return e.opcRequestID } +func (e mockNotFoundError) Error() string { return e.message } + +// ########################## MockOCILustreFileStorageClient client ########################## + +// MockOCILustreFileStorageClient implements client.LustreInterface and allows configuring responses. +type MockOCILustreFileStorageClient struct { + // create + CreateResp *lustre.LustreFileSystem + CreateErr error + CreateCalled bool + CreateArgs *lustre.CreateLustreFileSystemDetails + + // list + ListResp []lustre.LustreFileSystemSummary + ListErr error + + // get + GetResp *lustre.LustreFileSystem + GetErr error + + // await active + AwaitActiveResp *lustre.LustreFileSystem + AwaitActiveErr error + + // delete + DeleteErr error + + // await deleted + AwaitDeletedErr error + + // work requests + WRListResp []lustre.WorkRequestSummary + WRListErr error + WRErrsResp []lustre.WorkRequestError + WRErrsErr error +} + +func (f *MockOCILustreFileStorageClient) CreateLustreFileSystem(ctx context.Context, details lustre.CreateLustreFileSystemDetails) (*lustre.LustreFileSystem, error) { + f.CreateCalled = true + d := details // capture + f.CreateArgs = &d + return f.CreateResp, f.CreateErr +} +func (f *MockOCILustreFileStorageClient) GetLustreFileSystem(ctx context.Context, id string) (*lustre.LustreFileSystem, error) { + return f.GetResp, f.GetErr +} +func (f *MockOCILustreFileStorageClient) ListLustreFileSystems(ctx context.Context, compartmentID, ad, displayName string) ([]lustre.LustreFileSystemSummary, error) { + return f.ListResp, f.ListErr +} +func (f *MockOCILustreFileStorageClient) DeleteLustreFileSystem(ctx context.Context, id string) error { + return f.DeleteErr +} +func (f *MockOCILustreFileStorageClient) AwaitLustreFileSystemActive(ctx context.Context, logger *zap.SugaredLogger, id string) (*lustre.LustreFileSystem, error) { + return f.AwaitActiveResp, f.AwaitActiveErr +} +func (f *MockOCILustreFileStorageClient) AwaitLustreFileSystemDeleted(ctx context.Context, logger *zap.SugaredLogger, id string) error { + return f.AwaitDeletedErr +} +func (f *MockOCILustreFileStorageClient) ListWorkRequests(ctx context.Context, compartmentID, resourceID string) ([]lustre.WorkRequestSummary, error) { + return f.WRListResp, f.WRListErr +} +func (f *MockOCILustreFileStorageClient) ListWorkRequestErrors(ctx context.Context, workRequestID string, volumeID string) ([]lustre.WorkRequestError, error) { + return f.WRErrsResp, f.WRErrsErr +} + +// ########################## MockOCIIdentityClient ########################## + +type MockOCIIdentityClient struct { + ads []string + getErr error + listErr error +} + +func (i *MockOCIIdentityClient) GetAvailabilityDomainByName(ctx context.Context, compartmentID, name string) (*ociidentity.AvailabilityDomain, error) { // interface{} to avoid ctx import + if i.getErr != nil { + return nil, i.getErr + } + if len(i.ads) > 0 { + return &ociidentity.AvailabilityDomain{Name: &i.ads[0]}, nil + } + return &ociidentity.AvailabilityDomain{Name: &name}, nil +} + +// ########################## CreateVolume Tests ########################## + +func TestCreateVolume_Missing_VolumeName(t *testing.T) { + d := newControllerWith(nil, nil) + req := &csi.CreateVolumeRequest{ + Name: "", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125"}, + } + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument, got %v", err) + } + if !containsErr(err, "Name must be provided in CreateVolumeRequest") { + t.Fatalf("expected error to mention 'Name must be provided in CreateVolumeRequest', got %v", err) + } +} + +func TestCreateVolume_Missing_Capabilities(t *testing.T) { + d := newControllerWith(nil, nil) + req := &csi.CreateVolumeRequest{ + Name: "test-vol", + VolumeCapabilities: []*csi.VolumeCapability{}, + Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125"}, + } + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument, got %v", err) + } + if !containsErr(err, "VolumeCapabilities must be provided in CreateVolumeRequest") { + t.Fatalf("expected error to mention 'VolumeCapabilities must be provided in CreateVolumeRequest', got %v", err) + } +} + +func TestCreateVolume_Invalid_Capabilities(t *testing.T) { + d := newControllerWith(nil, nil) + req := &csi.CreateVolumeRequest{ + Name: "test-vol", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Block{Block: &csi.VolumeCapability_BlockVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125"}, + } + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument, got %v", err) + } + if !containsErr(err, "Requested Volume Capability not supported") { + t.Fatalf("expected error to mention 'Requested Volume Capability not supported', got %v", err) + } +} + +func TestCreateVolume_Missing_AvailabilityDomain(t *testing.T) { + // Preferred topology present; Identity GetAvailabilityDomainByName returns ctx deadline + fid := &MockOCIIdentityClient{getErr: context.DeadlineExceeded} + fl := &MockOCILustreFileStorageClient{ListResp: []lustre.LustreFileSystemSummary{}} // so it goes to create path + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{ + Name: "test-vol", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125"}, + } + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for Missing required parameter: availabilityDomain, got %v", err) + } + if !containsErr(err, "Missing required parameter: availabilityDomain") { + t.Fatalf("expected error to mention 'Missing required parameter: availabilityDomain', got %v", err) + } +} + +func TestCreateVolume_ADResolution_PreferredTimeout(t *testing.T) { + // Preferred topology present; Identity GetAvailabilityDomainByName returns ctx deadline + fid := &MockOCIIdentityClient{getErr: context.DeadlineExceeded} + fl := &MockOCILustreFileStorageClient{ListResp: []lustre.LustreFileSystemSummary{}} // so it goes to create path + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{ + Name: "test-vol", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}, + } + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for preferred AD resolution timeout, got %v", err) + } + if !containsErr(err, "Invalid availabilityDomain") { + t.Fatalf("expected error to mention Invalid availabilityDomain, got %v", err) + } +} + +func TestCreateVolume_CreateDetails_ContainsKmsAndNsgs(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + fl := &MockOCILustreFileStorageClient{ListResp: []lustre.LustreFileSystemSummary{}, CreateResp: &lustre.LustreFileSystem{Id: ptrString("ocid1.lustrefilesystem.oc1.phx.new")}, AwaitActiveResp: func() *lustre.LustreFileSystem { + cap := 50 + id := "ocid1.lustrefilesystem.oc1.phx.new" + return &lustre.LustreFileSystem{Id: &id, CapacityInGBs: &cap} + }()} + d := newControllerWith(fl, fid) + nsgs := []string{"ocid1.nsg.oc1..a", "ocid1.nsg.oc1..b"} + params := map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2", "kmsKeyId": "ocid1.key.oc1..kms", "nsgIds": "[\"ocid1.nsg.oc1..a\",\"ocid1.nsg.oc1..b\"]"} + req := &csi.CreateVolumeRequest{ + Name: "test-vol", + CapacityRange: &csi.CapacityRange{RequiredBytes: 31200 * GB}, + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: params, + } + _, _ = d.CreateVolume(context.Background(), req) + if fl.CreateArgs == nil { + t.Fatalf("expected create to be called and args captured") + } + if fl.CreateArgs.KmsKeyId == nil || *fl.CreateArgs.KmsKeyId != "ocid1.key.oc1..kms" { + t.Fatalf("expected kmsKeyId to be set in create details") + } + if len(fl.CreateArgs.NsgIds) != len(nsgs) { + t.Fatalf("expected nsgIds length %d got %d", len(nsgs), len(fl.CreateArgs.NsgIds)) + } +} + +func TestCreateVolume_IdentityClientNil(t *testing.T) { + // newControllerWith always injects a client; to simulate identity nil, pass nil identity and expect Internal from CreateVolume + fl := &MockOCILustreFileStorageClient{} + // Build driver with nil identity via a small inlined client wrapper + d := func() *LustreControllerDriver { + inner := &testOCIClient{lustre: fl, id: nil} + return newControllerWith(inner.Lustre(), inner.Identity(nil)) + }() + req := &csi.CreateVolumeRequest{Name: "test-vol", VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}} + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.Internal { + t.Fatalf("expected Internal for nil identity client, got %v", err) + } +} + +func TestCreateVolume_LustreClientNil(t *testing.T) { + // Simulate lustre client nil + inner := &testOCIClient{lustre: nil, id: &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}}} + d := newControllerWith(inner.Lustre(), inner.Identity(nil)) + req := &csi.CreateVolumeRequest{Name: "test-vol", VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}} + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.Internal { + t.Fatalf("expected Internal for nil lustre client, got %v", err) + } +} + +func TestCreateVolume_ListError_Internal(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + fl := &MockOCILustreFileStorageClient{ListErr: status.Error(codes.Internal, "internal error")} + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{Name: "test-vol", VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}} + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.Internal { + t.Fatalf("expected Internal for list error, got %v", err) + } +} + +func TestCreateVolume_Duplicate_AlreadyExists(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + id1 := "fs1" + id2 := "fs2" + fl := &MockOCILustreFileStorageClient{ListResp: []lustre.LustreFileSystemSummary{{Id: &id1}, {Id: &id2}}} + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{Name: "dup-vol", VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}} + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.AlreadyExists { + t.Fatalf("expected AlreadyExists for duplicates, got %v", err) + } +} + +func TestCreateVolume_ExistingCreating_AwaitSuccess_Idempotent(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + fsID := ptrString("ocid1.lustrefilesystem.oc1.phx.id") + ms := ptrString("10.0.0.10") + lnet := ptrString("tcp") + fsname := ptrString("fs1") + cap := 50 + fl := &MockOCILustreFileStorageClient{ListResp: []lustre.LustreFileSystemSummary{{Id: fsID}}, GetResp: &lustre.LustreFileSystem{Id: fsID, LifecycleState: lustre.LustreFileSystemLifecycleStateCreating}, AwaitActiveResp: &lustre.LustreFileSystem{Id: fsID, ManagementServiceAddress: ms, Lnet: lnet, FileSystemName: fsname, CapacityInGBs: &cap}} + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{Name: "test-vol", VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}} + _, err := d.CreateVolume(context.Background(), req) + if err != nil { + t.Fatalf("unexpected error idempotent CREATING→success: %v", err) + } +} + +func TestCreateVolume_CreateCallError_Internal(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + fl := &MockOCILustreFileStorageClient{ListResp: []lustre.LustreFileSystemSummary{}, CreateErr: status.Error(codes.Internal, "boom")} + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{Name: "test-vol", CapacityRange: &csi.CapacityRange{RequiredBytes: 1 << 30}, VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}} + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.Internal { + t.Fatalf("expected Internal for create error, got %v", err) + } +} + +func TestCreateVolume_VolumeContext_Present(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + cap := 50 + id := "ocid1.lustrefilesystem.oc1.phx.new" + fl := &MockOCILustreFileStorageClient{ + ListResp: []lustre.LustreFileSystemSummary{}, + CreateResp: &lustre.LustreFileSystem{Id: &id}, + AwaitActiveResp: &lustre.LustreFileSystem{Id: &id, ManagementServiceAddress: ptrString("10.0.0.10"), Lnet: ptrString("tcp"), FileSystemName: ptrString("fs1"), CapacityInGBs: &cap}, + } + d := newControllerWith(fl, fid) + params := map[string]string{ + "subnetId": "ocid1.subnet.oc1..x", + "performanceTier": "MBPS_PER_TB_125", + "setupLnet": "true", + "lustreSubnetCidr": "10.0.0.0/24", + "lustrePostMountParameters": "[{}]", + "availabilityDomain": "PHX-AD-2", + } + req := &csi.CreateVolumeRequest{ + Name: "vol-vc-present", + CapacityRange: &csi.CapacityRange{RequiredBytes: int64(cap) << 30}, + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: params, + } + resp, err := d.CreateVolume(context.Background(), req) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + vc := resp.GetVolume().GetVolumeContext() + if vc["setupLnet"] != "true" || vc["lustreSubnetCidr"] != "10.0.0.0/24" || vc["lustrePostMountParameters"] == "" { + t.Fatalf("expected volumeContext keys set, got %v", vc) + } +} + +func TestCreateVolume_VolumeContext_Absent(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + capacityInGbs := 31200 + id := "ocid1.lustrefilesystem.oc1.phx.new2" + fl := &MockOCILustreFileStorageClient{ + ListResp: []lustre.LustreFileSystemSummary{}, + CreateResp: &lustre.LustreFileSystem{Id: &id}, + AwaitActiveResp: &lustre.LustreFileSystem{Id: &id, ManagementServiceAddress: ptrString("10.0.0.11"), Lnet: ptrString("tcp"), FileSystemName: ptrString("fs2"), CapacityInGBs: &capacityInGbs, LifecycleState: lustre.LustreFileSystemLifecycleStateActive}, + } + d := newControllerWith(fl, fid) + params := map[string]string{ + "subnetId": "ocid1.subnet.oc1..x", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + } + req := &csi.CreateVolumeRequest{ + Name: "vol-vc-absent", + CapacityRange: &csi.CapacityRange{RequiredBytes: int64(capacityInGbs * 1024)}, + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: params, + } + resp, err := d.CreateVolume(context.Background(), req) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + vc := resp.GetVolume().GetVolumeContext() + if _, ok := vc["setupLnet"]; ok { + t.Fatalf("did not expect setupLnet in volumeContext: %v", vc) + } + if _, ok := vc["lustreSubnetCidr"]; ok { + t.Fatalf("did not expect lustreSubnetCidr in volumeContext: %v", vc) + } + if _, ok := vc["lustrePostMountParameters"]; ok { + t.Fatalf("did not expect lustrePostMountParameters in volumeContext: %v", vc) + } +} + +func TestCreateVolume_NewCreate_Success(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + cap := 100 + id := "ocid1.lustrefilesystem.oc1.phx.new3" + fl := &MockOCILustreFileStorageClient{ + ListResp: []lustre.LustreFileSystemSummary{}, + CreateResp: &lustre.LustreFileSystem{Id: &id}, + AwaitActiveResp: &lustre.LustreFileSystem{Id: &id, ManagementServiceAddress: ptrString("10.0.0.12"), Lnet: ptrString("tcp"), FileSystemName: ptrString("fs3"), CapacityInGBs: &cap}, + } + d := newControllerWith(fl, fid) + params := map[string]string{ + "subnetId": "ocid1.subnet.oc1..x", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + } + req := &csi.CreateVolumeRequest{ + Name: "vol-new-create-success", + CapacityRange: &csi.CapacityRange{RequiredBytes: int64(cap) << 30}, + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: params, + } + if _, err := d.CreateVolume(context.Background(), req); err != nil { + t.Fatalf("unexpected error for full new-create success: %v", err) + } +} + +func TestCreateVolume_GetExistingError(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + fsID := ptrString("ocid1.lustrefilesystem.oc1.phx.id") + fl := &MockOCILustreFileStorageClient{ + ListResp: []lustre.LustreFileSystemSummary{{Id: fsID}}, + GetErr: status.Error(codes.Internal, "error while fetching existingLustreFs"), + } + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{ + Name: "test-vol-get-error", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}, + } + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.Internal { + t.Fatalf("expected Internal, got %v", err) + } + if !containsErr(err, "error while fetching existingLustreFs") { + t.Fatalf("expected error to mention fetch error, got %v", err) + } +} + +func TestCreateVolume_ExistingActive_Success(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + fsID := ptrString("ocid1.lustrefilesystem.oc1.phx.id") + cap := 50 + fl := &MockOCILustreFileStorageClient{ + ListResp: []lustre.LustreFileSystemSummary{{Id: fsID}}, + GetResp: &lustre.LustreFileSystem{Id: fsID, LifecycleState: lustre.LustreFileSystemLifecycleStateActive, ManagementServiceAddress: ptrString("10.0.0.10"), Lnet: ptrString("tcp"), FileSystemName: ptrString("fs1"), CapacityInGBs: &cap}, + } + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{ + Name: "test-vol-active", + CapacityRange: &csi.CapacityRange{RequiredBytes: 31200 * GB}, + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}, + } + resp, err := d.CreateVolume(context.Background(), req) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if resp.GetVolume().GetVolumeId() == "" { + t.Fatalf("expected volume id in response") + } +} + +func TestCreateVolume_ExistingCreating_AwaitDeadline(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + fsID := ptrString("ocid1.lustrefilesystem.oc1.phx.id") + fl := &MockOCILustreFileStorageClient{ + ListResp: []lustre.LustreFileSystemSummary{{Id: fsID}}, + GetResp: &lustre.LustreFileSystem{Id: fsID, LifecycleState: lustre.LustreFileSystemLifecycleStateCreating}, + AwaitActiveErr: context.DeadlineExceeded, + } + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{ + Name: "test-vol-creating-deadline", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}, + } + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.DeadlineExceeded { + t.Fatalf("expected DeadlineExceeded, got %v", err) + } +} + +func TestCreateVolume_ExistingFailed_WorkRequestError(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + fsID := ptrString("ocid1.lustrefilesystem.oc1.phx.id") + wrID := ptrString("wr-123") + fl := &MockOCILustreFileStorageClient{ + ListResp: []lustre.LustreFileSystemSummary{{Id: fsID}}, + GetResp: &lustre.LustreFileSystem{Id: fsID, LifecycleState: lustre.LustreFileSystemLifecycleStateFailed}, + WRListResp: []lustre.WorkRequestSummary{{Id: wrID, OperationType: lustre.OperationTypeCreateLustreFileSystem}}, + WRErrsResp: []lustre.WorkRequestError{{Code: pointer.String("CREATE_FAILED"), Message: pointer.String("work request error")}}, + } + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{ + Name: "test-vol-failed-wr", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}, + } + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.Aborted { + t.Fatalf("expected Aborted, got %v", err) + } + if !containsErr(err, "work request error") { + t.Fatalf("expected error to mention work request error, got %v", err) + } +} + +func TestCreateVolume_NewCreate_AwaitError(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + cap := 50 + id := "ocid1.lustrefilesystem.oc1.phx.new-await-err" + fl := &MockOCILustreFileStorageClient{ + ListResp: []lustre.LustreFileSystemSummary{}, + CreateResp: &lustre.LustreFileSystem{Id: &id}, + AwaitActiveErr: status.Error(codes.Internal, "await error"), + } + d := newControllerWith(fl, fid) + req := &csi.CreateVolumeRequest{ + Name: "test-vol-new-await-err", + CapacityRange: &csi.CapacityRange{RequiredBytes: int64(cap) << 30}, + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: map[string]string{"subnetId": "ocid1.subnet.oc1..x", "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2"}, + } + _, err := d.CreateVolume(context.Background(), req) + if status.Code(err) != codes.DeadlineExceeded { + t.Fatalf("expected DeadlineExceeded, got %v", err) + } + if !containsErr(err, "await error") { + t.Fatalf("expected error to mention await error, got %v", err) + } +} + +func TestCreateVolume_RootSquashEnabled(t *testing.T) { + fid := &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-1"}} + cap := 50 + rsID := "ocid1.lustrefilesystem.oc1.phx.rs" + fl := &MockOCILustreFileStorageClient{ + ListResp: []lustre.LustreFileSystemSummary{}, + CreateResp: &lustre.LustreFileSystem{Id: &rsID}, + AwaitActiveResp: &lustre.LustreFileSystem{Id: &rsID, CapacityInGBs: &cap}, + } + d := newControllerWith(fl, fid) + params := map[string]string{ + "subnetId": "ocid1.subnet.oc1..x", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + "rootSquashEnabled": "true", + "rootSquashClientExceptions": "[\"client1\",\"client2\"]", + "rootSquashUid": "1000", + "rootSquashGid": "1000", + } + req := &csi.CreateVolumeRequest{ + Name: "test-vol-root-squash", + CapacityRange: &csi.CapacityRange{RequiredBytes: 31200 * GB}, + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + Parameters: params, + } + _, _ = d.CreateVolume(context.Background(), req) + if fl.CreateArgs == nil || fl.CreateArgs.RootSquashConfiguration == nil { + t.Fatalf("expected RootSquashConfiguration to be set") + } + if fl.CreateArgs.RootSquashConfiguration.IdentitySquash != lustre.RootSquashConfigurationIdentitySquashRoot { + t.Fatalf("expected IdentitySquash to be Root") + } + if len(fl.CreateArgs.RootSquashConfiguration.ClientExceptions) != 2 { + t.Fatalf("expected 2 client exceptions, got %d", len(fl.CreateArgs.RootSquashConfiguration.ClientExceptions)) + } + if fl.CreateArgs.RootSquashConfiguration.SquashUid == nil || *fl.CreateArgs.RootSquashConfiguration.SquashUid != 1000 { + t.Fatalf("expected SquashUid to be 1000") + } + if fl.CreateArgs.RootSquashConfiguration.SquashGid == nil || *fl.CreateArgs.RootSquashConfiguration.SquashGid != 1000 { + t.Fatalf("expected SquashGid to be 1000") + } +} + +// ########################## Delete Volume Tests ########################++ +func TestDeleteVolume_AwaitTimeout(t *testing.T) { + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + fl := &MockOCILustreFileStorageClient{GetResp: &lustre.LustreFileSystem{Id: &fsID, LifecycleState: lustre.LustreFileSystemLifecycleStateActive}, AwaitDeletedErr: context.DeadlineExceeded} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + req := &csi.DeleteVolumeRequest{VolumeId: fsID + ":10.0.0.10@tcp:/fs1"} + _, err := d.DeleteVolume(context.Background(), req) + if status.Code(err) != codes.DeadlineExceeded { + t.Fatalf("expected DeadlineExceeded, got %v", err) + } + if !containsErr(err, "Error while waiting for Lustre Filesystem to be Deleted") { + t.Fatalf("expected error message to contain waiting for delete substring, got %v", err) + } +} + +func TestDeleteVolume_InvalidVolumeID(t *testing.T) { + fl := &MockOCILustreFileStorageClient{} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + _, err := d.DeleteVolume(context.Background(), &csi.DeleteVolumeRequest{VolumeId: "bad-id"}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for bad id, got %v", err) + } +} + +func TestDeleteVolume_DeletingAwaitSuccess(t *testing.T) { + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + fl := &MockOCILustreFileStorageClient{GetResp: &lustre.LustreFileSystem{Id: &fsID, LifecycleState: lustre.LustreFileSystemLifecycleStateDeleting}, AwaitDeletedErr: nil} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + _, err := d.DeleteVolume(context.Background(), &csi.DeleteVolumeRequest{VolumeId: fsID + ":10.0.0.10@tcp:/fs1"}) + if err != nil { + t.Fatalf("unexpected error awaiting delete: %v", err) + } +} + +func TestDeleteVolume_MissingVolumeId(t *testing.T) { + fl := &MockOCILustreFileStorageClient{} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + _, err := d.DeleteVolume(context.Background(), &csi.DeleteVolumeRequest{}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument, got %v", err) + } +} + +func TestDeleteVolume_LustreClientNil(t *testing.T) { + inner := &testOCIClient{lustre: nil, id: &MockOCIIdentityClient{}} + d := newControllerWith(inner.Lustre(), inner.Identity(nil)) + req := &csi.DeleteVolumeRequest{VolumeId: "ocid1.lustrefilesystem.oc1.phx.id:10.0.0.10@tcp:/fs1"} + _, err := d.DeleteVolume(context.Background(), req) + if status.Code(err) != codes.Internal { + t.Fatalf("expected Internal for nil lustre client, got %v", err) + } +} + +func TestDeleteVolume_GetNotFound(t *testing.T) { + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + notFoundErr := mockNotFoundError{ + statusCode: 404, + message: "not found", + code: "NotFound", + opcRequestID: "", + } + fl := &MockOCILustreFileStorageClient{GetErr: notFoundErr} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + req := &csi.DeleteVolumeRequest{VolumeId: fsID + ":10.0.0.10@tcp:/fs1"} + _, err := d.DeleteVolume(context.Background(), req) + if err != nil { + t.Fatalf("expected success for not found, got %v", err) + } +} + +func TestDeleteVolume_GetInternalError(t *testing.T) { + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + fl := &MockOCILustreFileStorageClient{GetErr: status.Error(codes.Internal, "internal server error")} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + req := &csi.DeleteVolumeRequest{VolumeId: fsID + ":10.0.0.10@tcp:/fs1"} + _, err := d.DeleteVolume(context.Background(), req) + if status.Code(err) != codes.Internal { + t.Fatalf("expected Internal, got %v", err) + } + if !containsErr(err, "internal server error") { + t.Fatalf("expected error to mention internal server error, got %v", err) + } +} + +func TestDeleteVolume_StateDeleted_Success(t *testing.T) { + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + fl := &MockOCILustreFileStorageClient{GetResp: &lustre.LustreFileSystem{Id: &fsID, LifecycleState: lustre.LustreFileSystemLifecycleStateDeleted}} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + req := &csi.DeleteVolumeRequest{VolumeId: fsID + ":10.0.0.10@tcp:/fs1"} + _, err := d.DeleteVolume(context.Background(), req) + if err != nil { + t.Fatalf("expected success for deleted state, got %v", err) + } +} + +func TestDeleteVolume_Active_DeleteAwaitSuccess(t *testing.T) { + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + fl := &MockOCILustreFileStorageClient{ + GetResp: &lustre.LustreFileSystem{Id: &fsID, LifecycleState: lustre.LustreFileSystemLifecycleStateActive}, + DeleteErr: nil, + AwaitDeletedErr: nil, + } + d := newControllerWith(fl, &MockOCIIdentityClient{}) + req := &csi.DeleteVolumeRequest{VolumeId: fsID + ":10.0.0.10@tcp:/fs1"} + _, err := d.DeleteVolume(context.Background(), req) + if err != nil { + t.Fatalf("unexpected error for delete success: %v", err) + } +} + +func TestDeleteVolume_Active_DeleteError(t *testing.T) { + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + fl := &MockOCILustreFileStorageClient{ + GetResp: &lustre.LustreFileSystem{Id: &fsID, LifecycleState: lustre.LustreFileSystemLifecycleStateActive}, + DeleteErr: status.Error(codes.Internal, "delete error"), + } + d := newControllerWith(fl, &MockOCIIdentityClient{}) + req := &csi.DeleteVolumeRequest{VolumeId: fsID + ":10.0.0.10@tcp:/fs1"} + _, err := d.DeleteVolume(context.Background(), req) + if status.Code(err) != codes.Internal { + t.Fatalf("expected Internal for delete error, got %v", err) + } + if !containsErr(err, "delete error") { + t.Fatalf("expected error to mention delete error, got %v", err) + } +} + +// ########################## ValidateVolumeCapabilities Tests ########################## + +func TestValidateVolumeCapabilities_InvalidVolumeID(t *testing.T) { + fl := &MockOCILustreFileStorageClient{} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + req := &csi.ValidateVolumeCapabilitiesRequest{ + VolumeId: "bad-volume-id", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + } + _, err := d.ValidateVolumeCapabilities(context.Background(), req) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument, got %v", err) + } +} + +func TestValidateVolumeCapabilities_BlockModeUnsupported(t *testing.T) { + fl := &MockOCILustreFileStorageClient{} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + // valid-looking VolumeId to get through initial format checks + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + req := &csi.ValidateVolumeCapabilitiesRequest{ + VolumeId: fsID + ":10.0.0.10@tcp:/fs1", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Block{Block: &csi.VolumeCapability_BlockVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + } + _, err := d.ValidateVolumeCapabilities(context.Background(), req) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for block mode, got %v", err) + } +} + +func TestValidateVolumeCapabilities_IdentityMismatch(t *testing.T) { + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + fl := &MockOCILustreFileStorageClient{GetResp: &lustre.LustreFileSystem{Id: &fsID, ManagementServiceAddress: ptrString("10.0.0.10"), Lnet: ptrString("tcp"), FileSystemName: ptrString("fs1")}} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + // Provide mismatching handle (different ms address) + req := &csi.ValidateVolumeCapabilitiesRequest{ + VolumeId: fsID + ":10.0.0.11@tcp:/fs1", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + } + _, err := d.ValidateVolumeCapabilities(context.Background(), req) + if status.Code(err) != codes.NotFound { + t.Fatalf("expected NotFound for identity mismatch, got %v", err) + } +} + +func TestValidateVolumeCapabilities_ValidPath(t *testing.T) { + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + ms := "10.0.0.10" + lnet := "tcp" + fsname := "fs1" + fl := &MockOCILustreFileStorageClient{GetResp: &lustre.LustreFileSystem{Id: &fsID, ManagementServiceAddress: &ms, Lnet: &lnet, FileSystemName: &fsname}} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + reqCaps := []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}} + req := &csi.ValidateVolumeCapabilitiesRequest{ + VolumeId: fsID + ":" + ms + "@" + lnet + ":/" + fsname, + VolumeCapabilities: reqCaps, + } + resp, err := d.ValidateVolumeCapabilities(context.Background(), req) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if resp.GetConfirmed() == nil || len(resp.GetConfirmed().GetVolumeCapabilities()) != 1 { + t.Fatalf("expected confirmed capabilities echoed back") + } +} +func TestValidateVolumeCapabilities_MissingCaps(t *testing.T) { + d := newControllerWith(&MockOCILustreFileStorageClient{}, &MockOCIIdentityClient{}) + _, err := d.ValidateVolumeCapabilities(context.Background(), &csi.ValidateVolumeCapabilitiesRequest{VolumeId: "ocid1.lustrefilesystem.oc1.phx.id:10.0.0.10@tcp:/fs1"}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for missing caps, got %v", err) + } +} + +func TestValidateVolumeCapabilities_UnsupportedAccessMode(t *testing.T) { + // Simulate an unsupported mode by constructing a capability that checkLustreSupportedVolumeCapabilities rejects + d := newControllerWith(&MockOCILustreFileStorageClient{GetResp: &lustre.LustreFileSystem{Id: ptrString("ocid1.lustrefilesystem.oc1.phx.id"), ManagementServiceAddress: ptrString("10.0.0.10"), Lnet: ptrString("tcp"), FileSystemName: ptrString("fs1")}}, &MockOCIIdentityClient{}) + cap := &csi.VolumeCapability{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: 999 /* invalid */}} + _, err := d.ValidateVolumeCapabilities(context.Background(), &csi.ValidateVolumeCapabilitiesRequest{VolumeId: "ocid1.lustrefilesystem.oc1.phx.id:10.0.0.10@tcp:/fs1", VolumeCapabilities: []*csi.VolumeCapability{cap}}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for unsupported access mode, got %v", err) + } +} + +func TestValidateVolumeCapabilities_MissingVolumeId(t *testing.T) { + fl := &MockOCILustreFileStorageClient{} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + req := &csi.ValidateVolumeCapabilitiesRequest{ + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + } + _, err := d.ValidateVolumeCapabilities(context.Background(), req) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for missing VolumeId, got %v", err) + } +} + +func TestValidateVolumeCapabilities_LustreClientNil(t *testing.T) { + inner := &testOCIClient{lustre: nil, id: &MockOCIIdentityClient{}} + d := newControllerWith(inner.Lustre(), inner.Identity(nil)) + req := &csi.ValidateVolumeCapabilitiesRequest{ + VolumeId: "ocid1.lustrefilesystem.oc1.phx.id:10.0.0.10@tcp:/fs1", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + } + _, err := d.ValidateVolumeCapabilities(context.Background(), req) + if status.Code(err) != codes.Internal { + t.Fatalf("expected Internal for nil lustre client, got %v", err) + } +} + +func TestValidateVolumeCapabilities_GetError(t *testing.T) { + fsID := "ocid1.lustrefilesystem.oc1.phx.id" + fl := &MockOCILustreFileStorageClient{GetErr: status.Error(codes.Internal, "get error")} + d := newControllerWith(fl, &MockOCIIdentityClient{}) + req := &csi.ValidateVolumeCapabilitiesRequest{ + VolumeId: fsID + ":10.0.0.10@tcp:/fs1", + VolumeCapabilities: []*csi.VolumeCapability{{AccessType: &csi.VolumeCapability_Mount{Mount: &csi.VolumeCapability_MountVolume{}}, AccessMode: &csi.VolumeCapability_AccessMode{Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}}}, + } + _, err := d.ValidateVolumeCapabilities(context.Background(), req) + if status.Code(err) != codes.NotFound { + t.Fatalf("expected NotFound for get error, got %v", err) + } + if !containsErr(err, "get error") { + t.Fatalf("expected error to mention get error, got %v", err) + } +} + +// ########################## ControllerGetCapabilities Tests ########################## +func TestLustreController_ControllerGetCapabilities_SingleCreateDeleteOnly(t *testing.T) { + d := &LustreControllerDriver{} + + resp, err := d.ControllerGetCapabilities(context.Background(), &csi.ControllerGetCapabilitiesRequest{}) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if resp == nil { + t.Fatalf("expected non-nil response") + } + if len(resp.Capabilities) != 1 { + t.Fatalf("expected 1 capability, got %d", len(resp.Capabilities)) + } + cap := resp.Capabilities[0] + if cap.GetRpc() == nil { + t.Fatalf("expected RPC capability, got nil") + } + if got := cap.GetRpc().GetType(); got != csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME { + t.Fatalf("expected capability CREATE_DELETE_VOLUME, got %v", got) + } +} + +// Unit test: method should be safe to call with nil request (it doesn't use the request) +func TestLustreController_ControllerGetCapabilities_NilRequest(t *testing.T) { + d := &LustreControllerDriver{} + resp, err := d.ControllerGetCapabilities(context.Background(), nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if resp == nil || len(resp.Capabilities) == 0 { + t.Fatalf("expected capabilities in response") + } +} + +// Unit test: method should not dereference the receiver; nil receiver should not panic +func TestLustreController_ControllerGetCapabilities_NilReceiver(t *testing.T) { + var d *LustreControllerDriver // nil receiver + // Call should not panic because implementation doesn't use the receiver fields + resp, err := d.ControllerGetCapabilities(context.Background(), &csi.ControllerGetCapabilitiesRequest{}) + if err != nil { + t.Fatalf("unexpected error with nil receiver: %v", err) + } + if resp == nil || len(resp.Capabilities) != 1 { + t.Fatalf("expected exactly one capability with nil receiver") + } + if resp.Capabilities[0].GetRpc().GetType() != csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME { + t.Fatalf("expected CREATE_DELETE_VOLUME with nil receiver") + } +} + +// ########################## Helper Tests ########################## + +func TestHelper_extractLustreFilesystemId(t *testing.T) { + got := extractLustreFilesystemId("ocid1.lustrefilesystem.oc1.phx.id:10.0.0.10@tcp:/fs") + if got == "" { + t.Fatalf("expected non-empty ID extract") + } + if got != "ocid1.lustrefilesystem.oc1.phx.id" { + t.Fatalf("expected ocid1.lustrefilesystem.oc1.phx.id, got %v", got) + } + if got := extractLustreFilesystemId("bad-id"); got != "" { + t.Fatalf("expected empty for malformed, got %q", got) + } + if got := extractLustreFilesystemId("ocid1.lustrefilesystem.oc1.phx.id10.0.0.10@tcp/fs"); got != "" { + t.Fatalf("expected empty for malformed, got %q", got) + } +} + +func TestHelper_buildLustreVolumeHandle(t *testing.T) { + id := "ocid1.lustrefilesystem.oc1.phx.zabc" + msa := "10.0.0.10" + lnet := "tcp" + fs := "fs1" + got := buildLustreVolumeHandle(&lustre.LustreFileSystem{Id: &id, ManagementServiceAddress: &msa, Lnet: &lnet, FileSystemName: &fs}) + expected := id + ":" + msa + "@" + lnet + ":/" + fs + if got != expected { + t.Fatalf("handle mismatch: got %q, expected %q", got, expected) + } +} + +//########################### Controller Setup ###############################3 + +func newControllerWith(flustre client.LustreInterface, fid client.IdentityInterface) *LustreControllerDriver { + logger, _ := zap.NewDevelopment() + cd := &ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit", Tags: &providercfg.InitialTags{ + LoadBalancer: nil, + BlockVolume: &providercfg.TagConfig{ + FreeformTags: map[string]string{"Project": "Lustre"}, + DefinedTags: map[string]map[string]interface{}{"orclcontainerengine": {"cluster": "ocid1.cluster..."}}, + }, + }}, client: &testOCIClient{lustre: flustre, id: fid}, logger: logger.Sugar()} + os.Setenv("CPO_ENABLE_RESOURCE_ATTRIBUTION", "true") + return &LustreControllerDriver{ControllerDriver: cd} +} + +type testOCIClient struct { + lustre client.LustreInterface + id client.IdentityInterface +} + +func (t *testOCIClient) Compute() client.ComputeInterface { return nil } +func (t *testOCIClient) LoadBalancer(*zap.SugaredLogger, string, *client.OCIClientConfig) client.GenericLoadBalancerInterface { + return nil +} +func (t *testOCIClient) Networking(*client.OCIClientConfig) client.NetworkingInterface { return nil } +func (t *testOCIClient) BlockStorage() client.BlockStorageInterface { return nil } +func (t *testOCIClient) FSS(*client.OCIClientConfig) client.FileStorageInterface { return nil } +func (t *testOCIClient) Lustre() client.LustreInterface { return t.lustre } +func (t *testOCIClient) Identity(*client.OCIClientConfig) client.IdentityInterface { return t.id } +func (t *testOCIClient) ContainerEngine() client.ContainerEngineInterface { return nil } +func (t *testOCIClient) NewWorkloadIdentityClient(*zap.SugaredLogger, string, *client.OCIClientConfig) client.Interface { + return t +} +func (t *testOCIClient) CertManager() client.CertificateManagerInterface { return nil } + +// Keep for compatibility if other tests add additional helpers here. + +func ptrString(s string) *string { return &s } + +func containsErr(err error, substr string) bool { + if err == nil { + return false + } + msg := status.Convert(err).Message() + return len(msg) > 0 && strings.Contains(msg, substr) +} diff --git a/pkg/csi/driver/lustre_node.go b/pkg/csi/driver/lustre_node.go index 963b648cd4..57c503f078 100644 --- a/pkg/csi/driver/lustre_node.go +++ b/pkg/csi/driver/lustre_node.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + "strings" "github.com/container-storage-interface/spec/lib/go/csi" csi_util "github.com/oracle/oci-cloud-controller-manager/pkg/csi-util" @@ -37,7 +38,9 @@ func (d LustreNodeDriver) NodeStageVolume(ctx context.Context, req *csi.NodeStag return nil, status.Error(codes.InvalidArgument, "Invalid fsType provided. Only \"lustre\" fsType is supported on this driver.") } - isValidVolumeId, lnetLabel := csi_util.ValidateLustreVolumeId(req.VolumeId) + // Accept both legacy and new dynamic volume ID formats by stripping OCID prefix if present. + normalizedVolID := stripLustreOCIDPrefix(req.VolumeId) + isValidVolumeId, lnetLabel := csi_util.ValidateLustreVolumeId(normalizedVolID) if !isValidVolumeId { return nil, status.Error(codes.InvalidArgument, "Invalid Volume Handle provided.") } @@ -118,7 +121,7 @@ func (d LustreNodeDriver) NodeStageVolume(ctx context.Context, req *csi.NodeStag return &csi.NodeStageVolumeResponse{}, nil } - source := req.VolumeId + source := normalizedVolID err = mounter.Mount(source, targetPath, fsType, options) @@ -168,7 +171,8 @@ func (d LustreNodeDriver) NodeUnstageVolume(ctx context.Context, req *csi.NodeUn return nil, status.Error(codes.InvalidArgument, "Staging path must be provided") } - isValidVolumeId, lnetLabel := csi_util.ValidateLustreVolumeId(req.VolumeId) + normalizedVolID := stripLustreOCIDPrefix(req.VolumeId) + isValidVolumeId, lnetLabel := csi_util.ValidateLustreVolumeId(normalizedVolID) if !isValidVolumeId { return nil, status.Error(codes.InvalidArgument, "Invalid Volume Handle provided.") } @@ -255,7 +259,8 @@ func (d LustreNodeDriver) NodePublishVolume(ctx context.Context, req *csi.NodePu logger := d.logger.With("volumeID", req.VolumeId) logger.Debugf("volume context: %v", req.VolumeContext) - isValidVolumeId, lnetLabel := csi_util.ValidateLustreVolumeId(req.VolumeId) + normalizedVolID := stripLustreOCIDPrefix(req.VolumeId) + isValidVolumeId, lnetLabel := csi_util.ValidateLustreVolumeId(normalizedVolID) if !isValidVolumeId { return nil, status.Error(codes.InvalidArgument, "Invalid Volume Handle provided.") } @@ -338,7 +343,8 @@ func (d LustreNodeDriver) NodeUnpublishVolume(ctx context.Context, req *csi.Node return nil, status.Error(codes.InvalidArgument, "NodeUnpublishVolume: Target Path must be provided") } - isValidVolumeId, lnetLabel := csi_util.ValidateLustreVolumeId(req.VolumeId) + normalizedVolID := stripLustreOCIDPrefix(req.VolumeId) + isValidVolumeId, lnetLabel := csi_util.ValidateLustreVolumeId(normalizedVolID) if !isValidVolumeId { return nil, status.Error(codes.InvalidArgument, "Invalid Volume Handle provided.") } @@ -443,3 +449,16 @@ func (d LustreNodeDriver) NodeGetInfo(ctx context.Context, request *csi.NodeGetI func isSkipLustreParams(csiConfig *util.CSIConfig) bool { return csiConfig != nil && csiConfig.Lustre != nil && csiConfig.Lustre.SkipLustreParameters } + +// stripLustreOCIDPrefix returns the legacy mount handle part of the volume ID. +// New dynamic format: :@:/ +// Legacy format: @:/ +func stripLustreOCIDPrefix(volumeID string) string { + // if there is a colon before '@', treat it as OCID separator. + atIdx := strings.Index(volumeID, "@") + colonIdx := strings.Index(volumeID, ":") + if atIdx > 0 && colonIdx >= 0 && colonIdx < atIdx { + return volumeID[colonIdx+1:] + } + return volumeID +} diff --git a/pkg/csi/driver/lustre_params.go b/pkg/csi/driver/lustre_params.go new file mode 100644 index 0000000000..b8ccfd6acd --- /dev/null +++ b/pkg/csi/driver/lustre_params.go @@ -0,0 +1,291 @@ +package driver + +import ( + "context" + "encoding/json" + "fmt" + "net" + "regexp" + "strconv" + "strings" + + "github.com/container-storage-interface/spec/lib/go/csi" + "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" + lustre "github.com/oracle/oci-go-sdk/v65/lustrefilestorage" + "go.uber.org/zap" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +// LustreStorageClassParameters holds Lustre-specific StorageClass attributes. +type LustreStorageClassParameters struct { + SubnetId string + CompartmentId string + AvailabilityDomain string + NSGIds []string + + // filesystem settings + FileSystemName string + PerformanceTier string // MBPS_PER_TB_125|250|500|1000 + KmsKeyId string + + // root squash settings + RootSquashEnabled bool + RootSquashUid int + RootSquashGid int + RootSquashUidSpecified bool + RootSquashGidSpecified bool + RootSquashClientExceptions []string + + // pass-through to VolumeContext + SetupLnet string + LustreSubnetCidr string + LustrePostMountParameters string + + // initial tags + SCTags *config.TagConfig +} + +// extractLustreStorageClassParameters parses and validates Lustre SC parameters. +// Returns: +// - updated logger (with useful fields) +// - early CreateVolumeResponse (if validation decides to short-circuit) +// - parsed parameters +// - error (grpc status) +// - done (true if CreateVolume should return early) +func extractLustreStorageClassParameters( + ctx context.Context, + d *LustreControllerDriver, + log *zap.SugaredLogger, + volumeName string, + parameters map[string]string, + identityClient client.IdentityInterface, +) (*zap.SugaredLogger, *csi.CreateVolumeResponse, *LustreStorageClassParameters, error) { + + params := &LustreStorageClassParameters{ + CompartmentId: d.config.CompartmentID, + RootSquashEnabled: false, + SCTags: &config.TagConfig{}, + } + + if d.config.Tags != nil && d.config.Tags.Lustre != nil { + if d.config.Tags.Lustre.FreeformTags != nil { + params.SCTags.FreeformTags = d.config.Tags.Lustre.FreeformTags + } + if d.config.Tags.Lustre.DefinedTags != nil { + params.SCTags.DefinedTags = d.config.Tags.Lustre.DefinedTags + } + } + + // subnetId (required) + subnetId, ok := parameters["subnetId"] + if !ok || strings.TrimSpace(subnetId) == "" { + log.Errorf("Missing required parameter: subnetId") + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Missing required parameter: subnetId") + } + params.SubnetId = subnetId + log = log.With("subnetId", subnetId) + + // compartmentId (optional; default to cluster compartment) + if compartmentId, ok := parameters["compartmentId"]; ok && strings.TrimSpace(compartmentId) != "" { + params.CompartmentId = compartmentId + } + log = log.With("compartmentId", params.CompartmentId) + + if nsgJSON, ok := parameters["nsgIds"]; ok && strings.TrimSpace(nsgJSON) != "" { + var nsgs []string + if err := json.Unmarshal([]byte(nsgJSON), &nsgs); err != nil { + log.With(zap.Error(err)).Error("Failed to parse nsgIds (expect JSON array of strings)") + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Failed to parse nsgIds (expect JSON array of strings) : %s", err.Error()) + } + params.NSGIds = nsgs + log = log.With("nsgIds", nsgs) + } + + // performanceTier (required) + if tier, ok := parameters["performanceTier"]; ok && strings.TrimSpace(tier) != "" { + t := strings.TrimSpace(tier) + if tierEnum, valid := lustre.GetMappingCreateLustreFileSystemDetailsPerformanceTierEnum(t); !valid { + return log, nil, nil, status.Errorf( + codes.InvalidArgument, + "Invalid performanceTier: %s. Supported values: %s", + t, + strings.Join(lustre.GetCreateLustreFileSystemDetailsPerformanceTierEnumStringValues(), ","), + ) + } else { + // Normalize to canonical enum string (e.g., MBPS_PER_TB_125) + params.PerformanceTier = string(tierEnum) + } + } else { + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Missing required parameter: performanceTier") + } + log = log.With("performanceTier", params.PerformanceTier) + + // kmsKeyId (optional) + if kms, ok := parameters["kmsKeyId"]; ok && strings.TrimSpace(kms) != "" { + params.KmsKeyId = strings.TrimSpace(kms) + } + + // root squash (optional) + if rsEnabled, ok := parameters["rootSquashEnabled"]; ok && strings.TrimSpace(rsEnabled) != "" { + rsEnabledTrim := strings.TrimSpace(rsEnabled) + rsEnabledLower := strings.ToLower(rsEnabledTrim) + + if rsEnabledLower != "true" && rsEnabledLower != "false" { + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Invalid rootSquashEnabled: %s. Allowed values: true or false", rsEnabled) + } + params.RootSquashEnabled = strings.EqualFold(rsEnabledLower, "true") + log = log.With("rootSquashEnabled", params.RootSquashEnabled) + } + if rsUid, ok := parameters["rootSquashUid"]; ok && strings.TrimSpace(rsUid) != "" { + if uid, err := strconv.Atoi(strings.TrimSpace(rsUid)); err == nil && uid >= 0 { + params.RootSquashUid = uid + params.RootSquashUidSpecified = true + } else { + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Invalid rootSquashUid: %s", rsUid) + } + } + if rsGid, ok := parameters["rootSquashGid"]; ok && strings.TrimSpace(rsGid) != "" { + if gid, err := strconv.Atoi(strings.TrimSpace(rsGid)); err == nil && gid >= 0 { + params.RootSquashGid = gid + params.RootSquashGidSpecified = true + } else { + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Invalid rootSquashGid: %s", rsGid) + } + } + if rsEx, ok := parameters["rootSquashClientExceptions"]; ok && strings.TrimSpace(rsEx) != "" { + var exceptions []string + if err := json.Unmarshal([]byte(rsEx), &exceptions); err != nil { + log.With(zap.Error(err)).Error("Failed to parse rootSquashClientExceptions (expect JSON array of strings)") + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Failed to parse rootSquashClientExceptions (expect JSON array of strings) : %s", err.Error()) + } + if len(exceptions) > 10 { + return log, nil, nil, status.Errorf(codes.InvalidArgument, "rootSquashClientExceptions supports max 10 entries") + } + params.RootSquashClientExceptions = exceptions + } + + // pass-through + if v, ok := parameters["setupLnet"]; ok && strings.TrimSpace(v) != "" { + setupLnet := strings.TrimSpace(v) + setupLnetLower := strings.ToLower(setupLnet) + if setupLnetLower != "true" && setupLnetLower != "false" { + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Invalid setupLnet: %s. Allowed values: true or false", v) + } + params.SetupLnet = setupLnetLower + } + if v, ok := parameters["lustreSubnetCidr"]; ok { + cidr := strings.TrimSpace(v) + if cidr != "" { + if _, _, err := net.ParseCIDR(cidr); err != nil { + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Invalid lustreSubnetCidr: %s", cidr) + } + params.LustreSubnetCidr = cidr + } + } + if v, ok := parameters["lustrePostMountParameters"]; ok { + lustrePostMountParameters := strings.TrimSpace(v) + if lustrePostMountParameters != "" { + if err := csi_util.ValidateLustreParameters(log, lustrePostMountParameters); err != nil { + log.With(zap.Error(err)).Error("Invalid lustrePostMountParameters") + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Invalid lustrePostMountParameters: %v", err) + } + params.LustrePostMountParameters = lustrePostMountParameters + } + } + + // filesystemName (optional, default derive from volumeName last 8 allowed chars) + if fsn, ok := parameters["fileSystemName"]; ok && strings.TrimSpace(fsn) != "" { + fileSystemName := strings.TrimSpace(fsn) + if err := validateLustreFileSystemName(fileSystemName); err != nil { + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Invalid fileSystemName: %v", err) + } + params.FileSystemName = fileSystemName + } else { + params.FileSystemName = deriveDefaultFSName(volumeName) + } + + // initialFreeformTagsOverride, initialDefinedTagsOverride come + if freeformStr, ok := parameters[initialFreeformTagsOverride]; ok && strings.TrimSpace(freeformStr) != "" { + freeform := make(map[string]string) + if err := json.Unmarshal([]byte(freeformStr), &freeform); err != nil { + log.With(zap.Error(err)).Errorf("failed to parse freeform tags provided for storageclass, freeformStr : %v", freeformStr) + return log, nil, nil, status.Errorf(codes.InvalidArgument, "failed to parse freeform tags provided for storageclass : %s", err.Error()) + } + params.SCTags.FreeformTags = freeform + } + if definedStr, ok := parameters[initialDefinedTagsOverride]; ok && strings.TrimSpace(definedStr) != "" { + defined := make(map[string]map[string]interface{}) + if err := json.Unmarshal([]byte(definedStr), &defined); err != nil { + log.With(zap.Error(err)).Errorf("failed to parse defined tags provided for storageclass, definedStr : %v", definedStr) + return log, nil, nil, status.Errorf(codes.InvalidArgument, "failed to parse defined tags provided for storageclass : %s", err.Error()) + } + params.SCTags.DefinedTags = defined + } + + // availabilityDomain (mandatory) + if ad, ok := parameters["availabilityDomain"]; ok && strings.TrimSpace(ad) != "" { + // Validate with Identity if provided, and normalize to full AD name (tenancy-prefixed) + adTrim := strings.TrimSpace(ad) + if full, err := identityClient.GetAvailabilityDomainByName(ctx, params.CompartmentId, adTrim); err != nil { + log.With(zap.Error(err)).Errorf("Invalid availabilityDomain: %s (from storage class) for compartment: %s", adTrim, params.CompartmentId) + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Invalid availabilityDomain: %s for compartment %s, error: %v", adTrim, params.CompartmentId, err) + } else { + params.AvailabilityDomain = *full.Name + } + log = log.With("availabilityDomain", params.AvailabilityDomain) + log.Info("AD is provided in storage class.") + } else { + log.Errorf("Missing required parameter: availabilityDomain") + return log, nil, nil, status.Errorf(codes.InvalidArgument, "Missing required parameter: availabilityDomain") + } + + log.Info("Successfully parsed Lustre storage class parameters") + return log, nil, params, nil +} + +// validateLustreFileSystemName enforces max 8 chars and allowed charset [A-Za-z0-9_] +func validateLustreFileSystemName(name string) error { + if name == "" { + return fmt.Errorf("empty") + } + if len(name) > 8 { + return fmt.Errorf("length must be <= 8") + } + ok, _ := regexp.MatchString(`^[A-Za-z0-9_]+$`, name) + if !ok { + return fmt.Errorf("allowed characters are [A-Za-z0-9_]") + } + return nil +} + +// deriveDefaultFSName picks the last 8 allowed characters from volumeName. +// If insufficient allowed chars, fall back to truncation with sanitization. +func deriveDefaultFSName(volumeName string) string { + if volumeName == "" { + return "pvlustre" //Just having default here, but volume name will not be empty as we check that in CreateVolume + } + // collect allowed chars from the end + allowed := []rune{} + for i := len(volumeName) - 1; i >= 0 && len(allowed) <= 6; i-- { + ch := rune(volumeName[i]) + if (ch >= 'a' && ch <= 'z') || + (ch >= 'A' && ch <= 'Z') || + (ch >= '0' && ch <= '9') { + allowed = append([]rune{ch}, allowed...) + } + } + + fs := string(allowed) + if len(fs) > 6 { + fs = fs[len(fs)-6:] + } + fs = "pv" + fs //autogenerated names will start with pv + // final sanity check + if err := validateLustreFileSystemName(fs); err != nil { + return "pvlustre" + } + return fs +} diff --git a/pkg/csi/driver/lustre_params_test.go b/pkg/csi/driver/lustre_params_test.go new file mode 100644 index 0000000000..74f6d55201 --- /dev/null +++ b/pkg/csi/driver/lustre_params_test.go @@ -0,0 +1,407 @@ +package driver + +import ( + "context" + "encoding/json" + "strings" + "testing" + + providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" + "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" + "go.uber.org/zap" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +// helper to call extractLustreStorageClassParameters +func parseParams(t *testing.T, p map[string]string, identity client.IdentityInterface) (*LustreStorageClassParameters, error) { + d := &LustreControllerDriver{ControllerDriver: &ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit-test"}}} + _, _, parsed, err := extractLustreStorageClassParameters(context.Background(), d, zap.S(), "vol-1", p, identity) + if err != nil { + return nil, err + } + return parsed, err +} + +func TestLustreParams_MissingSubnetId(t *testing.T) { + p := map[string]string{ + "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2", + } + _, err := parseParams(t, p, nil) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument, got %v", err) + } +} + +func TestLustreParams_PerformanceTierValidation(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "mbps_per_tb_250", + "availabilityDomain": "PHX-AD-2", + } + parsed, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if err != nil { + t.Fatalf("unexpected err: %v", err) + } + if parsed.PerformanceTier != "MBPS_PER_TB_250" { + t.Fatalf("expected canonical tier MBPS_PER_TB_250 got %s", parsed.PerformanceTier) + } + + p["performanceTier"] = "FASTEST" + _, err = parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for invalid tier, got %v", err) + } +} + +func TestLustreParams_NSGIdsParsing(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + } + ids := []string{"ocid1.nsg.oc1..a", "ocid1.nsg.oc1..b"} + b, _ := json.Marshal(ids) + p["nsgIds"] = string(b) + parsed, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if err != nil { + t.Fatalf("unexpected err: %v", err) + } + if len(parsed.NSGIds) != 2 { + t.Fatalf("expected 2 nsg ids, got %v", parsed.NSGIds) + } + + p["nsgIds"] = "not-json" + _, err = parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for bad json, got %v", err) + } +} + +func TestLustreParams_SetupLnetAndCidrAndPostMountParams(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_500", + "availabilityDomain": "PHX-AD-2", + "setupLnet": "TrUE", + "lustreSubnetCidr": "10.0.0.0/24", + "lustrePostMountParameters": "[{}]", + } + parsed, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if err != nil { + t.Fatalf("unexpected err: %v", err) + } + if parsed.SetupLnet != "true" { + t.Fatalf("expected setupLnet normalized true, got %s", parsed.SetupLnet) + } + + p["lustreSubnetCidr"] = "bad-cidr" + _, err = parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for bad cidr, got %v", err) + } + + p["lustreSubnetCidr"] = "10.0.1.0/24" + p["lustrePostMountParameters"] = "not-json" + _, err = parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for bad post mount params, got %v", err) + } +} + +func TestLustreParams_RootSquashValidation(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + "rootSquashEnabled": "truely", + "rootSquashUid": "-1", + } + _, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for negative uid, got %v", err) + } + + p["rootSquashUid"] = "1000" + // >10 exceptions + ex := make([]string, 11) + for i := 0; i < 11; i++ { + ex[i] = "10.0.0.1" + } + b, _ := json.Marshal(ex) + p["rootSquashClientExceptions"] = string(b) + _, err = parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for >10 exceptions, got %v", err) + } +} + +func TestLustreParams_FileSystemNameValidation(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + "fileSystemName": "INVALID-NAME", + } + _, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for invalid fs name, got %v", err) + } + + p["fileSystemName"] = "mylustre" + parsed, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if err != nil { + t.Fatalf("unexpected err: %v", err) + } + if parsed.FileSystemName != "mylustre" { + t.Fatalf("expected mylustre, got %s", parsed.FileSystemName) + } +} + +func TestLustreParams_AvailabilityDomain_ExplicitValidNormalization(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + } + d := &LustreControllerDriver{ControllerDriver: &ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit-test"}}} + _, _, parsed, err := extractLustreStorageClassParameters(context.Background(), d, zap.S(), "vol-xyz", p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if parsed.AvailabilityDomain == "PHX-AD-2" || parsed.AvailabilityDomain == "" { + t.Fatalf("expected normalized AD name, got %q", parsed.AvailabilityDomain) + } +} + +func TestLustreParams_TagsOverrides_ValidAndInvalid(t *testing.T) { + free := map[string]string{"env": "dev"} + def := map[string]map[string]interface{}{"ns": {"k": "v"}} + freeJSON, _ := json.Marshal(free) + defJSON, _ := json.Marshal(def) + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + initialFreeformTagsOverride: string(freeJSON), + initialDefinedTagsOverride: string(defJSON), + } + parsed, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if err != nil { + t.Fatalf("unexpected err: %v", err) + } + if parsed.SCTags.FreeformTags["env"] != "dev" { + t.Fatalf("expected freeform tag env=dev, got %v", parsed.SCTags.FreeformTags) + } + if _, ok := parsed.SCTags.DefinedTags["ns"]; !ok { + t.Fatalf("expected defined tag ns") + } + + // invalid JSON + p[initialFreeformTagsOverride] = "not-json" + _, err = parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for invalid freeform tags json, got %v", err) + } + delete(p, initialFreeformTagsOverride) + p[initialDefinedTagsOverride] = "not-json" + _, err = parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument { + t.Fatalf("expected InvalidArgument for invalid defined tags json, got %v", err) + } +} + +func TestLustreParams_NSGIds_Omitted(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + } + parsed, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if err != nil { + t.Fatalf("unexpected err: %v", err) + } + if len(parsed.NSGIds) != 0 { + t.Fatalf("expected empty NSGIds when omitted, got %v", parsed.NSGIds) + } +} + +func TestLustreParams_DeriveDefaultFSName(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + } + d := &LustreControllerDriver{ControllerDriver: &ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit-test"}}} + _, _, parsed, err := extractLustreStorageClassParameters(context.Background(), d, zap.S(), "vol-abc_DEF123", p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if parsed.FileSystemName == "" || len(parsed.FileSystemName) > 8 { + t.Fatalf("expected derived fs name <=8 chars, got %q", parsed.FileSystemName) + } +} + +func TestDeriveDefaultFSName_Empty(t *testing.T) { + got := deriveDefaultFSName("") + if got != "pvlustre" { + t.Fatalf("expected 'pvlustre' for empty volumeName, got %q", got) + } +} + +func TestDeriveDefaultFSName_WithSixLetters(t *testing.T) { + got := deriveDefaultFSName("abcdef") + if got != "pvabcdef" { + t.Fatalf("expected 'pvabcdef' for 'abcdef', got %q", got) + } +} + +func TestDeriveDefaultFSName_WithMoreThanSixLetters(t *testing.T) { + got := deriveDefaultFSName("abcdefghijk") + if got != "pvfghijk" { + t.Fatalf("expected 'pvfghijk' for 'abcdefghijk', got %q", got) + } +} + +func TestDeriveDefaultFSName_WithFewerThanSixLetters(t *testing.T) { + got := deriveDefaultFSName("abc") + if got != "pvabc" { + t.Fatalf("expected 'pvabc' for 'abc', got %q", got) + } +} + +func TestDeriveDefaultFSName_NoLetters(t *testing.T) { + got := deriveDefaultFSName("123456") + if got != "pv123456" { + t.Fatalf("expected 'pv123456' for '123456', got %q", got) + } +} + +func TestDeriveDefaultFSName_WithNumbersAndSymbols(t *testing.T) { + got := deriveDefaultFSName("a1b@c2d#e3f") + if got != "pvc2de3f" { + t.Fatalf("expected 'pvc2de3f' for 'a1b@c2d#e3f', got %q", got) + } +} + +func TestDeriveDefaultFSName_CaseSensitive(t *testing.T) { + got := deriveDefaultFSName("AbCdEf") + if got != "pvAbCdEf" { + t.Fatalf("expected 'pvAbCdEf' for 'AbCdEf', got %q", got) + } +} + +func TestDeriveDefaultFSName_MixedCaseAndNumbers(t *testing.T) { + got := deriveDefaultFSName("Vol123Abc") + if got != "pv123Abc" { + t.Fatalf("expected 'pv123Abc' for 'Vol123Abc', got %q", got) + } +} + +func TestDeriveDefaultFSName_SingleLetter(t *testing.T) { + got := deriveDefaultFSName("a") + if got != "pva" { + t.Fatalf("expected 'pva' for 'a', got %q", got) + } +} + +func TestDeriveDefaultFSName_AllLetters(t *testing.T) { + got := deriveDefaultFSName("ABCDEFGHIJKLMNOPQRSTUVWXYZ") + if got != "pvUVWXYZ" { + t.Fatalf("expected 'pvUVWXYZ' for 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', got %q", got) + } +} + +func TestValidateLustreFileSystemName_Empty(t *testing.T) { + err := validateLustreFileSystemName("") + if err == nil || !strings.Contains(err.Error(), "empty") { + t.Fatalf("expected error containing 'empty', got %v", err) + } +} + +func TestValidateLustreFileSystemName_InvalidPattern(t *testing.T) { + err := validateLustreFileSystemName("invalid@") + if err == nil || !strings.Contains(err.Error(), "allowed characters") { + t.Fatalf("expected error containing 'allowed characters', got %v", err) + } +} + +func TestLustreParams_InvalidSetupLnet(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + "setupLnet": "invalid", + } + _, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument || !strings.Contains(err.Error(), "Invalid setupLnet") { + t.Fatalf("expected InvalidArgument with 'Invalid setupLnet', got %v", err) + } +} + +func TestLustreParams_InvalidRootSquashClientExceptions(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + "rootSquashClientExceptions": "not-json", + } + _, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument || !strings.Contains(err.Error(), "Failed to parse rootSquashClientExceptions") { + t.Fatalf("expected InvalidArgument with parse error, got %v", err) + } +} + +func TestLustreParams_MissingPerformanceTier(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "availabilityDomain": "PHX-AD-2", + } + _, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument || !strings.Contains(err.Error(), "Missing required parameter: performanceTier") { + t.Fatalf("expected InvalidArgument for missing performanceTier, got %v", err) + } +} + +func TestLustreParams_CompartmentIdPassed(t *testing.T) { + testComp := "ocid1.compartment.oc1..test" + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + "compartmentId": testComp, + } + parsed, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if err != nil { + t.Fatalf("unexpected err: %v", err) + } + if parsed.CompartmentId != testComp { + t.Fatalf("expected compartmentId %q, got %q", testComp, parsed.CompartmentId) + } +} + +func TestLustreParams_NonIntRootSquashUid(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + "rootSquashUid": "abc", + } + _, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument || !strings.Contains(err.Error(), "Invalid rootSquashUid") { + t.Fatalf("expected InvalidArgument for non-int uid, got %v", err) + } +} + +func TestLustreParams_NonIntRootSquashGid(t *testing.T) { + p := map[string]string{ + "subnetId": "ocid1.subnet.oc1..example", + "performanceTier": "MBPS_PER_TB_125", + "availabilityDomain": "PHX-AD-2", + "rootSquashGid": "abc", + } + _, err := parseParams(t, p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) + if status.Code(err) != codes.InvalidArgument || !strings.Contains(err.Error(), "Invalid rootSquashGid") { + t.Fatalf("expected InvalidArgument for non-int gid, got %v", err) + } +} diff --git a/pkg/metrics/constants.go b/pkg/metrics/constants.go index 0fbe9fdc5b..e92686de07 100644 --- a/pkg/metrics/constants.go +++ b/pkg/metrics/constants.go @@ -83,6 +83,11 @@ const ( // FssAllDelete is the OCI metric suffix for FSS end to end deletion FssAllDelete = "FSS_ALL_DELETE" + // LustreProvision is the OCI metric suffix for Lustre end to end provision + LustreProvision = "LUSTRE_PROVISION" + // LustreDelete is the OCI metric suffix for Lustre end to end deletion + LustreDelete = "LUSTRE_DELETE" + ResourceOCIDDimension = "resourceOCID" ComponentDimension = "component" BackendSetsCountDimension = "backendSetsCount" diff --git a/pkg/oci/client/block_storage.go b/pkg/oci/client/block_storage.go index 0d612b57cf..3692daed5f 100644 --- a/pkg/oci/client/block_storage.go +++ b/pkg/oci/client/block_storage.go @@ -16,7 +16,6 @@ package client import ( "context" - "time" "github.com/oracle/oci-cloud-controller-manager/pkg/util" @@ -99,7 +98,7 @@ func (c *client) GetBootVolume(ctx context.Context, id string) (*core.BootVolume } resp, err := c.bs.GetBootVolume(ctx, core.GetBootVolumeRequest{ - BootVolumeId: &id, + BootVolumeId: &id, RequestMetadata: c.requestMetadata}) incRequestCounter(err, getVerb, volumeResource) diff --git a/pkg/oci/client/client.go b/pkg/oci/client/client.go index dd362ad66a..12e7a6da69 100644 --- a/pkg/oci/client/client.go +++ b/pkg/oci/client/client.go @@ -25,6 +25,7 @@ import ( "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/lustrefilestorage" "github.com/oracle/oci-go-sdk/v65/networkloadbalancer" "github.com/pkg/errors" "go.uber.org/zap" @@ -48,6 +49,7 @@ type Interface interface { Networking(*OCIClientConfig) NetworkingInterface BlockStorage() BlockStorageInterface FSS(*OCIClientConfig) FileStorageInterface + Lustre() LustreInterface Identity(*OCIClientConfig) IdentityInterface } @@ -190,6 +192,7 @@ type client struct { bs blockstorageClient identity identityClient //compartment compartmentClient + lustre lustrefilestorage.LustreFileStorageClient requestMetadata common.RequestMetadata rateLimiter RateLimiter @@ -283,7 +286,14 @@ func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimit if err != nil { return nil, errors.Wrap(err, "configuring file storage service client custom transport") } - + lustreClient, err := lustrefilestorage.NewLustreFileStorageClientWithConfigurationProvider(cp) + if err != nil { + return nil, errors.Wrap(err, "NewLustreFileStorageClientWithConfigurationProvider") + } + err = configureCustomTransport(logger, &lustreClient.BaseClient) + if err != nil { + return nil, errors.Wrap(err, "configuring lustre file storage client custom transport") + } requestMetadata := common.RequestMetadata{ RetryPolicy: newRetryPolicy(), } @@ -300,7 +310,7 @@ func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimit bs: &bs, filestorage: &fss, //compartment: &compartment, - + lustre: lustreClient, rateLimiter: *opRateLimiter, requestMetadata: requestMetadata, @@ -407,6 +417,10 @@ func (c *client) Networking(ociClientConfig *OCIClientConfig) NetworkingInterfac return c } +func (c *client) Lustre() LustreInterface { + return c +} + func (c *client) Compute() ComputeInterface { return c } diff --git a/pkg/oci/client/lustre.go b/pkg/oci/client/lustre.go new file mode 100644 index 0000000000..3cca73e258 --- /dev/null +++ b/pkg/oci/client/lustre.go @@ -0,0 +1,301 @@ +// Copyright 2018-2026 Oracle and/or its affiliates. All rights reserved. +// Licensed under the Apache License, Version 2.0 + +package client + +import ( + "context" + "fmt" + "time" + + "github.com/oracle/oci-cloud-controller-manager/pkg/util" + lustre "github.com/oracle/oci-go-sdk/v65/lustrefilestorage" + "github.com/pkg/errors" + "go.uber.org/zap" + "k8s.io/apimachinery/pkg/util/wait" +) + +const ( + lustreDefaultCreateInterval = 30 * time.Second + lustreDefaultDeleteInterval = 45 * time.Second +) + +// LustreInterface defines the interface to OCI File Storage with Lustre consumed by the CSI controller. +type LustreInterface interface { + // CRUD + CreateLustreFileSystem(ctx context.Context, details lustre.CreateLustreFileSystemDetails) (*lustre.LustreFileSystem, error) + GetLustreFileSystem(ctx context.Context, id string) (*lustre.LustreFileSystem, error) + ListLustreFileSystems(ctx context.Context, compartmentID, ad, displayName string) ([]lustre.LustreFileSystemSummary, error) + DeleteLustreFileSystem(ctx context.Context, id string) error + + // Waiters + AwaitLustreFileSystemActive(ctx context.Context, logger *zap.SugaredLogger, id string) (*lustre.LustreFileSystem, error) + AwaitLustreFileSystemDeleted(ctx context.Context, logger *zap.SugaredLogger, id string) error + + // Work requests + ListWorkRequests(ctx context.Context, compartmentID, resourceID string) ([]lustre.WorkRequestSummary, error) + ListWorkRequestErrors(ctx context.Context, workRequestID string, volumeID string) ([]lustre.WorkRequestError, error) +} + +// CreateLustreFileSystem creates a Lustre file system and returns the created object. +func (c *client) CreateLustreFileSystem(ctx context.Context, details lustre.CreateLustreFileSystemDetails) (*lustre.LustreFileSystem, error) { + if !c.rateLimiter.Writer.TryAccept() { + return nil, RateLimitError(false, "CreateLustreFileSystem") + } + + resp, err := c.lustre.CreateLustreFileSystem(ctx, lustre.CreateLustreFileSystemRequest{ + CreateLustreFileSystemDetails: details, + OpcRetryToken: details.DisplayName, // idempotency token (csi-lustre-) + RequestMetadata: c.requestMetadata, + }) + incRequestCounter(err, createVerb, "lustreFileSystem") + + if resp.OpcRequestId != nil { + c.logger.With("service", "lustre", "verb", createVerb, "resource", "lustreFileSystem"). + With("volumeName", details.DisplayName, "OpcRequestId", *(resp.OpcRequestId)). + With("statusCode", util.GetHttpStatusCode(err)). + Info("OPC Request ID recorded for CreateLustreFileSystem call.") + } + + if err != nil { + return nil, errors.WithStack(err) + } + + ls := resp.LustreFileSystem + return &ls, nil +} + +// GetLustreFileSystem gets a Lustre file system by OCID. +func (c *client) GetLustreFileSystem(ctx context.Context, id string) (*lustre.LustreFileSystem, error) { + if !c.rateLimiter.Reader.TryAccept() { + return nil, RateLimitError(false, "GetLustreFileSystem") + } + + resp, err := c.lustre.GetLustreFileSystem(ctx, lustre.GetLustreFileSystemRequest{ + LustreFileSystemId: &id, + RequestMetadata: c.requestMetadata, + }) + incRequestCounter(err, getVerb, "lustreFileSystem") + + if resp.OpcRequestId != nil { + c.logger.With("service", "lustre", "verb", getVerb, "resource", "lustreFileSystem"). + With("volumeID", id, "OpcRequestId", *(resp.OpcRequestId)). + With("statusCode", util.GetHttpStatusCode(err)). + Info("OPC Request ID recorded for GetLustreFileSystem call.") + } + + if err != nil { + return nil, errors.WithStack(err) + } + ls := resp.LustreFileSystem + return &ls, nil +} + +// ListLustreFileSystems lists Lustre file systems filtered by compartment, AD, and displayName. +// Only ACTIVE and CREATING states are returned; conflicting states are returned with an error flag. +func (c *client) ListLustreFileSystems(ctx context.Context, compartmentID, ad, displayName string) ([]lustre.LustreFileSystemSummary, error) { + var page *string + items := make([]lustre.LustreFileSystemSummary, 0) + + for { + if !c.rateLimiter.Reader.TryAccept() { + return nil, RateLimitError(false, "ListLustreFileSystems") + } + + req := lustre.ListLustreFileSystemsRequest{ + CompartmentId: &compartmentID, + RequestMetadata: c.requestMetadata, + Page: page, + } + if displayName != "" { + req.DisplayName = &displayName + } + if ad != "" { + req.AvailabilityDomain = &ad + } + + resp, err := c.lustre.ListLustreFileSystems(ctx, req) + incRequestCounter(err, listVerb, "lustreFileSystem") + + if resp.OpcRequestId != nil { + c.logger.With("service", "lustre", "verb", listVerb, "resource", "lustreFileSystem"). + With("compartmentID", compartmentID, "availabilityDomain", ad, "volumeName", displayName, "OpcRequestId", *(resp.OpcRequestId)). + With("statusCode", util.GetHttpStatusCode(err)). + Info("OPC Request ID recorded for ListLustreFileSystems call.") + } + + if err != nil { + return nil, errors.WithStack(err) + } + + for _, s := range resp.LustreFileSystemCollection.Items { + items = append(items, s) + } + + if page = resp.OpcNextPage; page == nil { + break + } + } + return items, nil +} + +// DeleteLustreFileSystem deletes a Lustre file system by OCID. +func (c *client) DeleteLustreFileSystem(ctx context.Context, id string) error { + if !c.rateLimiter.Writer.TryAccept() { + return RateLimitError(true, "DeleteLustreFileSystem") + } + + resp, err := c.lustre.DeleteLustreFileSystem(ctx, lustre.DeleteLustreFileSystemRequest{ + LustreFileSystemId: &id, + RequestMetadata: c.requestMetadata, + }) + incRequestCounter(err, deleteVerb, "lustreFileSystem") + + if resp.OpcRequestId != nil { + c.logger.With("service", "lustre", "verb", deleteVerb, "resource", "lustreFileSystem"). + With("volumeID", id, "OpcRequestId", *(resp.OpcRequestId)). + With("statusCode", util.GetHttpStatusCode(err)). + Info("OPC Request ID recorded for DeleteLustreFileSystem call.") + } + + if err != nil { + return errors.WithStack(err) + } + return nil +} + +// AwaitLustreFileSystemActive waits for the Lustre file system to become ACTIVE or returns error on terminal states. +func (c *client) AwaitLustreFileSystemActive(ctx context.Context, logger *zap.SugaredLogger, id string) (*lustre.LustreFileSystem, error) { + logger.Info("Waiting for LustreFileSystem to go in lifecycle state ACTIVE") + + var fs *lustre.LustreFileSystem + err := wait.PollUntilContextCancel(ctx, lustreDefaultCreateInterval, true, func(ctx context.Context) (bool, error) { + logger.Debug("Polling LustreFileSystem lifecycle state") + + var err error + fs, err = c.GetLustreFileSystem(ctx, id) + if err != nil { + return false, err + } + + switch state := fs.LifecycleState; state { + case lustre.LustreFileSystemLifecycleStateActive: + logger.Infof("LustreFileSystem is in lifecycle state %q", state) + return true, nil + case lustre.LustreFileSystemLifecycleStateDeleting, + lustre.LustreFileSystemLifecycleStateDeleted, + lustre.LustreFileSystemLifecycleStateFailed: + return false, fmt.Errorf("LustreFileSystem is in lifecycle state %q", state) + default: + logger.Infof("LustreFileSystem is in lifecycle state %q", state) + return false, nil + } + }) + if err != nil { + return nil, err + } + return fs, nil +} + +// AwaitLustreFileSystemDeleted waits until the Lustre file system is deleted (404 or DELETED). +func (c *client) AwaitLustreFileSystemDeleted(ctx context.Context, logger *zap.SugaredLogger, id string) error { + logger.Info("Waiting for LustreFileSystem to be DELETED") + + return wait.PollUntilContextCancel(ctx, lustreDefaultDeleteInterval, true, func(ctx context.Context) (bool, error) { + logger.Debug("Polling LustreFileSystem deletion state") + + fs, err := c.GetLustreFileSystem(ctx, id) + if err != nil { + if IsNotFound(err) { + logger.Info("LustreFileSystem is deleted (not found).") + return true, nil + } + return false, err + } + switch state := fs.LifecycleState; state { + case lustre.LustreFileSystemLifecycleStateDeleted: + logger.Info("LustreFileSystem is DELETED") + return true, nil + case lustre.LustreFileSystemLifecycleStateDeleting: + logger.Debugf("LustreFileSystem is still DELETING") + return false, nil + default: + logger.Infof("LustreFileSystem is in state %v", state) + return false, nil + } + }) +} + +// ListWorkRequests lists Lustre work requests filtered by compartment and resourceId, sorted by timeAccepted desc. +func (c *client) ListWorkRequests(ctx context.Context, compartmentID, resourceID string) ([]lustre.WorkRequestSummary, error) { + var page *string + var items []lustre.WorkRequestSummary + + for { + if !c.rateLimiter.Reader.TryAccept() { + return nil, RateLimitError(false, "ListWorkRequests") + } + resp, err := c.lustre.ListWorkRequests(ctx, lustre.ListWorkRequestsRequest{ + CompartmentId: &compartmentID, + ResourceId: &resourceID, + SortBy: lustre.ListWorkRequestsSortByTimeaccepted, + SortOrder: lustre.ListWorkRequestsSortOrderDesc, + Page: page, + RequestMetadata: c.requestMetadata, + }) + incRequestCounter(err, listVerb, "lustreWorkRequests") + + if resp.OpcRequestId != nil { + c.logger.With("service", "lustre", "verb", listVerb, "resource", "lustreWorkRequests"). + With("compartmentID", compartmentID, "volumeID", resourceID, "OpcRequestId", *(resp.OpcRequestId)). + With("statusCode", util.GetHttpStatusCode(err)). + Info("OPC Request ID recorded for lustre ListWorkRequests call.") + } + + if err != nil { + return nil, errors.WithStack(err) + } + + items = append(items, resp.WorkRequestSummaryCollection.Items...) + if page = resp.OpcNextPage; page == nil { + break + } + } + return items, nil +} + +// ListWorkRequestErrors returns work request errors for a given work request id. +func (c *client) ListWorkRequestErrors(ctx context.Context, workRequestID string, volumeID string) ([]lustre.WorkRequestError, error) { + var page *string + var items []lustre.WorkRequestError + + for { + if !c.rateLimiter.Reader.TryAccept() { + return nil, RateLimitError(false, "ListWorkRequestErrors") + } + resp, err := c.lustre.ListWorkRequestErrors(ctx, lustre.ListWorkRequestErrorsRequest{ + WorkRequestId: &workRequestID, + SortBy: lustre.ListWorkRequestErrorsSortByTimestamp, + SortOrder: lustre.ListWorkRequestErrorsSortOrderDesc, + Page: page, + RequestMetadata: c.requestMetadata, + }) + + if resp.OpcRequestId != nil { + c.logger.With("service", "lustre", "verb", listVerb, "resource", "lustreWorkRequestErrors"). + With("workRequestID", workRequestID, "volumeID", volumeID, "OpcRequestId", *(resp.OpcRequestId)). + With("statusCode", util.GetHttpStatusCode(err)). + Info("OPC Request ID recorded for lustre ListWorkRequestErrors call.") + } + + incRequestCounter(err, listVerb, "lustreWorkRequestErrors") + if err != nil { + return nil, errors.WithStack(err) + } + items = append(items, resp.WorkRequestErrorCollection.Items...) + if page = resp.OpcNextPage; page == nil { + break + } + } + return items, nil +} diff --git a/pkg/util/commons_test.go b/pkg/util/commons_test.go index a81fd1638f..3fc96cf22a 100644 --- a/pkg/util/commons_test.go +++ b/pkg/util/commons_test.go @@ -152,6 +152,10 @@ func TestIsCommonTagPresent(t *testing.T) { FreeformTags: nil, DefinedTags: nil, }, + Lustre: &config.TagConfig{ + FreeformTags: nil, + DefinedTags: nil, + }, }, want: false, }, diff --git a/pkg/util/mock_oci_clients.go b/pkg/util/mock_oci_clients.go index c388cc7e25..8e4a1cd924 100644 --- a/pkg/util/mock_oci_clients.go +++ b/pkg/util/mock_oci_clients.go @@ -2,9 +2,11 @@ package util import ( "context" + "github.com/oracle/oci-go-sdk/v65/common" "github.com/oracle/oci-go-sdk/v65/core" "github.com/oracle/oci-go-sdk/v65/filestorage" + lustre "github.com/oracle/oci-go-sdk/v65/lustrefilestorage" ) type MockOCIBlockStorageClient struct { @@ -19,6 +21,10 @@ type MockOCIFileStorageClient struct { client filestorage.FileStorageClient } +type MockOCILustreFileStorageClient struct { + client lustre.LustreFileStorageClient +} + func (c MockOCIFileStorageClient) ListMountTargets(ctx context.Context, request filestorage.ListMountTargetsRequest) (response filestorage.ListMountTargetsResponse, err error) { if *request.DisplayName == "mount-target-idempotency-check-timeout-volume" { select { diff --git a/pkg/volume/provisioner/block/block_test.go b/pkg/volume/provisioner/block/block_test.go index 38d83ab171..be0cf6791b 100644 --- a/pkg/volume/provisioner/block/block_test.go +++ b/pkg/volume/provisioner/block/block_test.go @@ -376,10 +376,6 @@ type MockIdentityClient struct { common.BaseClient } -func (client MockIdentityClient) ListAvailabilityDomains(ctx context.Context, compartmentID string) ([]identity.AvailabilityDomain, error) { - return nil, nil -} - // ListAvailabilityDomains mocks the client ListAvailabilityDomains implementation func (client MockIdentityClient) GetAvailabilityDomainByName(ctx context.Context, compartmentID, name string) (*identity.AvailabilityDomain, error) { return nil, nil @@ -390,6 +386,10 @@ type MockProvisionerClient struct { Storage *MockBlockStorageClient } +func (p *MockProvisionerClient) Lustre() client.LustreInterface { + return nil +} + // BlockStorage mocks client BlockStorage implementation func (p *MockProvisionerClient) BlockStorage() client.BlockStorageInterface { return p.Storage diff --git a/pkg/volume/provisioner/fss/fss_test.go b/pkg/volume/provisioner/fss/fss_test.go index e9193f1f07..197284d1a1 100644 --- a/pkg/volume/provisioner/fss/fss_test.go +++ b/pkg/volume/provisioner/fss/fss_test.go @@ -382,10 +382,6 @@ type MockIdentityClient struct { common.BaseClient } -func (client MockIdentityClient) ListAvailabilityDomains(ctx context.Context, compartmentID string) ([]identity.AvailabilityDomain, error) { - return nil, nil -} - // ListAvailabilityDomains mocks the client ListAvailabilityDomains implementation func (client MockIdentityClient) GetAvailabilityDomainByName(ctx context.Context, compartmentID, name string) (*identity.AvailabilityDomain, error) { return nil, nil @@ -396,6 +392,10 @@ type MockProvisionerClient struct { Storage *MockBlockStorageClient } +func (p *MockProvisionerClient) Lustre() client.LustreInterface { + return nil +} + // BlockStorage mocks client BlockStorage implementation func (p *MockProvisionerClient) BlockStorage() client.BlockStorageInterface { return p.Storage diff --git a/test/e2e/cloud-provider-oci/lustre.go b/test/e2e/cloud-provider-oci/lustre.go new file mode 100644 index 0000000000..acb236450e --- /dev/null +++ b/test/e2e/cloud-provider-oci/lustre.go @@ -0,0 +1,164 @@ +// Copyright 2021 Oracle and/or its affiliates. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package e2e + +import ( + "context" + + . "github.com/onsi/ginkgo" + . "github.com/onsi/gomega" + "github.com/oracle/oci-cloud-controller-manager/test/e2e/framework" + v1 "k8s.io/api/core/v1" + "k8s.io/utils/pointer" +) + +var _ = Describe("Lustre E2E Tests", func() { + f := framework.NewDefaultFramework("lustre-dynamic-e2e") + Context("[cloudprovider][storage][csi][lustre]", func() { + + It("All the lustre dynamic provisioning and static provisioning tests", func() { + framework.Logf("Compartment %v", setupF.Compartment1) + f.CleanupLustreFileSystems(context.Background(), setupF.Compartment1) + + if !setupF.EnableLustreTests { + Skip("Skipping Lustre tests as Lustre tests are not been enabled (Env var: ENABLE_LUSTRE_TESTS)") + } + + By("Running test: Lustre Dynamic Provisioning - Create lustre file storage dynamically and deploy multiple pods for reading and writing data.") + pvcJig := framework.NewPVCTestJig(f.ClientSet, "csi-lustre-e2e-test") + + parameters := map[string]string{ + "subnetId": setupF.LustreSubnet, + "availabilityDomain": setupF.LustreAD, + "performanceTier": "MBPS_PER_TB_125", + "setupLnet": "true", + "lustrePostMountParameters": "[{\"*.*.*MDT*.lru_size\" : 11201}]", + } + if setupF.LustreKMSKey != "" { + parameters["kmsKeyId"] = setupF.LustreKMSKey + } + if setupF.LustreSubnetCidr != "" { + parameters["lustreSubnetCidr"] = setupF.LustreSubnetCidr + } + + scName := f.CreateStorageClassOrFail("lustre-high-perf", setupF.LustreProvisionerName, parameters, pvcJig.Labels, "WaitForFirstConsumer", false, "Delete", nil) + + pvc := pvcJig.CreateAndAwaitPVCOrFailDynamicLustre(f.Namespace.Name, "31200G", scName, v1.ClaimPending, nil) + + config := &framework.PodConfig{ + NodeSelector: map[string]string{ + "oci.oraclecloud.com/lustre-client-configured": "true", + }, + Tolerations: []v1.Toleration{ + { + Key: "dedicated", + Operator: v1.TolerationOpEqual, + Value: "lustre", + Effect: v1.TaintEffectNoSchedule, + }, + }, + } + pvcJig.CheckMultiplePodReadWriteGeneric(f.Namespace.Name, pvc.Name, config) + pvcWithDetails := pvcJig.GetPVCByName(pvc.Name, f.Namespace.Name) // refetching PVC to load PV details + pvc = &pvcWithDetails + f.VolumeIds = append(f.VolumeIds, pvc.Spec.VolumeName) + pv := pvcJig.GetPVByName(pvc.Spec.VolumeName) + Expect(pv).ToNot(BeNil(), "PV Not present") + + // This dynamically provisioned LFS will be used for additional static provisioning tests due to cost reasons + setupF.LustreVolumeHandle = pv.Spec.CSI.VolumeHandle + By("Completed test: Lustre Dynamic Provisioning - Create lustre file storage dynamically and deploy multiple pods for reading and writing data.") + + By("Running test: Lustre Static Provisioning - Multiple pods should be able to read/write to statically provisioned LFS.") + pvVolumeAttributes := map[string]string{"setupLnet": "true"} + if setupF.LustreSubnetCidr != "" { + pvVolumeAttributes["lustreSubnetCidr"] = setupF.LustreSubnetCidr + } + + pv1 := pvcJig.CreatePVorFailLustre(f.Namespace.Name, setupF.LustreVolumeHandle, []string{}, pvVolumeAttributes) + pvc1 := pvcJig.CreateAndAwaitPVCOrFailStaticLustre(f.Namespace.Name, pv1.Name, "31200G", nil) + f.VolumeIds = append(f.VolumeIds, pvc1.Spec.VolumeName) + pvcJig.CheckMultiplePodReadWriteGeneric(f.Namespace.Name, pvc1.Name, config) + err := pvcJig.DeleteAndAwaitPVC(f.Namespace.Name, pvc1.Name) + Expect(err).To(BeNil(), "PCV Deletion failed") + err = pvcJig.DeleteAndAwaitPV(pv1.Name) + Expect(err).To(BeNil(), "PV Deletion failed") + + By("Complete: Lustre Static Provisioning - Multiple pods should be able to read/write to statically provisioned LFS.") + + By("Running test: Lustre Static Provisioning - Post mount parameters") + pvVolumeAttributes2 := map[string]string{"setupLnet": "true", "lustrePostMountParameters": "[{\"*.*.*MDT*.lru_size\" : 11201}]"} + if setupF.LustreSubnetCidr != "" { + pvVolumeAttributes2["lustreSubnetCidr"] = setupF.LustreSubnetCidr + } + pv2 := pvcJig.CreatePVorFailLustre(f.Namespace.Name, setupF.LustreVolumeHandle, []string{}, pvVolumeAttributes2) + pvc2 := pvcJig.CreateAndAwaitPVCOrFailStaticLustre(f.Namespace.Name, pv2.Name, "31200G", nil) + f.VolumeIds = append(f.VolumeIds, pvc2.Spec.VolumeName) + writePod2, readPod2 := pvcJig.CheckSinglePodReadWriteLustre(f.Namespace.Name, pvc2.Name, []string{}, true, config) + Expect(pvcJig.DeleteAndAwaitPod(f.Namespace.Name, writePod2)).NotTo(HaveOccurred(), "Pod Deletion failed") + Expect(pvcJig.DeleteAndAwaitPod(f.Namespace.Name, readPod2)).NotTo(HaveOccurred(), "Pod Deletion failed") + Expect(pvcJig.DeleteAndAwaitPVC(f.Namespace.Name, pvc2.Name)).NotTo(HaveOccurred(), "PCV Deletion failed") + Expect(pvcJig.DeleteAndAwaitPV(pv2.Name)).NotTo(HaveOccurred(), "PV Deletion failed") + By("Complete: Lustre Static Provisioning - Post mount parameters") + + By("Running test: Lustre Static Provisioning - Mount options") + mountOptions := []string{"flock"} + pvVolumeAttributes3 := map[string]string{"setupLnet": "true"} + if setupF.LustreSubnetCidr != "" { + pvVolumeAttributes3["lustreSubnetCidr"] = setupF.LustreSubnetCidr + } + + pv3 := pvcJig.CreatePVorFailLustre(f.Namespace.Name, setupF.LustreVolumeHandle, mountOptions, pvVolumeAttributes3) + pvc3 := pvcJig.CreateAndAwaitPVCOrFailStaticLustre(f.Namespace.Name, pv3.Name, "31200G", nil) + f.VolumeIds = append(f.VolumeIds, pvc3.Spec.VolumeName) + writePod3, readPod3 := pvcJig.CheckSinglePodReadWriteLustre(f.Namespace.Name, pvc3.Name, mountOptions, false, config) + Expect(pvcJig.DeleteAndAwaitPod(f.Namespace.Name, writePod3)).NotTo(HaveOccurred(), "Pod Deletion failed") + Expect(pvcJig.DeleteAndAwaitPod(f.Namespace.Name, readPod3)).NotTo(HaveOccurred(), "Pod Deletion failed") + Expect(pvcJig.DeleteAndAwaitPVC(f.Namespace.Name, pvc3.Name)).NotTo(HaveOccurred(), "PCV Deletion failed") + Expect(pvcJig.DeleteAndAwaitPV(pv3.Name)).NotTo(HaveOccurred(), "PV Deletion failed") + By("Complete: Lustre Static Provisioning - Mount Options") + + By("Running test: Lustre Static Provisioning - Applying FS Group ") + + pvVolumeAttributes4 := map[string]string{"setupLnet": "true"} + if setupF.LustreSubnetCidr != "" { + pvVolumeAttributes4["lustreSubnetCidr"] = setupF.LustreSubnetCidr + } + + pv4 := pvcJig.CreatePVorFailLustre(f.Namespace.Name, setupF.LustreVolumeHandle, []string{}, pvVolumeAttributes4) + pvc4 := pvcJig.CreateAndAwaitPVCOrFailStaticLustre(f.Namespace.Name, pv4.Name, "31200G", nil) + + f.VolumeIds = append(f.VolumeIds, pvc4.Spec.VolumeName) + config.SecurityContext = &v1.PodSecurityContext{ + FSGroup: pointer.Int64(1000), + } + writePod4, readPod4 := pvcJig.CheckSinglePodReadWriteLustre(f.Namespace.Name, pvc4.Name, []string{}, false, config) + pvcJig.CheckVolumeOwnership(f.Namespace.Name, writePod4, "/data/", "1000") + Expect(pvcJig.DeleteAndAwaitPod(f.Namespace.Name, writePod4)).NotTo(HaveOccurred(), "Pod Deletion failed") + Expect(pvcJig.DeleteAndAwaitPod(f.Namespace.Name, readPod4)).NotTo(HaveOccurred(), "Pod Deletion failed") + Expect(pvcJig.DeleteAndAwaitPVC(f.Namespace.Name, pvc4.Name)).NotTo(HaveOccurred(), "PCV Deletion failed") + Expect(pvcJig.DeleteAndAwaitPV(pv4.Name)).NotTo(HaveOccurred(), "PV Deletion failed") + By("Complete: Lustre Static Provisioning - Applying FS Group") + + By("Running test: Delete dynamically created PVC for lustre file storage and make sure its deleted.") + err = pvcJig.DeleteAndAwaitPVC(f.Namespace.Name, pvc.Name) + Expect(err).NotTo(HaveOccurred(), "PVC Deletion failed") + deleted := f.WaitForLustreFSDeleted(context.Background(), setupF.Compartment1, setupF.AdLocation, pv.Spec.CSI.VolumeHandle, framework.Poll, framework.DefaultTimeout) + Expect(deleted).To(BeTrue(), "Lustre FS was not deleted") + By("Completed test: Delete dynamically created PVC for lustre file storage and make sure its deleted.") + + }) + }) +}) diff --git a/test/e2e/cloud-provider-oci/lustre_static.go b/test/e2e/cloud-provider-oci/lustre_static.go deleted file mode 100644 index 8bd7a184c0..0000000000 --- a/test/e2e/cloud-provider-oci/lustre_static.go +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2021 Oracle and/or its affiliates. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package e2e - -import ( - . "github.com/onsi/ginkgo" - "github.com/oracle/oci-cloud-controller-manager/test/e2e/framework" - v1 "k8s.io/api/core/v1" -) - -var _ = Describe("Lustre Static", func() { - f := framework.NewDefaultFramework("lustre-static-e2e") - Context("[cloudprovider][storage][csi][lustre][static]", func() { - - It("Multiple Pods should be able consume same PVC and read, write to same file", func() { - pvcJig := framework.NewPVCTestJig(f.ClientSet, "csi-lustre-e2e-test") - pvVolumeAttributes := map[string]string{ "setupLnet": "true"} - if setupF.LustreSubnetCidr != "" { - pvVolumeAttributes["lustreSubnetCidr"]= setupF.LustreSubnetCidr - } - - pv := pvcJig.CreatePVorFailLustre(f.Namespace.Name, setupF.LustreVolumeHandle, []string{}, pvVolumeAttributes) - pvc := pvcJig.CreateAndAwaitPVCOrFailStaticLustre(f.Namespace.Name, pv.Name, "50Gi", nil) - f.VolumeIds = append(f.VolumeIds, pvc.Spec.VolumeName) - pvcJig.CheckMultiplePodReadWrite(f.Namespace.Name, pvc.Name, false) - }) - - It("Multiple CSI Drivers (BV, FSS, Lustre) should work in same cluster and be able to handle mount, unmounts", func() { - - //BV - bvPVCJig := framework.NewPVCTestJig(f.ClientSet, "csi-bv-e2e-test") - scName := f.CreateStorageClassOrFail(framework.ClassOCICSI, setupF.BlockProvisionerName, nil, bvPVCJig.Labels, "WaitForFirstConsumer", false, "Delete", nil) - bvPVC := bvPVCJig.CreateAndAwaitPVCOrFailCSI(f.Namespace.Name, framework.MinVolumeBlock, scName, nil, v1.PersistentVolumeFilesystem, v1.ReadWriteOnce, v1.ClaimPending) - - //FSS - fssPVCJig := framework.NewPVCTestJig(f.ClientSet, "csi-fss-e2e-test") - opts := framework.Options{ - FSSProvisionerName: setupF.FSSProvisionerName, - } - fssPV := fssPVCJig.CreatePVorFailFSS(f.Namespace.Name, setupF.VolumeHandle, "false", "ReadWriteMany", "", []string{}, opts) - fssPVC := fssPVCJig.CreateAndAwaitPVCOrFailStaticFSS(f.Namespace.Name, fssPV.Name, "50Gi", nil) - f.VolumeIds = append(f.VolumeIds, fssPVC.Spec.VolumeName) - - //LUSTRE - lusterPVCJig := framework.NewPVCTestJig(f.ClientSet, "csi-lustre-e2e-test") - pvVolumeAttributes := map[string]string{ "setupLnet": "true"} - if setupF.LustreSubnetCidr != "" { - pvVolumeAttributes["lustreSubnetCidr"]= setupF.LustreSubnetCidr - } - lustrePV := lusterPVCJig.CreatePVorFailLustre(f.Namespace.Name, setupF.LustreVolumeHandle, []string{}, pvVolumeAttributes) - lustrePVC := lusterPVCJig.CreateAndAwaitPVCOrFailStaticLustre(f.Namespace.Name, lustrePV.Name, "50Gi", nil) - f.VolumeIds = append(f.VolumeIds, lustrePVC.Spec.VolumeName) - - bvPVCJig.CheckSinglePodReadWrite(f.Namespace.Name, bvPVC.Name, false, []string{}) - fssPVCJig.CheckSinglePodReadWrite(f.Namespace.Name, fssPVC.Name, false, []string{}) - lusterPVCJig.CheckSinglePodReadWrite(f.Namespace.Name, lustrePVC.Name, false, []string{}) - - }) - - It("Create PV PVC and POD for CSI-Lustre with mount options", func() { - pvcJig := framework.NewPVCTestJig(f.ClientSet, "csi-lustre-e2e-test") - mountOptions := []string{"flock"} - pvVolumeAttributes := map[string]string{ "setupLnet": "true"} - if setupF.LustreSubnetCidr != "" { - pvVolumeAttributes["lustreSubnetCidr"]= setupF.LustreSubnetCidr - } - - pv := pvcJig.CreatePVorFailLustre(f.Namespace.Name, setupF.LustreVolumeHandle, mountOptions, pvVolumeAttributes) - pvc := pvcJig.CreateAndAwaitPVCOrFailStaticLustre(f.Namespace.Name, pv.Name, "50Gi", nil) - f.VolumeIds = append(f.VolumeIds, pvc.Spec.VolumeName) - pvcJig.CheckSinglePodReadWriteLustre(f.Namespace.Name, pvc.Name, mountOptions, false) - }) - - It("Create PV PVC and POD for CSI-Lustre with lustre post mount parameters", func() { - pvcJig := framework.NewPVCTestJig(f.ClientSet, "csi-lustre-e2e-test") - pvVolumeAttributes := map[string]string{ "setupLnet": "true", "lustrePostMountParameters" : "[{\"*.*.*MDT*.lru_size\" : 11201}]"} - - pv := pvcJig.CreatePVorFailLustre(f.Namespace.Name, setupF.LustreVolumeHandle, []string{}, pvVolumeAttributes) - pvc := pvcJig.CreateAndAwaitPVCOrFailStaticLustre(f.Namespace.Name, pv.Name, "50Gi", nil) - f.VolumeIds = append(f.VolumeIds, pvc.Spec.VolumeName) - - checkLustreParameters := true - pvcJig.CheckSinglePodReadWriteLustre(f.Namespace.Name, pvc.Name, []string{}, checkLustreParameters) - }) - - It("Verify volume group ownership change for Lustre when fsGroup is defined", func() { - pvcJig := framework.NewPVCTestJig(f.ClientSet, "csi-lustre-e2e-test") - - pvVolumeAttributes := map[string]string{ "setupLnet": "true"} - if setupF.LustreSubnetCidr != "" { - pvVolumeAttributes["lustreSubnetCidr"]= setupF.LustreSubnetCidr - } - - pv := pvcJig.CreatePVorFailLustre(f.Namespace.Name, setupF.LustreVolumeHandle, []string{}, pvVolumeAttributes) - pvc := pvcJig.CreateAndAwaitPVCOrFailStaticLustre(f.Namespace.Name, pv.Name, "50Gi", nil) - - f.VolumeIds = append(f.VolumeIds, pvc.Spec.VolumeName) - pod := pvcJig.CreateAndAwaitNginxPodOrFail(f.Namespace.Name, pvc, WriteCommand) - pvcJig.CheckVolumeOwnership(f.Namespace.Name, pod, "/usr/share/nginx/html/", "1000") - }) - }) -}) diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 1b979bf426..5ab34703eb 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -32,7 +32,7 @@ const ( K8sResourcePoll = 2 * time.Second // DefaultTimeout is how long we wait for long-running operations in the // test suite before giving up. - DefaultTimeout = 10 * time.Minute + DefaultTimeout = 15 * time.Minute // Some pods can take much longer to get ready due to volume attach/detach latency. slowPodStartTimeout = 7 * time.Minute @@ -89,6 +89,11 @@ var ( volumeHandle string // The FSS mount volume handle lustreVolumeHandle string // The Lustre mount volume handle lustreSubnetCidr string // The Lustre Subnet Cidr + enableLustreTests bool // Flag to enable disable lustre tests + lustreWorkerNodeImage string // Ocid of worker node image having backed in lustre clients to create separate nodepool + lustreKMSKey string + lustreSubnet string + lustreAD string staticSnapshotCompartmentOCID string // Compartment ID for cross compartment snapshot test customDriverHandle string // Custom driver handle for custom CSI driver installation runUhpE2E bool // Whether to run UHP E2Es, requires Volume Management Plugin enabled on the node and 16+ cores (check blockvolumeperformance public doc for the exact requirements) @@ -119,7 +124,11 @@ func init() { flag.StringVar(&volumeHandle, "volume-handle", "", "FSS volume handle used to mount the File System") flag.StringVar(&lustreVolumeHandle, "lustre-volume-handle", "", "Lustre volume handle used to mount the File System") flag.StringVar(&lustreSubnetCidr, "lustre-subnet-cidr", "", "Lustre subnet cidr to identify SVNIC in lustre subnet to configure lnet.") - + flag.BoolVar(&enableLustreTests, "enable-lustre-tests", false, "Flag to control lustre tests.") + flag.StringVar(&lustreWorkerNodeImage, "lustre-worker-node-image", "", "Worker node image which has lustre clients backed in for creating node pool.") + flag.StringVar(&lustreKMSKey, "lustre-kms-key", "", "Lustre KMS Key") + flag.StringVar(&lustreSubnet, "lustre-subnet", "", "Lustre Subnet to create lustre filesystem in.") + flag.StringVar(&lustreAD, "lustre-ad", "", "Lustre AD to create filesystem in.") flag.StringVar(&imagePullRepo, "image-pull-repo", "", "Repo to pull images from. Will pull public images if not specified.") flag.StringVar(&cmekKMSKey, "cmek-kms-key", "", "KMS key to be used for CMEK testing") flag.StringVar(&nsgOCIDS, "nsg-ocids", "", "NSG OCIDs to be used to associate to LB") @@ -169,7 +178,12 @@ type Framework struct { VolumeHandle string LustreVolumeHandle string - LustreSubnetCidr string + LustreSubnetCidr string + EnableLustreTests bool + LustreWorkerNodeImage string + LustreKMSKey string + LustreSubnet string + LustreAD string // Compartment ID for cross compartment snapshot test StaticSnapshotCompartmentOcid string @@ -177,6 +191,7 @@ type Framework struct { CustomDriverHandle string BlockProvisionerName string FSSProvisionerName string + LustreProvisionerName string AddOkeSystemTags bool } @@ -202,6 +217,11 @@ func NewWithConfig() *Framework { VolumeHandle: volumeHandle, LustreVolumeHandle: lustreVolumeHandle, LustreSubnetCidr: lustreSubnetCidr, + LustreWorkerNodeImage: lustreWorkerNodeImage, + LustreKMSKey: lustreKMSKey, + LustreSubnet: lustreSubnet, + LustreAD: lustreAD, + EnableLustreTests: enableLustreTests, StaticSnapshotCompartmentOcid: staticSnapshotCompartmentOCID, RunUhpE2E: runUhpE2E, CustomDriverHandle: customDriverHandle, @@ -243,6 +263,17 @@ func (f *Framework) Initialize() { Logf("Lustre Volume Handle is : %s", f.LustreVolumeHandle) f.LustreSubnetCidr = lustreSubnetCidr Logf("Lustre Subnet CIDR is : %s", f.LustreSubnetCidr) + f.EnableLustreTests = enableLustreTests + Logf("EnableLustreTests is : %s", f.EnableLustreTests) + f.LustreWorkerNodeImage = lustreWorkerNodeImage + Logf("LustreWorkerNodeImage : %s", f.LustreWorkerNodeImage) + f.LustreKMSKey = lustreKMSKey + Logf("LustreKMSKey : %s", f.LustreKMSKey) + f.LustreSubnet = lustreSubnet + Logf("LustreSubnet : %s", f.LustreSubnet) + f.LustreAD = lustreAD + Logf("LustreAD : %s", f.LustreAD) + f.StaticSnapshotCompartmentOcid = staticSnapshotCompartmentOCID Logf("Static Snapshot Compartment OCID: %s", f.StaticSnapshotCompartmentOcid) f.CustomDriverHandle = customDriverHandle @@ -251,6 +282,8 @@ func (f *Framework) Initialize() { Logf("Block Provisioner name: %s", f.BlockProvisionerName) f.FSSProvisionerName = getFSSProvisionerName(customDriverHandle) Logf("FSS Provisioner name: %s", f.FSSProvisionerName) + f.LustreProvisionerName = getLustreProvisionerName(customDriverHandle) + Logf("Lustre Provisioner name: %s", f.LustreProvisionerName) f.RunUhpE2E = runUhpE2E Logf("Run Uhp E2Es as well: %v", f.RunUhpE2E) f.CMEKKMSKey = cmekKMSKey @@ -332,3 +365,11 @@ func getFSSProvisionerName(handle string) string { } return provisioner } + +func getLustreProvisionerName(handle string) string { + provisioner := "lustre.csi.oraclecloud.com" + if handle != "" { + return handle + "." + provisioner + } + return provisioner +} diff --git a/test/e2e/framework/lustre_util.go b/test/e2e/framework/lustre_util.go new file mode 100644 index 0000000000..1357dd65da --- /dev/null +++ b/test/e2e/framework/lustre_util.go @@ -0,0 +1,97 @@ +// Copyright 2026 Oracle and/or its affiliates. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package framework + +import ( + "context" + "strings" + "time" + + "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" + "github.com/oracle/oci-go-sdk/v65/lustrefilestorage" + "k8s.io/apimachinery/pkg/util/wait" +) + +func (f *CloudProviderFramework) CheckLustreVolumeExist(ctx context.Context, fsId string) bool { + fs, err := f.Client.Lustre().GetLustreFileSystem(ctx, fsId) + if client.IsNotFound(err) { + return false + } + if err != nil { + return false + } + if fs.LifecycleState == lustrefilestorage.LustreFileSystemLifecycleStateDeleting || fs.LifecycleState == lustrefilestorage.LustreFileSystemLifecycleStateDeleted { + return false + } + return true +} + +func (f *CloudProviderFramework) WaitForLustreFSDeleted(ctx context.Context, compartmentId, adLocation, volumeHandle string, pollInterval, timeout time.Duration) bool { + if volumeHandle == "" { + return true + } + fsId := volumeHandle[:strings.Index(volumeHandle, ":")] + Logf("Waiting for lustre filesystem %v to be deleted", fsId) + var deleted bool + err := wait.Poll(pollInterval, timeout, func() (done bool, err error) { + exists := f.CheckLustreVolumeExist(ctx, fsId) + if !exists { + deleted = true + return true, nil + } + return false, nil + }) + if err != nil { + Logf("Error waiting for Lustre FS deletion: %v", err) + return false + } + return deleted +} + +// CleanupLustreFileSystems deletes any existing Lustre file systems in the given compartment. +// Intended for test hygiene before starting Lustre E2E tests. +func (f *CloudProviderFramework) CleanupLustreFileSystems(ctx context.Context, compartmentId string) { + Logf("Scanning for pre-existing Lustre File Systems in compartment: %s", compartmentId) + fsList, err := f.Client.Lustre().ListLustreFileSystems(ctx, compartmentId, "", "") + if err != nil { + Logf("Failed to list Lustre file systems for cleanup: %v", err) + return + } + if len(fsList) == 0 { + Logf("No pre-existing Lustre File Systems found to cleanup") + return + } + for _, s := range fsList { + // Skip already deleting/deleted + if s.LifecycleState == lustrefilestorage.LustreFileSystemLifecycleStateDeleting || + s.LifecycleState == lustrefilestorage.LustreFileSystemLifecycleStateDeleted || + s.LifecycleState == lustrefilestorage.LustreFileSystemLifecycleStateCreating { + continue + } + id := "" + if s.Id != nil { + id = *s.Id + } + name := "" + if s.DisplayName != nil { + name = *s.DisplayName + } + Logf("Deleting leftover Lustre FS: name=%s id=%s", name, id) + if err := f.Client.Lustre().DeleteLustreFileSystem(ctx, id); err != nil { + Logf("DeleteLustreFileSystem failed for %s: %v", id, err) + continue + } + } +} diff --git a/test/e2e/framework/pvc_util.go b/test/e2e/framework/pvc_util.go index 50acc4941d..baa6cc4dd2 100644 --- a/test/e2e/framework/pvc_util.go +++ b/test/e2e/framework/pvc_util.go @@ -57,6 +57,13 @@ const ( FsTypeLustre = "lustre" ) +// PodConfig defines optional pod scheduling configurations +type PodConfig struct { + NodeSelector map[string]string + Tolerations []v1.Toleration + SecurityContext *v1.PodSecurityContext +} + // PVCTestJig is a jig to help create PVC tests. type PVCTestJig struct { ID string @@ -234,6 +241,13 @@ func (j *PVCTestJig) newPVCTemplateStaticFSS(namespace, volumeSize, volumeName s return pvc } +func (j *PVCTestJig) NewPVCTemplateDynamicLustre(namespace, volumeSize, scName string) *v1.PersistentVolumeClaim { + pvc := j.CreatePVCTemplate(namespace, volumeSize) + pvc = j.pvcAddAccessMode(pvc, v1.ReadWriteMany) + pvc = j.pvcAddStorageClassName(pvc, scName) + return pvc +} + // NewPVCTemplateDynamicFSS returns the default template for this jig, but // does not actually create the PVC. The default PVC has the same name // as the jig @@ -343,6 +357,12 @@ func (j *PVCTestJig) CreatePVCorFailStaticLustre(namespace, volumeName, volumeSi return j.CheckPVCorFail(pvc, tweak, namespace, volumeSize) } +func (j *PVCTestJig) CreatePVCorFailDynamicLustre(namespace, volumeSize string, scName string, + tweak func(pvc *v1.PersistentVolumeClaim)) *v1.PersistentVolumeClaim { + pvc := j.NewPVCTemplateDynamicLustre(namespace, volumeSize, scName) + return j.CheckPVCorFail(pvc, tweak, namespace, volumeSize) +} + // CreatePVCorFailDynamicFSS creates a new claim based on the jig's // defaults. Callers can provide a function to tweak the claim object // before it is created. @@ -433,6 +453,12 @@ func (j *PVCTestJig) CreateAndAwaitClonePVCOrFailCSI(namespace, volumeSize, scNa return j.CheckAndAwaitPVCOrFail(pvc, namespace, expectedPVCPhase) } +func (j *PVCTestJig) CreateAndAwaitPVCOrFailDynamicLustre(namespace, volumeSize, scName string, + phase v1.PersistentVolumeClaimPhase, tweak func(pvc *v1.PersistentVolumeClaim)) *v1.PersistentVolumeClaim { + pvc := j.CreatePVCorFailDynamicLustre(namespace, volumeSize, scName, tweak) + return j.CheckAndAwaitPVCOrFail(pvc, namespace, phase) +} + // CreateAndAwaitPVCOrFailDynamicFSS creates a new PVC based on the // jig's defaults, waits for it to become ready, and then sanity checks it and // its dependant resources. Callers can provide a function to tweak the @@ -509,6 +535,11 @@ func (j *PVCTestJig) CreateAndAwaitStaticBootVolumePVCOrFailCSI(c ocicore.Comput func (j *PVCTestJig) CreatePVTemplate(namespace, annotation, storageClassName string, pvReclaimPolicy v1.PersistentVolumeReclaimPolicy) *v1.PersistentVolume { + return j.CreatePVTemplateWithSize(namespace, annotation, storageClassName, pvReclaimPolicy, "50Gi") +} + +func (j *PVCTestJig) CreatePVTemplateWithSize(namespace, annotation, storageClassName string, + pvReclaimPolicy v1.PersistentVolumeReclaimPolicy, storageSize string) *v1.PersistentVolume { return &v1.PersistentVolume{ ObjectMeta: metav1.ObjectMeta{ Namespace: namespace, @@ -520,7 +551,7 @@ func (j *PVCTestJig) CreatePVTemplate(namespace, annotation, storageClassName st }, Spec: v1.PersistentVolumeSpec{ Capacity: v1.ResourceList{ - v1.ResourceStorage: resource.MustParse("50Gi"), + v1.ResourceStorage: resource.MustParse(storageSize), }, PersistentVolumeReclaimPolicy: pvReclaimPolicy, StorageClassName: storageClassName, @@ -586,7 +617,7 @@ func (j *PVCTestJig) newPVTemplateFSS(namespace, volumeHandle, enableIntransitEn // does not actually create the PV. The default PV has the same name // as the jig func (j *PVCTestJig) newPVTemplateLustre(namespace, volumeHandle string, mountOptions []string, pvVolumeAttributes map[string]string) *v1.PersistentVolume { - pv := j.CreatePVTemplate(namespace, driver.LustreDriverName, "", "Retain") + pv := j.CreatePVTemplateWithSize(namespace, driver.LustreDriverName, "", "Retain", "31200G") pv = j.pvAddVolumeMode(pv, v1.PersistentVolumeFilesystem) pv = j.pvAddAccessMode(pv, v1.ReadWriteMany) pv = j.pvAddMountOptions(pv, mountOptions) @@ -656,7 +687,6 @@ func (j *PVCTestJig) CreatePVorFailFSS(namespace, volumeHandle, encryptInTransit // before it is created. func (j *PVCTestJig) CreatePVorFailLustre(namespace, volumeHandle string, mountOptions []string, pvVolumeAttributes map[string]string) *v1.PersistentVolume { pv := j.newPVTemplateLustre(namespace, volumeHandle, mountOptions, pvVolumeAttributes) - result, err := j.KubeClient.CoreV1().PersistentVolumes().Create(context.Background(), pv, metav1.CreateOptions{}) if err != nil { Failf("Failed to create persistent volume claim %q: %v", pv.Name, err) @@ -1394,6 +1424,143 @@ func (j *PVCTestJig) NewPodForCSIFSSRead(matchString string, namespace string, c return pod.Name } +// NewPodWritingToVolume creates pod that writes data to volume. This will be generic method and not CSI driver specific. +func (j *PVCTestJig) NewPodWritingToVolume(name string, namespace string, claimName string, fileName string, config *PodConfig) string { + By("Creating a pod with the claiming PVC created by CSI") + + command := fmt.Sprintf("while true; do echo %s >> /data/%s; sleep 5; done", name, fileName) + podSpec := v1.PodSpec{ + Containers: []v1.Container{ + { + Name: name, + Image: centos, + Command: []string{"/bin/sh"}, + Args: []string{"-c", command}, + VolumeMounts: []v1.VolumeMount{ + { + Name: "persistent-storage", + MountPath: "/data", + }, + }, + }, + }, + Volumes: []v1.Volume{ + { + Name: "persistent-storage", + VolumeSource: v1.VolumeSource{ + PersistentVolumeClaim: &v1.PersistentVolumeClaimVolumeSource{ + ClaimName: claimName, + }, + }, + }, + }, + } + + if config.NodeSelector != nil { + podSpec.NodeSelector = config.NodeSelector + podSpec.Tolerations = config.Tolerations + } + if config.Tolerations != nil { + podSpec.Tolerations = config.Tolerations + } + if config.SecurityContext != nil { + podSpec.SecurityContext = config.SecurityContext + } + + pod, err := j.KubeClient.CoreV1().Pods(namespace).Create(context.Background(), &v1.Pod{ + TypeMeta: metav1.TypeMeta{ + Kind: "Pod", + APIVersion: "v1", + }, + ObjectMeta: metav1.ObjectMeta{ + GenerateName: j.Name, + Namespace: namespace, + }, + Spec: podSpec, + }, metav1.CreateOptions{}) + if err != nil { + Failf("Pod %q Create API error: %v", pod.Name, err) + } + + // Waiting for pod to be running + err = j.WaitTimeoutForPodRunningInNamespace(pod.Name, namespace, slowPodStartTimeout) + if err != nil { + Logf("Pod failed to come up, logging debug info\n") + j.LogPodDebugInfo(namespace, pod.Name) + Failf("Pod %q is not Running: %v", pod.Name, err) + } + zap.S().With(pod.Namespace).With(pod.Name).Info("CSI POD is created.") + return pod.Name +} + +// NewPodReadingFromVolume creates pod that reads data from volume. This will be generic method and not CSI driver specific.. +func (j *PVCTestJig) NewPodReadingFromVolume(matchString string, namespace string, claimName string, fileName string, config *PodConfig) string { + By("Creating a pod with the claiming PVC created by CSI") + + nodeSelectorMap := make(map[string]string) + + command := fmt.Sprintf("grep -q -i %s /data/%s; exit $?", matchString, fileName) + podSpec := v1.PodSpec{ + Containers: []v1.Container{ + { + Name: "readapp", + Image: centos, + Command: []string{"/bin/sh"}, + Args: []string{"-c", command}, + VolumeMounts: []v1.VolumeMount{ + { + Name: "persistent-storage", + MountPath: "/data", + }, + }, + }, + }, + RestartPolicy: v1.RestartPolicyNever, + Volumes: []v1.Volume{ + { + Name: "persistent-storage", + VolumeSource: v1.VolumeSource{ + PersistentVolumeClaim: &v1.PersistentVolumeClaimVolumeSource{ + ClaimName: claimName, + }, + }, + }, + }, + NodeSelector: nodeSelectorMap, + } + + if config != nil { + podSpec.NodeSelector = config.NodeSelector + podSpec.Tolerations = config.Tolerations + } + + pod, err := j.KubeClient.CoreV1().Pods(namespace).Create(context.Background(), &v1.Pod{ + TypeMeta: metav1.TypeMeta{ + Kind: "Pod", + APIVersion: "v1", + }, + ObjectMeta: metav1.ObjectMeta{ + GenerateName: j.Name, + Namespace: namespace, + }, + Spec: podSpec, + }, metav1.CreateOptions{}) + if err != nil { + Failf("CSI read POD Create API error: %v", err) + } + + // Waiting for pod to be running + err = j.waitTimeoutForPodCompletedSuccessfullyInNamespace(pod.Name, namespace, slowPodStartTimeout) + if err != nil { + Logf("Pod failed to come up, logging debug info\n") + j.LogPodDebugInfo(namespace, pod.Name) + Failf("Pod %q failed: %v", pod.Name, err) + } + zap.S().With(pod.Namespace).With(pod.Name).Info("CSI Fss read POD is created.") + + return pod.Name +} + // WaitForPVCPhase waits for a PersistentVolumeClaim to be in a specific phase or until timeout occurs, whichever comes first. func (j *PVCTestJig) WaitForPVCPhase(phase v1.PersistentVolumeClaimPhase, ns string, pvcName string) error { Logf("Waiting up to %v for PersistentVolumeClaim %s to have phase %s", DefaultTimeout, pvcName, phase) @@ -1731,12 +1898,13 @@ func (j *PVCTestJig) CheckSinglePodReadWrite(namespace string, pvcName string, c return podName, readPodName } -func (j *PVCTestJig) CheckSinglePodReadWriteLustre(namespace string, pvcName string, expectedMountOptions []string, checkLustreParameters bool) (string, string) { +func (j *PVCTestJig) CheckSinglePodReadWriteLustre(namespace string, pvcName string, expectedMountOptions []string, checkLustreParameters bool, + config *PodConfig) (string, string) { By("Creating Pod that can create and write to the file") uid := uuid.NewUUID() fileName := fmt.Sprintf("out_%s.txt", uid) - podName := j.NewPodForCSIFSSWrite(string(uid), namespace, pvcName, fileName, false) + podName := j.NewPodWritingToVolume(string(uid), namespace, pvcName, fileName, config) time.Sleep(30 * time.Second) //waiting for pod to become up and running By("check if the file exists") @@ -1752,7 +1920,7 @@ func (j *PVCTestJig) CheckSinglePodReadWriteLustre(namespace string, pvcName str } By("Creating Pod that can read contents of existing file") - readPodName := j.NewPodForCSIFSSRead(string(uid), namespace, pvcName, fileName, false) + readPodName := j.NewPodReadingFromVolume(string(uid), namespace, pvcName, fileName, config) return podName, readPodName } @@ -1789,6 +1957,52 @@ func (j *PVCTestJig) CheckMultiplePodReadWrite(namespace string, pvcName string, By("Creating Pod that can read contents of existing file") j.NewPodForCSIFSSRead(string(uuid2), namespace, pvcName, fileName, checkEncryption) } +func (j *PVCTestJig) CheckMultiplePodReadWriteGeneric(namespace string, pvcName string, podconfig *PodConfig) { + uid := uuid.NewUUID() + fileName := fmt.Sprintf("out_%s.txt", uid) + By("Creating Pod that can create and write to the file") + uuid1 := uuid.NewUUID() + podName1 := j.NewPodWritingToVolume(string(uuid1), namespace, pvcName, fileName, podconfig) + time.Sleep(30 * time.Second) //waiting for pod to become up and running + + By("check if the file exists") + j.CheckFileExists(namespace, podName1, "/data", fileName) + + By("Creating Pod that can create and write to the file") + uuid2 := uuid.NewUUID() + podName2 := j.NewPodWritingToVolume(string(uuid2), namespace, pvcName, fileName, podconfig) + time.Sleep(30 * time.Second) //waiting for pod to become up and running + By("check if the file exists") + j.CheckFileExists(namespace, podName2, "/data", fileName) + + By("Creating Pod that can read contents of existing file") + podName3 := j.NewPodReadingFromVolume(string(uuid1), namespace, pvcName, fileName, podconfig) + + By("Creating Pod that can read contents of existing file") + podName4 := j.NewPodReadingFromVolume(string(uuid2), namespace, pvcName, fileName, podconfig) + + By("Deleting all the pods") + err := j.DeleteAndAwaitPod(namespace, podName1) + if err != nil { + Failf("Unable to terminate pod %v", podName1) + return + } + err = j.DeleteAndAwaitPod(namespace, podName2) + if err != nil { + Failf("Unable to terminate pod %v", podName2) + return + } + err = j.DeleteAndAwaitPod(namespace, podName3) + if err != nil { + Failf("Unable to terminate pod %v", podName3) + return + } + err = j.DeleteAndAwaitPod(namespace, podName4) + if err != nil { + Failf("Unable to terminate pod %v", podName4) + return + } +} type PodCommands struct { podRunning string @@ -1840,7 +2054,7 @@ func (j *PVCTestJig) CheckDataPersistenceWithDeploymentImpl(pvcName string, ns s taintIsMaster := false if node.Spec.Unschedulable == false { for _, taint := range node.Spec.Taints { - taintIsMaster = (taint.Key == "node-role.kubernetes.io/master" || taint.Key == "node-role.kubernetes.io/control-plane") + taintIsMaster = (taint.Key == "node-role.kubernetes.io/master" || taint.Key == "node-role.kubernetes.io/control-plane" ||(taint.Key == "dedicated" && taint.Value == "lustre")) } if !taintIsMaster { schedulableNodeFound = true @@ -1967,6 +2181,15 @@ func (j *PVCTestJig) DeleteAndAwaitPVC(namespace, pvcName string) error { return wait.PollImmediate(Poll, 5*time.Minute, j.pvcDeleted(namespace, pvcName)) } +func (j *PVCTestJig) DeleteAndAwaitPV(pvName string) error { + err := j.KubeClient.CoreV1().PersistentVolumes().Delete(context.Background(), pvName, metav1.DeleteOptions{}) + if err != nil { + Failf("Error deleting PV %s: %v", pvName, err) + } + + return wait.PollImmediate(Poll, 5*time.Minute, j.pvDeleted(pvName)) +} + func (j *PVCTestJig) DeleteAndAwaitPod(namespace, podName string) error { err := j.KubeClient.CoreV1().Pods(namespace).Delete(context.Background(), podName, metav1.DeleteOptions{}) if err != nil { @@ -2042,6 +2265,11 @@ func (j *PVCTestJig) GetPVCByName(pvcName, namespace string) v1.PersistentVolume return *pvc } +func (j *PVCTestJig) GetPVByName(pvName string) v1.PersistentVolume { + pv, _ := j.KubeClient.CoreV1().PersistentVolumes().Get(context.Background(), pvName, metav1.GetOptions{}) + return *pv +} + func (j *PVCTestJig) CheckPVExists(pvName string) bool { _, err := j.KubeClient.CoreV1().PersistentVolumes().Get(context.Background(), pvName, metav1.GetOptions{}) if apierrors.IsNotFound(err) { @@ -2075,6 +2303,20 @@ func (j *PVCTestJig) pvcDeleted(namespace, pvcName string) wait.ConditionFunc { } } +func (j *PVCTestJig) pvDeleted(pvName string) wait.ConditionFunc { + return func() (bool, error) { + _, err := j.KubeClient.CoreV1().PersistentVolumes().Get(context.Background(), pvName, metav1.GetOptions{}) + + if apierrors.IsNotFound(err) { + return true, nil // done + } + if err != nil { + return true, err // stop wait with error + } + return false, nil + } +} + func (j *PVCTestJig) pvNotFound(pvName string) wait.ConditionFunc { return func() (bool, error) { _, err := j.KubeClient.CoreV1().PersistentVolumes().Get(context.Background(), pvName, metav1.GetOptions{}) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/action_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/action_type.go new file mode 100644 index 0000000000..24a5edbf50 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/action_type.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +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" + ActionTypeFailed ActionTypeEnum = "FAILED" +) + +var mappingActionTypeEnum = map[string]ActionTypeEnum{ + "CREATED": ActionTypeCreated, + "UPDATED": ActionTypeUpdated, + "DELETED": ActionTypeDeleted, + "IN_PROGRESS": ActionTypeInProgress, + "RELATED": ActionTypeRelated, + "FAILED": ActionTypeFailed, +} + +var mappingActionTypeEnumLowerCase = map[string]ActionTypeEnum{ + "created": ActionTypeCreated, + "updated": ActionTypeUpdated, + "deleted": ActionTypeDeleted, + "in_progress": ActionTypeInProgress, + "related": ActionTypeRelated, + "failed": ActionTypeFailed, +} + +// 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", + "FAILED", + } +} + +// 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/lustrefilestorage/available_compute_capacity.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/available_compute_capacity.go new file mode 100644 index 0000000000..3857710e68 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/available_compute_capacity.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AvailableComputeCapacity The compute capacity returned from Compute API. +type AvailableComputeCapacity struct { + Cores16 *FaultDomainUsage `mandatory:"false" json:"cores16"` + + Cores94 *FaultDomainUsage `mandatory:"false" json:"cores94"` +} + +func (m AvailableComputeCapacity) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AvailableComputeCapacity) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go index e8f11d9f21..7bcd8bc300 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go @@ -12,10 +12,6 @@ import ( ) // CancelWorkRequestRequest wrapper for the CancelWorkRequest operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequestRequest. type CancelWorkRequestRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation.go new file mode 100644 index 0000000000..82578e0226 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityReservation Capacity reservation associated to physical availability domain +type CapacityReservation struct { + + // The capacity reservation OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) assigned to tenancy. + Id *string `mandatory:"false" json:"id"` + + // The physical availability domain where the capacity reservation is created. + PhysicalAvailabilityDomain *string `mandatory:"false" json:"physicalAvailabilityDomain"` +} + +func (m CapacityReservation) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityReservation) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info.go new file mode 100644 index 0000000000..3a72f9aa6c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityReservationInfo An object that gives more details about a capacity reservation. +type CapacityReservationInfo struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"true" json:"customerCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. + CustomerTenancyId *string `mandatory:"true" json:"customerTenancyId"` + + // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. + AvailableBlockCapacityInGBs *int64 `mandatory:"true" json:"availableBlockCapacityInGBs"` + + DesiredComputeCount *DesiredComputeCount `mandatory:"true" json:"desiredComputeCount"` + + AvailableComputeCapacity *AvailableComputeCapacity `mandatory:"true" json:"availableComputeCapacity"` + + CurrentComputeCapacity *CurrentComputeCapacity `mandatory:"true" json:"currentComputeCapacity"` + + // If set to true, update capacity requests would not be sent. + IsUpdateRequestPaused *bool `mandatory:"true" json:"isUpdateRequestPaused"` + + // A list of CPG OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) with block capacity + // A maximum of 10 is allowed. + BlockCpgIds []string `mandatory:"true" json:"blockCpgIds"` + + // The date and time the Capacity Reservation Info was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the Capacity Reservation Info was updated, in the format defined + // by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` +} + +func (m CapacityReservationInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityReservationInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_collection.go new file mode 100644 index 0000000000..f90d933181 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityReservationInfoCollection Results of a Capacity Reservation Info search. Contains CapacityReservationInfo items. +type CapacityReservationInfoCollection struct { + + // List of CapacityReservationInfoSummary. + Items []CapacityReservationInfoSummary `mandatory:"true" json:"items"` +} + +func (m CapacityReservationInfoCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityReservationInfoCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_summary.go new file mode 100644 index 0000000000..5e32e34eba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_summary.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityReservationInfoSummary An object that gives more details about a capacity reservation. +type CapacityReservationInfoSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"true" json:"customerCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. + CustomerTenancyId *string `mandatory:"true" json:"customerTenancyId"` + + // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. + AvailableBlockCapacityInGBs *int64 `mandatory:"true" json:"availableBlockCapacityInGBs"` + + DesiredComputeCount *DesiredComputeCount `mandatory:"true" json:"desiredComputeCount"` + + AvailableComputeCapacity *AvailableComputeCapacity `mandatory:"true" json:"availableComputeCapacity"` + + CurrentComputeCapacity *CurrentComputeCapacity `mandatory:"true" json:"currentComputeCapacity"` + + // If set to true, update capacity requests would not be sent. + IsUpdateRequestPaused *bool `mandatory:"true" json:"isUpdateRequestPaused"` + + // A list of CPG OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) with block capacity + // A maximum of 10 is allowed. + BlockCpgIds []string `mandatory:"true" json:"blockCpgIds"` + + // The date and time the Capacity Reservation Info was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the Capacity Reservation Info was updated, in the format defined + // by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` +} + +func (m CapacityReservationInfoSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityReservationInfoSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservations_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservations_collection.go new file mode 100644 index 0000000000..cd36efef2f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservations_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityReservationsCollection List of Capacity reservations as per physical AD. +type CapacityReservationsCollection struct { + + // List of capacity reservations for the given fleet. + Items []CapacityReservation `mandatory:"false" json:"items"` +} + +func (m CapacityReservationsCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityReservationsCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_details.go new file mode 100644 index 0000000000..21bbc8ab46 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeLustreFileSystemCompartmentDetails The configuration details for the move operation. +type ChangeLustreFileSystemCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Lustre file system to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeLustreFileSystemCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeLustreFileSystemCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go index e52138834d..61b36a1fe2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go @@ -12,10 +12,6 @@ import ( ) // ChangeLustreFileSystemCompartmentRequest wrapper for the ChangeLustreFileSystemCompartment operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeLustreFileSystemCompartment.go.html to see an example of how to use ChangeLustreFileSystemCompartmentRequest. type ChangeLustreFileSystemCompartmentRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_details.go new file mode 100644 index 0000000000..29c2538e90 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeObjectStorageLinkCompartmentDetails The configuration details for the move operation. +type ChangeObjectStorageLinkCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Object Storage link to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeObjectStorageLinkCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeObjectStorageLinkCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go index f0e22e8831..0aacc0e9a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go @@ -12,10 +12,6 @@ import ( ) // ChangeObjectStorageLinkCompartmentRequest wrapper for the ChangeObjectStorageLinkCompartment operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeObjectStorageLinkCompartment.go.html to see an example of how to use ChangeObjectStorageLinkCompartmentRequest. type ChangeObjectStorageLinkCompartmentRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cluster_placement_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cluster_placement_group.go new file mode 100644 index 0000000000..c8237b50e9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cluster_placement_group.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterPlacementGroup Cluster Placement Groups lets you create resources in close proximity to one another to support low-latency networking use cases. +type ClusterPlacementGroup struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. + Id *string `mandatory:"false" json:"id"` +} + +func (m ClusterPlacementGroup) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterPlacementGroup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override.go new file mode 100644 index 0000000000..e9f2640cbc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CpgOverride A mapping between a customer CPG and an LFS service CPG. +type CpgOverride struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"true" json:"customerCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. + CustomerTenancyId *string `mandatory:"true" json:"customerTenancyId"` + + // The date and time the override was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the override was updated, in the format defined + // by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` +} + +func (m CpgOverride) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CpgOverride) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_collection.go new file mode 100644 index 0000000000..7001ce9978 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CpgOverrideCollection Results of a CPG Override search. Contains CpgOverride items. +type CpgOverrideCollection struct { + + // List of CPG Override Summary. + Items []CpgOverrideSummary `mandatory:"true" json:"items"` +} + +func (m CpgOverrideCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CpgOverrideCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_summary.go new file mode 100644 index 0000000000..3faac87531 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_summary.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CpgOverrideSummary A mapping between a customer CPG and an LFS service CPG. +type CpgOverrideSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"true" json:"customerCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. + CustomerTenancyId *string `mandatory:"true" json:"customerTenancyId"` + + // The date and time the override was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the override was updated, in the format defined + // by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` +} + +func (m CpgOverrideSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CpgOverrideSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_details.go new file mode 100644 index 0000000000..344713b077 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateCapacityReservationInfoDetails The data required for creating a Capacity Reservation Info. +type CreateCapacityReservationInfoDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"false" json:"lfsCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"false" json:"customerCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. + CustomerTenancyId *string `mandatory:"false" json:"customerTenancyId"` + + // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. + AvailableBlockCapacityInGBs *int64 `mandatory:"false" json:"availableBlockCapacityInGBs"` + + DesiredComputeCount *DesiredComputeCount `mandatory:"false" json:"desiredComputeCount"` + + // If set to true, update capacity requests would not be sent. + IsUpdateRequestPaused *bool `mandatory:"false" json:"isUpdateRequestPaused"` + + // A list of CPG OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) with block capacity + // A maximum of 10 is allowed. + BlockCpgIds []string `mandatory:"false" json:"blockCpgIds"` +} + +func (m CreateCapacityReservationInfoDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCapacityReservationInfoDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_request_response.go new file mode 100644 index 0000000000..cc61ee0f12 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateCapacityReservationInfoRequest wrapper for the CreateCapacityReservationInfo operation +type CreateCapacityReservationInfoRequest struct { + + // Details for the new Capacity Reservation Info. + CreateCapacityReservationInfoDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 CreateCapacityReservationInfoRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateCapacityReservationInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateCapacityReservationInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateCapacityReservationInfoRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateCapacityReservationInfoRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateCapacityReservationInfoResponse wrapper for the CreateCapacityReservationInfo operation +type CreateCapacityReservationInfoResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CapacityReservationInfo instance + CapacityReservationInfo `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 CreateCapacityReservationInfoResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateCapacityReservationInfoResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_details.go new file mode 100644 index 0000000000..a753d72c7e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateCpgOverrideDetails The data required for creating a CPG Override. +type CreateCpgOverrideDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"true" json:"customerCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. + CustomerTenancyId *string `mandatory:"true" json:"customerTenancyId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"false" json:"lfsCpgId"` +} + +func (m CreateCpgOverrideDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCpgOverrideDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_request_response.go new file mode 100644 index 0000000000..1f72b1bc3a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateCpgOverrideRequest wrapper for the CreateCpgOverride operation +type CreateCpgOverrideRequest struct { + + // Details for the new CPG Override. + CreateCpgOverrideDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 CreateCpgOverrideRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateCpgOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateCpgOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateCpgOverrideRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateCpgOverrideRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateCpgOverrideResponse wrapper for the CreateCpgOverride operation +type CreateCpgOverrideResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CpgOverride instance + CpgOverride `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 CreateCpgOverrideResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateCpgOverrideResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_details.go new file mode 100644 index 0000000000..5abf2800fb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_details.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateLfsCpgInfoDetails The data required for creating a LFS CPG Info. +type CreateLfsCpgInfoDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default capacity reservation. + DefaultCapacityReservationId *string `mandatory:"true" json:"defaultCapacityReservationId"` + + // The availability domain the Management Cell is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` +} + +func (m CreateLfsCpgInfoDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateLfsCpgInfoDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_request_response.go new file mode 100644 index 0000000000..0fd9661a2c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateLfsCpgInfoRequest wrapper for the CreateLfsCpgInfo operation +type CreateLfsCpgInfoRequest struct { + + // Details for the new lfsCpgInfo. + CreateLfsCpgInfoDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 CreateLfsCpgInfoRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateLfsCpgInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateLfsCpgInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateLfsCpgInfoRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateLfsCpgInfoRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateLfsCpgInfoResponse wrapper for the CreateLfsCpgInfo operation +type CreateLfsCpgInfoResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The LfsCpgInfo instance + LfsCpgInfo `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 CreateLfsCpgInfoResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateLfsCpgInfoResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_details.go new file mode 100644 index 0000000000..839243e316 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_details.go @@ -0,0 +1,144 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateLustreFileSystemDetails The details to create a Lustre file system. +type CreateLustreFileSystemDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the Lustre file system. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // 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:"true" json:"availabilityDomain"` + + // The Lustre file system name. This is used in mount commands and other aspects of the client command line interface. + // The file system name is limited to 8 characters. Allowed characters are lower and upper case English letters, numbers, and '_'. + // If you have multiple Lustre file systems mounted on the same clients, this name can help distinguish them. + FileSystemName *string `mandatory:"true" json:"fileSystemName"` + + // Capacity of the Lustre file system in GB. You can increase capacity only in multiples of 5 TB. + CapacityInGBs *int `mandatory:"true" json:"capacityInGBs"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the Lustre file system is in. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The Lustre file system performance tier. A value of `MBPS_PER_TB_125` represents 125 megabytes per second per terabyte. + PerformanceTier CreateLustreFileSystemDetailsPerformanceTierEnum `mandatory:"true" json:"performanceTier"` + + RootSquashConfiguration *RootSquashConfiguration `mandatory:"true" json:"rootSquashConfiguration"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My Lustre file system` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Short description of the Lustre file system. + // Avoid entering confidential information. + FileSystemDescription *string `mandatory:"false" json:"fileSystemDescription"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A list of Network Security Group OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this lustre file system. + // A maximum of 5 is allowed. + // Setting this to an empty array after the list is created removes the lustre file system from all NSGs. + // For more information about NSGs, see Security Rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The OCID (https://docs.oracle.com/iaas/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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster placement group in which the Lustre file system exists. + ClusterPlacementGroupId *string `mandatory:"false" json:"clusterPlacementGroupId"` +} + +func (m CreateLustreFileSystemDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateLustreFileSystemDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateLustreFileSystemDetailsPerformanceTierEnum(string(m.PerformanceTier)); !ok && m.PerformanceTier != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PerformanceTier: %s. Supported values are: %s.", m.PerformanceTier, strings.Join(GetCreateLustreFileSystemDetailsPerformanceTierEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateLustreFileSystemDetailsPerformanceTierEnum Enum with underlying type: string +type CreateLustreFileSystemDetailsPerformanceTierEnum string + +// Set of constants representing the allowable values for CreateLustreFileSystemDetailsPerformanceTierEnum +const ( + CreateLustreFileSystemDetailsPerformanceTier125 CreateLustreFileSystemDetailsPerformanceTierEnum = "MBPS_PER_TB_125" + CreateLustreFileSystemDetailsPerformanceTier250 CreateLustreFileSystemDetailsPerformanceTierEnum = "MBPS_PER_TB_250" + CreateLustreFileSystemDetailsPerformanceTier500 CreateLustreFileSystemDetailsPerformanceTierEnum = "MBPS_PER_TB_500" + CreateLustreFileSystemDetailsPerformanceTier1000 CreateLustreFileSystemDetailsPerformanceTierEnum = "MBPS_PER_TB_1000" +) + +var mappingCreateLustreFileSystemDetailsPerformanceTierEnum = map[string]CreateLustreFileSystemDetailsPerformanceTierEnum{ + "MBPS_PER_TB_125": CreateLustreFileSystemDetailsPerformanceTier125, + "MBPS_PER_TB_250": CreateLustreFileSystemDetailsPerformanceTier250, + "MBPS_PER_TB_500": CreateLustreFileSystemDetailsPerformanceTier500, + "MBPS_PER_TB_1000": CreateLustreFileSystemDetailsPerformanceTier1000, +} + +var mappingCreateLustreFileSystemDetailsPerformanceTierEnumLowerCase = map[string]CreateLustreFileSystemDetailsPerformanceTierEnum{ + "mbps_per_tb_125": CreateLustreFileSystemDetailsPerformanceTier125, + "mbps_per_tb_250": CreateLustreFileSystemDetailsPerformanceTier250, + "mbps_per_tb_500": CreateLustreFileSystemDetailsPerformanceTier500, + "mbps_per_tb_1000": CreateLustreFileSystemDetailsPerformanceTier1000, +} + +// GetCreateLustreFileSystemDetailsPerformanceTierEnumValues Enumerates the set of values for CreateLustreFileSystemDetailsPerformanceTierEnum +func GetCreateLustreFileSystemDetailsPerformanceTierEnumValues() []CreateLustreFileSystemDetailsPerformanceTierEnum { + values := make([]CreateLustreFileSystemDetailsPerformanceTierEnum, 0) + for _, v := range mappingCreateLustreFileSystemDetailsPerformanceTierEnum { + values = append(values, v) + } + return values +} + +// GetCreateLustreFileSystemDetailsPerformanceTierEnumStringValues Enumerates the set of values in String for CreateLustreFileSystemDetailsPerformanceTierEnum +func GetCreateLustreFileSystemDetailsPerformanceTierEnumStringValues() []string { + return []string{ + "MBPS_PER_TB_125", + "MBPS_PER_TB_250", + "MBPS_PER_TB_500", + "MBPS_PER_TB_1000", + } +} + +// GetMappingCreateLustreFileSystemDetailsPerformanceTierEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateLustreFileSystemDetailsPerformanceTierEnum(val string) (CreateLustreFileSystemDetailsPerformanceTierEnum, bool) { + enum, ok := mappingCreateLustreFileSystemDetailsPerformanceTierEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go index b62ba01282..fda3fd960f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go @@ -12,10 +12,6 @@ import ( ) // CreateLustreFileSystemRequest wrapper for the CreateLustreFileSystem operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateLustreFileSystem.go.html to see an example of how to use CreateLustreFileSystemRequest. type CreateLustreFileSystemRequest struct { // Details for the new Lustre file system. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_details.go new file mode 100644 index 0000000000..8cff46e67f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_details.go @@ -0,0 +1,168 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateManagementCellDetails The data required for creating a ManagementCell. +type CreateManagementCellDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the ManagementCell. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The availability domain the Management Cell is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The current state of the ManagementCell. + LifecycleState CreateManagementCellDetailsLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // ManagementCell can be categorized based on the customer filesystems it is hosting. + // Example: `RESTRICTED` category cell is restricted for use by only one customer + Category CreateManagementCellDetailsCategoryEnum `mandatory:"true" json:"category"` + + // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. + AvailableCapacityInGBs *int64 `mandatory:"true" json:"availableCapacityInGBs"` + + Details *Details `mandatory:"true" json:"details"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateManagementCellDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateManagementCellDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateManagementCellDetailsLifecycleStateEnum(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(GetCreateManagementCellDetailsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateManagementCellDetailsCategoryEnum(string(m.Category)); !ok && m.Category != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Category: %s. Supported values are: %s.", m.Category, strings.Join(GetCreateManagementCellDetailsCategoryEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateManagementCellDetailsLifecycleStateEnum Enum with underlying type: string +type CreateManagementCellDetailsLifecycleStateEnum string + +// Set of constants representing the allowable values for CreateManagementCellDetailsLifecycleStateEnum +const ( + CreateManagementCellDetailsLifecycleStateCreating CreateManagementCellDetailsLifecycleStateEnum = "CREATING" + CreateManagementCellDetailsLifecycleStateActive CreateManagementCellDetailsLifecycleStateEnum = "ACTIVE" + CreateManagementCellDetailsLifecycleStateInactive CreateManagementCellDetailsLifecycleStateEnum = "INACTIVE" + CreateManagementCellDetailsLifecycleStateDeleted CreateManagementCellDetailsLifecycleStateEnum = "DELETED" +) + +var mappingCreateManagementCellDetailsLifecycleStateEnum = map[string]CreateManagementCellDetailsLifecycleStateEnum{ + "CREATING": CreateManagementCellDetailsLifecycleStateCreating, + "ACTIVE": CreateManagementCellDetailsLifecycleStateActive, + "INACTIVE": CreateManagementCellDetailsLifecycleStateInactive, + "DELETED": CreateManagementCellDetailsLifecycleStateDeleted, +} + +var mappingCreateManagementCellDetailsLifecycleStateEnumLowerCase = map[string]CreateManagementCellDetailsLifecycleStateEnum{ + "creating": CreateManagementCellDetailsLifecycleStateCreating, + "active": CreateManagementCellDetailsLifecycleStateActive, + "inactive": CreateManagementCellDetailsLifecycleStateInactive, + "deleted": CreateManagementCellDetailsLifecycleStateDeleted, +} + +// GetCreateManagementCellDetailsLifecycleStateEnumValues Enumerates the set of values for CreateManagementCellDetailsLifecycleStateEnum +func GetCreateManagementCellDetailsLifecycleStateEnumValues() []CreateManagementCellDetailsLifecycleStateEnum { + values := make([]CreateManagementCellDetailsLifecycleStateEnum, 0) + for _, v := range mappingCreateManagementCellDetailsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetCreateManagementCellDetailsLifecycleStateEnumStringValues Enumerates the set of values in String for CreateManagementCellDetailsLifecycleStateEnum +func GetCreateManagementCellDetailsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETED", + } +} + +// GetMappingCreateManagementCellDetailsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateManagementCellDetailsLifecycleStateEnum(val string) (CreateManagementCellDetailsLifecycleStateEnum, bool) { + enum, ok := mappingCreateManagementCellDetailsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateManagementCellDetailsCategoryEnum Enum with underlying type: string +type CreateManagementCellDetailsCategoryEnum string + +// Set of constants representing the allowable values for CreateManagementCellDetailsCategoryEnum +const ( + CreateManagementCellDetailsCategoryGeneral CreateManagementCellDetailsCategoryEnum = "GENERAL" + CreateManagementCellDetailsCategoryInternal CreateManagementCellDetailsCategoryEnum = "INTERNAL" + CreateManagementCellDetailsCategoryRestricted CreateManagementCellDetailsCategoryEnum = "RESTRICTED" +) + +var mappingCreateManagementCellDetailsCategoryEnum = map[string]CreateManagementCellDetailsCategoryEnum{ + "GENERAL": CreateManagementCellDetailsCategoryGeneral, + "INTERNAL": CreateManagementCellDetailsCategoryInternal, + "RESTRICTED": CreateManagementCellDetailsCategoryRestricted, +} + +var mappingCreateManagementCellDetailsCategoryEnumLowerCase = map[string]CreateManagementCellDetailsCategoryEnum{ + "general": CreateManagementCellDetailsCategoryGeneral, + "internal": CreateManagementCellDetailsCategoryInternal, + "restricted": CreateManagementCellDetailsCategoryRestricted, +} + +// GetCreateManagementCellDetailsCategoryEnumValues Enumerates the set of values for CreateManagementCellDetailsCategoryEnum +func GetCreateManagementCellDetailsCategoryEnumValues() []CreateManagementCellDetailsCategoryEnum { + values := make([]CreateManagementCellDetailsCategoryEnum, 0) + for _, v := range mappingCreateManagementCellDetailsCategoryEnum { + values = append(values, v) + } + return values +} + +// GetCreateManagementCellDetailsCategoryEnumStringValues Enumerates the set of values in String for CreateManagementCellDetailsCategoryEnum +func GetCreateManagementCellDetailsCategoryEnumStringValues() []string { + return []string{ + "GENERAL", + "INTERNAL", + "RESTRICTED", + } +} + +// GetMappingCreateManagementCellDetailsCategoryEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateManagementCellDetailsCategoryEnum(val string) (CreateManagementCellDetailsCategoryEnum, bool) { + enum, ok := mappingCreateManagementCellDetailsCategoryEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_request_response.go new file mode 100644 index 0000000000..e5cd196fc0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateManagementCellRequest wrapper for the CreateManagementCell operation +type CreateManagementCellRequest struct { + + // Details for the new ManagementCell. + CreateManagementCellDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 CreateManagementCellRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateManagementCellRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateManagementCellRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateManagementCellRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateManagementCellRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateManagementCellResponse wrapper for the CreateManagementCell operation +type CreateManagementCellResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ManagementCell instance + ManagementCell `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 CreateManagementCellResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateManagementCellResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_map_tenancy_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_map_tenancy_configuration.go new file mode 100644 index 0000000000..e4d68378a3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_map_tenancy_configuration.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateMapTenancyConfiguration Response to be returned post successful mapping +type CreateMapTenancyConfiguration struct { + + // The response message + Message *string `mandatory:"true" json:"message"` +} + +func (m CreateMapTenancyConfiguration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateMapTenancyConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_details.go new file mode 100644 index 0000000000..780f3644b1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_details.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateObjectStorageLinkDetails The details to create a Object Storage link. +type CreateObjectStorageLinkDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the Object Storage link. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The availability domain that the Lustre file system 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated Lustre file system. + LustreFileSystemId *string `mandatory:"true" json:"lustreFileSystemId"` + + // The path in the Lustre file system used for this Object Storage link. + // Example: `myFileSystem/mount/myDirectory` + FileSystemPath *string `mandatory:"true" json:"fileSystemPath"` + + // The Object Storage namespace and bucket name, including optional object prefix string, to use as the source for imports or destination for exports. + // Example: `objectStorageNamespace:/bucketName/optionalFolder/optionalPrefix` + ObjectStoragePrefix *string `mandatory:"true" json:"objectStoragePrefix"` + + // The flag is an identifier to tell whether the job run has overwrite enabled. + // If `isOverwrite` is false, the file to be imported or exported will be skipped if it already exists. + // If `isOverwrite` is true, the file to be imported or exported will be overwritten if it already exists. + IsOverwrite *bool `mandatory:"true" json:"isOverwrite"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My Object Storage Link` + 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateObjectStorageLinkDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateObjectStorageLinkDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go index 5415864659..3f37c92120 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go @@ -12,10 +12,6 @@ import ( ) // CreateObjectStorageLinkRequest wrapper for the CreateObjectStorageLink operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateObjectStorageLink.go.html to see an example of how to use CreateObjectStorageLinkRequest. type CreateObjectStorageLinkRequest struct { // Details for the new Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_details.go new file mode 100644 index 0000000000..e78bb45aa8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_details.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreatePoolDetails The data required for creating a Pool. +type CreatePoolDetails struct { + + // The type of pool + PoolType CreatePoolDetailsPoolTypeEnum `mandatory:"true" json:"poolType"` + + // Name of the pool + PoolName *string `mandatory:"true" json:"poolName"` + + // The name of the site group this pool is associated with + SiteGroup *string `mandatory:"true" json:"siteGroup"` + + // List of customer tenancies it is dedicated for + Resources []interface{} `mandatory:"true" json:"resources"` + + // List of customer tenancies it is dedicated for + DedicatedCustomerTenancies []string `mandatory:"false" json:"dedicatedCustomerTenancies"` + + // List of customer tenancies it is dedicated for + Tags []string `mandatory:"false" json:"tags"` + + // The pools that have affinity with this pool. + PoolAffinities *interface{} `mandatory:"false" json:"poolAffinities"` +} + +func (m CreatePoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreatePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreatePoolDetailsPoolTypeEnum(string(m.PoolType)); !ok && m.PoolType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PoolType: %s. Supported values are: %s.", m.PoolType, strings.Join(GetCreatePoolDetailsPoolTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreatePoolDetailsPoolTypeEnum Enum with underlying type: string +type CreatePoolDetailsPoolTypeEnum string + +// Set of constants representing the allowable values for CreatePoolDetailsPoolTypeEnum +const ( + CreatePoolDetailsPoolTypeCompute CreatePoolDetailsPoolTypeEnum = "COMPUTE" + CreatePoolDetailsPoolTypeBlock CreatePoolDetailsPoolTypeEnum = "BLOCK" +) + +var mappingCreatePoolDetailsPoolTypeEnum = map[string]CreatePoolDetailsPoolTypeEnum{ + "COMPUTE": CreatePoolDetailsPoolTypeCompute, + "BLOCK": CreatePoolDetailsPoolTypeBlock, +} + +var mappingCreatePoolDetailsPoolTypeEnumLowerCase = map[string]CreatePoolDetailsPoolTypeEnum{ + "compute": CreatePoolDetailsPoolTypeCompute, + "block": CreatePoolDetailsPoolTypeBlock, +} + +// GetCreatePoolDetailsPoolTypeEnumValues Enumerates the set of values for CreatePoolDetailsPoolTypeEnum +func GetCreatePoolDetailsPoolTypeEnumValues() []CreatePoolDetailsPoolTypeEnum { + values := make([]CreatePoolDetailsPoolTypeEnum, 0) + for _, v := range mappingCreatePoolDetailsPoolTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreatePoolDetailsPoolTypeEnumStringValues Enumerates the set of values in String for CreatePoolDetailsPoolTypeEnum +func GetCreatePoolDetailsPoolTypeEnumStringValues() []string { + return []string{ + "COMPUTE", + "BLOCK", + } +} + +// GetMappingCreatePoolDetailsPoolTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreatePoolDetailsPoolTypeEnum(val string) (CreatePoolDetailsPoolTypeEnum, bool) { + enum, ok := mappingCreatePoolDetailsPoolTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_request_response.go new file mode 100644 index 0000000000..1ddfb63015 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreatePoolRequest wrapper for the CreatePool operation +type CreatePoolRequest struct { + + // Details for the new Pool. + CreatePoolDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 CreatePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreatePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreatePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreatePoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreatePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreatePoolResponse wrapper for the CreatePool operation +type CreatePoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Pool instance + Pool `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 CreatePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreatePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_details.go new file mode 100644 index 0000000000..b6e042f337 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_details.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateTenancyOverrideDetails The data required for creating a Tenancy Override. +type CreateTenancyOverrideDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. + TenancyId *string `mandatory:"true" json:"tenancyId"` + + // The list of overrides for a tenant. + Overrides []interface{} `mandatory:"true" json:"overrides"` +} + +func (m CreateTenancyOverrideDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateTenancyOverrideDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_request_response.go new file mode 100644 index 0000000000..7edd957be0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateTenancyOverrideRequest wrapper for the CreateTenancyOverride operation +type CreateTenancyOverrideRequest struct { + + // Details for the new Tenancy Override. + CreateTenancyOverrideDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 CreateTenancyOverrideRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateTenancyOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateTenancyOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateTenancyOverrideRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateTenancyOverrideRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateTenancyOverrideResponse wrapper for the CreateTenancyOverride operation +type CreateTenancyOverrideResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TenancyOverride instance + TenancyOverride `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 CreateTenancyOverrideResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateTenancyOverrideResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/current_compute_capacity.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/current_compute_capacity.go new file mode 100644 index 0000000000..5468d55378 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/current_compute_capacity.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CurrentComputeCapacity The compute capacity tracked internally. +type CurrentComputeCapacity struct { + Cores16 *FaultDomainUsage `mandatory:"false" json:"cores16"` + + Cores94 *FaultDomainUsage `mandatory:"false" json:"cores94"` +} + +func (m CurrentComputeCapacity) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CurrentComputeCapacity) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_all_tenancy_overrides_for_tenant_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_all_tenancy_overrides_for_tenant_request_response.go new file mode 100644 index 0000000000..79cf3e8298 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_all_tenancy_overrides_for_tenant_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteAllTenancyOverridesForTenantRequest wrapper for the DeleteAllTenancyOverridesForTenant operation +type DeleteAllTenancyOverridesForTenantRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. + TenantId *string `mandatory:"true" contributesTo:"path" name:"tenantId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 DeleteAllTenancyOverridesForTenantRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteAllTenancyOverridesForTenantRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteAllTenancyOverridesForTenantRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteAllTenancyOverridesForTenantRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteAllTenancyOverridesForTenantRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteAllTenancyOverridesForTenantResponse wrapper for the DeleteAllTenancyOverridesForTenant operation +type DeleteAllTenancyOverridesForTenantResponse 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 DeleteAllTenancyOverridesForTenantResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteAllTenancyOverridesForTenantResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_capacity_reservation_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_capacity_reservation_info_request_response.go new file mode 100644 index 0000000000..d7a73e2af0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_capacity_reservation_info_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteCapacityReservationInfoRequest wrapper for the DeleteCapacityReservationInfo operation +type DeleteCapacityReservationInfoRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"true" contributesTo:"path" name:"capacityReservationId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 DeleteCapacityReservationInfoRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteCapacityReservationInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteCapacityReservationInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteCapacityReservationInfoRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteCapacityReservationInfoRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteCapacityReservationInfoResponse wrapper for the DeleteCapacityReservationInfo operation +type DeleteCapacityReservationInfoResponse 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 DeleteCapacityReservationInfoResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteCapacityReservationInfoResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_cpg_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_cpg_override_request_response.go new file mode 100644 index 0000000000..157fec9ba0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_cpg_override_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteCpgOverrideRequest wrapper for the DeleteCpgOverride operation +type DeleteCpgOverrideRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"true" contributesTo:"path" name:"customerCpgId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 DeleteCpgOverrideRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteCpgOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteCpgOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteCpgOverrideRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteCpgOverrideRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteCpgOverrideResponse wrapper for the DeleteCpgOverride operation +type DeleteCpgOverrideResponse 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 DeleteCpgOverrideResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteCpgOverrideResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lfs_cpg_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lfs_cpg_info_request_response.go new file mode 100644 index 0000000000..a59c15f8d4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lfs_cpg_info_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteLfsCpgInfoRequest wrapper for the DeleteLfsCpgInfo operation +type DeleteLfsCpgInfoRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"true" contributesTo:"path" name:"lfsCpgId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 DeleteLfsCpgInfoRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteLfsCpgInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteLfsCpgInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteLfsCpgInfoRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteLfsCpgInfoRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteLfsCpgInfoResponse wrapper for the DeleteLfsCpgInfo operation +type DeleteLfsCpgInfoResponse 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 DeleteLfsCpgInfoResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteLfsCpgInfoResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go index 42f9289a34..c207d28246 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go @@ -12,10 +12,6 @@ import ( ) // DeleteLustreFileSystemRequest wrapper for the DeleteLustreFileSystem operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteLustreFileSystem.go.html to see an example of how to use DeleteLustreFileSystemRequest. type DeleteLustreFileSystemRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_management_cell_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_management_cell_request_response.go new file mode 100644 index 0000000000..9981550e09 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_management_cell_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteManagementCellRequest wrapper for the DeleteManagementCell operation +type DeleteManagementCellRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ManagementCell. + ManagementCellId *string `mandatory:"true" contributesTo:"path" name:"managementCellId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 DeleteManagementCellRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteManagementCellRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteManagementCellRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteManagementCellRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteManagementCellRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteManagementCellResponse wrapper for the DeleteManagementCell operation +type DeleteManagementCellResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + // Use 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 DeleteManagementCellResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteManagementCellResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go index 65a8f851ba..f3623aa666 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go @@ -12,10 +12,6 @@ import ( ) // DeleteObjectStorageLinkRequest wrapper for the DeleteObjectStorageLink operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteObjectStorageLink.go.html to see an example of how to use DeleteObjectStorageLinkRequest. type DeleteObjectStorageLinkRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_pool_request_response.go new file mode 100644 index 0000000000..ba34debac9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_pool_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeletePoolRequest wrapper for the DeletePool operation +type DeletePoolRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool. + PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 DeletePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeletePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeletePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeletePoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeletePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeletePoolResponse wrapper for the DeletePool operation +type DeletePoolResponse 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 DeletePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeletePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_configuration_request_response.go new file mode 100644 index 0000000000..52a7c8ac42 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_configuration_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteTenancyConfigurationRequest wrapper for the DeleteTenancyConfiguration operation +type DeleteTenancyConfigurationRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy. + TenancyId *string `mandatory:"true" contributesTo:"path" name:"tenancyId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 DeleteTenancyConfigurationRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteTenancyConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteTenancyConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteTenancyConfigurationRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteTenancyConfigurationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteTenancyConfigurationResponse wrapper for the DeleteTenancyConfiguration operation +type DeleteTenancyConfigurationResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + // Use 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 DeleteTenancyConfigurationResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteTenancyConfigurationResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_override_request_response.go new file mode 100644 index 0000000000..4a4b030283 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_override_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteTenancyOverrideRequest wrapper for the DeleteTenancyOverride operation +type DeleteTenancyOverrideRequest struct { + + // The ID associated with an override. + OverrideId *string `mandatory:"true" contributesTo:"path" name:"overrideId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. + TenantId *string `mandatory:"true" contributesTo:"path" name:"tenantId"` + + // 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 DeleteTenancyOverrideRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteTenancyOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteTenancyOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteTenancyOverrideRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteTenancyOverrideRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteTenancyOverrideResponse wrapper for the DeleteTenancyOverride operation +type DeleteTenancyOverrideResponse 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 DeleteTenancyOverrideResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteTenancyOverrideResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/desired_compute_count.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/desired_compute_count.go new file mode 100644 index 0000000000..d34b5155fd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/desired_compute_count.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DesiredComputeCount The desired compute configuration. +type DesiredComputeCount struct { + + // List of desired compute configurations. + Configs []interface{} `mandatory:"false" json:"configs"` +} + +func (m DesiredComputeCount) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DesiredComputeCount) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/details.go new file mode 100644 index 0000000000..073d154041 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Details ManagementCell details are captured in this JSON object. +type Details struct { + + // JSON object version. It helps in deploying read/write phase when JSON object is updated. + Version *int64 `mandatory:"false" json:"version"` + + // Management plane load balancer endpoint for ManagementCell + MpLoadBalancerEndpoint *string `mandatory:"false" json:"mpLoadBalancerEndpoint"` + + // Total Cell capacity available for creating new filesystems on the cell. Measured in GB. For create request, this will mapped to availableCapacityInGBs and need not to be part of request params. + TotalCapacityInGBs *int64 `mandatory:"false" json:"totalCapacityInGBs"` +} + +func (m Details) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Details) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/fault_domain_usage.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/fault_domain_usage.go new file mode 100644 index 0000000000..0c7bb74398 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/fault_domain_usage.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FaultDomainUsage Usage per fault domain. +type FaultDomainUsage struct { + Fd1 *ReservedAndUsedCount `mandatory:"false" json:"fd1"` + + Fd2 *ReservedAndUsedCount `mandatory:"false" json:"fd2"` + + Fd3 *ReservedAndUsedCount `mandatory:"false" json:"fd3"` +} + +func (m FaultDomainUsage) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FaultDomainUsage) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_capacity_reservation_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_capacity_reservation_info_request_response.go new file mode 100644 index 0000000000..310532ec04 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_capacity_reservation_info_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetCapacityReservationInfoRequest wrapper for the GetCapacityReservationInfo operation +type GetCapacityReservationInfoRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"true" contributesTo:"path" name:"capacityReservationId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 GetCapacityReservationInfoRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetCapacityReservationInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetCapacityReservationInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetCapacityReservationInfoRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCapacityReservationInfoRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetCapacityReservationInfoResponse wrapper for the GetCapacityReservationInfo operation +type GetCapacityReservationInfoResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CapacityReservationInfo instance + CapacityReservationInfo `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 GetCapacityReservationInfoResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetCapacityReservationInfoResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_cpg_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_cpg_override_request_response.go new file mode 100644 index 0000000000..2423401f2c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_cpg_override_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetCpgOverrideRequest wrapper for the GetCpgOverride operation +type GetCpgOverrideRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"true" contributesTo:"path" name:"customerCpgId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 GetCpgOverrideRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetCpgOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetCpgOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetCpgOverrideRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCpgOverrideRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetCpgOverrideResponse wrapper for the GetCpgOverride operation +type GetCpgOverrideResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CpgOverride instance + CpgOverride `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 GetCpgOverrideResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetCpgOverrideResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lfs_cpg_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lfs_cpg_info_request_response.go new file mode 100644 index 0000000000..a973a50f87 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lfs_cpg_info_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetLfsCpgInfoRequest wrapper for the GetLfsCpgInfo operation +type GetLfsCpgInfoRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"true" contributesTo:"path" name:"lfsCpgId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 GetLfsCpgInfoRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetLfsCpgInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetLfsCpgInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetLfsCpgInfoRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetLfsCpgInfoRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetLfsCpgInfoResponse wrapper for the GetLfsCpgInfo operation +type GetLfsCpgInfoResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The LfsCpgInfo instance + LfsCpgInfo `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 GetLfsCpgInfoResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetLfsCpgInfoResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go index c856c12a92..6b0f5cade9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go @@ -12,10 +12,6 @@ import ( ) // GetLustreFileSystemRequest wrapper for the GetLustreFileSystem operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetLustreFileSystem.go.html to see an example of how to use GetLustreFileSystemRequest. type GetLustreFileSystemRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_management_cell_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_management_cell_request_response.go new file mode 100644 index 0000000000..93371e44c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_management_cell_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetManagementCellRequest wrapper for the GetManagementCell operation +type GetManagementCellRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ManagementCell. + ManagementCellId *string `mandatory:"true" contributesTo:"path" name:"managementCellId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 GetManagementCellRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetManagementCellRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetManagementCellRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetManagementCellRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetManagementCellRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetManagementCellResponse wrapper for the GetManagementCell operation +type GetManagementCellResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ManagementCell instance + ManagementCell `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 GetManagementCellResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetManagementCellResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go index 0d04382d9b..0c308c20c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go @@ -12,10 +12,6 @@ import ( ) // GetObjectStorageLinkRequest wrapper for the GetObjectStorageLink operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetObjectStorageLink.go.html to see an example of how to use GetObjectStorageLinkRequest. type GetObjectStorageLinkRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_pool_request_response.go new file mode 100644 index 0000000000..795f21ba08 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_pool_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetPoolRequest wrapper for the GetPool operation +type GetPoolRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool. + PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 GetPoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetPoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetPoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetPoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetPoolResponse wrapper for the GetPool operation +type GetPoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Pool instance + Pool `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 GetPoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetPoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go index df1abe6635..7cf1a640bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go @@ -12,10 +12,6 @@ import ( ) // GetSyncJobRequest wrapper for the GetSyncJob operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetSyncJob.go.html to see an example of how to use GetSyncJobRequest. type GetSyncJobRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_tenancy_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_tenancy_override_request_response.go new file mode 100644 index 0000000000..ebc49eb6ff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_tenancy_override_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetTenancyOverrideRequest wrapper for the GetTenancyOverride operation +type GetTenancyOverrideRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. + TenantId *string `mandatory:"true" contributesTo:"path" name:"tenantId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 GetTenancyOverrideRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetTenancyOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetTenancyOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetTenancyOverrideRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetTenancyOverrideRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetTenancyOverrideResponse wrapper for the GetTenancyOverride operation +type GetTenancyOverrideResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TenancyOverride instance + TenancyOverride `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 GetTenancyOverrideResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetTenancyOverrideResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go index d1f1ccadbf..bd50e6824c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go @@ -12,10 +12,6 @@ import ( ) // GetWorkRequestRequest wrapper for the GetWorkRequest operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. type GetWorkRequestRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_details.go new file mode 100644 index 0000000000..67d5c305da --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InjectFaultDetails Wrapper object for input map +type InjectFaultDetails struct { + + // Example: `{"action": "terminate_host"}` + PropertiesMap map[string]string `mandatory:"true" json:"map"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.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.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: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m InjectFaultDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InjectFaultDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_output_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_output_details.go new file mode 100644 index 0000000000..a95d4ff833 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_output_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InjectFaultOutputDetails Wrapper object for output map +type InjectFaultOutputDetails struct { + + // Example: `{"status": "success"}` + PropertiesMap map[string]string `mandatory:"true" json:"map"` +} + +func (m InjectFaultOutputDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InjectFaultOutputDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_request_response.go new file mode 100644 index 0000000000..a4ce06707f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// InjectFaultRequest wrapper for the InjectFault operation +type InjectFaultRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. + LustreFileSystemId *string `mandatory:"true" contributesTo:"path" name:"lustreFileSystemId"` + + // Inject faults for a particular lustre file system + InjectFaultDetails `contributesTo:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 InjectFaultRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request InjectFaultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request InjectFaultRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request InjectFaultRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request InjectFaultRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InjectFaultResponse wrapper for the InjectFault operation +type InjectFaultResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The InjectFaultOutputDetails instance + InjectFaultOutputDetails `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 InjectFaultResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response InjectFaultResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info.go new file mode 100644 index 0000000000..ad05137b64 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LfsCpgInfo An object that gives more details about a LFS CPG. +type LfsCpgInfo struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` + + // The name of the site group that the LFS CPG belongs to. + SiteGroupKey *string `mandatory:"true" json:"siteGroupKey"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default capacity reservation. + DefaultCapacityReservationId *string `mandatory:"true" json:"defaultCapacityReservationId"` + + // The availability domain the Management Cell is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The date and time the LFS CPG Info was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the LFS CPG Info was updated, in the format defined + // by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` +} + +func (m LfsCpgInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LfsCpgInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_collection.go new file mode 100644 index 0000000000..2f17362dd8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LfsCpgInfoCollection Results of a LFS CPG Info search. Contains LFSCpgInfo items. +type LfsCpgInfoCollection struct { + + // List of LFSCpgInfoSummary. + Items []LfsCpgInfoSummary `mandatory:"true" json:"items"` +} + +func (m LfsCpgInfoCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LfsCpgInfoCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_summary.go new file mode 100644 index 0000000000..c19a04c3aa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_summary.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LfsCpgInfoSummary An object that gives more details about a LFS CPG. +type LfsCpgInfoSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` + + // The name of the site group that the LFS CPG belongs to. + SiteGroupKey *string `mandatory:"true" json:"siteGroupKey"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default capacity reservation. + DefaultCapacityReservationId *string `mandatory:"true" json:"defaultCapacityReservationId"` + + // The availability domain the Management Cell is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The date and time the LFS CPG Info was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the LFS CPG Info was updated, in the format defined + // by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` +} + +func (m LfsCpgInfoSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LfsCpgInfoSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_capacity_reservation_infos_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_capacity_reservation_infos_request_response.go new file mode 100644 index 0000000000..433cf18b94 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_capacity_reservation_infos_request_response.go @@ -0,0 +1,157 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListCapacityReservationInfosRequest wrapper for the ListCapacityReservationInfos operation +type ListCapacityReservationInfosRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"false" contributesTo:"query" name:"capacityReservationId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"false" contributesTo:"query" name:"customerCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. + CustomerTenancyId *string `mandatory:"false" contributesTo:"query" name:"customerTenancyId"` + + // 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.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.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`). + SortOrder ListCapacityReservationInfosSortOrderEnum `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 ListCapacityReservationInfosRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListCapacityReservationInfosRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListCapacityReservationInfosRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListCapacityReservationInfosRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCapacityReservationInfosRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListCapacityReservationInfosSortOrderEnum(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(GetListCapacityReservationInfosSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListCapacityReservationInfosResponse wrapper for the ListCapacityReservationInfos operation +type ListCapacityReservationInfosResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of CapacityReservationInfoCollection instances + CapacityReservationInfoCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListCapacityReservationInfosResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListCapacityReservationInfosResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListCapacityReservationInfosSortOrderEnum Enum with underlying type: string +type ListCapacityReservationInfosSortOrderEnum string + +// Set of constants representing the allowable values for ListCapacityReservationInfosSortOrderEnum +const ( + ListCapacityReservationInfosSortOrderAsc ListCapacityReservationInfosSortOrderEnum = "ASC" + ListCapacityReservationInfosSortOrderDesc ListCapacityReservationInfosSortOrderEnum = "DESC" +) + +var mappingListCapacityReservationInfosSortOrderEnum = map[string]ListCapacityReservationInfosSortOrderEnum{ + "ASC": ListCapacityReservationInfosSortOrderAsc, + "DESC": ListCapacityReservationInfosSortOrderDesc, +} + +var mappingListCapacityReservationInfosSortOrderEnumLowerCase = map[string]ListCapacityReservationInfosSortOrderEnum{ + "asc": ListCapacityReservationInfosSortOrderAsc, + "desc": ListCapacityReservationInfosSortOrderDesc, +} + +// GetListCapacityReservationInfosSortOrderEnumValues Enumerates the set of values for ListCapacityReservationInfosSortOrderEnum +func GetListCapacityReservationInfosSortOrderEnumValues() []ListCapacityReservationInfosSortOrderEnum { + values := make([]ListCapacityReservationInfosSortOrderEnum, 0) + for _, v := range mappingListCapacityReservationInfosSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListCapacityReservationInfosSortOrderEnumStringValues Enumerates the set of values in String for ListCapacityReservationInfosSortOrderEnum +func GetListCapacityReservationInfosSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListCapacityReservationInfosSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCapacityReservationInfosSortOrderEnum(val string) (ListCapacityReservationInfosSortOrderEnum, bool) { + enum, ok := mappingListCapacityReservationInfosSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_cpg_overrides_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_cpg_overrides_request_response.go new file mode 100644 index 0000000000..459348ffac --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_cpg_overrides_request_response.go @@ -0,0 +1,154 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListCpgOverridesRequest wrapper for the ListCpgOverrides operation +type ListCpgOverridesRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"false" contributesTo:"query" name:"customerCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. + CustomerTenancyId *string `mandatory:"false" contributesTo:"query" name:"customerTenancyId"` + + // 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.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.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`). + SortOrder ListCpgOverridesSortOrderEnum `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 ListCpgOverridesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListCpgOverridesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListCpgOverridesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListCpgOverridesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCpgOverridesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListCpgOverridesSortOrderEnum(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(GetListCpgOverridesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListCpgOverridesResponse wrapper for the ListCpgOverrides operation +type ListCpgOverridesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of CpgOverrideCollection instances + CpgOverrideCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListCpgOverridesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListCpgOverridesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListCpgOverridesSortOrderEnum Enum with underlying type: string +type ListCpgOverridesSortOrderEnum string + +// Set of constants representing the allowable values for ListCpgOverridesSortOrderEnum +const ( + ListCpgOverridesSortOrderAsc ListCpgOverridesSortOrderEnum = "ASC" + ListCpgOverridesSortOrderDesc ListCpgOverridesSortOrderEnum = "DESC" +) + +var mappingListCpgOverridesSortOrderEnum = map[string]ListCpgOverridesSortOrderEnum{ + "ASC": ListCpgOverridesSortOrderAsc, + "DESC": ListCpgOverridesSortOrderDesc, +} + +var mappingListCpgOverridesSortOrderEnumLowerCase = map[string]ListCpgOverridesSortOrderEnum{ + "asc": ListCpgOverridesSortOrderAsc, + "desc": ListCpgOverridesSortOrderDesc, +} + +// GetListCpgOverridesSortOrderEnumValues Enumerates the set of values for ListCpgOverridesSortOrderEnum +func GetListCpgOverridesSortOrderEnumValues() []ListCpgOverridesSortOrderEnum { + values := make([]ListCpgOverridesSortOrderEnum, 0) + for _, v := range mappingListCpgOverridesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListCpgOverridesSortOrderEnumStringValues Enumerates the set of values in String for ListCpgOverridesSortOrderEnum +func GetListCpgOverridesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListCpgOverridesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCpgOverridesSortOrderEnum(val string) (ListCpgOverridesSortOrderEnum, bool) { + enum, ok := mappingListCpgOverridesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lfs_cpg_infos_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lfs_cpg_infos_request_response.go new file mode 100644 index 0000000000..2d6beafa62 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lfs_cpg_infos_request_response.go @@ -0,0 +1,155 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListLfsCpgInfosRequest wrapper for the ListLfsCpgInfos operation +type ListLfsCpgInfosRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"false" contributesTo:"query" name:"lfsCpgId"` + + // 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.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.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`). + SortOrder ListLfsCpgInfosSortOrderEnum `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 ListLfsCpgInfosRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListLfsCpgInfosRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListLfsCpgInfosRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListLfsCpgInfosRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListLfsCpgInfosRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListLfsCpgInfosSortOrderEnum(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(GetListLfsCpgInfosSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListLfsCpgInfosResponse wrapper for the ListLfsCpgInfos operation +type ListLfsCpgInfosResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of LfsCpgInfoCollection instances + LfsCpgInfoCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListLfsCpgInfosResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListLfsCpgInfosResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListLfsCpgInfosSortOrderEnum Enum with underlying type: string +type ListLfsCpgInfosSortOrderEnum string + +// Set of constants representing the allowable values for ListLfsCpgInfosSortOrderEnum +const ( + ListLfsCpgInfosSortOrderAsc ListLfsCpgInfosSortOrderEnum = "ASC" + ListLfsCpgInfosSortOrderDesc ListLfsCpgInfosSortOrderEnum = "DESC" +) + +var mappingListLfsCpgInfosSortOrderEnum = map[string]ListLfsCpgInfosSortOrderEnum{ + "ASC": ListLfsCpgInfosSortOrderAsc, + "DESC": ListLfsCpgInfosSortOrderDesc, +} + +var mappingListLfsCpgInfosSortOrderEnumLowerCase = map[string]ListLfsCpgInfosSortOrderEnum{ + "asc": ListLfsCpgInfosSortOrderAsc, + "desc": ListLfsCpgInfosSortOrderDesc, +} + +// GetListLfsCpgInfosSortOrderEnumValues Enumerates the set of values for ListLfsCpgInfosSortOrderEnum +func GetListLfsCpgInfosSortOrderEnumValues() []ListLfsCpgInfosSortOrderEnum { + values := make([]ListLfsCpgInfosSortOrderEnum, 0) + for _, v := range mappingListLfsCpgInfosSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListLfsCpgInfosSortOrderEnumStringValues Enumerates the set of values in String for ListLfsCpgInfosSortOrderEnum +func GetListLfsCpgInfosSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListLfsCpgInfosSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListLfsCpgInfosSortOrderEnum(val string) (ListLfsCpgInfosSortOrderEnum, bool) { + enum, ok := mappingListLfsCpgInfosSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go index 446f864823..66714263d3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go @@ -12,10 +12,6 @@ import ( ) // ListLustreFileSystemsRequest wrapper for the ListLustreFileSystems operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListLustreFileSystems.go.html to see an example of how to use ListLustreFileSystemsRequest. type ListLustreFileSystemsRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_management_cells_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_management_cells_request_response.go new file mode 100644 index 0000000000..ae42ea5615 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_management_cells_request_response.go @@ -0,0 +1,158 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListManagementCellsRequest wrapper for the ListManagementCells operation +type ListManagementCellsRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" 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 (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ManagementCell. + Id *string `mandatory:"false" contributesTo:"query" name:"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.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.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`). + SortOrder ListManagementCellsSortOrderEnum `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 ListManagementCellsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListManagementCellsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListManagementCellsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListManagementCellsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListManagementCellsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListManagementCellsSortOrderEnum(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(GetListManagementCellsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListManagementCellsResponse wrapper for the ListManagementCells operation +type ListManagementCellsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ManagementCellCollection instances + ManagementCellCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListManagementCellsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListManagementCellsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListManagementCellsSortOrderEnum Enum with underlying type: string +type ListManagementCellsSortOrderEnum string + +// Set of constants representing the allowable values for ListManagementCellsSortOrderEnum +const ( + ListManagementCellsSortOrderAsc ListManagementCellsSortOrderEnum = "ASC" + ListManagementCellsSortOrderDesc ListManagementCellsSortOrderEnum = "DESC" +) + +var mappingListManagementCellsSortOrderEnum = map[string]ListManagementCellsSortOrderEnum{ + "ASC": ListManagementCellsSortOrderAsc, + "DESC": ListManagementCellsSortOrderDesc, +} + +var mappingListManagementCellsSortOrderEnumLowerCase = map[string]ListManagementCellsSortOrderEnum{ + "asc": ListManagementCellsSortOrderAsc, + "desc": ListManagementCellsSortOrderDesc, +} + +// GetListManagementCellsSortOrderEnumValues Enumerates the set of values for ListManagementCellsSortOrderEnum +func GetListManagementCellsSortOrderEnumValues() []ListManagementCellsSortOrderEnum { + values := make([]ListManagementCellsSortOrderEnum, 0) + for _, v := range mappingListManagementCellsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListManagementCellsSortOrderEnumStringValues Enumerates the set of values in String for ListManagementCellsSortOrderEnum +func GetListManagementCellsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListManagementCellsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListManagementCellsSortOrderEnum(val string) (ListManagementCellsSortOrderEnum, bool) { + enum, ok := mappingListManagementCellsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go index 02c56cf8d0..0a4c443a40 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go @@ -12,10 +12,6 @@ import ( ) // ListObjectStorageLinksRequest wrapper for the ListObjectStorageLinks operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListObjectStorageLinks.go.html to see an example of how to use ListObjectStorageLinksRequest. type ListObjectStorageLinksRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_pools_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_pools_request_response.go new file mode 100644 index 0000000000..76a4b745d0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_pools_request_response.go @@ -0,0 +1,148 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPoolsRequest wrapper for the ListPools operation +type ListPoolsRequest 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.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.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`). + SortOrder ListPoolsSortOrderEnum `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 ListPoolsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPoolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListPoolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPoolsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPoolsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPoolsSortOrderEnum(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(GetListPoolsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPoolsResponse wrapper for the ListPools operation +type ListPoolsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of PoolCollection instances + PoolCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListPoolsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPoolsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPoolsSortOrderEnum Enum with underlying type: string +type ListPoolsSortOrderEnum string + +// Set of constants representing the allowable values for ListPoolsSortOrderEnum +const ( + ListPoolsSortOrderAsc ListPoolsSortOrderEnum = "ASC" + ListPoolsSortOrderDesc ListPoolsSortOrderEnum = "DESC" +) + +var mappingListPoolsSortOrderEnum = map[string]ListPoolsSortOrderEnum{ + "ASC": ListPoolsSortOrderAsc, + "DESC": ListPoolsSortOrderDesc, +} + +var mappingListPoolsSortOrderEnumLowerCase = map[string]ListPoolsSortOrderEnum{ + "asc": ListPoolsSortOrderAsc, + "desc": ListPoolsSortOrderDesc, +} + +// GetListPoolsSortOrderEnumValues Enumerates the set of values for ListPoolsSortOrderEnum +func GetListPoolsSortOrderEnumValues() []ListPoolsSortOrderEnum { + values := make([]ListPoolsSortOrderEnum, 0) + for _, v := range mappingListPoolsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListPoolsSortOrderEnumStringValues Enumerates the set of values in String for ListPoolsSortOrderEnum +func GetListPoolsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListPoolsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPoolsSortOrderEnum(val string) (ListPoolsSortOrderEnum, bool) { + enum, ok := mappingListPoolsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_profiles_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_profiles_request_response.go new file mode 100644 index 0000000000..a03af979d7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_profiles_request_response.go @@ -0,0 +1,151 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListProfilesRequest wrapper for the ListProfiles operation +type ListProfilesRequest struct { + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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.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.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`). + SortOrder ListProfilesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only profile associated with given name. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListProfilesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListProfilesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListProfilesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListProfilesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListProfilesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListProfilesSortOrderEnum(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(GetListProfilesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListProfilesResponse wrapper for the ListProfiles operation +type ListProfilesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ProfileCollection instances + ProfileCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListProfilesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListProfilesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListProfilesSortOrderEnum Enum with underlying type: string +type ListProfilesSortOrderEnum string + +// Set of constants representing the allowable values for ListProfilesSortOrderEnum +const ( + ListProfilesSortOrderAsc ListProfilesSortOrderEnum = "ASC" + ListProfilesSortOrderDesc ListProfilesSortOrderEnum = "DESC" +) + +var mappingListProfilesSortOrderEnum = map[string]ListProfilesSortOrderEnum{ + "ASC": ListProfilesSortOrderAsc, + "DESC": ListProfilesSortOrderDesc, +} + +var mappingListProfilesSortOrderEnumLowerCase = map[string]ListProfilesSortOrderEnum{ + "asc": ListProfilesSortOrderAsc, + "desc": ListProfilesSortOrderDesc, +} + +// GetListProfilesSortOrderEnumValues Enumerates the set of values for ListProfilesSortOrderEnum +func GetListProfilesSortOrderEnumValues() []ListProfilesSortOrderEnum { + values := make([]ListProfilesSortOrderEnum, 0) + for _, v := range mappingListProfilesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListProfilesSortOrderEnumStringValues Enumerates the set of values in String for ListProfilesSortOrderEnum +func GetListProfilesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListProfilesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListProfilesSortOrderEnum(val string) (ListProfilesSortOrderEnum, bool) { + enum, ok := mappingListProfilesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go index 1630840836..ec415dcdbe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go @@ -12,10 +12,6 @@ import ( ) // ListSyncJobsRequest wrapper for the ListSyncJobs operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListSyncJobs.go.html to see an example of how to use ListSyncJobsRequest. type ListSyncJobsRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_configurations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_configurations_request_response.go new file mode 100644 index 0000000000..4349fc81f3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_configurations_request_response.go @@ -0,0 +1,151 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListTenancyConfigurationsRequest wrapper for the ListTenancyConfigurations operation +type ListTenancyConfigurationsRequest struct { + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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.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.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`). + SortOrder ListTenancyConfigurationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only profile associated with given name. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListTenancyConfigurationsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListTenancyConfigurationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListTenancyConfigurationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListTenancyConfigurationsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListTenancyConfigurationsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListTenancyConfigurationsSortOrderEnum(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(GetListTenancyConfigurationsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListTenancyConfigurationsResponse wrapper for the ListTenancyConfigurations operation +type ListTenancyConfigurationsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of MapTenancyConfigurationCollection instances + MapTenancyConfigurationCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListTenancyConfigurationsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListTenancyConfigurationsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListTenancyConfigurationsSortOrderEnum Enum with underlying type: string +type ListTenancyConfigurationsSortOrderEnum string + +// Set of constants representing the allowable values for ListTenancyConfigurationsSortOrderEnum +const ( + ListTenancyConfigurationsSortOrderAsc ListTenancyConfigurationsSortOrderEnum = "ASC" + ListTenancyConfigurationsSortOrderDesc ListTenancyConfigurationsSortOrderEnum = "DESC" +) + +var mappingListTenancyConfigurationsSortOrderEnum = map[string]ListTenancyConfigurationsSortOrderEnum{ + "ASC": ListTenancyConfigurationsSortOrderAsc, + "DESC": ListTenancyConfigurationsSortOrderDesc, +} + +var mappingListTenancyConfigurationsSortOrderEnumLowerCase = map[string]ListTenancyConfigurationsSortOrderEnum{ + "asc": ListTenancyConfigurationsSortOrderAsc, + "desc": ListTenancyConfigurationsSortOrderDesc, +} + +// GetListTenancyConfigurationsSortOrderEnumValues Enumerates the set of values for ListTenancyConfigurationsSortOrderEnum +func GetListTenancyConfigurationsSortOrderEnumValues() []ListTenancyConfigurationsSortOrderEnum { + values := make([]ListTenancyConfigurationsSortOrderEnum, 0) + for _, v := range mappingListTenancyConfigurationsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListTenancyConfigurationsSortOrderEnumStringValues Enumerates the set of values in String for ListTenancyConfigurationsSortOrderEnum +func GetListTenancyConfigurationsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListTenancyConfigurationsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListTenancyConfigurationsSortOrderEnum(val string) (ListTenancyConfigurationsSortOrderEnum, bool) { + enum, ok := mappingListTenancyConfigurationsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_overrides_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_overrides_request_response.go new file mode 100644 index 0000000000..3d60eadfc9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_overrides_request_response.go @@ -0,0 +1,148 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListTenancyOverridesRequest wrapper for the ListTenancyOverrides operation +type ListTenancyOverridesRequest 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.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.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`). + SortOrder ListTenancyOverridesSortOrderEnum `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 ListTenancyOverridesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListTenancyOverridesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListTenancyOverridesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListTenancyOverridesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListTenancyOverridesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListTenancyOverridesSortOrderEnum(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(GetListTenancyOverridesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListTenancyOverridesResponse wrapper for the ListTenancyOverrides operation +type ListTenancyOverridesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of TenancyOverrideCollection instances + TenancyOverrideCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListTenancyOverridesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListTenancyOverridesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListTenancyOverridesSortOrderEnum Enum with underlying type: string +type ListTenancyOverridesSortOrderEnum string + +// Set of constants representing the allowable values for ListTenancyOverridesSortOrderEnum +const ( + ListTenancyOverridesSortOrderAsc ListTenancyOverridesSortOrderEnum = "ASC" + ListTenancyOverridesSortOrderDesc ListTenancyOverridesSortOrderEnum = "DESC" +) + +var mappingListTenancyOverridesSortOrderEnum = map[string]ListTenancyOverridesSortOrderEnum{ + "ASC": ListTenancyOverridesSortOrderAsc, + "DESC": ListTenancyOverridesSortOrderDesc, +} + +var mappingListTenancyOverridesSortOrderEnumLowerCase = map[string]ListTenancyOverridesSortOrderEnum{ + "asc": ListTenancyOverridesSortOrderAsc, + "desc": ListTenancyOverridesSortOrderDesc, +} + +// GetListTenancyOverridesSortOrderEnumValues Enumerates the set of values for ListTenancyOverridesSortOrderEnum +func GetListTenancyOverridesSortOrderEnumValues() []ListTenancyOverridesSortOrderEnum { + values := make([]ListTenancyOverridesSortOrderEnum, 0) + for _, v := range mappingListTenancyOverridesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListTenancyOverridesSortOrderEnumStringValues Enumerates the set of values in String for ListTenancyOverridesSortOrderEnum +func GetListTenancyOverridesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListTenancyOverridesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListTenancyOverridesSortOrderEnum(val string) (ListTenancyOverridesSortOrderEnum, bool) { + enum, ok := mappingListTenancyOverridesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go index 3e79fc829d..171974001d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go @@ -12,10 +12,6 @@ import ( ) // ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest. type ListWorkRequestErrorsRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go index f8c49d2a42..0fe2f3837b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go @@ -12,10 +12,6 @@ import ( ) // ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest. type ListWorkRequestLogsRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go index 49e56868b1..5fd14a7d83 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go @@ -12,10 +12,6 @@ import ( ) // ListWorkRequestsRequest wrapper for the ListWorkRequests operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. type ListWorkRequestsRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system.go new file mode 100644 index 0000000000..fdc26f1ec1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system.go @@ -0,0 +1,256 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LustreFileSystem A Lustre file system is a parallel file system that is used as a storage solution for HPC/AI/ML workloads. +// For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.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.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm). +type LustreFileSystem struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the Lustre file system. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // 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:"true" json:"availabilityDomain"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My Lustre file system` + // + DisplayName *string `mandatory:"true" json:"displayName"` + + // Short description of the Lustre file system. + // Avoid entering confidential information. + FileSystemDescription *string `mandatory:"true" json:"fileSystemDescription"` + + // The date and time the Lustre file system was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the Lustre file system was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // The current state of the Lustre file system. + LifecycleState LustreFileSystemLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"true" json:"systemTags"` + + // Capacity of the Lustre file system in GB. + CapacityInGBs *int `mandatory:"true" json:"capacityInGBs"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the Lustre file system is in. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The Lustre file system performance tier. A value of `MBPS_PER_TB_125` represents 125 megabytes per second per terabyte. + PerformanceTier LustreFileSystemPerformanceTierEnum `mandatory:"true" json:"performanceTier"` + + // The IPv4 address of MGS (Lustre Management Service) used by clients to mount the file system. For example '10.0.0.4'. + ManagementServiceAddress *string `mandatory:"true" json:"managementServiceAddress"` + + // The Lustre file system name. This is used in mount commands and other aspects of the client command line interface. + // The default file system name is 'lustre'. The file system name is limited to 8 characters. Allowed characters are lower and upper case English letters, numbers, and '_'. + FileSystemName *string `mandatory:"true" json:"fileSystemName"` + + // Type of network used by clients to mount the file system. + // Example: `tcp` + Lnet *string `mandatory:"true" json:"lnet"` + + // Major version of Lustre running in the Lustre file system. + // Example: `2.15` + MajorVersion *string `mandatory:"true" json:"majorVersion"` + + MaintenanceWindow *MaintenanceWindow `mandatory:"true" json:"maintenanceWindow"` + + RootSquashConfiguration *RootSquashConfiguration `mandatory:"true" json:"rootSquashConfiguration"` + + // A message that describes the current state of the Lustre file system in more detail. For example, + // can be used to provide actionable information for a resource in the Failed state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // A list of Network Security Group OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this lustre file system. + // A maximum of 5 is allowed. + // Setting this to an empty array after the list is created removes the lustre file system from all NSGs. + // For more information about NSGs, see Security Rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The OCID (https://docs.oracle.com/iaas/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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster placement group in which the Lustre file system exists. + ClusterPlacementGroupId *string `mandatory:"false" json:"clusterPlacementGroupId"` + + // The date and time that the current billing cycle for the file system will end, expressed in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. After the current cycle ends, + // this date is updated automatically to the next timestamp, which is 30 days later. + // File systems deleted earlier than this time will still incur charges until the billing cycle ends. + // Example: `2016-08-25T21:10:29.600Z` + TimeBillingCycleEnd *common.SDKTime `mandatory:"false" json:"timeBillingCycleEnd"` +} + +func (m LustreFileSystem) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LustreFileSystem) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLustreFileSystemLifecycleStateEnum(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(GetLustreFileSystemLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingLustreFileSystemPerformanceTierEnum(string(m.PerformanceTier)); !ok && m.PerformanceTier != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PerformanceTier: %s. Supported values are: %s.", m.PerformanceTier, strings.Join(GetLustreFileSystemPerformanceTierEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LustreFileSystemLifecycleStateEnum Enum with underlying type: string +type LustreFileSystemLifecycleStateEnum string + +// Set of constants representing the allowable values for LustreFileSystemLifecycleStateEnum +const ( + LustreFileSystemLifecycleStateCreating LustreFileSystemLifecycleStateEnum = "CREATING" + LustreFileSystemLifecycleStateUpdating LustreFileSystemLifecycleStateEnum = "UPDATING" + LustreFileSystemLifecycleStateActive LustreFileSystemLifecycleStateEnum = "ACTIVE" + LustreFileSystemLifecycleStateInactive LustreFileSystemLifecycleStateEnum = "INACTIVE" + LustreFileSystemLifecycleStateDeleting LustreFileSystemLifecycleStateEnum = "DELETING" + LustreFileSystemLifecycleStateDeleted LustreFileSystemLifecycleStateEnum = "DELETED" + LustreFileSystemLifecycleStateFailed LustreFileSystemLifecycleStateEnum = "FAILED" +) + +var mappingLustreFileSystemLifecycleStateEnum = map[string]LustreFileSystemLifecycleStateEnum{ + "CREATING": LustreFileSystemLifecycleStateCreating, + "UPDATING": LustreFileSystemLifecycleStateUpdating, + "ACTIVE": LustreFileSystemLifecycleStateActive, + "INACTIVE": LustreFileSystemLifecycleStateInactive, + "DELETING": LustreFileSystemLifecycleStateDeleting, + "DELETED": LustreFileSystemLifecycleStateDeleted, + "FAILED": LustreFileSystemLifecycleStateFailed, +} + +var mappingLustreFileSystemLifecycleStateEnumLowerCase = map[string]LustreFileSystemLifecycleStateEnum{ + "creating": LustreFileSystemLifecycleStateCreating, + "updating": LustreFileSystemLifecycleStateUpdating, + "active": LustreFileSystemLifecycleStateActive, + "inactive": LustreFileSystemLifecycleStateInactive, + "deleting": LustreFileSystemLifecycleStateDeleting, + "deleted": LustreFileSystemLifecycleStateDeleted, + "failed": LustreFileSystemLifecycleStateFailed, +} + +// GetLustreFileSystemLifecycleStateEnumValues Enumerates the set of values for LustreFileSystemLifecycleStateEnum +func GetLustreFileSystemLifecycleStateEnumValues() []LustreFileSystemLifecycleStateEnum { + values := make([]LustreFileSystemLifecycleStateEnum, 0) + for _, v := range mappingLustreFileSystemLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetLustreFileSystemLifecycleStateEnumStringValues Enumerates the set of values in String for LustreFileSystemLifecycleStateEnum +func GetLustreFileSystemLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingLustreFileSystemLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLustreFileSystemLifecycleStateEnum(val string) (LustreFileSystemLifecycleStateEnum, bool) { + enum, ok := mappingLustreFileSystemLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LustreFileSystemPerformanceTierEnum Enum with underlying type: string +type LustreFileSystemPerformanceTierEnum string + +// Set of constants representing the allowable values for LustreFileSystemPerformanceTierEnum +const ( + LustreFileSystemPerformanceTier125 LustreFileSystemPerformanceTierEnum = "MBPS_PER_TB_125" + LustreFileSystemPerformanceTier250 LustreFileSystemPerformanceTierEnum = "MBPS_PER_TB_250" + LustreFileSystemPerformanceTier500 LustreFileSystemPerformanceTierEnum = "MBPS_PER_TB_500" + LustreFileSystemPerformanceTier1000 LustreFileSystemPerformanceTierEnum = "MBPS_PER_TB_1000" +) + +var mappingLustreFileSystemPerformanceTierEnum = map[string]LustreFileSystemPerformanceTierEnum{ + "MBPS_PER_TB_125": LustreFileSystemPerformanceTier125, + "MBPS_PER_TB_250": LustreFileSystemPerformanceTier250, + "MBPS_PER_TB_500": LustreFileSystemPerformanceTier500, + "MBPS_PER_TB_1000": LustreFileSystemPerformanceTier1000, +} + +var mappingLustreFileSystemPerformanceTierEnumLowerCase = map[string]LustreFileSystemPerformanceTierEnum{ + "mbps_per_tb_125": LustreFileSystemPerformanceTier125, + "mbps_per_tb_250": LustreFileSystemPerformanceTier250, + "mbps_per_tb_500": LustreFileSystemPerformanceTier500, + "mbps_per_tb_1000": LustreFileSystemPerformanceTier1000, +} + +// GetLustreFileSystemPerformanceTierEnumValues Enumerates the set of values for LustreFileSystemPerformanceTierEnum +func GetLustreFileSystemPerformanceTierEnumValues() []LustreFileSystemPerformanceTierEnum { + values := make([]LustreFileSystemPerformanceTierEnum, 0) + for _, v := range mappingLustreFileSystemPerformanceTierEnum { + values = append(values, v) + } + return values +} + +// GetLustreFileSystemPerformanceTierEnumStringValues Enumerates the set of values in String for LustreFileSystemPerformanceTierEnum +func GetLustreFileSystemPerformanceTierEnumStringValues() []string { + return []string{ + "MBPS_PER_TB_125", + "MBPS_PER_TB_250", + "MBPS_PER_TB_500", + "MBPS_PER_TB_1000", + } +} + +// GetMappingLustreFileSystemPerformanceTierEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLustreFileSystemPerformanceTierEnum(val string) (LustreFileSystemPerformanceTierEnum, bool) { + enum, ok := mappingLustreFileSystemPerformanceTierEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system_collection.go new file mode 100644 index 0000000000..f201792f51 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LustreFileSystemCollection Results of a Lustre file system search. Contains both LustreFileSystemSummary items and other information, such as metadata. +type LustreFileSystemCollection struct { + + // List of Lustre file systems. + Items []LustreFileSystemSummary `mandatory:"true" json:"items"` +} + +func (m LustreFileSystemCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LustreFileSystemCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system_summary.go new file mode 100644 index 0000000000..afd694cbcf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustre_file_system_summary.go @@ -0,0 +1,188 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LustreFileSystemSummary Summary information about a Lustre file system. +type LustreFileSystemSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the Lustre file system. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // 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:"true" json:"availabilityDomain"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My Lustre file system` + DisplayName *string `mandatory:"true" json:"displayName"` + + // Short description of the Lustre file system. + // Avoid entering confidential information. + FileSystemDescription *string `mandatory:"true" json:"fileSystemDescription"` + + // The date and time the Lustre file system was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the Lustre file system was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // The current state of the Lustre file system. + LifecycleState LustreFileSystemLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"true" json:"systemTags"` + + // The Lustre file system name. This is used in mount commands and other aspects of the client command line interface. + // The default file system name is 'lustre'. The file system name is limited to 8 characters. Allowed characters are lower and upper case English letters, numbers, and '_'. + FileSystemName *string `mandatory:"true" json:"fileSystemName"` + + // Capacity of the Lustre file system in GB. + CapacityInGBs *int `mandatory:"true" json:"capacityInGBs"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the Lustre file system is in. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The Lustre file system performance tier. A value of `MBPS_PER_TB_125` represents 125 megabytes per second per terabyte. + PerformanceTier LustreFileSystemSummaryPerformanceTierEnum `mandatory:"true" json:"performanceTier"` + + // The date and time the LustreFileSystem current billing cycle will end, expressed in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. Once a cycle ends, + // it is updated automatically to next timestamp which is after 30 days. + // File systems deleted earlier will still incur charges till this date. + // Example: `2016-08-25T21:10:29.600Z` + TimeBillingCycleEnd *common.SDKTime `mandatory:"true" json:"timeBillingCycleEnd"` + + // The IPv4 address of MGS (Lustre Management Service) used by clients to mount the file system. + // Example: `10.0.0.4` + ManagementServiceAddress *string `mandatory:"true" json:"managementServiceAddress"` + + // Type of network used by clients to mount the file system. + // Example: `tcp` + Lnet *string `mandatory:"true" json:"lnet"` + + // Major version of Lustre running in the Lustre file system. + // Example: `2.15` + MajorVersion *string `mandatory:"true" json:"majorVersion"` + + RootSquashConfiguration *RootSquashConfiguration `mandatory:"true" json:"rootSquashConfiguration"` + + // A message that describes the current state of the Lustre file system in more detail. For example, + // can be used to provide actionable information for a resource in the Failed state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // A list of Network Security Group OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this lustre file system. + // A maximum of 5 is allowed. + // Setting this to an empty array after the list is created removes the lustre file system from all NSGs. + // For more information about NSGs, see Security Rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The OCID (https://docs.oracle.com/iaas/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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster placement group in which the Lustre file system exists. + ClusterPlacementGroupId *string `mandatory:"false" json:"clusterPlacementGroupId"` +} + +func (m LustreFileSystemSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LustreFileSystemSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLustreFileSystemLifecycleStateEnum(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(GetLustreFileSystemLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingLustreFileSystemSummaryPerformanceTierEnum(string(m.PerformanceTier)); !ok && m.PerformanceTier != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PerformanceTier: %s. Supported values are: %s.", m.PerformanceTier, strings.Join(GetLustreFileSystemSummaryPerformanceTierEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LustreFileSystemSummaryPerformanceTierEnum Enum with underlying type: string +type LustreFileSystemSummaryPerformanceTierEnum string + +// Set of constants representing the allowable values for LustreFileSystemSummaryPerformanceTierEnum +const ( + LustreFileSystemSummaryPerformanceTier125 LustreFileSystemSummaryPerformanceTierEnum = "MBPS_PER_TB_125" + LustreFileSystemSummaryPerformanceTier250 LustreFileSystemSummaryPerformanceTierEnum = "MBPS_PER_TB_250" + LustreFileSystemSummaryPerformanceTier500 LustreFileSystemSummaryPerformanceTierEnum = "MBPS_PER_TB_500" + LustreFileSystemSummaryPerformanceTier1000 LustreFileSystemSummaryPerformanceTierEnum = "MBPS_PER_TB_1000" +) + +var mappingLustreFileSystemSummaryPerformanceTierEnum = map[string]LustreFileSystemSummaryPerformanceTierEnum{ + "MBPS_PER_TB_125": LustreFileSystemSummaryPerformanceTier125, + "MBPS_PER_TB_250": LustreFileSystemSummaryPerformanceTier250, + "MBPS_PER_TB_500": LustreFileSystemSummaryPerformanceTier500, + "MBPS_PER_TB_1000": LustreFileSystemSummaryPerformanceTier1000, +} + +var mappingLustreFileSystemSummaryPerformanceTierEnumLowerCase = map[string]LustreFileSystemSummaryPerformanceTierEnum{ + "mbps_per_tb_125": LustreFileSystemSummaryPerformanceTier125, + "mbps_per_tb_250": LustreFileSystemSummaryPerformanceTier250, + "mbps_per_tb_500": LustreFileSystemSummaryPerformanceTier500, + "mbps_per_tb_1000": LustreFileSystemSummaryPerformanceTier1000, +} + +// GetLustreFileSystemSummaryPerformanceTierEnumValues Enumerates the set of values for LustreFileSystemSummaryPerformanceTierEnum +func GetLustreFileSystemSummaryPerformanceTierEnumValues() []LustreFileSystemSummaryPerformanceTierEnum { + values := make([]LustreFileSystemSummaryPerformanceTierEnum, 0) + for _, v := range mappingLustreFileSystemSummaryPerformanceTierEnum { + values = append(values, v) + } + return values +} + +// GetLustreFileSystemSummaryPerformanceTierEnumStringValues Enumerates the set of values in String for LustreFileSystemSummaryPerformanceTierEnum +func GetLustreFileSystemSummaryPerformanceTierEnumStringValues() []string { + return []string{ + "MBPS_PER_TB_125", + "MBPS_PER_TB_250", + "MBPS_PER_TB_500", + "MBPS_PER_TB_1000", + } +} + +// GetMappingLustreFileSystemSummaryPerformanceTierEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLustreFileSystemSummaryPerformanceTierEnum(val string) (LustreFileSystemSummaryPerformanceTierEnum, bool) { + enum, ok := mappingLustreFileSystemSummaryPerformanceTierEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_capacityreservationinfo_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_capacityreservationinfo_client.go new file mode 100644 index 0000000000..10c404e5af --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_capacityreservationinfo_client.go @@ -0,0 +1,367 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// CapacityReservationInfoClient a client for CapacityReservationInfo +type CapacityReservationInfoClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewCapacityReservationInfoClientWithConfigurationProvider Creates a new default CapacityReservationInfo client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewCapacityReservationInfoClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CapacityReservationInfoClient, err error) { + if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newCapacityReservationInfoClientFromBaseClient(baseClient, provider) +} + +// NewCapacityReservationInfoClientWithOboToken Creates a new default CapacityReservationInfo 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 NewCapacityReservationInfoClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CapacityReservationInfoClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newCapacityReservationInfoClientFromBaseClient(baseClient, configProvider) +} + +func newCapacityReservationInfoClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client CapacityReservationInfoClient, err error) { + // CapacityReservationInfo service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("CapacityReservationInfo")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = CapacityReservationInfoClient{BaseClient: baseClient} + client.BasePath = "20250228" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *CapacityReservationInfoClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *CapacityReservationInfoClient) 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 *CapacityReservationInfoClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CreateCapacityReservationInfo Creates a Capacity Reservation Info. +// A default retry strategy applies to this operation CreateCapacityReservationInfo() +func (client CapacityReservationInfoClient) CreateCapacityReservationInfo(ctx context.Context, request CreateCapacityReservationInfoRequest) (response CreateCapacityReservationInfoResponse, 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.createCapacityReservationInfo, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateCapacityReservationInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateCapacityReservationInfoResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateCapacityReservationInfoResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateCapacityReservationInfoResponse") + } + return +} + +// createCapacityReservationInfo implements the OCIOperation interface (enables retrying operations) +func (client CapacityReservationInfoClient) createCapacityReservationInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/capacityReservationInfos", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateCapacityReservationInfoResponse + 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/lustre/20250228/CapacityReservationInfo/CreateCapacityReservationInfo" + err = common.PostProcessServiceError(err, "CapacityReservationInfo", "CreateCapacityReservationInfo", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteCapacityReservationInfo Deletes a CapacityReservationInfo. +// A default retry strategy applies to this operation DeleteCapacityReservationInfo() +func (client CapacityReservationInfoClient) DeleteCapacityReservationInfo(ctx context.Context, request DeleteCapacityReservationInfoRequest) (response DeleteCapacityReservationInfoResponse, 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.deleteCapacityReservationInfo, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteCapacityReservationInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteCapacityReservationInfoResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteCapacityReservationInfoResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteCapacityReservationInfoResponse") + } + return +} + +// deleteCapacityReservationInfo implements the OCIOperation interface (enables retrying operations) +func (client CapacityReservationInfoClient) deleteCapacityReservationInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/capacityReservationInfos/{capacityReservationId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteCapacityReservationInfoResponse + 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/lustre/20250228/CapacityReservationInfo/DeleteCapacityReservationInfo" + err = common.PostProcessServiceError(err, "CapacityReservationInfo", "DeleteCapacityReservationInfo", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetCapacityReservationInfo Gets information about a CapacityReservationInfo. +// A default retry strategy applies to this operation GetCapacityReservationInfo() +func (client CapacityReservationInfoClient) GetCapacityReservationInfo(ctx context.Context, request GetCapacityReservationInfoRequest) (response GetCapacityReservationInfoResponse, 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.getCapacityReservationInfo, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetCapacityReservationInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetCapacityReservationInfoResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetCapacityReservationInfoResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetCapacityReservationInfoResponse") + } + return +} + +// getCapacityReservationInfo implements the OCIOperation interface (enables retrying operations) +func (client CapacityReservationInfoClient) getCapacityReservationInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/capacityReservationInfos/{capacityReservationId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetCapacityReservationInfoResponse + 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/lustre/20250228/CapacityReservationInfo/GetCapacityReservationInfo" + err = common.PostProcessServiceError(err, "CapacityReservationInfo", "GetCapacityReservationInfo", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListCapacityReservationInfos Gets a list of Capacity Reservation Info. +// A default retry strategy applies to this operation ListCapacityReservationInfos() +func (client CapacityReservationInfoClient) ListCapacityReservationInfos(ctx context.Context, request ListCapacityReservationInfosRequest) (response ListCapacityReservationInfosResponse, 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.listCapacityReservationInfos, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListCapacityReservationInfosResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListCapacityReservationInfosResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListCapacityReservationInfosResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListCapacityReservationInfosResponse") + } + return +} + +// listCapacityReservationInfos implements the OCIOperation interface (enables retrying operations) +func (client CapacityReservationInfoClient) listCapacityReservationInfos(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/capacityReservationInfos", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListCapacityReservationInfosResponse + 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/lustre/20250228/CapacityReservationInfoCollection/ListCapacityReservationInfos" + err = common.PostProcessServiceError(err, "CapacityReservationInfo", "ListCapacityReservationInfos", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateCapacityReservationInfo Updates a CapacityReservationInfo. +// A default retry strategy applies to this operation UpdateCapacityReservationInfo() +func (client CapacityReservationInfoClient) UpdateCapacityReservationInfo(ctx context.Context, request UpdateCapacityReservationInfoRequest) (response UpdateCapacityReservationInfoResponse, 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.updateCapacityReservationInfo, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateCapacityReservationInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateCapacityReservationInfoResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateCapacityReservationInfoResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateCapacityReservationInfoResponse") + } + return +} + +// updateCapacityReservationInfo implements the OCIOperation interface (enables retrying operations) +func (client CapacityReservationInfoClient) updateCapacityReservationInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/capacityReservationInfos/{capacityReservationId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateCapacityReservationInfoResponse + 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/lustre/20250228/CapacityReservationInfo/UpdateCapacityReservationInfo" + err = common.PostProcessServiceError(err, "CapacityReservationInfo", "UpdateCapacityReservationInfo", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go index 502e6cef14..b9bb3c8c4a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go @@ -92,10 +92,6 @@ func (client *LustreFileStorageClient) ConfigurationProvider() *common.Configura } // CancelWorkRequest Cancels a work request. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequest API. // A default retry strategy applies to this operation CancelWorkRequest() func (client LustreFileStorageClient) CancelWorkRequest(ctx context.Context, request CancelWorkRequestRequest) (response CancelWorkRequestResponse, err error) { var ociResponse common.OCIResponse @@ -151,10 +147,6 @@ func (client LustreFileStorageClient) cancelWorkRequest(ctx context.Context, req // ChangeLustreFileSystemCompartment Moves a Lustre file system into a different compartment within the same tenancy. For information about moving resources between // compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeLustreFileSystemCompartment.go.html to see an example of how to use ChangeLustreFileSystemCompartment API. // A default retry strategy applies to this operation ChangeLustreFileSystemCompartment() func (client LustreFileStorageClient) ChangeLustreFileSystemCompartment(ctx context.Context, request ChangeLustreFileSystemCompartmentRequest) (response ChangeLustreFileSystemCompartmentResponse, err error) { var ociResponse common.OCIResponse @@ -210,10 +202,6 @@ func (client LustreFileStorageClient) changeLustreFileSystemCompartment(ctx cont // ChangeObjectStorageLinkCompartment Moves an Object Storage link into a different compartment within the same tenancy. For information about moving resources between // compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeObjectStorageLinkCompartment.go.html to see an example of how to use ChangeObjectStorageLinkCompartment API. // A default retry strategy applies to this operation ChangeObjectStorageLinkCompartment() func (client LustreFileStorageClient) ChangeObjectStorageLinkCompartment(ctx context.Context, request ChangeObjectStorageLinkCompartmentRequest) (response ChangeObjectStorageLinkCompartmentResponse, err error) { var ociResponse common.OCIResponse @@ -273,10 +261,6 @@ func (client LustreFileStorageClient) changeObjectStorageLinkCompartment(ctx con } // CreateLustreFileSystem Creates a Lustre file system. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateLustreFileSystem.go.html to see an example of how to use CreateLustreFileSystem API. // A default retry strategy applies to this operation CreateLustreFileSystem() func (client LustreFileStorageClient) CreateLustreFileSystem(ctx context.Context, request CreateLustreFileSystemRequest) (response CreateLustreFileSystemResponse, err error) { var ociResponse common.OCIResponse @@ -336,10 +320,6 @@ func (client LustreFileStorageClient) createLustreFileSystem(ctx context.Context } // CreateObjectStorageLink Creates an Object Storage link. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateObjectStorageLink.go.html to see an example of how to use CreateObjectStorageLink API. // A default retry strategy applies to this operation CreateObjectStorageLink() func (client LustreFileStorageClient) CreateObjectStorageLink(ctx context.Context, request CreateObjectStorageLinkRequest) (response CreateObjectStorageLinkResponse, err error) { var ociResponse common.OCIResponse @@ -399,10 +379,6 @@ func (client LustreFileStorageClient) createObjectStorageLink(ctx context.Contex } // DeleteLustreFileSystem Deletes a Lustre file system. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteLustreFileSystem.go.html to see an example of how to use DeleteLustreFileSystem API. // A default retry strategy applies to this operation DeleteLustreFileSystem() func (client LustreFileStorageClient) DeleteLustreFileSystem(ctx context.Context, request DeleteLustreFileSystemRequest) (response DeleteLustreFileSystemResponse, err error) { var ociResponse common.OCIResponse @@ -457,10 +433,6 @@ func (client LustreFileStorageClient) deleteLustreFileSystem(ctx context.Context } // DeleteObjectStorageLink Deletes an Object Storage link. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteObjectStorageLink.go.html to see an example of how to use DeleteObjectStorageLink API. // A default retry strategy applies to this operation DeleteObjectStorageLink() func (client LustreFileStorageClient) DeleteObjectStorageLink(ctx context.Context, request DeleteObjectStorageLinkRequest) (response DeleteObjectStorageLinkResponse, err error) { var ociResponse common.OCIResponse @@ -515,10 +487,6 @@ func (client LustreFileStorageClient) deleteObjectStorageLink(ctx context.Contex } // GetLustreFileSystem Gets information about a Lustre file system. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetLustreFileSystem.go.html to see an example of how to use GetLustreFileSystem API. // A default retry strategy applies to this operation GetLustreFileSystem() func (client LustreFileStorageClient) GetLustreFileSystem(ctx context.Context, request GetLustreFileSystemRequest) (response GetLustreFileSystemResponse, err error) { var ociResponse common.OCIResponse @@ -573,10 +541,6 @@ func (client LustreFileStorageClient) getLustreFileSystem(ctx context.Context, r } // GetObjectStorageLink Gets information about an Object Storage link. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetObjectStorageLink.go.html to see an example of how to use GetObjectStorageLink API. // A default retry strategy applies to this operation GetObjectStorageLink() func (client LustreFileStorageClient) GetObjectStorageLink(ctx context.Context, request GetObjectStorageLinkRequest) (response GetObjectStorageLinkResponse, err error) { var ociResponse common.OCIResponse @@ -631,10 +595,6 @@ func (client LustreFileStorageClient) getObjectStorageLink(ctx context.Context, } // GetSyncJob Gets details of a sync job associated with an Object Storage link when `objectStorageLink` and a unique ID are provided. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetSyncJob.go.html to see an example of how to use GetSyncJob API. // A default retry strategy applies to this operation GetSyncJob() func (client LustreFileStorageClient) GetSyncJob(ctx context.Context, request GetSyncJobRequest) (response GetSyncJobResponse, err error) { var ociResponse common.OCIResponse @@ -689,10 +649,6 @@ func (client LustreFileStorageClient) getSyncJob(ctx context.Context, request co } // GetWorkRequest Gets the details of a work request. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. // A default retry strategy applies to this operation GetWorkRequest() func (client LustreFileStorageClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { var ociResponse common.OCIResponse @@ -747,10 +703,6 @@ func (client LustreFileStorageClient) getWorkRequest(ctx context.Context, reques } // ListLustreFileSystems Gets a list of Lustre file systems. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListLustreFileSystems.go.html to see an example of how to use ListLustreFileSystems API. // A default retry strategy applies to this operation ListLustreFileSystems() func (client LustreFileStorageClient) ListLustreFileSystems(ctx context.Context, request ListLustreFileSystemsRequest) (response ListLustreFileSystemsResponse, err error) { var ociResponse common.OCIResponse @@ -805,10 +757,6 @@ func (client LustreFileStorageClient) listLustreFileSystems(ctx context.Context, } // ListObjectStorageLinks Gets a list of Object Storage links. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListObjectStorageLinks.go.html to see an example of how to use ListObjectStorageLinks API. // A default retry strategy applies to this operation ListObjectStorageLinks() func (client LustreFileStorageClient) ListObjectStorageLinks(ctx context.Context, request ListObjectStorageLinksRequest) (response ListObjectStorageLinksResponse, err error) { var ociResponse common.OCIResponse @@ -863,10 +811,6 @@ func (client LustreFileStorageClient) listObjectStorageLinks(ctx context.Context } // ListSyncJobs Lists all sync jobs associated with the Object Storage link. Contains a unique ID for each sync job. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListSyncJobs.go.html to see an example of how to use ListSyncJobs API. // A default retry strategy applies to this operation ListSyncJobs() func (client LustreFileStorageClient) ListSyncJobs(ctx context.Context, request ListSyncJobsRequest) (response ListSyncJobsResponse, err error) { var ociResponse common.OCIResponse @@ -921,10 +865,6 @@ func (client LustreFileStorageClient) listSyncJobs(ctx context.Context, request } // ListWorkRequestErrors Lists the errors for a work request. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. // A default retry strategy applies to this operation ListWorkRequestErrors() func (client LustreFileStorageClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error) { var ociResponse common.OCIResponse @@ -979,10 +919,6 @@ func (client LustreFileStorageClient) listWorkRequestErrors(ctx context.Context, } // ListWorkRequestLogs Lists the logs for a work request. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. // A default retry strategy applies to this operation ListWorkRequestLogs() func (client LustreFileStorageClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error) { var ociResponse common.OCIResponse @@ -1037,10 +973,6 @@ func (client LustreFileStorageClient) listWorkRequestLogs(ctx context.Context, r } // ListWorkRequests Lists the work requests in a compartment. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. // A default retry strategy applies to this operation ListWorkRequests() func (client LustreFileStorageClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { var ociResponse common.OCIResponse @@ -1094,12 +1026,68 @@ func (client LustreFileStorageClient) listWorkRequests(ctx context.Context, requ return response, err } +// PauseSyncJob Pauses the object sync job in progress. The object sync job can either have Object Storage or Lustre File +// System as either source or target. +// A default retry strategy applies to this operation PauseSyncJob() +func (client LustreFileStorageClient) PauseSyncJob(ctx context.Context, request PauseSyncJobRequest) (response PauseSyncJobResponse, 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.pauseSyncJob, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = PauseSyncJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = PauseSyncJobResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(PauseSyncJobResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into PauseSyncJobResponse") + } + return +} + +// pauseSyncJob implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) pauseSyncJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/objectStorageLinks/{objectStorageLinkId}/actions/pauseSyncJob", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response PauseSyncJobResponse + 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/lustre/20250228/ObjectStorageLink/PauseSyncJob" + err = common.PostProcessServiceError(err, "LustreFileStorage", "PauseSyncJob", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // StartExportToObject Starts the export of data from the Lustre file system to Object Storage. // The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartExportToObject.go.html to see an example of how to use StartExportToObject API. // A default retry strategy applies to this operation StartExportToObject() func (client LustreFileStorageClient) StartExportToObject(ctx context.Context, request StartExportToObjectRequest) (response StartExportToObjectResponse, err error) { var ociResponse common.OCIResponse @@ -1160,10 +1148,6 @@ func (client LustreFileStorageClient) startExportToObject(ctx context.Context, r // StartImportFromObject Starts the import of data from Object Storage to the Lustre file system. // The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartImportFromObject.go.html to see an example of how to use StartImportFromObject API. // A default retry strategy applies to this operation StartImportFromObject() func (client LustreFileStorageClient) StartImportFromObject(ctx context.Context, request StartImportFromObjectRequest) (response StartImportFromObjectResponse, err error) { var ociResponse common.OCIResponse @@ -1224,10 +1208,6 @@ func (client LustreFileStorageClient) startImportFromObject(ctx context.Context, // StopExportToObject Stops the export of data from the Lustre file system to Object Storage. // The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopExportToObject.go.html to see an example of how to use StopExportToObject API. // A default retry strategy applies to this operation StopExportToObject() func (client LustreFileStorageClient) StopExportToObject(ctx context.Context, request StopExportToObjectRequest) (response StopExportToObjectResponse, err error) { var ociResponse common.OCIResponse @@ -1288,10 +1268,6 @@ func (client LustreFileStorageClient) stopExportToObject(ctx context.Context, re // StopImportFromObject Stops the import of data from Object Storage to the Lustre file system. // The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopImportFromObject.go.html to see an example of how to use StopImportFromObject API. // A default retry strategy applies to this operation StopImportFromObject() func (client LustreFileStorageClient) StopImportFromObject(ctx context.Context, request StopImportFromObjectRequest) (response StopImportFromObjectResponse, err error) { var ociResponse common.OCIResponse @@ -1350,11 +1326,67 @@ func (client LustreFileStorageClient) stopImportFromObject(ctx context.Context, return response, err } +// UnpauseSyncJob Unpauses the object sync job in progress. The object sync job can either have Object Storage or Lustre File +// System as either source or target. +// A default retry strategy applies to this operation UnpauseSyncJob() +func (client LustreFileStorageClient) UnpauseSyncJob(ctx context.Context, request UnpauseSyncJobRequest) (response UnpauseSyncJobResponse, 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.unpauseSyncJob, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UnpauseSyncJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UnpauseSyncJobResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UnpauseSyncJobResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UnpauseSyncJobResponse") + } + return +} + +// unpauseSyncJob implements the OCIOperation interface (enables retrying operations) +func (client LustreFileStorageClient) unpauseSyncJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/objectStorageLinks/{objectStorageLinkId}/actions/unpauseSyncJob", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UnpauseSyncJobResponse + 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/lustre/20250228/ObjectStorageLink/UnpauseSyncJob" + err = common.PostProcessServiceError(err, "LustreFileStorage", "UnpauseSyncJob", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateLustreFileSystem Updates a Lustre file system. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateLustreFileSystem.go.html to see an example of how to use UpdateLustreFileSystem API. // A default retry strategy applies to this operation UpdateLustreFileSystem() func (client LustreFileStorageClient) UpdateLustreFileSystem(ctx context.Context, request UpdateLustreFileSystemRequest) (response UpdateLustreFileSystemResponse, err error) { var ociResponse common.OCIResponse @@ -1409,10 +1441,6 @@ func (client LustreFileStorageClient) updateLustreFileSystem(ctx context.Context } // UpdateObjectStorageLink Updates an Object Storage link. -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateObjectStorageLink.go.html to see an example of how to use UpdateObjectStorageLink API. // A default retry strategy applies to this operation UpdateObjectStorageLink() func (client LustreFileStorageClient) UpdateObjectStorageLink(ctx context.Context, request UpdateObjectStorageLinkRequest) (response UpdateObjectStorageLinkResponse, err error) { var ociResponse common.OCIResponse diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_configmgmt_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_configmgmt_client.go new file mode 100644 index 0000000000..09a0d610c6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_configmgmt_client.go @@ -0,0 +1,313 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// ConfigMgmtClient a client for ConfigMgmt +type ConfigMgmtClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewConfigMgmtClientWithConfigurationProvider Creates a new default ConfigMgmt client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewConfigMgmtClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ConfigMgmtClient, err error) { + if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newConfigMgmtClientFromBaseClient(baseClient, provider) +} + +// NewConfigMgmtClientWithOboToken Creates a new default ConfigMgmt 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 NewConfigMgmtClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ConfigMgmtClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newConfigMgmtClientFromBaseClient(baseClient, configProvider) +} + +func newConfigMgmtClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client ConfigMgmtClient, err error) { + // ConfigMgmt service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("ConfigMgmt")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = ConfigMgmtClient{BaseClient: baseClient} + client.BasePath = "20250228" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *ConfigMgmtClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *ConfigMgmtClient) 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 *ConfigMgmtClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// DeleteTenancyConfiguration Delete the tenancy configuration mapping for given tenancy +// A default retry strategy applies to this operation DeleteTenancyConfiguration() +func (client ConfigMgmtClient) DeleteTenancyConfiguration(ctx context.Context, request DeleteTenancyConfigurationRequest) (response DeleteTenancyConfigurationResponse, 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.deleteTenancyConfiguration, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteTenancyConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteTenancyConfigurationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteTenancyConfigurationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteTenancyConfigurationResponse") + } + return +} + +// deleteTenancyConfiguration implements the OCIOperation interface (enables retrying operations) +func (client ConfigMgmtClient) deleteTenancyConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/configManagement/tenancyConfigurations/{tenancyId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteTenancyConfigurationResponse + 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/lustre/20250228/TenancyConfigurationSummary/DeleteTenancyConfiguration" + err = common.PostProcessServiceError(err, "ConfigMgmt", "DeleteTenancyConfiguration", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListProfiles Retrieve all available profiles for the file system configuration. +// A default retry strategy applies to this operation ListProfiles() +func (client ConfigMgmtClient) ListProfiles(ctx context.Context, request ListProfilesRequest) (response ListProfilesResponse, 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.listProfiles, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListProfilesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListProfilesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListProfilesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListProfilesResponse") + } + return +} + +// listProfiles implements the OCIOperation interface (enables retrying operations) +func (client ConfigMgmtClient) listProfiles(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/configManagement/profiles", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListProfilesResponse + 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/lustre/20250228/ProfileCollection/ListProfiles" + err = common.PostProcessServiceError(err, "ConfigMgmt", "ListProfiles", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListTenancyConfigurations Returns all the tenancy configuration along with profile and capacity reservation associated. +// A default retry strategy applies to this operation ListTenancyConfigurations() +func (client ConfigMgmtClient) ListTenancyConfigurations(ctx context.Context, request ListTenancyConfigurationsRequest) (response ListTenancyConfigurationsResponse, 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.listTenancyConfigurations, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListTenancyConfigurationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListTenancyConfigurationsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListTenancyConfigurationsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListTenancyConfigurationsResponse") + } + return +} + +// listTenancyConfigurations implements the OCIOperation interface (enables retrying operations) +func (client ConfigMgmtClient) listTenancyConfigurations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/configManagement/tenancyConfigurations", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListTenancyConfigurationsResponse + 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/lustre/20250228/MapTenancyConfigurationCollection/ListTenancyConfigurations" + err = common.PostProcessServiceError(err, "ConfigMgmt", "ListTenancyConfigurations", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// MapTenancyConfiguration Assigns given configuration to a tenancy. +// A default retry strategy applies to this operation MapTenancyConfiguration() +func (client ConfigMgmtClient) MapTenancyConfiguration(ctx context.Context, request MapTenancyConfigurationRequest) (response MapTenancyConfigurationResponse, 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.mapTenancyConfiguration, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = MapTenancyConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = MapTenancyConfigurationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(MapTenancyConfigurationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into MapTenancyConfigurationResponse") + } + return +} + +// mapTenancyConfiguration implements the OCIOperation interface (enables retrying operations) +func (client ConfigMgmtClient) mapTenancyConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/configManagement/tenancyConfigurations", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response MapTenancyConfigurationResponse + 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/lustre/20250228/CreateMapTenancyConfiguration/MapTenancyConfiguration" + err = common.PostProcessServiceError(err, "ConfigMgmt", "MapTenancyConfiguration", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_cpgoverride_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_cpgoverride_client.go new file mode 100644 index 0000000000..3e380c5f3c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_cpgoverride_client.go @@ -0,0 +1,367 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// CpgOverrideClient a client for CpgOverride +type CpgOverrideClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewCpgOverrideClientWithConfigurationProvider Creates a new default CpgOverride client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewCpgOverrideClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CpgOverrideClient, err error) { + if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newCpgOverrideClientFromBaseClient(baseClient, provider) +} + +// NewCpgOverrideClientWithOboToken Creates a new default CpgOverride 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 NewCpgOverrideClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CpgOverrideClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newCpgOverrideClientFromBaseClient(baseClient, configProvider) +} + +func newCpgOverrideClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client CpgOverrideClient, err error) { + // CpgOverride service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("CpgOverride")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = CpgOverrideClient{BaseClient: baseClient} + client.BasePath = "20250228" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *CpgOverrideClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *CpgOverrideClient) 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 *CpgOverrideClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CreateCpgOverride Creates a CPG Override. +// A default retry strategy applies to this operation CreateCpgOverride() +func (client CpgOverrideClient) CreateCpgOverride(ctx context.Context, request CreateCpgOverrideRequest) (response CreateCpgOverrideResponse, 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.createCpgOverride, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateCpgOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateCpgOverrideResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateCpgOverrideResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateCpgOverrideResponse") + } + return +} + +// createCpgOverride implements the OCIOperation interface (enables retrying operations) +func (client CpgOverrideClient) createCpgOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/cpgOverrides", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateCpgOverrideResponse + 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/lustre/20250228/CpgOverride/CreateCpgOverride" + err = common.PostProcessServiceError(err, "CpgOverride", "CreateCpgOverride", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteCpgOverride Deletes a CPG Override. +// A default retry strategy applies to this operation DeleteCpgOverride() +func (client CpgOverrideClient) DeleteCpgOverride(ctx context.Context, request DeleteCpgOverrideRequest) (response DeleteCpgOverrideResponse, 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.deleteCpgOverride, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteCpgOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteCpgOverrideResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteCpgOverrideResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteCpgOverrideResponse") + } + return +} + +// deleteCpgOverride implements the OCIOperation interface (enables retrying operations) +func (client CpgOverrideClient) deleteCpgOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/cpgOverrides/{customerCpgId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteCpgOverrideResponse + 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/lustre/20250228/CpgOverride/DeleteCpgOverride" + err = common.PostProcessServiceError(err, "CpgOverride", "DeleteCpgOverride", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetCpgOverride Gets information about a CPG Override. +// A default retry strategy applies to this operation GetCpgOverride() +func (client CpgOverrideClient) GetCpgOverride(ctx context.Context, request GetCpgOverrideRequest) (response GetCpgOverrideResponse, 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.getCpgOverride, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetCpgOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetCpgOverrideResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetCpgOverrideResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetCpgOverrideResponse") + } + return +} + +// getCpgOverride implements the OCIOperation interface (enables retrying operations) +func (client CpgOverrideClient) getCpgOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/cpgOverrides/{customerCpgId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetCpgOverrideResponse + 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/lustre/20250228/CpgOverride/GetCpgOverride" + err = common.PostProcessServiceError(err, "CpgOverride", "GetCpgOverride", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListCpgOverrides Gets a list of CPG Overrides. +// A default retry strategy applies to this operation ListCpgOverrides() +func (client CpgOverrideClient) ListCpgOverrides(ctx context.Context, request ListCpgOverridesRequest) (response ListCpgOverridesResponse, 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.listCpgOverrides, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListCpgOverridesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListCpgOverridesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListCpgOverridesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListCpgOverridesResponse") + } + return +} + +// listCpgOverrides implements the OCIOperation interface (enables retrying operations) +func (client CpgOverrideClient) listCpgOverrides(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/cpgOverrides", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListCpgOverridesResponse + 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/lustre/20250228/CpgOverrideCollection/ListCpgOverrides" + err = common.PostProcessServiceError(err, "CpgOverride", "ListCpgOverrides", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateCpgOverride Updates a CPG Override. +// A default retry strategy applies to this operation UpdateCpgOverride() +func (client CpgOverrideClient) UpdateCpgOverride(ctx context.Context, request UpdateCpgOverrideRequest) (response UpdateCpgOverrideResponse, 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.updateCpgOverride, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateCpgOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateCpgOverrideResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateCpgOverrideResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateCpgOverrideResponse") + } + return +} + +// updateCpgOverride implements the OCIOperation interface (enables retrying operations) +func (client CpgOverrideClient) updateCpgOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/cpgOverrides/{customerCpgId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateCpgOverrideResponse + 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/lustre/20250228/CpgOverride/UpdateCpgOverride" + err = common.PostProcessServiceError(err, "CpgOverride", "UpdateCpgOverride", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_internal_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_internal_client.go new file mode 100644 index 0000000000..a3d5ff04e6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_internal_client.go @@ -0,0 +1,146 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// InternalClient a client for Internal +type InternalClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewInternalClientWithConfigurationProvider Creates a new default Internal client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewInternalClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client InternalClient, err error) { + if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newInternalClientFromBaseClient(baseClient, provider) +} + +// NewInternalClientWithOboToken Creates a new default Internal 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 NewInternalClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client InternalClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newInternalClientFromBaseClient(baseClient, configProvider) +} + +func newInternalClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client InternalClient, err error) { + // Internal service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("Internal")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = InternalClient{BaseClient: baseClient} + client.BasePath = "20250228" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *InternalClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *InternalClient) 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 *InternalClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// InjectFault Inject Fault in the system to test its robustness, like terminating host to trigger failover. Will be called by canaries. +// A default retry strategy applies to this operation InjectFault() +func (client InternalClient) InjectFault(ctx context.Context, request InjectFaultRequest) (response InjectFaultResponse, 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.injectFault, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = InjectFaultResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = InjectFaultResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(InjectFaultResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into InjectFaultResponse") + } + return +} + +// injectFault implements the OCIOperation interface (enables retrying operations) +func (client InternalClient) injectFault(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/internal/injectFault/{lustreFileSystemId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response InjectFaultResponse + 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/lustre/20250228/LustreFileSystem/InjectFault" + err = common.PostProcessServiceError(err, "Internal", "InjectFault", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfscpginfo_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfscpginfo_client.go new file mode 100644 index 0000000000..d8f161391a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfscpginfo_client.go @@ -0,0 +1,367 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// LfsCpgInfoClient a client for LfsCpgInfo +type LfsCpgInfoClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewLfsCpgInfoClientWithConfigurationProvider Creates a new default LfsCpgInfo client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewLfsCpgInfoClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client LfsCpgInfoClient, err error) { + if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newLfsCpgInfoClientFromBaseClient(baseClient, provider) +} + +// NewLfsCpgInfoClientWithOboToken Creates a new default LfsCpgInfo 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 NewLfsCpgInfoClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client LfsCpgInfoClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newLfsCpgInfoClientFromBaseClient(baseClient, configProvider) +} + +func newLfsCpgInfoClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client LfsCpgInfoClient, err error) { + // LfsCpgInfo service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("LfsCpgInfo")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = LfsCpgInfoClient{BaseClient: baseClient} + client.BasePath = "20250228" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *LfsCpgInfoClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *LfsCpgInfoClient) 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 *LfsCpgInfoClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CreateLfsCpgInfo Creates a CPG lfsCpgInfo. +// A default retry strategy applies to this operation CreateLfsCpgInfo() +func (client LfsCpgInfoClient) CreateLfsCpgInfo(ctx context.Context, request CreateLfsCpgInfoRequest) (response CreateLfsCpgInfoResponse, 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.createLfsCpgInfo, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateLfsCpgInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateLfsCpgInfoResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateLfsCpgInfoResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateLfsCpgInfoResponse") + } + return +} + +// createLfsCpgInfo implements the OCIOperation interface (enables retrying operations) +func (client LfsCpgInfoClient) createLfsCpgInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/lfsCpgInfos", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateLfsCpgInfoResponse + 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/lustre/20250228/LfsCpgInfo/CreateLfsCpgInfo" + err = common.PostProcessServiceError(err, "LfsCpgInfo", "CreateLfsCpgInfo", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteLfsCpgInfo Deletes a LFS CPG Info. +// A default retry strategy applies to this operation DeleteLfsCpgInfo() +func (client LfsCpgInfoClient) DeleteLfsCpgInfo(ctx context.Context, request DeleteLfsCpgInfoRequest) (response DeleteLfsCpgInfoResponse, 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.deleteLfsCpgInfo, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteLfsCpgInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteLfsCpgInfoResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteLfsCpgInfoResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteLfsCpgInfoResponse") + } + return +} + +// deleteLfsCpgInfo implements the OCIOperation interface (enables retrying operations) +func (client LfsCpgInfoClient) deleteLfsCpgInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/lfsCpgInfos/{lfsCpgId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteLfsCpgInfoResponse + 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/lustre/20250228/LfsCpgInfo/DeleteLfsCpgInfo" + err = common.PostProcessServiceError(err, "LfsCpgInfo", "DeleteLfsCpgInfo", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetLfsCpgInfo Gets information about a LFS CPG +// A default retry strategy applies to this operation GetLfsCpgInfo() +func (client LfsCpgInfoClient) GetLfsCpgInfo(ctx context.Context, request GetLfsCpgInfoRequest) (response GetLfsCpgInfoResponse, 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.getLfsCpgInfo, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetLfsCpgInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetLfsCpgInfoResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetLfsCpgInfoResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetLfsCpgInfoResponse") + } + return +} + +// getLfsCpgInfo implements the OCIOperation interface (enables retrying operations) +func (client LfsCpgInfoClient) getLfsCpgInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/lfsCpgInfos/{lfsCpgId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetLfsCpgInfoResponse + 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/lustre/20250228/LfsCpgInfo/GetLfsCpgInfo" + err = common.PostProcessServiceError(err, "LfsCpgInfo", "GetLfsCpgInfo", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListLfsCpgInfos Gets a list of lfsCpgInfo. +// A default retry strategy applies to this operation ListLfsCpgInfos() +func (client LfsCpgInfoClient) ListLfsCpgInfos(ctx context.Context, request ListLfsCpgInfosRequest) (response ListLfsCpgInfosResponse, 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.listLfsCpgInfos, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListLfsCpgInfosResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListLfsCpgInfosResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListLfsCpgInfosResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListLfsCpgInfosResponse") + } + return +} + +// listLfsCpgInfos implements the OCIOperation interface (enables retrying operations) +func (client LfsCpgInfoClient) listLfsCpgInfos(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/lfsCpgInfos", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListLfsCpgInfosResponse + 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/lustre/20250228/LfsCpgInfoCollection/ListLfsCpgInfos" + err = common.PostProcessServiceError(err, "LfsCpgInfo", "ListLfsCpgInfos", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateLfsCpgInfo Updates a a LfsCpgInfo. +// A default retry strategy applies to this operation UpdateLfsCpgInfo() +func (client LfsCpgInfoClient) UpdateLfsCpgInfo(ctx context.Context, request UpdateLfsCpgInfoRequest) (response UpdateLfsCpgInfoResponse, 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.updateLfsCpgInfo, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateLfsCpgInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateLfsCpgInfoResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateLfsCpgInfoResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateLfsCpgInfoResponse") + } + return +} + +// updateLfsCpgInfo implements the OCIOperation interface (enables retrying operations) +func (client LfsCpgInfoClient) updateLfsCpgInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/lfsCpgInfos/{lfsCpgId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateLfsCpgInfoResponse + 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/lustre/20250228/LfsCpgInfo/UpdateLfsCpgInfo" + err = common.PostProcessServiceError(err, "LfsCpgInfo", "UpdateLfsCpgInfo", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfspool_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfspool_client.go new file mode 100644 index 0000000000..9474f49f33 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfspool_client.go @@ -0,0 +1,367 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// LfsPoolClient a client for LfsPool +type LfsPoolClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewLfsPoolClientWithConfigurationProvider Creates a new default LfsPool client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewLfsPoolClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client LfsPoolClient, err error) { + if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newLfsPoolClientFromBaseClient(baseClient, provider) +} + +// NewLfsPoolClientWithOboToken Creates a new default LfsPool 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 NewLfsPoolClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client LfsPoolClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newLfsPoolClientFromBaseClient(baseClient, configProvider) +} + +func newLfsPoolClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client LfsPoolClient, err error) { + // LfsPool service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("LfsPool")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = LfsPoolClient{BaseClient: baseClient} + client.BasePath = "20250228" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *LfsPoolClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *LfsPoolClient) 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 *LfsPoolClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CreatePool Creates a Pool. +// A default retry strategy applies to this operation CreatePool() +func (client LfsPoolClient) CreatePool(ctx context.Context, request CreatePoolRequest) (response CreatePoolResponse, 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.createPool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreatePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreatePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreatePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreatePoolResponse") + } + return +} + +// createPool implements the OCIOperation interface (enables retrying operations) +func (client LfsPoolClient) createPool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/pools", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreatePoolResponse + 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/lustre/20250228/Pool/CreatePool" + err = common.PostProcessServiceError(err, "LfsPool", "CreatePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeletePool Deletes the pool. +// A default retry strategy applies to this operation DeletePool() +func (client LfsPoolClient) DeletePool(ctx context.Context, request DeletePoolRequest) (response DeletePoolResponse, 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.deletePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeletePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeletePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeletePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeletePoolResponse") + } + return +} + +// deletePool implements the OCIOperation interface (enables retrying operations) +func (client LfsPoolClient) deletePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/pools/{poolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeletePoolResponse + 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/lustre/20250228/Pool/DeletePool" + err = common.PostProcessServiceError(err, "LfsPool", "DeletePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetPool Gets information about a Pool. +// A default retry strategy applies to this operation GetPool() +func (client LfsPoolClient) GetPool(ctx context.Context, request GetPoolRequest) (response GetPoolResponse, 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.getPool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetPoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetPoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetPoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetPoolResponse") + } + return +} + +// getPool implements the OCIOperation interface (enables retrying operations) +func (client LfsPoolClient) getPool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/pools/{poolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetPoolResponse + 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/lustre/20250228/Pool/GetPool" + err = common.PostProcessServiceError(err, "LfsPool", "GetPool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListPools Gets a list of Pools. +// A default retry strategy applies to this operation ListPools() +func (client LfsPoolClient) ListPools(ctx context.Context, request ListPoolsRequest) (response ListPoolsResponse, 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.listPools, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListPoolsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListPoolsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListPoolsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListPoolsResponse") + } + return +} + +// listPools implements the OCIOperation interface (enables retrying operations) +func (client LfsPoolClient) listPools(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/pools", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListPoolsResponse + 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/lustre/20250228/PoolCollection/ListPools" + err = common.PostProcessServiceError(err, "LfsPool", "ListPools", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdatePool Updates a Pool. +// A default retry strategy applies to this operation UpdatePool() +func (client LfsPoolClient) UpdatePool(ctx context.Context, request UpdatePoolRequest) (response UpdatePoolResponse, 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.updatePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdatePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdatePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdatePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdatePoolResponse") + } + return +} + +// updatePool implements the OCIOperation interface (enables retrying operations) +func (client LfsPoolClient) updatePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/pools/{poolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdatePoolResponse + 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/lustre/20250228/Pool/UpdatePool" + err = common.PostProcessServiceError(err, "LfsPool", "UpdatePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_mgmtcell_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_mgmtcell_client.go new file mode 100644 index 0000000000..b04b8e0ac1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_mgmtcell_client.go @@ -0,0 +1,367 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// MgmtCellClient a client for MgmtCell +type MgmtCellClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewMgmtCellClientWithConfigurationProvider Creates a new default MgmtCell client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewMgmtCellClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client MgmtCellClient, err error) { + if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newMgmtCellClientFromBaseClient(baseClient, provider) +} + +// NewMgmtCellClientWithOboToken Creates a new default MgmtCell 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 NewMgmtCellClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client MgmtCellClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newMgmtCellClientFromBaseClient(baseClient, configProvider) +} + +func newMgmtCellClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client MgmtCellClient, err error) { + // MgmtCell service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("MgmtCell")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = MgmtCellClient{BaseClient: baseClient} + client.BasePath = "20250228" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *MgmtCellClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *MgmtCellClient) 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 *MgmtCellClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CreateManagementCell Creates a ManagementCell. +// A default retry strategy applies to this operation CreateManagementCell() +func (client MgmtCellClient) CreateManagementCell(ctx context.Context, request CreateManagementCellRequest) (response CreateManagementCellResponse, 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.createManagementCell, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateManagementCellResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateManagementCellResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateManagementCellResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateManagementCellResponse") + } + return +} + +// createManagementCell implements the OCIOperation interface (enables retrying operations) +func (client MgmtCellClient) createManagementCell(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/managementCells", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateManagementCellResponse + 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/lustre/20250228/ManagementCell/CreateManagementCell" + err = common.PostProcessServiceError(err, "MgmtCell", "CreateManagementCell", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteManagementCell Deletes a ManagementCell. +// A default retry strategy applies to this operation DeleteManagementCell() +func (client MgmtCellClient) DeleteManagementCell(ctx context.Context, request DeleteManagementCellRequest) (response DeleteManagementCellResponse, 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.deleteManagementCell, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteManagementCellResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteManagementCellResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteManagementCellResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteManagementCellResponse") + } + return +} + +// deleteManagementCell implements the OCIOperation interface (enables retrying operations) +func (client MgmtCellClient) deleteManagementCell(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/managementCells/{managementCellId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteManagementCellResponse + 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/lustre/20250228/ManagementCell/DeleteManagementCell" + err = common.PostProcessServiceError(err, "MgmtCell", "DeleteManagementCell", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetManagementCell Gets information about a ManagementCell. +// A default retry strategy applies to this operation GetManagementCell() +func (client MgmtCellClient) GetManagementCell(ctx context.Context, request GetManagementCellRequest) (response GetManagementCellResponse, 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.getManagementCell, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetManagementCellResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetManagementCellResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetManagementCellResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetManagementCellResponse") + } + return +} + +// getManagementCell implements the OCIOperation interface (enables retrying operations) +func (client MgmtCellClient) getManagementCell(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/managementCells/{managementCellId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetManagementCellResponse + 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/lustre/20250228/ManagementCell/GetManagementCell" + err = common.PostProcessServiceError(err, "MgmtCell", "GetManagementCell", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListManagementCells Gets a list of ManagementCells. +// A default retry strategy applies to this operation ListManagementCells() +func (client MgmtCellClient) ListManagementCells(ctx context.Context, request ListManagementCellsRequest) (response ListManagementCellsResponse, 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.listManagementCells, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListManagementCellsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListManagementCellsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListManagementCellsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListManagementCellsResponse") + } + return +} + +// listManagementCells implements the OCIOperation interface (enables retrying operations) +func (client MgmtCellClient) listManagementCells(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/managementCells", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListManagementCellsResponse + 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/lustre/20250228/ManagementCellCollection/ListManagementCells" + err = common.PostProcessServiceError(err, "MgmtCell", "ListManagementCells", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateManagementCell Updates a ManagementCell. +// A default retry strategy applies to this operation UpdateManagementCell() +func (client MgmtCellClient) UpdateManagementCell(ctx context.Context, request UpdateManagementCellRequest) (response UpdateManagementCellResponse, 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.updateManagementCell, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateManagementCellResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateManagementCellResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateManagementCellResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateManagementCellResponse") + } + return +} + +// updateManagementCell implements the OCIOperation interface (enables retrying operations) +func (client MgmtCellClient) updateManagementCell(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/managementCells/{managementCellId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateManagementCellResponse + 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/lustre/20250228/ManagementCell/UpdateManagementCell" + err = common.PostProcessServiceError(err, "MgmtCell", "UpdateManagementCell", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_tenancyoverride_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_tenancyoverride_client.go new file mode 100644 index 0000000000..a4feeb2e6f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_tenancyoverride_client.go @@ -0,0 +1,421 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// TenancyOverrideClient a client for TenancyOverride +type TenancyOverrideClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewTenancyOverrideClientWithConfigurationProvider Creates a new default TenancyOverride client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewTenancyOverrideClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client TenancyOverrideClient, err error) { + if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newTenancyOverrideClientFromBaseClient(baseClient, provider) +} + +// NewTenancyOverrideClientWithOboToken Creates a new default TenancyOverride 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 NewTenancyOverrideClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client TenancyOverrideClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newTenancyOverrideClientFromBaseClient(baseClient, configProvider) +} + +func newTenancyOverrideClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client TenancyOverrideClient, err error) { + // TenancyOverride service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("TenancyOverride")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = TenancyOverrideClient{BaseClient: baseClient} + client.BasePath = "20250228" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *TenancyOverrideClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *TenancyOverrideClient) 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 *TenancyOverrideClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CreateTenancyOverride Creates a Tenancy Override. +// A default retry strategy applies to this operation CreateTenancyOverride() +func (client TenancyOverrideClient) CreateTenancyOverride(ctx context.Context, request CreateTenancyOverrideRequest) (response CreateTenancyOverrideResponse, 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.createTenancyOverride, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateTenancyOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateTenancyOverrideResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateTenancyOverrideResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateTenancyOverrideResponse") + } + return +} + +// createTenancyOverride implements the OCIOperation interface (enables retrying operations) +func (client TenancyOverrideClient) createTenancyOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/tenancyOverrides", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateTenancyOverrideResponse + 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/lustre/20250228/TenancyOverride/CreateTenancyOverride" + err = common.PostProcessServiceError(err, "TenancyOverride", "CreateTenancyOverride", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteAllTenancyOverridesForTenant Deletes all Tenancy Overrides for Tenant. +// A default retry strategy applies to this operation DeleteAllTenancyOverridesForTenant() +func (client TenancyOverrideClient) DeleteAllTenancyOverridesForTenant(ctx context.Context, request DeleteAllTenancyOverridesForTenantRequest) (response DeleteAllTenancyOverridesForTenantResponse, 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.deleteAllTenancyOverridesForTenant, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteAllTenancyOverridesForTenantResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteAllTenancyOverridesForTenantResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteAllTenancyOverridesForTenantResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteAllTenancyOverridesForTenantResponse") + } + return +} + +// deleteAllTenancyOverridesForTenant implements the OCIOperation interface (enables retrying operations) +func (client TenancyOverrideClient) deleteAllTenancyOverridesForTenant(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/tenancyOverrides/{tenantId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteAllTenancyOverridesForTenantResponse + 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/lustre/20250228/TenancyOverride/DeleteAllTenancyOverridesForTenant" + err = common.PostProcessServiceError(err, "TenancyOverride", "DeleteAllTenancyOverridesForTenant", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteTenancyOverride Deletes a Tenancy Override. +// A default retry strategy applies to this operation DeleteTenancyOverride() +func (client TenancyOverrideClient) DeleteTenancyOverride(ctx context.Context, request DeleteTenancyOverrideRequest) (response DeleteTenancyOverrideResponse, 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.deleteTenancyOverride, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteTenancyOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteTenancyOverrideResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteTenancyOverrideResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteTenancyOverrideResponse") + } + return +} + +// deleteTenancyOverride implements the OCIOperation interface (enables retrying operations) +func (client TenancyOverrideClient) deleteTenancyOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/tenancyOverrides/{tenantId}/{overrideId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteTenancyOverrideResponse + 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/lustre/20250228/TenancyOverride/DeleteTenancyOverride" + err = common.PostProcessServiceError(err, "TenancyOverride", "DeleteTenancyOverride", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetTenancyOverride Gets information about a Tenancy Override. +// A default retry strategy applies to this operation GetTenancyOverride() +func (client TenancyOverrideClient) GetTenancyOverride(ctx context.Context, request GetTenancyOverrideRequest) (response GetTenancyOverrideResponse, 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.getTenancyOverride, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetTenancyOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetTenancyOverrideResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetTenancyOverrideResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetTenancyOverrideResponse") + } + return +} + +// getTenancyOverride implements the OCIOperation interface (enables retrying operations) +func (client TenancyOverrideClient) getTenancyOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/tenancyOverrides/{tenantId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetTenancyOverrideResponse + 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/lustre/20250228/TenancyOverride/GetTenancyOverride" + err = common.PostProcessServiceError(err, "TenancyOverride", "GetTenancyOverride", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListTenancyOverrides Gets a list of Tenancy Overrides. +// A default retry strategy applies to this operation ListTenancyOverrides() +func (client TenancyOverrideClient) ListTenancyOverrides(ctx context.Context, request ListTenancyOverridesRequest) (response ListTenancyOverridesResponse, 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.listTenancyOverrides, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListTenancyOverridesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListTenancyOverridesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListTenancyOverridesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListTenancyOverridesResponse") + } + return +} + +// listTenancyOverrides implements the OCIOperation interface (enables retrying operations) +func (client TenancyOverrideClient) listTenancyOverrides(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/tenancyOverrides", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListTenancyOverridesResponse + 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/lustre/20250228/TenancyOverrideCollection/ListTenancyOverrides" + err = common.PostProcessServiceError(err, "TenancyOverride", "ListTenancyOverrides", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateTenancyOverride Updates a Tenancy Override. +// A default retry strategy applies to this operation UpdateTenancyOverride() +func (client TenancyOverrideClient) UpdateTenancyOverride(ctx context.Context, request UpdateTenancyOverrideRequest) (response UpdateTenancyOverrideResponse, 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.updateTenancyOverride, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateTenancyOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateTenancyOverrideResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateTenancyOverrideResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateTenancyOverrideResponse") + } + return +} + +// updateTenancyOverride implements the OCIOperation interface (enables retrying operations) +func (client TenancyOverrideClient) updateTenancyOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/tenancyOverrides/{tenantId}/{overrideId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateTenancyOverrideResponse + 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/lustre/20250228/TenancyOverride/UpdateTenancyOverride" + err = common.PostProcessServiceError(err, "TenancyOverride", "UpdateTenancyOverride", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/maintenance_window.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/maintenance_window.go new file mode 100644 index 0000000000..f62ff052dc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/maintenance_window.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MaintenanceWindow The preferred day and time to perform maintenance. +type MaintenanceWindow struct { + + // Day of the week when the maintainence window starts. + DayOfWeek MaintenanceWindowDayOfWeekEnum `mandatory:"false" json:"dayOfWeek,omitempty"` + + // The time to start the maintenance window. The format is 'HH:MM', 'HH:MM' represents the time in UTC. + // Example: `22:00` + TimeStart *string `mandatory:"false" json:"timeStart"` +} + +func (m MaintenanceWindow) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MaintenanceWindow) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingMaintenanceWindowDayOfWeekEnum(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(GetMaintenanceWindowDayOfWeekEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MaintenanceWindowDayOfWeekEnum Enum with underlying type: string +type MaintenanceWindowDayOfWeekEnum string + +// Set of constants representing the allowable values for MaintenanceWindowDayOfWeekEnum +const ( + MaintenanceWindowDayOfWeekMonday MaintenanceWindowDayOfWeekEnum = "MONDAY" + MaintenanceWindowDayOfWeekTuesday MaintenanceWindowDayOfWeekEnum = "TUESDAY" + MaintenanceWindowDayOfWeekWednesday MaintenanceWindowDayOfWeekEnum = "WEDNESDAY" + MaintenanceWindowDayOfWeekThursday MaintenanceWindowDayOfWeekEnum = "THURSDAY" + MaintenanceWindowDayOfWeekFriday MaintenanceWindowDayOfWeekEnum = "FRIDAY" + MaintenanceWindowDayOfWeekSaturday MaintenanceWindowDayOfWeekEnum = "SATURDAY" + MaintenanceWindowDayOfWeekSunday MaintenanceWindowDayOfWeekEnum = "SUNDAY" +) + +var mappingMaintenanceWindowDayOfWeekEnum = map[string]MaintenanceWindowDayOfWeekEnum{ + "MONDAY": MaintenanceWindowDayOfWeekMonday, + "TUESDAY": MaintenanceWindowDayOfWeekTuesday, + "WEDNESDAY": MaintenanceWindowDayOfWeekWednesday, + "THURSDAY": MaintenanceWindowDayOfWeekThursday, + "FRIDAY": MaintenanceWindowDayOfWeekFriday, + "SATURDAY": MaintenanceWindowDayOfWeekSaturday, + "SUNDAY": MaintenanceWindowDayOfWeekSunday, +} + +var mappingMaintenanceWindowDayOfWeekEnumLowerCase = map[string]MaintenanceWindowDayOfWeekEnum{ + "monday": MaintenanceWindowDayOfWeekMonday, + "tuesday": MaintenanceWindowDayOfWeekTuesday, + "wednesday": MaintenanceWindowDayOfWeekWednesday, + "thursday": MaintenanceWindowDayOfWeekThursday, + "friday": MaintenanceWindowDayOfWeekFriday, + "saturday": MaintenanceWindowDayOfWeekSaturday, + "sunday": MaintenanceWindowDayOfWeekSunday, +} + +// GetMaintenanceWindowDayOfWeekEnumValues Enumerates the set of values for MaintenanceWindowDayOfWeekEnum +func GetMaintenanceWindowDayOfWeekEnumValues() []MaintenanceWindowDayOfWeekEnum { + values := make([]MaintenanceWindowDayOfWeekEnum, 0) + for _, v := range mappingMaintenanceWindowDayOfWeekEnum { + values = append(values, v) + } + return values +} + +// GetMaintenanceWindowDayOfWeekEnumStringValues Enumerates the set of values in String for MaintenanceWindowDayOfWeekEnum +func GetMaintenanceWindowDayOfWeekEnumStringValues() []string { + return []string{ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY", + } +} + +// GetMappingMaintenanceWindowDayOfWeekEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMaintenanceWindowDayOfWeekEnum(val string) (MaintenanceWindowDayOfWeekEnum, bool) { + enum, ok := mappingMaintenanceWindowDayOfWeekEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell.go new file mode 100644 index 0000000000..2d9b0f1a21 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell.go @@ -0,0 +1,189 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ManagementCell The Lustre File Service architecture is a cellular architecture which can create new management +// plane cells as the number of filesystems, hosts, and volumes grow. Lustre management plane cells +// are the main scalable unit within the Lustre File Service. +// A single management cell is capable of placing Lustre filesystems in different locations using +// cluster placement groups. +type ManagementCell struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ManagementCell + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the Management Cell. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The availability domain the Management Cell is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The current state of the ManagementCell. + LifecycleState ManagementCellLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // ManagementCell can be categorized based on the customer filesystems it is hosting. + // Example: `RESTRICTED` category cell is restricted for use by only one customer + Category ManagementCellCategoryEnum `mandatory:"true" json:"category"` + + // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. + AvailableCapacityInGBs *int64 `mandatory:"true" json:"availableCapacityInGBs"` + + // The date and time the ManagementCell was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the ManagementCell was updated, in the format defined + // by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"true" json:"systemTags"` + + Details *Details `mandatory:"true" json:"details"` +} + +func (m ManagementCell) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ManagementCell) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingManagementCellLifecycleStateEnum(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(GetManagementCellLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingManagementCellCategoryEnum(string(m.Category)); !ok && m.Category != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Category: %s. Supported values are: %s.", m.Category, strings.Join(GetManagementCellCategoryEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ManagementCellLifecycleStateEnum Enum with underlying type: string +type ManagementCellLifecycleStateEnum string + +// Set of constants representing the allowable values for ManagementCellLifecycleStateEnum +const ( + ManagementCellLifecycleStateCreating ManagementCellLifecycleStateEnum = "CREATING" + ManagementCellLifecycleStateActive ManagementCellLifecycleStateEnum = "ACTIVE" + ManagementCellLifecycleStateInactive ManagementCellLifecycleStateEnum = "INACTIVE" + ManagementCellLifecycleStateDeleted ManagementCellLifecycleStateEnum = "DELETED" +) + +var mappingManagementCellLifecycleStateEnum = map[string]ManagementCellLifecycleStateEnum{ + "CREATING": ManagementCellLifecycleStateCreating, + "ACTIVE": ManagementCellLifecycleStateActive, + "INACTIVE": ManagementCellLifecycleStateInactive, + "DELETED": ManagementCellLifecycleStateDeleted, +} + +var mappingManagementCellLifecycleStateEnumLowerCase = map[string]ManagementCellLifecycleStateEnum{ + "creating": ManagementCellLifecycleStateCreating, + "active": ManagementCellLifecycleStateActive, + "inactive": ManagementCellLifecycleStateInactive, + "deleted": ManagementCellLifecycleStateDeleted, +} + +// GetManagementCellLifecycleStateEnumValues Enumerates the set of values for ManagementCellLifecycleStateEnum +func GetManagementCellLifecycleStateEnumValues() []ManagementCellLifecycleStateEnum { + values := make([]ManagementCellLifecycleStateEnum, 0) + for _, v := range mappingManagementCellLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetManagementCellLifecycleStateEnumStringValues Enumerates the set of values in String for ManagementCellLifecycleStateEnum +func GetManagementCellLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETED", + } +} + +// GetMappingManagementCellLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingManagementCellLifecycleStateEnum(val string) (ManagementCellLifecycleStateEnum, bool) { + enum, ok := mappingManagementCellLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ManagementCellCategoryEnum Enum with underlying type: string +type ManagementCellCategoryEnum string + +// Set of constants representing the allowable values for ManagementCellCategoryEnum +const ( + ManagementCellCategoryGeneral ManagementCellCategoryEnum = "GENERAL" + ManagementCellCategoryInternal ManagementCellCategoryEnum = "INTERNAL" + ManagementCellCategoryRestricted ManagementCellCategoryEnum = "RESTRICTED" +) + +var mappingManagementCellCategoryEnum = map[string]ManagementCellCategoryEnum{ + "GENERAL": ManagementCellCategoryGeneral, + "INTERNAL": ManagementCellCategoryInternal, + "RESTRICTED": ManagementCellCategoryRestricted, +} + +var mappingManagementCellCategoryEnumLowerCase = map[string]ManagementCellCategoryEnum{ + "general": ManagementCellCategoryGeneral, + "internal": ManagementCellCategoryInternal, + "restricted": ManagementCellCategoryRestricted, +} + +// GetManagementCellCategoryEnumValues Enumerates the set of values for ManagementCellCategoryEnum +func GetManagementCellCategoryEnumValues() []ManagementCellCategoryEnum { + values := make([]ManagementCellCategoryEnum, 0) + for _, v := range mappingManagementCellCategoryEnum { + values = append(values, v) + } + return values +} + +// GetManagementCellCategoryEnumStringValues Enumerates the set of values in String for ManagementCellCategoryEnum +func GetManagementCellCategoryEnumStringValues() []string { + return []string{ + "GENERAL", + "INTERNAL", + "RESTRICTED", + } +} + +// GetMappingManagementCellCategoryEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingManagementCellCategoryEnum(val string) (ManagementCellCategoryEnum, bool) { + enum, ok := mappingManagementCellCategoryEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_collection.go new file mode 100644 index 0000000000..bcd010038e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ManagementCellCollection Results of a ManagementCell search. Contains both ManagementCellSummary items and other information, such as metadata. +type ManagementCellCollection struct { + + // List of ManagementCells. + Items []ManagementCellSummary `mandatory:"true" json:"items"` +} + +func (m ManagementCellCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ManagementCellCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_summary.go new file mode 100644 index 0000000000..90883d6eb9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_summary.go @@ -0,0 +1,89 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ManagementCellSummary Summary information about a ManagementCell. +type ManagementCellSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Management Cell + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the ManagementCell. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The availability domain the Management Cell is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The current state of the ManagementCell + LifecycleState ManagementCellLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // ManagementCell can be categorized based on the customer filesystems it is hosting. + // Example: `RESTRICTED` category cell is restricted for use by only one customer + Category ManagementCellCategoryEnum `mandatory:"true" json:"category"` + + // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. + AvailableCapacityInGBs *int64 `mandatory:"true" json:"availableCapacityInGBs"` + + // The date and time the ManagementCell was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the ManagementCell was updated, in the format defined + // by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"true" json:"systemTags"` + + Details *Details `mandatory:"true" json:"details"` +} + +func (m ManagementCellSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ManagementCellSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingManagementCellLifecycleStateEnum(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(GetManagementCellLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingManagementCellCategoryEnum(string(m.Category)); !ok && m.Category != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Category: %s. Supported values are: %s.", m.Category, strings.Join(GetManagementCellCategoryEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration.go new file mode 100644 index 0000000000..d0b358841e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MapTenancyConfiguration Details required to create tenancy configuration +type MapTenancyConfiguration struct { + + // The tenancy OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + TenancyId *string `mandatory:"true" json:"tenancyId"` + + // The profile name which is applicable for the given tenancy. + Profile *string `mandatory:"false" json:"profile"` + + CapacityReservations *CapacityReservationsCollection `mandatory:"false" json:"capacityReservations"` +} + +func (m MapTenancyConfiguration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MapTenancyConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_collection.go new file mode 100644 index 0000000000..29eebf7e85 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MapTenancyConfigurationCollection List of MapTenancyConfiguration. +type MapTenancyConfigurationCollection struct { + + // List of MapTenancyConfiguration. + Items []TenancyConfigurationSummary `mandatory:"true" json:"items"` +} + +func (m MapTenancyConfigurationCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MapTenancyConfigurationCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_details.go new file mode 100644 index 0000000000..7bfd350b64 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MapTenancyConfigurationDetails List of MapTenancyConfiguration. +type MapTenancyConfigurationDetails struct { + + // List of MapTenancyConfiguration. + Items []MapTenancyConfiguration `mandatory:"true" json:"items"` +} + +func (m MapTenancyConfigurationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MapTenancyConfigurationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_request_response.go new file mode 100644 index 0000000000..735bd544c9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// MapTenancyConfigurationRequest wrapper for the MapTenancyConfiguration operation +type MapTenancyConfigurationRequest struct { + + // The information to be updated. + MapTenancyConfigurationDetails `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 running 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 removed 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 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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 MapTenancyConfigurationRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request MapTenancyConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request MapTenancyConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request MapTenancyConfigurationRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request MapTenancyConfigurationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MapTenancyConfigurationResponse wrapper for the MapTenancyConfiguration operation +type MapTenancyConfigurationResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CreateMapTenancyConfiguration instance + CreateMapTenancyConfiguration `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 MapTenancyConfigurationResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response MapTenancyConfigurationResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/network_security_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/network_security_group.go new file mode 100644 index 0000000000..16e31255ba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/network_security_group.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkSecurityGroup A list of Network Security Group OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this Lustre file system. For more information about NSGs, see Security Rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). +type NetworkSecurityGroup struct { + + // A list of Network Security Group OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this lustre file system. + // A maximum of 5 is allowed. + // Setting this to an empty array after the list is created removes the lustre file system from all NSGs. + // For more information about NSGs, see Security Rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + NsgIds []string `mandatory:"false" json:"nsgIds"` +} + +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 len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link.go new file mode 100644 index 0000000000..71eda8baf7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link.go @@ -0,0 +1,166 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ObjectStorageLink Object Storage links create the relationship between a directory in an File Storage with Lustre file system and a path within an Object Storage bucket. +// For more information, see Syncing Lustre file systems with Object Storage (https://docs.oracle.com/iaas/Content/lustre/object-storage-sync.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.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm). +type ObjectStorageLink struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ObjectStorageLink. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the Lustre file system. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // 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:"true" json:"availabilityDomain"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My Object Storage Link` + // + DisplayName *string `mandatory:"true" json:"displayName"` + + // The date and time the Lustre file system was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the Object Storage link was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // The current state of the Object Storage link. + LifecycleState ObjectStorageLinkLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"true" json:"systemTags"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated Lustre file system. + LustreFileSystemId *string `mandatory:"true" json:"lustreFileSystemId"` + + // The path in the Lustre file system used for this Object Storage link. + // Example: `myFileSystem/mount/myDirectory` + FileSystemPath *string `mandatory:"true" json:"fileSystemPath"` + + // The Object Storage namespace and bucket name, including optional object prefix string, to use as the source for imports or destination for exports. + // Example: `objectStorageNamespace:/bucketName/optionalFolder/optionalPrefix` + ObjectStoragePrefix *string `mandatory:"true" json:"objectStoragePrefix"` + + // The flag is an identifier to tell whether the job run has overwrite enabled. + // If `isOverwrite` is false, the file to be imported or exported will be skipped if it already exists. + // If `isOverwrite` is true, the file to be imported or exported will be overwritten if it already exists. + IsOverwrite *bool `mandatory:"true" json:"isOverwrite"` + + // A message that describes the current state of the Object Storage link in more detail. For example, + // can be used to provide actionable information for a resource in the Failed state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of currently running sync job. If no sync job is running, then this will be empty. + CurrentJobId *string `mandatory:"false" json:"currentJobId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of last succeeded sync job. If no sync job has previously run, then this will be empty. + LastJobId *string `mandatory:"false" json:"lastJobId"` +} + +func (m ObjectStorageLink) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ObjectStorageLink) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingObjectStorageLinkLifecycleStateEnum(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(GetObjectStorageLinkLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ObjectStorageLinkLifecycleStateEnum Enum with underlying type: string +type ObjectStorageLinkLifecycleStateEnum string + +// Set of constants representing the allowable values for ObjectStorageLinkLifecycleStateEnum +const ( + ObjectStorageLinkLifecycleStateCreating ObjectStorageLinkLifecycleStateEnum = "CREATING" + ObjectStorageLinkLifecycleStateActive ObjectStorageLinkLifecycleStateEnum = "ACTIVE" + ObjectStorageLinkLifecycleStateDeleting ObjectStorageLinkLifecycleStateEnum = "DELETING" + ObjectStorageLinkLifecycleStateDeleted ObjectStorageLinkLifecycleStateEnum = "DELETED" + ObjectStorageLinkLifecycleStateFailed ObjectStorageLinkLifecycleStateEnum = "FAILED" +) + +var mappingObjectStorageLinkLifecycleStateEnum = map[string]ObjectStorageLinkLifecycleStateEnum{ + "CREATING": ObjectStorageLinkLifecycleStateCreating, + "ACTIVE": ObjectStorageLinkLifecycleStateActive, + "DELETING": ObjectStorageLinkLifecycleStateDeleting, + "DELETED": ObjectStorageLinkLifecycleStateDeleted, + "FAILED": ObjectStorageLinkLifecycleStateFailed, +} + +var mappingObjectStorageLinkLifecycleStateEnumLowerCase = map[string]ObjectStorageLinkLifecycleStateEnum{ + "creating": ObjectStorageLinkLifecycleStateCreating, + "active": ObjectStorageLinkLifecycleStateActive, + "deleting": ObjectStorageLinkLifecycleStateDeleting, + "deleted": ObjectStorageLinkLifecycleStateDeleted, + "failed": ObjectStorageLinkLifecycleStateFailed, +} + +// GetObjectStorageLinkLifecycleStateEnumValues Enumerates the set of values for ObjectStorageLinkLifecycleStateEnum +func GetObjectStorageLinkLifecycleStateEnumValues() []ObjectStorageLinkLifecycleStateEnum { + values := make([]ObjectStorageLinkLifecycleStateEnum, 0) + for _, v := range mappingObjectStorageLinkLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetObjectStorageLinkLifecycleStateEnumStringValues Enumerates the set of values in String for ObjectStorageLinkLifecycleStateEnum +func GetObjectStorageLinkLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingObjectStorageLinkLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingObjectStorageLinkLifecycleStateEnum(val string) (ObjectStorageLinkLifecycleStateEnum, bool) { + enum, ok := mappingObjectStorageLinkLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link_collection.go new file mode 100644 index 0000000000..2747def0a2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ObjectStorageLinkCollection Results of a Object Storage link search. Contains both ObjectStorageLinkSummary items and other information, such as metadata. +type ObjectStorageLinkCollection struct { + + // List of Object Storage links. + Items []ObjectStorageLinkSummary `mandatory:"true" json:"items"` +} + +func (m ObjectStorageLinkCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ObjectStorageLinkCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link_summary.go new file mode 100644 index 0000000000..07b0e4c77c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/object_storage_link_summary.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ObjectStorageLinkSummary Summary information about a Object Storage link. +type ObjectStorageLinkSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the Lustre file system. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // 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:"true" json:"availabilityDomain"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My Object Storage Link` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The date and time the Lustre file system was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-04-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the ObjectStorageLink was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2024-04-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // The current state of the ObjectStorageLink. + LifecycleState ObjectStorageLinkLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"true" json:"systemTags"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated lustre file system. + LustreFileSystemId *string `mandatory:"true" json:"lustreFileSystemId"` + + // The path in the Lustre file system used for this Object Storage link. + // Example: `myFileSystem/mount/myDirectory` + FileSystemPath *string `mandatory:"true" json:"fileSystemPath"` + + // The Object Storage namespace and bucket name, including optional object prefix string, to use as the source for imports or destination for exports. + // Example: `objectStorageNamespace:/bucketName/optionalFolder/optionalPrefix` + ObjectStoragePrefix *string `mandatory:"true" json:"objectStoragePrefix"` + + // The flag is an identifier to tell whether the job run has overwrite enabled. + // If `isOverwrite` is false, the file to be imported or exported will be skipped if it already exists. + // If `isOverwrite` is true, the file to be imported or exported will be overwritten if it already exists. + IsOverwrite *bool `mandatory:"true" json:"isOverwrite"` + + // A message that describes the current state of the Object Storage link in more detail. For example, + // can be used to provide actionable information for a resource in the Failed state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of currently running sync job. If no sync job is running then this will be empty. + CurrentJobId *string `mandatory:"false" json:"currentJobId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of last succeeded sync job. If no sync job has previously run then this will be empty. + LastJobId *string `mandatory:"false" json:"lastJobId"` +} + +func (m ObjectStorageLinkSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ObjectStorageLinkSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingObjectStorageLinkLifecycleStateEnum(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(GetObjectStorageLinkLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/operation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/operation_status.go new file mode 100644 index 0000000000..89a10b20e7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/operation_status.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +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" + OperationStatusWaiting OperationStatusEnum = "WAITING" + OperationStatusNeedsAttention OperationStatusEnum = "NEEDS_ATTENTION" + OperationStatusFailed OperationStatusEnum = "FAILED" + OperationStatusSucceeded OperationStatusEnum = "SUCCEEDED" + OperationStatusCanceling OperationStatusEnum = "CANCELING" + OperationStatusCanceled OperationStatusEnum = "CANCELED" +) + +var mappingOperationStatusEnum = map[string]OperationStatusEnum{ + "ACCEPTED": OperationStatusAccepted, + "IN_PROGRESS": OperationStatusInProgress, + "WAITING": OperationStatusWaiting, + "NEEDS_ATTENTION": OperationStatusNeedsAttention, + "FAILED": OperationStatusFailed, + "SUCCEEDED": OperationStatusSucceeded, + "CANCELING": OperationStatusCanceling, + "CANCELED": OperationStatusCanceled, +} + +var mappingOperationStatusEnumLowerCase = map[string]OperationStatusEnum{ + "accepted": OperationStatusAccepted, + "in_progress": OperationStatusInProgress, + "waiting": OperationStatusWaiting, + "needs_attention": OperationStatusNeedsAttention, + "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", + "WAITING", + "NEEDS_ATTENTION", + "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/lustrefilestorage/operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/operation_type.go new file mode 100644 index 0000000000..a75fdba443 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/operation_type.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "strings" +) + +// OperationTypeEnum Enum with underlying type: string +type OperationTypeEnum string + +// Set of constants representing the allowable values for OperationTypeEnum +const ( + OperationTypeCreateLustreFileSystem OperationTypeEnum = "CREATE_LUSTRE_FILE_SYSTEM" + OperationTypeUpdateLustreFileSystem OperationTypeEnum = "UPDATE_LUSTRE_FILE_SYSTEM" + OperationTypeDeleteLustreFileSystem OperationTypeEnum = "DELETE_LUSTRE_FILE_SYSTEM" + OperationTypeMoveLustreFileSystem OperationTypeEnum = "MOVE_LUSTRE_FILE_SYSTEM" + OperationTypeDeleteObjectStorageLink OperationTypeEnum = "DELETE_OBJECT_STORAGE_LINK" +) + +var mappingOperationTypeEnum = map[string]OperationTypeEnum{ + "CREATE_LUSTRE_FILE_SYSTEM": OperationTypeCreateLustreFileSystem, + "UPDATE_LUSTRE_FILE_SYSTEM": OperationTypeUpdateLustreFileSystem, + "DELETE_LUSTRE_FILE_SYSTEM": OperationTypeDeleteLustreFileSystem, + "MOVE_LUSTRE_FILE_SYSTEM": OperationTypeMoveLustreFileSystem, + "DELETE_OBJECT_STORAGE_LINK": OperationTypeDeleteObjectStorageLink, +} + +var mappingOperationTypeEnumLowerCase = map[string]OperationTypeEnum{ + "create_lustre_file_system": OperationTypeCreateLustreFileSystem, + "update_lustre_file_system": OperationTypeUpdateLustreFileSystem, + "delete_lustre_file_system": OperationTypeDeleteLustreFileSystem, + "move_lustre_file_system": OperationTypeMoveLustreFileSystem, + "delete_object_storage_link": OperationTypeDeleteObjectStorageLink, +} + +// 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_LUSTRE_FILE_SYSTEM", + "UPDATE_LUSTRE_FILE_SYSTEM", + "DELETE_LUSTRE_FILE_SYSTEM", + "MOVE_LUSTRE_FILE_SYSTEM", + "DELETE_OBJECT_STORAGE_LINK", + } +} + +// 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/lustrefilestorage/pause_sync_job_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_details.go new file mode 100644 index 0000000000..9f9d6c6127 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PauseSyncJobDetails Details about pausing an object sync job. +type PauseSyncJobDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of currently running job. + SyncJobId *string `mandatory:"true" json:"syncJobId"` +} + +func (m PauseSyncJobDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PauseSyncJobDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_request_response.go new file mode 100644 index 0000000000..7af78bbfef --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// PauseSyncJobRequest wrapper for the PauseSyncJob operation +type PauseSyncJobRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // The information needed to pause the sync job. + PauseSyncJobDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 running 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 removed 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 PauseSyncJobRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request PauseSyncJobRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request PauseSyncJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request PauseSyncJobRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request PauseSyncJobRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PauseSyncJobResponse wrapper for the PauseSyncJob operation +type PauseSyncJobResponse 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 PauseSyncJobResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response PauseSyncJobResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool.go new file mode 100644 index 0000000000..9f448848ac --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Pool A construct that to represent compute capacity reservation(s) for a purpose (can be a default, or dedicated for customers). +type Pool struct { + + // The id of the pool + Id *string `mandatory:"true" json:"id"` + + // The type of pool + PoolType PoolPoolTypeEnum `mandatory:"true" json:"poolType"` + + // Name of the pool + PoolName *string `mandatory:"true" json:"poolName"` + + // List of customer tenancies it is dedicated for + DedicatedCustomerTenancies []string `mandatory:"false" json:"dedicatedCustomerTenancies"` + + // The name of the site group this pool is associated with + SiteGroup *string `mandatory:"false" json:"siteGroup"` + + // List of customer tenancies it is dedicated for + Tags []string `mandatory:"false" json:"tags"` + + // List of customer tenancies it is dedicated for + Resources []interface{} `mandatory:"false" json:"resources"` + + // List of customer tenancies it is dedicated for + Accounting *interface{} `mandatory:"false" json:"accounting"` + + // The pools that have affinity with this pool. + PoolAffinities *interface{} `mandatory:"false" json:"poolAffinities"` +} + +func (m Pool) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Pool) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingPoolPoolTypeEnum(string(m.PoolType)); !ok && m.PoolType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PoolType: %s. Supported values are: %s.", m.PoolType, strings.Join(GetPoolPoolTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PoolPoolTypeEnum Enum with underlying type: string +type PoolPoolTypeEnum string + +// Set of constants representing the allowable values for PoolPoolTypeEnum +const ( + PoolPoolTypeCompute PoolPoolTypeEnum = "COMPUTE" + PoolPoolTypeBlock PoolPoolTypeEnum = "BLOCK" +) + +var mappingPoolPoolTypeEnum = map[string]PoolPoolTypeEnum{ + "COMPUTE": PoolPoolTypeCompute, + "BLOCK": PoolPoolTypeBlock, +} + +var mappingPoolPoolTypeEnumLowerCase = map[string]PoolPoolTypeEnum{ + "compute": PoolPoolTypeCompute, + "block": PoolPoolTypeBlock, +} + +// GetPoolPoolTypeEnumValues Enumerates the set of values for PoolPoolTypeEnum +func GetPoolPoolTypeEnumValues() []PoolPoolTypeEnum { + values := make([]PoolPoolTypeEnum, 0) + for _, v := range mappingPoolPoolTypeEnum { + values = append(values, v) + } + return values +} + +// GetPoolPoolTypeEnumStringValues Enumerates the set of values in String for PoolPoolTypeEnum +func GetPoolPoolTypeEnumStringValues() []string { + return []string{ + "COMPUTE", + "BLOCK", + } +} + +// GetMappingPoolPoolTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPoolPoolTypeEnum(val string) (PoolPoolTypeEnum, bool) { + enum, ok := mappingPoolPoolTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_collection.go new file mode 100644 index 0000000000..86e0613cef --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PoolCollection Results of a Pool search. Contains Pool items. +type PoolCollection struct { + + // List of Pool Summary. + Items []PoolSummary `mandatory:"true" json:"items"` +} + +func (m PoolCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PoolCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_summary.go new file mode 100644 index 0000000000..572bbd5438 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_summary.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PoolSummary A list of pools. +type PoolSummary struct { + + // The id of the pool + PoolId *string `mandatory:"false" json:"poolId"` + + // The type of pool + PoolType PoolSummaryPoolTypeEnum `mandatory:"false" json:"poolType,omitempty"` + + // Name of the pool + PoolName *string `mandatory:"false" json:"poolName"` + + // List of customer tenancies it is dedicated for + DedicatedCustomerTenancies []string `mandatory:"false" json:"dedicatedCustomerTenancies"` + + // The name of the site group this pool is associated with + SiteGroup *string `mandatory:"false" json:"siteGroup"` + + // List of customer tenancies it is dedicated for + Tags []string `mandatory:"false" json:"tags"` + + // List of customer tenancies it is dedicated for + Resources []interface{} `mandatory:"false" json:"resources"` + + // List of customer tenancies it is dedicated for + Accounting *interface{} `mandatory:"false" json:"accounting"` + + // The pools that have affinity with this pool. + PoolAffinities *interface{} `mandatory:"false" json:"poolAffinities"` +} + +func (m PoolSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PoolSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPoolSummaryPoolTypeEnum(string(m.PoolType)); !ok && m.PoolType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PoolType: %s. Supported values are: %s.", m.PoolType, strings.Join(GetPoolSummaryPoolTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PoolSummaryPoolTypeEnum Enum with underlying type: string +type PoolSummaryPoolTypeEnum string + +// Set of constants representing the allowable values for PoolSummaryPoolTypeEnum +const ( + PoolSummaryPoolTypeCompute PoolSummaryPoolTypeEnum = "COMPUTE" + PoolSummaryPoolTypeBlock PoolSummaryPoolTypeEnum = "BLOCK" +) + +var mappingPoolSummaryPoolTypeEnum = map[string]PoolSummaryPoolTypeEnum{ + "COMPUTE": PoolSummaryPoolTypeCompute, + "BLOCK": PoolSummaryPoolTypeBlock, +} + +var mappingPoolSummaryPoolTypeEnumLowerCase = map[string]PoolSummaryPoolTypeEnum{ + "compute": PoolSummaryPoolTypeCompute, + "block": PoolSummaryPoolTypeBlock, +} + +// GetPoolSummaryPoolTypeEnumValues Enumerates the set of values for PoolSummaryPoolTypeEnum +func GetPoolSummaryPoolTypeEnumValues() []PoolSummaryPoolTypeEnum { + values := make([]PoolSummaryPoolTypeEnum, 0) + for _, v := range mappingPoolSummaryPoolTypeEnum { + values = append(values, v) + } + return values +} + +// GetPoolSummaryPoolTypeEnumStringValues Enumerates the set of values in String for PoolSummaryPoolTypeEnum +func GetPoolSummaryPoolTypeEnumStringValues() []string { + return []string{ + "COMPUTE", + "BLOCK", + } +} + +// GetMappingPoolSummaryPoolTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPoolSummaryPoolTypeEnum(val string) (PoolSummaryPoolTypeEnum, bool) { + enum, ok := mappingPoolSummaryPoolTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_collection.go new file mode 100644 index 0000000000..2f8b0a2e9b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ProfileCollection List of ProfileSummary. +type ProfileCollection struct { + + // List of ProfileSummary. + Items []ProfileSummary `mandatory:"true" json:"items"` +} + +func (m ProfileCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ProfileCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_summary.go new file mode 100644 index 0000000000..d69990c00d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_summary.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ProfileSummary complete profile details. It will be in key-value format. +type ProfileSummary struct { + + // The profile name. + Name *string `mandatory:"true" json:"name"` + + // Configuration values associated with profile in key-value pairs + Values *interface{} `mandatory:"false" json:"values"` +} + +func (m ProfileSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ProfileSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/reserved_and_used_count.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/reserved_and_used_count.go new file mode 100644 index 0000000000..71cdfa1e8b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/reserved_and_used_count.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReservedAndUsedCount Reserved and used count for compute instances. +type ReservedAndUsedCount struct { + + // Reserved compute instances count. + ReservedCount *int `mandatory:"true" json:"reservedCount"` + + // Reserved compute instances count. + UsedCount *int `mandatory:"true" json:"usedCount"` +} + +func (m ReservedAndUsedCount) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReservedAndUsedCount) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/root_squash_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/root_squash_configuration.go new file mode 100644 index 0000000000..f59acaec76 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/root_squash_configuration.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RootSquashConfiguration An administrative feature that allows you to restrict root level access from clients that try to access your Lustre file system as root. +type RootSquashConfiguration struct { + + // Used when clients accessing the Lustre file system have their UID and GID remapped to + // `squashUid` and `squashGid`. If `ROOT`, only the root user and group (UID/GID 0) are remapped; + // if `NONE`, no remapping is done. If unspecified, defaults to `NONE`. + IdentitySquash RootSquashConfigurationIdentitySquashEnum `mandatory:"false" json:"identitySquash,omitempty"` + + // The UID value to remap to when squashing a client UID. See + // `identitySquash` for more details. If unspecified, defaults + // to `65534`. + SquashUid *int64 `mandatory:"false" json:"squashUid"` + + // The GID value to remap to when squashing a client GID. See + // `identitySquash` for more details. If unspecified, defaults + // to `65534`. + SquashGid *int64 `mandatory:"false" json:"squashGid"` + + // A list of NIDs allowed with this lustre file system not to be squashed. + // A maximum of 10 is allowed. + ClientExceptions []string `mandatory:"false" json:"clientExceptions"` +} + +func (m RootSquashConfiguration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RootSquashConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingRootSquashConfigurationIdentitySquashEnum(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(GetRootSquashConfigurationIdentitySquashEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RootSquashConfigurationIdentitySquashEnum Enum with underlying type: string +type RootSquashConfigurationIdentitySquashEnum string + +// Set of constants representing the allowable values for RootSquashConfigurationIdentitySquashEnum +const ( + RootSquashConfigurationIdentitySquashNone RootSquashConfigurationIdentitySquashEnum = "NONE" + RootSquashConfigurationIdentitySquashRoot RootSquashConfigurationIdentitySquashEnum = "ROOT" +) + +var mappingRootSquashConfigurationIdentitySquashEnum = map[string]RootSquashConfigurationIdentitySquashEnum{ + "NONE": RootSquashConfigurationIdentitySquashNone, + "ROOT": RootSquashConfigurationIdentitySquashRoot, +} + +var mappingRootSquashConfigurationIdentitySquashEnumLowerCase = map[string]RootSquashConfigurationIdentitySquashEnum{ + "none": RootSquashConfigurationIdentitySquashNone, + "root": RootSquashConfigurationIdentitySquashRoot, +} + +// GetRootSquashConfigurationIdentitySquashEnumValues Enumerates the set of values for RootSquashConfigurationIdentitySquashEnum +func GetRootSquashConfigurationIdentitySquashEnumValues() []RootSquashConfigurationIdentitySquashEnum { + values := make([]RootSquashConfigurationIdentitySquashEnum, 0) + for _, v := range mappingRootSquashConfigurationIdentitySquashEnum { + values = append(values, v) + } + return values +} + +// GetRootSquashConfigurationIdentitySquashEnumStringValues Enumerates the set of values in String for RootSquashConfigurationIdentitySquashEnum +func GetRootSquashConfigurationIdentitySquashEnumStringValues() []string { + return []string{ + "NONE", + "ROOT", + } +} + +// GetMappingRootSquashConfigurationIdentitySquashEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRootSquashConfigurationIdentitySquashEnum(val string) (RootSquashConfigurationIdentitySquashEnum, bool) { + enum, ok := mappingRootSquashConfigurationIdentitySquashEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sort_order.go new file mode 100644 index 0000000000..c80482b9df --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sort_order.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +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/lustrefilestorage/start_export_to_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go index 7b0e213234..f253ea3840 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go @@ -12,10 +12,6 @@ import ( ) // StartExportToObjectRequest wrapper for the StartExportToObject operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartExportToObject.go.html to see an example of how to use StartExportToObjectRequest. type StartExportToObjectRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go index beb01e8c83..1e5f52d9ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go @@ -12,10 +12,6 @@ import ( ) // StartImportFromObjectRequest wrapper for the StartImportFromObject operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartImportFromObject.go.html to see an example of how to use StartImportFromObjectRequest. type StartImportFromObjectRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go index 34c51040c6..a3eb2f53d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go @@ -12,10 +12,6 @@ import ( ) // StopExportToObjectRequest wrapper for the StopExportToObject operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopExportToObject.go.html to see an example of how to use StopExportToObjectRequest. type StopExportToObjectRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go index d3584f2cf3..51c82f3d86 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go @@ -12,10 +12,6 @@ import ( ) // StopImportFromObjectRequest wrapper for the StopImportFromObject operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopImportFromObject.go.html to see an example of how to use StopImportFromObjectRequest. type StopImportFromObjectRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/subnet.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/subnet.go new file mode 100644 index 0000000000..f32321970b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/subnet.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Subnet The Subnet is subdivision within a Virtual Cloud Network, consisting of a contiguous range of IP addresses and a VNIC. +type Subnet struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Subnet. + Id *string `mandatory:"false" json:"id"` +} + +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 len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job.go new file mode 100644 index 0000000000..d1ca401aa6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job.go @@ -0,0 +1,207 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SyncJob Details associated with sync job runs. +type SyncJob struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the sync job. + Id *string `mandatory:"true" json:"id"` + + // The type of the sync job. + JobType SyncJobJobTypeEnum `mandatory:"true" json:"jobType"` + + // The current state of the sync job. + LifecycleState SyncJobLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"true" json:"systemTags"` + + // The flag is an identifier to tell whether this specific job run has overwrite enabled. + // If `isOverwrite` is false, the file to be imported or exported will be skipped if it already exists. + // If `isOverwrite` is true, the file to be imported or exported will be overwritten if it already exists. + IsOverwrite *bool `mandatory:"true" json:"isOverwrite"` + + // Total object count for scanned files for import or export as part of this sync job. + TotalObjectsScanned *int64 `mandatory:"true" json:"totalObjectsScanned"` + + // Count of total files that transferred successfully. + ObjectsTransferred *int64 `mandatory:"true" json:"objectsTransferred"` + + // Bytes transferred during the sync. This value changes while the sync is still in progress. + BytesTransferred *int64 `mandatory:"true" json:"bytesTransferred"` + + // Count of files or objects that failed to export or import due to errors. + SkippedErrorCount *int64 `mandatory:"true" json:"skippedErrorCount"` + + // The date and time the job was started, expressed in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2020-07-25T21:10:29.600Z` + TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` + + // The path in the Lustre file system used for this Object Storage link. + // Example: `myFileSystem/mount/myDirectory` + LustreFileSystemPath *string `mandatory:"true" json:"lustreFileSystemPath"` + + // The Object Storage namespace and bucket name, including optional object prefix string, to use as the source for imports or destination for exports. + // Example: `objectStorageNamespace:/bucketName/optionalFolder/optionalPrefix` + ObjectStoragePath *string `mandatory:"true" json:"objectStoragePath"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ParentId *string `mandatory:"false" json:"parentId"` + + // A message that describes the current state of the sync job in more detail. For example, + // can be used to provide actionable information for a resource in the Failed state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The date and time the job finished, expressed in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2020-07-25T21:10:29.600Z` + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m SyncJob) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SyncJob) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSyncJobJobTypeEnum(string(m.JobType)); !ok && m.JobType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for JobType: %s. Supported values are: %s.", m.JobType, strings.Join(GetSyncJobJobTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingSyncJobLifecycleStateEnum(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(GetSyncJobLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SyncJobJobTypeEnum Enum with underlying type: string +type SyncJobJobTypeEnum string + +// Set of constants representing the allowable values for SyncJobJobTypeEnum +const ( + SyncJobJobTypeImport SyncJobJobTypeEnum = "IMPORT" + SyncJobJobTypeExport SyncJobJobTypeEnum = "EXPORT" +) + +var mappingSyncJobJobTypeEnum = map[string]SyncJobJobTypeEnum{ + "IMPORT": SyncJobJobTypeImport, + "EXPORT": SyncJobJobTypeExport, +} + +var mappingSyncJobJobTypeEnumLowerCase = map[string]SyncJobJobTypeEnum{ + "import": SyncJobJobTypeImport, + "export": SyncJobJobTypeExport, +} + +// GetSyncJobJobTypeEnumValues Enumerates the set of values for SyncJobJobTypeEnum +func GetSyncJobJobTypeEnumValues() []SyncJobJobTypeEnum { + values := make([]SyncJobJobTypeEnum, 0) + for _, v := range mappingSyncJobJobTypeEnum { + values = append(values, v) + } + return values +} + +// GetSyncJobJobTypeEnumStringValues Enumerates the set of values in String for SyncJobJobTypeEnum +func GetSyncJobJobTypeEnumStringValues() []string { + return []string{ + "IMPORT", + "EXPORT", + } +} + +// GetMappingSyncJobJobTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSyncJobJobTypeEnum(val string) (SyncJobJobTypeEnum, bool) { + enum, ok := mappingSyncJobJobTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SyncJobLifecycleStateEnum Enum with underlying type: string +type SyncJobLifecycleStateEnum string + +// Set of constants representing the allowable values for SyncJobLifecycleStateEnum +const ( + SyncJobLifecycleStateInProgress SyncJobLifecycleStateEnum = "IN_PROGRESS" + SyncJobLifecycleStateSucceeded SyncJobLifecycleStateEnum = "SUCCEEDED" + SyncJobLifecycleStateCanceling SyncJobLifecycleStateEnum = "CANCELING" + SyncJobLifecycleStateCanceled SyncJobLifecycleStateEnum = "CANCELED" + SyncJobLifecycleStateFailed SyncJobLifecycleStateEnum = "FAILED" + SyncJobLifecycleStateFailing SyncJobLifecycleStateEnum = "FAILING" +) + +var mappingSyncJobLifecycleStateEnum = map[string]SyncJobLifecycleStateEnum{ + "IN_PROGRESS": SyncJobLifecycleStateInProgress, + "SUCCEEDED": SyncJobLifecycleStateSucceeded, + "CANCELING": SyncJobLifecycleStateCanceling, + "CANCELED": SyncJobLifecycleStateCanceled, + "FAILED": SyncJobLifecycleStateFailed, + "FAILING": SyncJobLifecycleStateFailing, +} + +var mappingSyncJobLifecycleStateEnumLowerCase = map[string]SyncJobLifecycleStateEnum{ + "in_progress": SyncJobLifecycleStateInProgress, + "succeeded": SyncJobLifecycleStateSucceeded, + "canceling": SyncJobLifecycleStateCanceling, + "canceled": SyncJobLifecycleStateCanceled, + "failed": SyncJobLifecycleStateFailed, + "failing": SyncJobLifecycleStateFailing, +} + +// GetSyncJobLifecycleStateEnumValues Enumerates the set of values for SyncJobLifecycleStateEnum +func GetSyncJobLifecycleStateEnumValues() []SyncJobLifecycleStateEnum { + values := make([]SyncJobLifecycleStateEnum, 0) + for _, v := range mappingSyncJobLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetSyncJobLifecycleStateEnumStringValues Enumerates the set of values in String for SyncJobLifecycleStateEnum +func GetSyncJobLifecycleStateEnumStringValues() []string { + return []string{ + "IN_PROGRESS", + "SUCCEEDED", + "CANCELING", + "CANCELED", + "FAILED", + "FAILING", + } +} + +// GetMappingSyncJobLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSyncJobLifecycleStateEnum(val string) (SyncJobLifecycleStateEnum, bool) { + enum, ok := mappingSyncJobLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job_collection.go new file mode 100644 index 0000000000..2dc67d67c1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SyncJobCollection Results of a sync job search. Contains both sync job summary items and other information, such as metadata. +type SyncJobCollection struct { + + // List of sync jobs. + Items []SyncJobSummary `mandatory:"true" json:"items"` +} + +func (m SyncJobCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SyncJobCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job_summary.go new file mode 100644 index 0000000000..747ed97ac0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/sync_job_summary.go @@ -0,0 +1,146 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SyncJobSummary Summary information associated with sync jobs. +type SyncJobSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the sync job. + Id *string `mandatory:"true" json:"id"` + + // The type of the sync job. + JobType SyncJobSummaryJobTypeEnum `mandatory:"true" json:"jobType"` + + // The current state of the sync job. + LifecycleState SyncJobLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"true" json:"systemTags"` + + // The flag is an identifier to tell whether this specific job run has overwrite enabled. + // If `isOverwrite` is false, the file to be imported or exported will be skipped if it already exists. + // If `isOverwrite` is true, the file to be imported or exported will be overwritten if it already exists. + IsOverwrite *bool `mandatory:"true" json:"isOverwrite"` + + // Total object count for scanned files for import or export as part of this sync job. + TotalObjectsScanned *int64 `mandatory:"true" json:"totalObjectsScanned"` + + // Count of total files transferred successfully. + ObjectsTransferred *int64 `mandatory:"true" json:"objectsTransferred"` + + // Bytes transferred during the sync. This value changes while sync is still in progress. + BytesTransferred *int64 `mandatory:"true" json:"bytesTransferred"` + + // Count of files or objects that failed to export or import due to errors. + SkippedErrorCount *int64 `mandatory:"true" json:"skippedErrorCount"` + + // The date and time the job was started, expressed in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2020-07-25T21:10:29.600Z` + TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` + + // The path in the Lustre file system used for this Object Storage link. + // Example: `myFileSystem/mount/myDirectory` + LustreFileSystemPath *string `mandatory:"true" json:"lustreFileSystemPath"` + + // The Object Storage namespace and bucket name, including optional object prefix string, to use as the source for imports or destination for exports. + // Example: `objectStorageNamespace:/bucketName/optionalFolder/optionalPrefix` + ObjectStoragePath *string `mandatory:"true" json:"objectStoragePath"` + + // A message that describes the current state of the sync job in more detail. For example, + // can be used to provide actionable information for a resource in the Failed state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The date and time the job finished, expressed in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2024-07-21T20:10:29.600Z` + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m SyncJobSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SyncJobSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSyncJobSummaryJobTypeEnum(string(m.JobType)); !ok && m.JobType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for JobType: %s. Supported values are: %s.", m.JobType, strings.Join(GetSyncJobSummaryJobTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingSyncJobLifecycleStateEnum(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(GetSyncJobLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SyncJobSummaryJobTypeEnum Enum with underlying type: string +type SyncJobSummaryJobTypeEnum string + +// Set of constants representing the allowable values for SyncJobSummaryJobTypeEnum +const ( + SyncJobSummaryJobTypeImport SyncJobSummaryJobTypeEnum = "IMPORT" + SyncJobSummaryJobTypeExport SyncJobSummaryJobTypeEnum = "EXPORT" +) + +var mappingSyncJobSummaryJobTypeEnum = map[string]SyncJobSummaryJobTypeEnum{ + "IMPORT": SyncJobSummaryJobTypeImport, + "EXPORT": SyncJobSummaryJobTypeExport, +} + +var mappingSyncJobSummaryJobTypeEnumLowerCase = map[string]SyncJobSummaryJobTypeEnum{ + "import": SyncJobSummaryJobTypeImport, + "export": SyncJobSummaryJobTypeExport, +} + +// GetSyncJobSummaryJobTypeEnumValues Enumerates the set of values for SyncJobSummaryJobTypeEnum +func GetSyncJobSummaryJobTypeEnumValues() []SyncJobSummaryJobTypeEnum { + values := make([]SyncJobSummaryJobTypeEnum, 0) + for _, v := range mappingSyncJobSummaryJobTypeEnum { + values = append(values, v) + } + return values +} + +// GetSyncJobSummaryJobTypeEnumStringValues Enumerates the set of values in String for SyncJobSummaryJobTypeEnum +func GetSyncJobSummaryJobTypeEnumStringValues() []string { + return []string{ + "IMPORT", + "EXPORT", + } +} + +// GetMappingSyncJobSummaryJobTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSyncJobSummaryJobTypeEnum(val string) (SyncJobSummaryJobTypeEnum, bool) { + enum, ok := mappingSyncJobSummaryJobTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_configuration_summary.go new file mode 100644 index 0000000000..6d81472249 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_configuration_summary.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TenancyConfigurationSummary Details of the tenancy configuration +type TenancyConfigurationSummary struct { + + // The tenancy OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + TenancyId *string `mandatory:"true" json:"tenancyId"` + + // The profile name which is applicable for the given tenancy. + Profile *string `mandatory:"false" json:"profile"` + + CapacityReservations *CapacityReservationsCollection `mandatory:"false" json:"capacityReservations"` +} + +func (m TenancyConfigurationSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TenancyConfigurationSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override.go new file mode 100644 index 0000000000..14e215fb88 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TenancyOverride A construct that stores configuration and capacity reservation overrides for a tenant. +type TenancyOverride struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. + TenancyId *string `mandatory:"true" json:"tenancyId"` + + // The list of overrides for a tenant. + Overrides []interface{} `mandatory:"true" json:"overrides"` +} + +func (m TenancyOverride) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TenancyOverride) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_collection.go new file mode 100644 index 0000000000..ea6c5682bb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TenancyOverrideCollection Results of a Tenancy Override search. Contains TenancyOverride items. +type TenancyOverrideCollection struct { + + // List of Tenancy Override Summary. + Items []TenancyOverrideSummary `mandatory:"true" json:"items"` +} + +func (m TenancyOverrideCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TenancyOverrideCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_summary.go new file mode 100644 index 0000000000..835a99fbef --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_summary.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TenancyOverrideSummary A construct that stores configuration and capacity reservation overrides for a tenant. +type TenancyOverrideSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. + TenancyId *string `mandatory:"true" json:"tenancyId"` + + // The list of overrides for a tenant. + Overrides []interface{} `mandatory:"true" json:"overrides"` +} + +func (m TenancyOverrideSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TenancyOverrideSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_details.go new file mode 100644 index 0000000000..9c6132b1d7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnpauseSyncJobDetails Details about un-pausing an object sync job. +type UnpauseSyncJobDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of currently running job. + SyncJobId *string `mandatory:"true" json:"syncJobId"` +} + +func (m UnpauseSyncJobDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UnpauseSyncJobDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_request_response.go new file mode 100644 index 0000000000..7e4acf3708 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UnpauseSyncJobRequest wrapper for the UnpauseSyncJob operation +type UnpauseSyncJobRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. + ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` + + // The information needed to start the export to Object Storage. + UnpauseSyncJobDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 running 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 removed 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 UnpauseSyncJobRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UnpauseSyncJobRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UnpauseSyncJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UnpauseSyncJobRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UnpauseSyncJobRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnpauseSyncJobResponse wrapper for the UnpauseSyncJob operation +type UnpauseSyncJobResponse 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 UnpauseSyncJobResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UnpauseSyncJobResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_details.go new file mode 100644 index 0000000000..178676d433 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateCapacityReservationInfoDetails The data required for updating a Capacity Reservation Info. +type UpdateCapacityReservationInfoDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"false" json:"lfsCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. Use empty string to unset the value. + CustomerCpgId *string `mandatory:"false" json:"customerCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. Use empty string to unset the value. + CustomerTenancyId *string `mandatory:"false" json:"customerTenancyId"` + + // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. + AvailableBlockCapacityInGBs *int64 `mandatory:"false" json:"availableBlockCapacityInGBs"` + + DesiredComputeCount *DesiredComputeCount `mandatory:"false" json:"desiredComputeCount"` + + // If set to true, update capacity requests would not be sent. + IsUpdateRequestPaused *bool `mandatory:"false" json:"isUpdateRequestPaused"` + + // A list of CPG OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) with block capacity + // A maximum of 10 is allowed. + BlockCpgIds []string `mandatory:"false" json:"blockCpgIds"` +} + +func (m UpdateCapacityReservationInfoDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateCapacityReservationInfoDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_request_response.go new file mode 100644 index 0000000000..aa5bc960a8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateCapacityReservationInfoRequest wrapper for the UpdateCapacityReservationInfo operation +type UpdateCapacityReservationInfoRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"true" contributesTo:"path" name:"capacityReservationId"` + + // The information to be updated. + UpdateCapacityReservationInfoDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 UpdateCapacityReservationInfoRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateCapacityReservationInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateCapacityReservationInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateCapacityReservationInfoRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateCapacityReservationInfoRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateCapacityReservationInfoResponse wrapper for the UpdateCapacityReservationInfo operation +type UpdateCapacityReservationInfoResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CapacityReservationInfo instance + CapacityReservationInfo `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 UpdateCapacityReservationInfoResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateCapacityReservationInfoResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_details.go new file mode 100644 index 0000000000..45ef0da473 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateCpgOverrideDetails The data required for updating a CPG Override. +type UpdateCpgOverrideDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"false" json:"lfsCpgId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. + CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. + CustomerTenancyId *string `mandatory:"false" json:"customerTenancyId"` +} + +func (m UpdateCpgOverrideDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateCpgOverrideDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_request_response.go new file mode 100644 index 0000000000..cd2d8f0981 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateCpgOverrideRequest wrapper for the UpdateCpgOverride operation +type UpdateCpgOverrideRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. + CustomerCpgId *string `mandatory:"true" contributesTo:"path" name:"customerCpgId"` + + // The information to be updated. + UpdateCpgOverrideDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 UpdateCpgOverrideRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateCpgOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateCpgOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateCpgOverrideRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateCpgOverrideRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateCpgOverrideResponse wrapper for the UpdateCpgOverride operation +type UpdateCpgOverrideResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CpgOverride instance + CpgOverride `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 UpdateCpgOverrideResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateCpgOverrideResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_details.go new file mode 100644 index 0000000000..838b683175 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateLfsCpgInfoDetails The data required for creating a LFS CPG Info. +type UpdateLfsCpgInfoDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default capacity reservation. + DefaultCapacityReservationId *string `mandatory:"false" json:"defaultCapacityReservationId"` + + // The availability domain the Management Cell is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` +} + +func (m UpdateLfsCpgInfoDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateLfsCpgInfoDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_request_response.go new file mode 100644 index 0000000000..df0d6e4f12 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateLfsCpgInfoRequest wrapper for the UpdateLfsCpgInfo operation +type UpdateLfsCpgInfoRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. + LfsCpgId *string `mandatory:"true" contributesTo:"path" name:"lfsCpgId"` + + // The information to be updated. + UpdateLfsCpgInfoDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 UpdateLfsCpgInfoRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateLfsCpgInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateLfsCpgInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateLfsCpgInfoRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateLfsCpgInfoRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateLfsCpgInfoResponse wrapper for the UpdateLfsCpgInfo operation +type UpdateLfsCpgInfoResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The LfsCpgInfo instance + LfsCpgInfo `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 UpdateLfsCpgInfoResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateLfsCpgInfoResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_details.go new file mode 100644 index 0000000000..cc5b50e8b3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateLustreFileSystemDetails The data to update a Lustre file system. +type UpdateLustreFileSystemDetails struct { + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My Lustre file system` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Short description of the Lustre file system. + // Avoid entering confidential information. + FileSystemDescription *string `mandatory:"false" json:"fileSystemDescription"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A list of Network Security Group OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this lustre file system. + // A maximum of 5 is allowed. + // Setting this to an empty array after the list is created removes the lustre file system from all NSGs. + // For more information about NSGs, see Security Rules (https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The OCID (https://docs.oracle.com/iaas/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"` + + // Capacity of the Lustre file system in GB. You can increase capacity only in multiples of 5 TB. + CapacityInGBs *int `mandatory:"false" json:"capacityInGBs"` + + RootSquashConfiguration *RootSquashConfiguration `mandatory:"false" json:"rootSquashConfiguration"` +} + +func (m UpdateLustreFileSystemDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateLustreFileSystemDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go index f03549f60f..8894bf015c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go @@ -12,10 +12,6 @@ import ( ) // UpdateLustreFileSystemRequest wrapper for the UpdateLustreFileSystem operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateLustreFileSystem.go.html to see an example of how to use UpdateLustreFileSystemRequest. type UpdateLustreFileSystemRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_details.go new file mode 100644 index 0000000000..079242fe31 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_details.go @@ -0,0 +1,160 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateManagementCellDetails The data required for updating a ManagementCell. +type UpdateManagementCellDetails struct { + + // The current state of the Management cell. + LifecycleState UpdateManagementCellDetailsLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // ManagementCell can be categorized based on the customer filesystems it is hosting. + // Example: `RESTRICTED` category cell is restricted for use by only one customer + Category UpdateManagementCellDetailsCategoryEnum `mandatory:"false" json:"category,omitempty"` + + // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. + AvailableCapacityInGBs *int64 `mandatory:"false" json:"availableCapacityInGBs"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + Details *Details `mandatory:"false" json:"details"` +} + +func (m UpdateManagementCellDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateManagementCellDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateManagementCellDetailsLifecycleStateEnum(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(GetUpdateManagementCellDetailsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateManagementCellDetailsCategoryEnum(string(m.Category)); !ok && m.Category != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Category: %s. Supported values are: %s.", m.Category, strings.Join(GetUpdateManagementCellDetailsCategoryEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateManagementCellDetailsLifecycleStateEnum Enum with underlying type: string +type UpdateManagementCellDetailsLifecycleStateEnum string + +// Set of constants representing the allowable values for UpdateManagementCellDetailsLifecycleStateEnum +const ( + UpdateManagementCellDetailsLifecycleStateCreating UpdateManagementCellDetailsLifecycleStateEnum = "CREATING" + UpdateManagementCellDetailsLifecycleStateActive UpdateManagementCellDetailsLifecycleStateEnum = "ACTIVE" + UpdateManagementCellDetailsLifecycleStateInactive UpdateManagementCellDetailsLifecycleStateEnum = "INACTIVE" + UpdateManagementCellDetailsLifecycleStateDeleted UpdateManagementCellDetailsLifecycleStateEnum = "DELETED" +) + +var mappingUpdateManagementCellDetailsLifecycleStateEnum = map[string]UpdateManagementCellDetailsLifecycleStateEnum{ + "CREATING": UpdateManagementCellDetailsLifecycleStateCreating, + "ACTIVE": UpdateManagementCellDetailsLifecycleStateActive, + "INACTIVE": UpdateManagementCellDetailsLifecycleStateInactive, + "DELETED": UpdateManagementCellDetailsLifecycleStateDeleted, +} + +var mappingUpdateManagementCellDetailsLifecycleStateEnumLowerCase = map[string]UpdateManagementCellDetailsLifecycleStateEnum{ + "creating": UpdateManagementCellDetailsLifecycleStateCreating, + "active": UpdateManagementCellDetailsLifecycleStateActive, + "inactive": UpdateManagementCellDetailsLifecycleStateInactive, + "deleted": UpdateManagementCellDetailsLifecycleStateDeleted, +} + +// GetUpdateManagementCellDetailsLifecycleStateEnumValues Enumerates the set of values for UpdateManagementCellDetailsLifecycleStateEnum +func GetUpdateManagementCellDetailsLifecycleStateEnumValues() []UpdateManagementCellDetailsLifecycleStateEnum { + values := make([]UpdateManagementCellDetailsLifecycleStateEnum, 0) + for _, v := range mappingUpdateManagementCellDetailsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetUpdateManagementCellDetailsLifecycleStateEnumStringValues Enumerates the set of values in String for UpdateManagementCellDetailsLifecycleStateEnum +func GetUpdateManagementCellDetailsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETED", + } +} + +// GetMappingUpdateManagementCellDetailsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateManagementCellDetailsLifecycleStateEnum(val string) (UpdateManagementCellDetailsLifecycleStateEnum, bool) { + enum, ok := mappingUpdateManagementCellDetailsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateManagementCellDetailsCategoryEnum Enum with underlying type: string +type UpdateManagementCellDetailsCategoryEnum string + +// Set of constants representing the allowable values for UpdateManagementCellDetailsCategoryEnum +const ( + UpdateManagementCellDetailsCategoryGeneral UpdateManagementCellDetailsCategoryEnum = "GENERAL" + UpdateManagementCellDetailsCategoryInternal UpdateManagementCellDetailsCategoryEnum = "INTERNAL" + UpdateManagementCellDetailsCategoryRestricted UpdateManagementCellDetailsCategoryEnum = "RESTRICTED" +) + +var mappingUpdateManagementCellDetailsCategoryEnum = map[string]UpdateManagementCellDetailsCategoryEnum{ + "GENERAL": UpdateManagementCellDetailsCategoryGeneral, + "INTERNAL": UpdateManagementCellDetailsCategoryInternal, + "RESTRICTED": UpdateManagementCellDetailsCategoryRestricted, +} + +var mappingUpdateManagementCellDetailsCategoryEnumLowerCase = map[string]UpdateManagementCellDetailsCategoryEnum{ + "general": UpdateManagementCellDetailsCategoryGeneral, + "internal": UpdateManagementCellDetailsCategoryInternal, + "restricted": UpdateManagementCellDetailsCategoryRestricted, +} + +// GetUpdateManagementCellDetailsCategoryEnumValues Enumerates the set of values for UpdateManagementCellDetailsCategoryEnum +func GetUpdateManagementCellDetailsCategoryEnumValues() []UpdateManagementCellDetailsCategoryEnum { + values := make([]UpdateManagementCellDetailsCategoryEnum, 0) + for _, v := range mappingUpdateManagementCellDetailsCategoryEnum { + values = append(values, v) + } + return values +} + +// GetUpdateManagementCellDetailsCategoryEnumStringValues Enumerates the set of values in String for UpdateManagementCellDetailsCategoryEnum +func GetUpdateManagementCellDetailsCategoryEnumStringValues() []string { + return []string{ + "GENERAL", + "INTERNAL", + "RESTRICTED", + } +} + +// GetMappingUpdateManagementCellDetailsCategoryEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateManagementCellDetailsCategoryEnum(val string) (UpdateManagementCellDetailsCategoryEnum, bool) { + enum, ok := mappingUpdateManagementCellDetailsCategoryEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_request_response.go new file mode 100644 index 0000000000..fb5b98c7ff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateManagementCellRequest wrapper for the UpdateManagementCell operation +type UpdateManagementCellRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ManagementCell. + ManagementCellId *string `mandatory:"true" contributesTo:"path" name:"managementCellId"` + + // The information to be updated. + UpdateManagementCellDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 UpdateManagementCellRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateManagementCellRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateManagementCellRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateManagementCellRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateManagementCellRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateManagementCellResponse wrapper for the UpdateManagementCell operation +type UpdateManagementCellResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + // Use 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 UpdateManagementCellResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateManagementCellResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_details.go new file mode 100644 index 0000000000..da048de359 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateObjectStorageLinkDetails The data to update an Object Storage link. +type UpdateObjectStorageLinkDetails struct { + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My Object Storage Link` + DisplayName *string `mandatory:"false" json:"displayName"` + + // The flag is an identifier to tell whether the job run has overwrite enabled. + // If `isOverwrite` is false, the file to be imported or exported will be skipped if it already exists. + // If `isOverwrite` is true, the file to be imported or exported will be overwritten if it already exists. + IsOverwrite *bool `mandatory:"false" json:"isOverwrite"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateObjectStorageLinkDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateObjectStorageLinkDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go index 9f6373afba..bd822e5b28 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go @@ -12,10 +12,6 @@ import ( ) // UpdateObjectStorageLinkRequest wrapper for the UpdateObjectStorageLink operation -// -// # See also -// -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateObjectStorageLink.go.html to see an example of how to use UpdateObjectStorageLinkRequest. type UpdateObjectStorageLinkRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_details.go new file mode 100644 index 0000000000..2ae820a070 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_details.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdatePoolDetails The data required for updating a Pool. +type UpdatePoolDetails struct { + + // The type of pool + PoolType UpdatePoolDetailsPoolTypeEnum `mandatory:"false" json:"poolType,omitempty"` + + // Name of the pool + PoolName *string `mandatory:"false" json:"poolName"` + + // List of customer tenancies it is dedicated for + DedicatedCustomerTenancies []string `mandatory:"false" json:"dedicatedCustomerTenancies"` + + // The name of the site group this pool is associated with + SiteGroup *string `mandatory:"false" json:"siteGroup"` + + // List of customer tenancies it is dedicated for + Tags []string `mandatory:"false" json:"tags"` + + // List of customer tenancies it is dedicated for + Resources []interface{} `mandatory:"false" json:"resources"` + + // The pools that have affinity with this pool. + PoolAffinities *interface{} `mandatory:"false" json:"poolAffinities"` +} + +func (m UpdatePoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdatePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdatePoolDetailsPoolTypeEnum(string(m.PoolType)); !ok && m.PoolType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PoolType: %s. Supported values are: %s.", m.PoolType, strings.Join(GetUpdatePoolDetailsPoolTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdatePoolDetailsPoolTypeEnum Enum with underlying type: string +type UpdatePoolDetailsPoolTypeEnum string + +// Set of constants representing the allowable values for UpdatePoolDetailsPoolTypeEnum +const ( + UpdatePoolDetailsPoolTypeCompute UpdatePoolDetailsPoolTypeEnum = "COMPUTE" + UpdatePoolDetailsPoolTypeBlock UpdatePoolDetailsPoolTypeEnum = "BLOCK" +) + +var mappingUpdatePoolDetailsPoolTypeEnum = map[string]UpdatePoolDetailsPoolTypeEnum{ + "COMPUTE": UpdatePoolDetailsPoolTypeCompute, + "BLOCK": UpdatePoolDetailsPoolTypeBlock, +} + +var mappingUpdatePoolDetailsPoolTypeEnumLowerCase = map[string]UpdatePoolDetailsPoolTypeEnum{ + "compute": UpdatePoolDetailsPoolTypeCompute, + "block": UpdatePoolDetailsPoolTypeBlock, +} + +// GetUpdatePoolDetailsPoolTypeEnumValues Enumerates the set of values for UpdatePoolDetailsPoolTypeEnum +func GetUpdatePoolDetailsPoolTypeEnumValues() []UpdatePoolDetailsPoolTypeEnum { + values := make([]UpdatePoolDetailsPoolTypeEnum, 0) + for _, v := range mappingUpdatePoolDetailsPoolTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdatePoolDetailsPoolTypeEnumStringValues Enumerates the set of values in String for UpdatePoolDetailsPoolTypeEnum +func GetUpdatePoolDetailsPoolTypeEnumStringValues() []string { + return []string{ + "COMPUTE", + "BLOCK", + } +} + +// GetMappingUpdatePoolDetailsPoolTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdatePoolDetailsPoolTypeEnum(val string) (UpdatePoolDetailsPoolTypeEnum, bool) { + enum, ok := mappingUpdatePoolDetailsPoolTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_request_response.go new file mode 100644 index 0000000000..ad854db70b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdatePoolRequest wrapper for the UpdatePool operation +type UpdatePoolRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool. + PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` + + // The information to be updated. + UpdatePoolDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 UpdatePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdatePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdatePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdatePoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdatePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdatePoolResponse wrapper for the UpdatePool operation +type UpdatePoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Pool instance + Pool `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 UpdatePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdatePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_details.go new file mode 100644 index 0000000000..d36d47c243 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateTenancyOverrideDetails The data required for updating a Tenancy Override. +type UpdateTenancyOverrideDetails struct { + + // The override for a tenant. + Override *interface{} `mandatory:"true" json:"override"` +} + +func (m UpdateTenancyOverrideDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateTenancyOverrideDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_request_response.go new file mode 100644 index 0000000000..cc4ee63d47 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateTenancyOverrideRequest wrapper for the UpdateTenancyOverride operation +type UpdateTenancyOverrideRequest struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. + TenantId *string `mandatory:"true" contributesTo:"path" name:"tenantId"` + + // The ID associated with an override. + OverrideId *string `mandatory:"true" contributesTo:"path" name:"overrideId"` + + // The information to be updated. + UpdateTenancyOverrideDetails `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. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + 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 UpdateTenancyOverrideRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateTenancyOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateTenancyOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateTenancyOverrideRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateTenancyOverrideRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateTenancyOverrideResponse wrapper for the UpdateTenancyOverride operation +type UpdateTenancyOverrideResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TenancyOverride instance + TenancyOverride `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 UpdateTenancyOverrideResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateTenancyOverrideResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request.go new file mode 100644 index 0000000000..fc9723ce8a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request.go @@ -0,0 +1,79 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequest An asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation, +// the service creates a work request. A work request is an activity log that lets you track each step in the operation's +// progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation. +type WorkRequest struct { + + // The asynchronous operation tracked by this work request. + OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` + + // The status of the work request. + Status OperationStatusEnum `mandatory:"true" json:"status"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The resources that are affected by the work request. + Resources []WorkRequestResource `mandatory:"true" json:"resources"` + + // Shows the progress of the operation tracked by the work request, as a percentage of the total work + // that must be performed. + PercentComplete *float32 `mandatory:"true" json:"percentComplete"` + + // The date and time the work request was created, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` + + // The date and time the work request was started, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // The date and time the work request was finished, in the format defined by + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` + + // The date and time the work request was updated, in the format defined by + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` +} + +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("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_error.go new file mode 100644 index 0000000000..17707261e1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_error.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestError An error encountered while performing an operation that is tracked by a work request. +type WorkRequestError struct { + + // A machine-usable code for the error that occurred. For a list of error codes, see + // API Errors (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + Code *string `mandatory:"true" json:"code"` + + // A human-readable error message. + Message *string `mandatory:"true" json:"message"` + + // The date and time the error occurred, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + 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("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_error_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_error_collection.go new file mode 100644 index 0000000000..c51f87a21b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_error_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestErrorCollection A list of work request errors. Can contain both errors and other information, such as metadata. +type WorkRequestErrorCollection struct { + + // A list of work request errors. + Items []WorkRequestError `mandatory:"true" 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("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_log_entry.go new file mode 100644 index 0000000000..60eb74e4ba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_log_entry.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestLogEntry A log message from performing an operation that is tracked by a work request. +type WorkRequestLogEntry struct { + + // A human-readable log message. + Message *string `mandatory:"true" json:"message"` + + // The date and time the log message was written, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + 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("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_log_entry_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_log_entry_collection.go new file mode 100644 index 0000000000..3e5769127c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_log_entry_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestLogEntryCollection A list of work request logs. Can contain both logs and other information, such as metadata. +type WorkRequestLogEntryCollection struct { + + // A list of work request log entries. + Items []WorkRequestLogEntry `mandatory:"true" 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("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_resource.go new file mode 100644 index 0000000000..4dec939279 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_resource.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestResource A resource created or operated on by a work request. +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 operation 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 it transitions to CREATED, UPDATED, + // or DELETED, respectively. + ActionType ActionTypeEnum `mandatory:"true" json:"actionType"` + + // An OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource. + Identifier *string `mandatory:"true" json:"identifier"` + + // The URI path that you can use for 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("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_summary.go new file mode 100644 index 0000000000..1c3a62c551 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_summary.go @@ -0,0 +1,77 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestSummary Summary information about an asynchronous work request. +type WorkRequestSummary struct { + + // The asynchronous operation tracked by this work request. + OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` + + // The status of the work request. + Status OperationStatusEnum `mandatory:"true" json:"status"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The resources that are affected by this work request. + Resources []WorkRequestResource `mandatory:"true" json:"resources"` + + // Shows the progress of the operation tracked by the work request, as a percentage of the total work + // that must be performed. + PercentComplete *float32 `mandatory:"true" json:"percentComplete"` + + // The date and time the work request was created, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` + + // The date and time the work request was started, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // The date and time the work request was finished, in the format defined by + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` + + // The date and time the work request was updated, in the format defined by + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` +} + +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("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_summary_collection.go new file mode 100644 index 0000000000..d15e1f82d1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/work_request_summary_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API +// +// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). +// + +package lustrefilestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestSummaryCollection A list of work requests. Can contain both work requests and other information, such as metadata. +type WorkRequestSummaryCollection struct { + + // A list of work requests. + Items []WorkRequestSummary `mandatory:"true" json:"items"` +} + +func (m WorkRequestSummaryCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestSummaryCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 3738b92f25..e722801212 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -421,6 +421,7 @@ 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/lustrefilestorage github.com/oracle/oci-go-sdk/v65/monitoring github.com/oracle/oci-go-sdk/v65/networkloadbalancer # github.com/pelletier/go-toml v1.9.5 From 770b0058a6ce36936d4fa7cfd537baed2b4e6edb Mon Sep 17 00:00:00 2001 From: sumantac Date: Mon, 13 Oct 2025 18:22:57 +0530 Subject: [PATCH 12/24] Tagging controller changes --- pkg/cloudprovider/providers/oci/ccm.go | 96 +++++++ pkg/cloudprovider/providers/oci/ccm_test.go | 205 ++++++++++++++ .../providers/oci/instances_test.go | 12 + .../providers/oci/tagging_controller.go | 258 ++++++++++++++++++ .../providers/oci/tagging_controller_test.go | 233 ++++++++++++++++ pkg/csi/driver/bv_controller_test.go | 6 +- pkg/oci/client/client.go | 1 + pkg/oci/client/client_test.go | 8 +- pkg/oci/client/compute.go | 19 ++ pkg/volume/provisioner/block/block_test.go | 4 + pkg/volume/provisioner/fss/fss_test.go | 4 + .../cloud-provider-oci/tagging_controller.go | 140 ++++++++++ .../zap/zaptest/observer/logged_entry.go | 39 +++ .../zap/zaptest/observer/observer.go | 196 +++++++++++++ vendor/modules.txt | 1 + 15 files changed, 1219 insertions(+), 3 deletions(-) create mode 100644 pkg/cloudprovider/providers/oci/ccm_test.go create mode 100644 pkg/cloudprovider/providers/oci/tagging_controller.go create mode 100644 pkg/cloudprovider/providers/oci/tagging_controller_test.go create mode 100644 test/e2e/cloud-provider-oci/tagging_controller.go create mode 100644 vendor/go.uber.org/zap/zaptest/observer/logged_entry.go create mode 100644 vendor/go.uber.org/zap/zaptest/observer/observer.go diff --git a/pkg/cloudprovider/providers/oci/ccm.go b/pkg/cloudprovider/providers/oci/ccm.go index d6a620e9f6..acb2a05d42 100644 --- a/pkg/cloudprovider/providers/oci/ccm.go +++ b/pkg/cloudprovider/providers/oci/ccm.go @@ -20,13 +20,18 @@ import ( "context" "fmt" "io" + "os" + "strings" "time" "github.com/pkg/errors" "go.uber.org/zap" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/apimachinery/pkg/selection" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/informers" + v1 "k8s.io/client-go/informers/core/v1" clientset "k8s.io/client-go/kubernetes" listersv1 "k8s.io/client-go/listers/core/v1" "k8s.io/client-go/tools/cache" @@ -45,6 +50,12 @@ const ( // (OCI) cloud-provider. providerName = "oci" providerPrefix = providerName + "://" + + disableInstanceTaggingController = "DISABLE_INSTANCE_TAGGING_CONTROLLER" + openshiftNodeLabelId = "OPENSHIFT_NODE_LABEL_ID" + // Default OpenShift node OS label key/value + openshiftOSLabelKey = "node.openshift.io/os_id" + openshiftOSLabelRHEL = "rhel" ) // ProviderName uniquely identifies the Oracle Bare Metal Cloud Services (OCI) @@ -192,6 +203,25 @@ func (cp *CloudProvider) Initialize(clientBuilder cloudprovider.ControllerClient go nodeInfoController.Run(wait.NeverStop) + // If the cluster is type OpenShift then the Tagging Controller + // should be enabled. + isOpenShiftCluster := cp.isOpenShiftCluster(nodeInformer) + if isOpenShiftCluster { + if GetIsFeatureEnabledFromEnv(cp.logger, disableInstanceTaggingController, false) { + cp.logger.Info("Tagging controller disabled via environment variable DISABLE_INSTANCE_TAGGING_CONTROLLER") + } else { + cp.logger.Info("Tagging controller enabled") + taggingController := NewTaggingController( + nodeInformer, + cp.kubeclient, + cp, + cp.logger.With("controller", "tagging-controller"), + cp.client, + ) + go taggingController.Run(wait.NeverStop) + } + } + cp.logger.Info("Waiting for node informer cache to sync") if !cache.WaitForCacheSync(wait.NeverStop, nodeInformer.Informer().HasSynced, serviceInformer.Informer().HasSynced) { utilruntime.HandleError(fmt.Errorf("Timed out waiting for informers to sync")) @@ -280,3 +310,69 @@ func (cp *CloudProvider) HasClusterID() bool { func instanceCacheKeyFn(obj interface{}) (string, error) { return *obj.(*core.Instance).Id, nil } + +func (cp *CloudProvider) isOpenShiftCluster(informer v1.NodeInformer) bool { + labelIdentifier := strings.TrimSpace(os.Getenv(openshiftNodeLabelId)) + if labelIdentifier == "" { + // Fallback: if env var not provided, inspect nodes directly for the default OpenShift label + cp.logger.Info("OpenShift node label identifier not provided; checking for node label node.openshift.io/os_id=rhel") + nodes, err := informer.Lister().List(labels.Everything()) + if err != nil { + cp.logger.Error("Failed to list nodes for OpenShift default label check", "error", err) + return false + } + for _, n := range nodes { + if val, ok := n.Labels[openshiftOSLabelKey]; ok && val == openshiftOSLabelRHEL { + cp.logger.Info("Detected OpenShift node by default label", "node", n.Name) + return true + } + } + return false + } + + selector, err := parseOpenShiftLabelSelector(labelIdentifier) + if err != nil { + cp.logger.Error("Invalid OpenShift node label identifier", "label", labelIdentifier, "error", err) + return false + } + + nodes, err := informer.Lister().List(selector) + if err != nil { + cp.logger.Error("Failed to list nodes for OpenShift label", "label", labelIdentifier, "error", err) + return false + } + + if len(nodes) > 0 { + cp.logger.Info("Detected OpenShift node label", "label", labelIdentifier) + return true + } + return false +} + +// parseOpenShiftLabelSelector parses an OpenShift node label identifier into a Kubernetes labels.Selector. +// The identifier may be in "key" form (Exists) or "key=value" form (Equals). Surrounding whitespace is ignored. +// It returns a selector matching nodes with the given label or an error if the identifier is empty or malformed. +func parseOpenShiftLabelSelector(labelIdentifier string) (labels.Selector, error) { + labelIdentifier = strings.TrimSpace(labelIdentifier) + + // Support both "key" (Exists) and "key=value" (Equals) forms. + if strings.Contains(labelIdentifier, "=") { + parts := strings.SplitN(labelIdentifier, "=", 2) + key := strings.TrimSpace(parts[0]) + val := strings.TrimSpace(parts[1]) + if key == "" || val == "" { + return nil, fmt.Errorf("invalid label identifier %q", labelIdentifier) + } + req, err := labels.NewRequirement(key, selection.Equals, []string{val}) + if err != nil { + return nil, err + } + return labels.NewSelector().Add(*req), nil + } + + req, err := labels.NewRequirement(labelIdentifier, selection.Exists, nil) + if err != nil { + return nil, err + } + return labels.NewSelector().Add(*req), nil +} diff --git a/pkg/cloudprovider/providers/oci/ccm_test.go b/pkg/cloudprovider/providers/oci/ccm_test.go new file mode 100644 index 0000000000..a7cc2308ed --- /dev/null +++ b/pkg/cloudprovider/providers/oci/ccm_test.go @@ -0,0 +1,205 @@ +package oci + +import ( + "errors" + "fmt" + "testing" + + "go.uber.org/zap" + v1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/labels" + listersv1 "k8s.io/client-go/listers/core/v1" + "k8s.io/client-go/tools/cache" +) + +type stubNodeInformer struct { + lister listersv1.NodeLister +} + +func (f *stubNodeInformer) Informer() cache.SharedIndexInformer { + return nil +} + +func (f *stubNodeInformer) Lister() listersv1.NodeLister { + return f.lister +} + +type stubNodeLister struct { + nodes []*v1.Node + listErr error +} + +func (f *stubNodeLister) List(selector labels.Selector) ([]*v1.Node, error) { + if f.listErr != nil { + return nil, f.listErr + } + if selector == nil { + return append([]*v1.Node(nil), f.nodes...), nil + } + var filtered []*v1.Node + for _, node := range f.nodes { + if selector.Matches(labels.Set(node.Labels)) { + filtered = append(filtered, node) + } + } + return filtered, nil +} + +func (f *stubNodeLister) Get(name string) (*v1.Node, error) { + for _, node := range f.nodes { + if node.Name == name { + return node, nil + } + } + return nil, fmt.Errorf("node %q not found", name) +} + +func TestIsOpenShiftCluster(t *testing.T) { + logger := zap.NewNop().Sugar() + cp := &CloudProvider{logger: logger} + + workerNode := &v1.Node{ + ObjectMeta: metav1.ObjectMeta{ + Name: "worker-1", + Labels: map[string]string{ + "node-role.kubernetes.io/worker": "", + }, + }, + } + infraNode := &v1.Node{ + ObjectMeta: metav1.ObjectMeta{ + Name: "infra-1", + Labels: map[string]string{ + "node-role.kubernetes.io/infra": "", + "openshift.io/cluster": "true", + }, + }, + } + + tests := []struct { + name string + labelEnv string + lister listersv1.NodeLister + want bool + }{ + { + name: "empty label identifier falls back and returns true when default label exists", + labelEnv: "", + lister: &stubNodeLister{nodes: []*v1.Node{{ + ObjectMeta: metav1.ObjectMeta{ + Name: "n1", + Labels: map[string]string{"node.openshift.io/os_id": "rhel"}, + }, + }}}, + want: true, + }, + { + name: "empty label identifier falls back and returns false when default label missing", + labelEnv: "", + lister: &stubNodeLister{nodes: []*v1.Node{{ + ObjectMeta: metav1.ObjectMeta{ + Name: "n2", + Labels: map[string]string{"some": "label"}, + }, + }}}, + want: false, + }, + { + name: "empty label identifier falls back and returns false when default label value is not rhel", + labelEnv: "", + lister: &stubNodeLister{nodes: []*v1.Node{{ + ObjectMeta: metav1.ObjectMeta{ + Name: "n3", + Labels: map[string]string{"node.openshift.io/os_id": "rhcos"}, + }, + }}}, + want: false, + }, + { + name: "invalid label identifier returns false", + labelEnv: "openshift.io/cluster=", + lister: &stubNodeLister{}, + want: false, + }, + { + name: "list error returns false", + labelEnv: "openshift.io/cluster=true", + lister: &stubNodeLister{ + listErr: errors.New("list failed"), + }, + want: false, + }, + { + name: "no matching nodes returns false", + labelEnv: "openshift.io/cluster=true", + lister: &stubNodeLister{ + nodes: []*v1.Node{workerNode}, + }, + want: false, + }, + { + name: "equals selector matches node", + labelEnv: " openshift.io/cluster = true ", + lister: &stubNodeLister{ + nodes: []*v1.Node{workerNode, infraNode}, + }, + want: true, + }, + { + name: "exists selector matches node", + labelEnv: "node-role.kubernetes.io/worker", + lister: &stubNodeLister{ + nodes: []*v1.Node{workerNode}, + }, + want: true, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Setenv(openshiftNodeLabelId, tt.labelEnv) + informer := &stubNodeInformer{lister: tt.lister} + if got := cp.isOpenShiftCluster(informer); got != tt.want { + t.Errorf("isOpenShiftCluster() = %v, want %v", got, tt.want) + } + }) + } +} + +func TestParseOpenShiftLabelSelectorEquals(t *testing.T) { + selector, err := parseOpenShiftLabelSelector(" role = infra ") + if err != nil { + t.Fatalf("parseOpenShiftLabelSelector returned error: %v", err) + } + + if !selector.Matches(labels.Set{"role": "infra"}) { + t.Fatalf("expected selector to match node with role=infra") + } + if selector.Matches(labels.Set{"role": "worker"}) { + t.Fatalf("did not expect selector to match node with role=worker") + } +} + +func TestParseOpenShiftLabelSelectorExists(t *testing.T) { + selector, err := parseOpenShiftLabelSelector("node-role.kubernetes.io/worker") + if err != nil { + t.Fatalf("parseOpenShiftLabelSelector returned error: %v", err) + } + + if !selector.Matches(labels.Set{"node-role.kubernetes.io/worker": ""}) { + t.Fatalf("expected selector to match node with worker role label") + } + if selector.Matches(labels.Set{"node-role.kubernetes.io/infra": ""}) { + t.Fatalf("did not expect selector to match infra role label") + } +} + +func TestParseOpenShiftLabelSelectorInvalid(t *testing.T) { + if _, err := parseOpenShiftLabelSelector("openshift.io/cluster="); err == nil { + t.Fatalf("expected error for invalid label identifier") + } + if _, err := parseOpenShiftLabelSelector("="); err == nil { + t.Fatalf("expected error for missing key and value") + } +} diff --git a/pkg/cloudprovider/providers/oci/instances_test.go b/pkg/cloudprovider/providers/oci/instances_test.go index f93afb2ef6..6caa26412e 100644 --- a/pkg/cloudprovider/providers/oci/instances_test.go +++ b/pkg/cloudprovider/providers/oci/instances_test.go @@ -956,6 +956,18 @@ func (c *MockComputeClient) AttachVnic(ctx context.Context, instanceID, subnetID return core.VnicAttachment{}, nil } +func (c *MockComputeClient) UpdateInstance(ctx context.Context, request core.UpdateInstanceRequest) (*core.Instance, error) { + // Return mock or expected response + return &core.Instance{ + AvailabilityDomain: common.String("NWuj:PHX-AD-1"), + Id: request.InstanceId, + Region: common.String("PHX"), + Shape: common.String("VM.Standard1.2"), + DisplayName: request.DisplayName, + DefinedTags: request.DefinedTags, + }, nil +} + func (MockComputeClient) FindVolumeAttachment(ctx context.Context, compartmentID, volumeID string, instanceID *string) (core.VolumeAttachment, error) { return nil, nil } diff --git a/pkg/cloudprovider/providers/oci/tagging_controller.go b/pkg/cloudprovider/providers/oci/tagging_controller.go new file mode 100644 index 0000000000..0d00c1c55f --- /dev/null +++ b/pkg/cloudprovider/providers/oci/tagging_controller.go @@ -0,0 +1,258 @@ +// Copyright 2017 Oracle and/or its affiliates. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package oci + +import ( + "context" + "reflect" + "time" + + "go.uber.org/zap" + "golang.org/x/time/rate" + v1 "k8s.io/api/core/v1" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/apimachinery/pkg/util/wait" + coreinformers "k8s.io/client-go/informers/core/v1" + "k8s.io/client-go/kubernetes" + clientset "k8s.io/client-go/kubernetes" + "k8s.io/client-go/tools/cache" + "k8s.io/client-go/util/workqueue" + + "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-cloud-controller-manager/pkg/util" + "github.com/oracle/oci-go-sdk/v65/core" +) + +const ( + reconcileRetryingMinutes = 240 + workerRestartIntervalinMinutes = 2 + openshiftTagNamespace = "openshift-tags" + openshiftTagKey = "openshift-resource" + openshiftTagValue = "openshift-resource-infra" + definedTagLimit = 64 +) + +type TaggingController struct { + nodeInformer coreinformers.NodeInformer + logger *zap.SugaredLogger + kubeClient clientset.Interface + cloud *CloudProvider + queue workqueue.RateLimitingInterface + ociClient client.Interface +} + +// TaggingControllerRateLimiter enforces at most one retry every ten minutes for tagging controller work queues. +func TaggingControllerRateLimiter() workqueue.RateLimiter { + tenMinuteDelay := 10 * time.Minute + return workqueue.NewMaxOfRateLimiter( + // Ensure each retry is at least 10 minutes apart regardless of failures + workqueue.NewItemExponentialFailureRateLimiter(tenMinuteDelay, tenMinuteDelay), + // Limit overall processing to one operation per 10 minutes + &workqueue.BucketRateLimiter{Limiter: rate.NewLimiter(rate.Every(tenMinuteDelay), 1)}, + ) +} + +// NewTaggingController creates a TaggingController object +func NewTaggingController( + nodeInformer coreinformers.NodeInformer, + kubeClient kubernetes.Interface, + cloud *CloudProvider, + logger *zap.SugaredLogger, + ociClient client.Interface) *TaggingController { + + tc := &TaggingController{ + nodeInformer: nodeInformer, + kubeClient: kubeClient, + logger: logger, + cloud: cloud, + queue: workqueue.NewRateLimitingQueue(TaggingControllerRateLimiter()), + ociClient: ociClient, + } + + // Use shared informer to listen to add nodes + tc.nodeInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ + AddFunc: func(obj interface{}) { + node := obj.(*v1.Node) + tc.queue.Add(node.Name) + }, + UpdateFunc: func(_, newObj interface{}) { + node := newObj.(*v1.Node) + tc.queue.Add(node.Name) + }, + }) + + return tc + +} + +func (tc *TaggingController) Run(stopCh <-chan struct{}) { + defer tc.queue.ShutDown() + tc.logger.Info("Starting tagging controller") + wait.Until(func() { + if err := tc.runWorker(stopCh); err != nil { + tc.logger.Error(err, "runWorker error", "TaggingController") + } + }, workerRestartIntervalinMinutes*time.Minute, stopCh) + +} + +func (tc *TaggingController) runWorker(stopCh <-chan struct{}) error { + nodeLister := tc.nodeInformer.Lister() + + ticker := time.NewTicker(reconcileRetryingMinutes * time.Minute) + defer ticker.Stop() + + for { + select { + case <-stopCh: + tc.logger.Info("Tagging Controller stopped") + return nil + case <-ticker.C: + nodes, err := nodeLister.List(labels.Everything()) + if err != nil { + tc.logger.Error("Failed to list nodes: %v", err) + return err + } + for _, node := range nodes { + tc.logger.Info("processing node: ", node.Name) + tc.ReconcileNodeTags(context.Background(), node) + } + } + } +} + +// ReconcileNodeTags retrieves instance details, merges required tags with existing defined tags, +// and calls the UpdateInstance API to apply the changes. +func (tc *TaggingController) ReconcileNodeTags(ctx context.Context, node *v1.Node) { + + if node == nil { + tc.logger.Error("node is nil") + return + } + tc.logger.Infow("Getting instanceOcid for node", "node", node.Name) + instanceOCID, err := MapProviderIDToResourceID(node.Spec.ProviderID) + if err != nil { + tc.logger.Error("Failed to get/retrieve instanceOCID for node %s: %v", node.Name, err) + return + } + logger := tc.logger.With("nodeName", node.Name, "instanceId", instanceOCID) + + logger.Info("Resolved instance OCID") + instance, err := tc.ociClient.Compute().GetInstance(ctx, instanceOCID) + if err != nil { + logger.Errorw("Failed to get instance for node", "error", err) + return + } + + logger.Infof("Existing defined tags on node: %v", instance.DefinedTags) + + var t *config.TagConfig + if tc.cloud.config.Tags == nil || tc.cloud.config.Tags.Common == nil { + logger.Warnf("Tag config is nil; using empty TagConfig for node") + t = &config.TagConfig{ + FreeformTags: map[string]string{}, + DefinedTags: map[string]map[string]interface{}{}, + } + } else { + t = tc.cloud.config.Tags.Common + } + + // Ensure the OpenShift defined tag namespace, key and value are present on the TagConfig. + ns, ok := t.DefinedTags[openshiftTagNamespace] + if !ok { + t.DefinedTags[openshiftTagNamespace] = map[string]interface{}{ + openshiftTagKey: openshiftTagValue, + } + } else if val, ok := ns[openshiftTagKey]; !ok || !reflect.DeepEqual(val, openshiftTagValue) { + ns[openshiftTagKey] = openshiftTagValue + } + + logger.Infow( + "Defined tags to reconcile on node", + "definedTagsToReconcile", t.DefinedTags, + "definedTagsExistingOnNode", instance.DefinedTags) + + if tc.hasRequiredDefinedTags(instance.DefinedTags, t.DefinedTags) { + logger.Infof("Node already has required defined tags; skipping update") + return + } + + instanceTagConfig := &config.TagConfig{ + FreeformTags: instance.FreeformTags, + DefinedTags: instance.DefinedTags, + } + + // MergeTags - Retrieve all defined tags currently set on the instance, + // and merge them with the required tags that should be present. + tags := util.MergeTagConfig(instanceTagConfig, t) + + // If the instance has already reached the defined tag limit, skip update to avoid API failure + if countDefinedTags(instance.DefinedTags) >= definedTagLimit { + logger.Warnf("Instance has %d defined tags which is the maximum allowed; cannot add required tags. Skipping update.", countDefinedTags(instance.DefinedTags)) + return + } + + _, err = tc.ociClient.Compute().UpdateInstance(ctx, core.UpdateInstanceRequest{ + InstanceId: &instanceOCID, + UpdateInstanceDetails: core.UpdateInstanceDetails{ + DefinedTags: tags.DefinedTags, + FreeformTags: tags.FreeformTags, + }, + }) + if err != nil { + logger.Error("Failed to update defined tags for node : %v", err) + return + } + logger.Info("Successfully updated defined tags for node ") +} + +// hasRequiredDefinedTags verifies that all required defined tags exist on the instance. +// This includes the OpenShift defined tags. +func (tc *TaggingController) hasRequiredDefinedTags(instanceDefinedTags, requiredDefinedTags map[string]map[string]interface{}) bool { + if requiredDefinedTags == nil { + return true + } + if len(requiredDefinedTags) > 0 { + if len(instanceDefinedTags) == 0 { + return false + } + for namespace, tags := range requiredDefinedTags { + existingNamespace, ok := instanceDefinedTags[namespace] + if !ok { + return false + } + for key, value := range tags { + existingValue, ok := existingNamespace[key] + if !ok || !reflect.DeepEqual(existingValue, value) { + return false + } + } + } + } + return true +} + +// countDefinedTags returns the total count of defined tag key-value pairs across all namespaces. +func countDefinedTags(tags map[string]map[string]interface{}) int { + if len(tags) == 0 { + return 0 + } + total := 0 + for _, ns := range tags { + total += len(ns) + } + return total +} diff --git a/pkg/cloudprovider/providers/oci/tagging_controller_test.go b/pkg/cloudprovider/providers/oci/tagging_controller_test.go new file mode 100644 index 0000000000..3fff1fe3cc --- /dev/null +++ b/pkg/cloudprovider/providers/oci/tagging_controller_test.go @@ -0,0 +1,233 @@ +package oci + +import ( + "context" + "fmt" + "strings" + "testing" + + "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" + providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" + ociClient "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" + "github.com/oracle/oci-go-sdk/v65/core" + "go.uber.org/zap" + "go.uber.org/zap/zaptest/observer" + v1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +func newTestLogger(t *testing.T) *zap.SugaredLogger { + logger, err := zap.NewDevelopment() + if err != nil { + t.Fatalf("Failed to create logger: %v", err) + } + return logger.Sugar() +} + +func TestHasRequiredDefinedTags(t *testing.T) { + tc := &TaggingController{} + tests := []struct { + name string + instance *core.Instance + required *config.TagConfig + want bool + }{ + { + name: "no requirements", + instance: &core.Instance{}, + required: nil, + want: true, + }, + { + name: "all defined tags present", + instance: &core.Instance{ + DefinedTags: map[string]map[string]interface{}{ + "openshift-tags": {openshiftTagKey: openshiftTagValue}, + }, + }, + required: &config.TagConfig{ + DefinedTags: map[string]map[string]interface{}{ + "openshift-tags": {openshiftTagKey: openshiftTagValue}, + }, + }, + want: true, + }, + { + name: "missing defined namespace", + instance: &core.Instance{ + DefinedTags: map[string]map[string]interface{}{}, + }, + required: &config.TagConfig{ + DefinedTags: map[string]map[string]interface{}{ + "openshift-tags": {openshiftTagKey: openshiftTagValue}, + }, + }, + want: false, + }, + { + name: "missing defined tag value", + instance: &core.Instance{ + DefinedTags: map[string]map[string]interface{}{ + "openshift-tags": {"other": "value"}, + }, + }, + required: &config.TagConfig{ + DefinedTags: map[string]map[string]interface{}{ + "openshift-tags": {openshiftTagKey: openshiftTagValue}, + }, + }, + want: false, + }, + { + name: "no required defined tags", + instance: &core.Instance{ + DefinedTags: map[string]map[string]interface{}{ + "foo": {"bar": "baz"}, + }, + }, + required: &config.TagConfig{DefinedTags: map[string]map[string]interface{}{}}, + want: true, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + var requiredDefinedTags map[string]map[string]interface{} + if tt.required != nil { + requiredDefinedTags = tt.required.DefinedTags + } + if got := tc.hasRequiredDefinedTags(tt.instance.DefinedTags, requiredDefinedTags); got != tt.want { + t.Fatalf("hasRequiredDefinedTags() = %v, want %v", got, tt.want) + } + }) + } +} + +func TestMapProviderIDToResourceID_Basic(t *testing.T) { + tests := []struct { + name string + providerID string + wantID string + wantError string + }{ + { + name: "valid oci provider prefix", + providerID: providerPrefix + "ocid1.instance.oc1..aaaaaaaaxxx", + wantID: "ocid1.instance.oc1..aaaaaaaaxxx", + wantError: "", + }, + { + name: "empty provider id", + providerID: "", + wantID: "", + wantError: "empty", + }, + { + name: "wrong provider prefix", + providerID: "aws://i-xxxxx", + wantID: "aws://i-xxxxx", + wantError: "not valid for oci", + }, + { + name: "raw ocid without provider prefix", + providerID: "ocid1.instance.oc1..rawid", + wantID: "ocid1.instance.oc1..rawid", + wantError: "", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + gotID, err := MapProviderIDToResourceID(tt.providerID) + if gotID != tt.wantID { + t.Errorf("got ID %q, want %q", gotID, tt.wantID) + } + if tt.wantError != "" { + if err == nil || !strings.Contains(err.Error(), tt.wantError) { + t.Errorf("expected error containing %q, got %v", tt.wantError, err) + } + } else if err != nil { + t.Errorf("expected no error, got %v", err) + } + }) + } +} + +// --- ReconcileNodeTags tests --- + +// recordingComputeClient wraps MockComputeClient to record UpdateInstance invocations and return a custom instance. +type recordingComputeClient struct { + MockComputeClient + instance *core.Instance + updateCalled bool +} + +func (r *recordingComputeClient) GetInstance(ctx context.Context, id string) (*core.Instance, error) { + return r.instance, nil +} + +func (r *recordingComputeClient) UpdateInstance(ctx context.Context, request core.UpdateInstanceRequest) (*core.Instance, error) { + r.updateCalled = true + return r.instance, nil +} + +// recordingOCIClient implements client.Interface returning the provided compute client and stubs others. +type recordingOCIClient struct{ compute ociClient.ComputeInterface } + +func (m recordingOCIClient) Compute() ociClient.ComputeInterface { return m.compute } +func (m recordingOCIClient) LoadBalancer(*zap.SugaredLogger, string, *ociClient.OCIClientConfig) ociClient.GenericLoadBalancerInterface { + return nil +} +func (m recordingOCIClient) Networking(*ociClient.OCIClientConfig) ociClient.NetworkingInterface { + return nil +} +func (m recordingOCIClient) BlockStorage() ociClient.BlockStorageInterface { return nil } +func (m recordingOCIClient) FSS(*ociClient.OCIClientConfig) ociClient.FileStorageInterface { + return nil +} +func (m recordingOCIClient) Identity(*ociClient.OCIClientConfig) ociClient.IdentityInterface { + return nil +} +func (m recordingOCIClient) ContainerEngine() ociClient.ContainerEngineInterface { return nil } +func (m recordingOCIClient) NewWorkloadIdentityClient(*zap.SugaredLogger, string, *ociClient.OCIClientConfig) ociClient.Interface { + return m +} + +func TestReconcileNodeTags_SkipWhenAtLimit(t *testing.T) { + coreLogger, recorded := observer.New(zap.InfoLevel) + logger := zap.New(coreLogger).Sugar() + + // Create an instance with 64 defined tags and missing the required OpenShift tag + dt := map[string]map[string]interface{}{"ns": {}} + for i := 0; i < 64; i++ { + key := fmt.Sprintf("k%d", i) + dt["ns"][key] = "v" + } + inst := &core.Instance{DefinedTags: dt} + + rcc := &recordingComputeClient{instance: inst} + roc := recordingOCIClient{compute: rcc} + + cp := &CloudProvider{config: &providercfg.Config{Tags: &providercfg.InitialTags{Common: &config.TagConfig{DefinedTags: map[string]map[string]interface{}{openshiftTagNamespace: {openshiftTagKey: openshiftTagValue}}}}}, logger: logger} + + tc := &TaggingController{logger: logger, cloud: cp, ociClient: roc} + + node := &v1.Node{ObjectMeta: metav1.ObjectMeta{Name: "n1"}, Spec: v1.NodeSpec{ProviderID: providerPrefix + "ocid1.limit"}} + + tc.ReconcileNodeTags(context.Background(), node) + + if rcc.updateCalled { + t.Fatalf("expected UpdateInstance to be skipped when instance has 64 defined tags, but it was called") + } + + // Optional: ensure a warning was logged about skipping due to limit + foundWarn := false + for _, e := range recorded.All() { + if strings.Contains(e.Message, "Skipping update") { + foundWarn = true + break + } + } + if !foundWarn { + t.Fatalf("expected a warning log about skipping update due to tag limit") + } +} diff --git a/pkg/csi/driver/bv_controller_test.go b/pkg/csi/driver/bv_controller_test.go index ed417b39b7..07b3d4c2b5 100644 --- a/pkg/csi/driver/bv_controller_test.go +++ b/pkg/csi/driver/bv_controller_test.go @@ -630,6 +630,10 @@ type MockComputeClient struct { compute util.MockOCIComputeClient } +func (c *MockComputeClient) UpdateInstance(ctx context.Context, request core.UpdateInstanceRequest) (*core.Instance, error) { + return nil, nil +} + func (c *MockComputeClient) ListInstancesByCompartmentAndAD(ctx context.Context, compartmentId, availabilityDomain string) (response []core.Instance, err error) { return nil, nil } @@ -1390,7 +1394,7 @@ func TestControllerDriver_ControllerPublishVolume(t *testing.T) { }, }, }, - want: nil, + want: nil, wantErr: errors.New("Failed to attach volume shareable-volume-with-nonshareable-attachments to node sample-provider-id. The volume already has a non-shareable attachment shareable-volume-with-nonshareable-attachments to instance sample-provider-id-2."), }, } diff --git a/pkg/oci/client/client.go b/pkg/oci/client/client.go index 12e7a6da69..cb44b1ec67 100644 --- a/pkg/oci/client/client.go +++ b/pkg/oci/client/client.go @@ -75,6 +75,7 @@ type computeClient interface { AttachVolume(ctx context.Context, request core.AttachVolumeRequest) (response core.AttachVolumeResponse, err error) DetachVolume(ctx context.Context, request core.DetachVolumeRequest) (response core.DetachVolumeResponse, err error) ListInstanceDevices(ctx context.Context, request core.ListInstanceDevicesRequest) (response core.ListInstanceDevicesResponse, err error) + UpdateInstance(ctx context.Context, request core.UpdateInstanceRequest) (response core.UpdateInstanceResponse, err error) } type virtualNetworkClient interface { diff --git a/pkg/oci/client/client_test.go b/pkg/oci/client/client_test.go index 7960981ec7..47fe1295e0 100644 --- a/pkg/oci/client/client_test.go +++ b/pkg/oci/client/client_test.go @@ -166,6 +166,10 @@ func (c *mockComputeClient) AttachVnic(ctx context.Context, request core.AttachV return core.AttachVnicResponse{}, nil } +func (c *mockComputeClient) UpdateInstance(ctx context.Context, request core.UpdateInstanceRequest) (response core.UpdateInstanceResponse, err error) { + return response, nil +} + func (c *mockComputeClient) GetVolumeAttachment(ctx context.Context, request core.GetVolumeAttachmentRequest) (response core.GetVolumeAttachmentResponse, err error) { return core.GetVolumeAttachmentResponse{}, nil } @@ -194,8 +198,8 @@ func (c *mockComputeClient) ListInstanceDevices(ctx context.Context, request cor } else if *request.InstanceId == "ocid1.one-device-path-available" { return core.ListInstanceDevicesResponse{ Items: []core.Device{{ - Name: &devicePath, - }, + Name: &devicePath, + }, }, }, nil } diff --git a/pkg/oci/client/compute.go b/pkg/oci/client/compute.go index 99e3993892..33034c7c5c 100644 --- a/pkg/oci/client/compute.go +++ b/pkg/oci/client/compute.go @@ -36,6 +36,8 @@ type ComputeInterface interface { GetSecondaryVNICsForInstance(ctx context.Context, compartmentID, instanceID string) ([]*core.Vnic, error) + UpdateInstance(ctx context.Context, request core.UpdateInstanceRequest) (*core.Instance, error) + VolumeAttachmentInterface } @@ -230,6 +232,23 @@ func (c *client) GetSecondaryVNICsForInstance(ctx context.Context, compartmentID return secondaryVnics, nil } +func (c *client) UpdateInstance(ctx context.Context, request core.UpdateInstanceRequest) (*core.Instance, error) { + var instanceId string + if request.InstanceId != nil { + instanceId = *request.InstanceId + } + + c.logger.With( + "instanceOcid", instanceId, + ).Info("UpdateInstance API call") + + resp, err := c.compute.UpdateInstance(ctx, request) + if err != nil { + return nil, errors.WithStack(err) + } + return &resp.Instance, nil +} + func (c *client) GetInstanceByNodeName(ctx context.Context, compartmentID, vcnID, nodeName string) (*core.Instance, error) { // First try lookup by display name. instance, err := c.getInstanceByDisplayName(ctx, compartmentID, nodeName) diff --git a/pkg/volume/provisioner/block/block_test.go b/pkg/volume/provisioner/block/block_test.go index be0cf6791b..596c608151 100644 --- a/pkg/volume/provisioner/block/block_test.go +++ b/pkg/volume/provisioner/block/block_test.go @@ -268,6 +268,10 @@ func (c *MockComputeClient) AttachVnic(ctx context.Context, instanceID, subnetID return core.VnicAttachment{}, nil } +func (c *MockComputeClient) UpdateInstance(ctx context.Context, request core.UpdateInstanceRequest) (*core.Instance, error) { + return nil, nil +} + func (c *MockComputeClient) FindVolumeAttachment(ctx context.Context, compartmentID, volumeID string, instanceID *string) (core.VolumeAttachment, error) { return nil, nil } diff --git a/pkg/volume/provisioner/fss/fss_test.go b/pkg/volume/provisioner/fss/fss_test.go index 197284d1a1..bc376cb21f 100644 --- a/pkg/volume/provisioner/fss/fss_test.go +++ b/pkg/volume/provisioner/fss/fss_test.go @@ -239,6 +239,10 @@ func (c *MockComputeClient) GetInstance(ctx context.Context, id string) (*core.I return nil, nil } +func (c *MockComputeClient) UpdateInstance(ctx context.Context, request core.UpdateInstanceRequest) (*core.Instance, error) { + return nil, nil +} + // GetInstanceByNodeName gets the OCI instance corresponding to the given // Kubernetes node name. func (c *MockComputeClient) GetInstanceByNodeName(ctx context.Context, compartmentID, vcnID, nodeName string) (*core.Instance, error) { diff --git a/test/e2e/cloud-provider-oci/tagging_controller.go b/test/e2e/cloud-provider-oci/tagging_controller.go new file mode 100644 index 0000000000..b86450dfa1 --- /dev/null +++ b/test/e2e/cloud-provider-oci/tagging_controller.go @@ -0,0 +1,140 @@ +package e2e + +import ( + "context" + "fmt" + "os" + "strings" + + . "github.com/onsi/ginkgo" + . "github.com/onsi/gomega" + "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci" + sharedfw "github.com/oracle/oci-cloud-controller-manager/test/e2e/framework" + v1 "k8s.io/api/core/v1" +) + +func validateDefinedTags(instanceTags map[string]map[string]interface{}, expected map[string]map[string]interface{}) error { + for ns, expectedTags := range expected { + actualTags, ok := instanceTags[ns] + if !ok { + return fmt.Errorf("missing defined tag namespace %s", ns) + } + for key, value := range expectedTags { + actualValue, ok := actualTags[key] + if !ok { + return fmt.Errorf("missing defined tag %s/%s", ns, key) + } + if actualValue != value { + return fmt.Errorf("defined tag %s/%s mismatch: expected %v got %v", ns, key, value, actualValue) + } + } + } + return nil +} + +const ( + e2eOpenShiftTagNamespace = "openshift-tags" + e2eOpenShiftTagKey = "openshift-resource" + e2eOpenShiftTagValue = "openshift-resource-infra" + openshiftNodeLabelEnv = "OPENSHIFT_NODE_LABEL_ID" + e2eOCIProviderPrefix = "oci://" +) + +// isOSOCluster returns true when OPENSHIFT_NODE_LABEL_ID matches at least one node label in the cluster. +func isOSOCluster(nodes []v1.Node) bool { + labelIdentifier := strings.TrimSpace(os.Getenv(openshiftNodeLabelEnv)) + if labelIdentifier == "" { + return false + } + + var ( + labelKey string + labelValue string + ) + if strings.Contains(labelIdentifier, "=") { + parts := strings.SplitN(labelIdentifier, "=", 2) + labelKey = strings.TrimSpace(parts[0]) + labelValue = strings.TrimSpace(parts[1]) + } else { + labelKey = labelIdentifier + } + + if labelKey == "" { + return false + } + + for _, node := range nodes { + value, exists := node.Labels[labelKey] + if !exists { + continue + } + if labelValue == "" || value == labelValue { + return true + } + } + + return false +} + +var _ = Describe("Tagging Controller", func() { + f := sharedfw.NewDefaultFramework("tagging-controller") + + var ( + nodes []v1.Node + ) + + BeforeEach(func() { + nodeList := sharedfw.GetReadySchedulableNodesOrDie(f.ClientSet) + Expect(len(nodeList.Items)).NotTo(BeZero()) + nodes = nodeList.Items + }) + + Context("[cloudprovider][tagging-controller]", func() { + It("ensures common defined tags are present on instances", func() { + + if !isOSOCluster(nodes) { + Skip(fmt.Sprintf("%s not detected on any node", openshiftNodeLabelEnv)) + } + + if f.CloudProviderConfig == nil || f.CloudProviderConfig.Tags == nil || f.CloudProviderConfig.Tags.Common == nil || len(f.CloudProviderConfig.Tags.Common.DefinedTags) == 0 { + Skip("no common defined tags configured") + } + + computeClient := f.Client.Compute() + ctx := context.Background() + for _, node := range nodes { + Expect(node.Spec.ProviderID).To(HavePrefix(e2eOCIProviderPrefix), fmt.Sprintf("node %s providerID must have %s prefix in OSO clusters", node.Name, e2eOCIProviderPrefix)) + instanceID, err := oci.MapProviderIDToResourceID(node.Spec.ProviderID) + Expect(err).NotTo(HaveOccurred()) + + instance, err := computeClient.GetInstance(ctx, instanceID) + Expect(err).NotTo(HaveOccurred()) + + Expect(validateDefinedTags(instance.DefinedTags, f.CloudProviderConfig.Tags.Common.DefinedTags)).NotTo(HaveOccurred(), + "defined tags missing for instance %s", instanceID) + } + }) + + It("ensures OpenShift defined tag is applied", func() { + if !isOSOCluster(nodes) { + Skip(fmt.Sprintf("%s not detected on any node", openshiftNodeLabelEnv)) + } + + computeClient := f.Client.Compute() + ctx := context.Background() + for _, node := range nodes { + Expect(node.Spec.ProviderID).To(HavePrefix(e2eOCIProviderPrefix), fmt.Sprintf("node %s providerID must have %s prefix in OSO clusters", node.Name, e2eOCIProviderPrefix)) + instanceID, err := oci.MapProviderIDToResourceID(node.Spec.ProviderID) + Expect(err).NotTo(HaveOccurred()) + + instance, err := computeClient.GetInstance(ctx, instanceID) + Expect(err).NotTo(HaveOccurred()) + + ns := e2eOpenShiftTagNamespace + Expect(instance.DefinedTags).To(HaveKey(ns), "instance %s missing OpenShift namespace %s", instanceID, ns) + Expect(instance.DefinedTags[ns]).To(HaveKeyWithValue(e2eOpenShiftTagKey, e2eOpenShiftTagValue), + "instance %s missing OpenShift defined tag", instanceID) + } + }) + }) +}) diff --git a/vendor/go.uber.org/zap/zaptest/observer/logged_entry.go b/vendor/go.uber.org/zap/zaptest/observer/logged_entry.go new file mode 100644 index 0000000000..a4ea7ec36c --- /dev/null +++ b/vendor/go.uber.org/zap/zaptest/observer/logged_entry.go @@ -0,0 +1,39 @@ +// Copyright (c) 2017 Uber Technologies, Inc. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +package observer + +import "go.uber.org/zap/zapcore" + +// An LoggedEntry is an encoding-agnostic representation of a log message. +// Field availability is context dependant. +type LoggedEntry struct { + zapcore.Entry + Context []zapcore.Field +} + +// ContextMap returns a map for all fields in Context. +func (e LoggedEntry) ContextMap() map[string]interface{} { + encoder := zapcore.NewMapObjectEncoder() + for _, f := range e.Context { + f.AddTo(encoder) + } + return encoder.Fields +} diff --git a/vendor/go.uber.org/zap/zaptest/observer/observer.go b/vendor/go.uber.org/zap/zaptest/observer/observer.go new file mode 100644 index 0000000000..f77f1308ba --- /dev/null +++ b/vendor/go.uber.org/zap/zaptest/observer/observer.go @@ -0,0 +1,196 @@ +// Copyright (c) 2016-2022 Uber Technologies, Inc. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +// Package observer provides a zapcore.Core that keeps an in-memory, +// encoding-agnostic representation of log entries. It's useful for +// applications that want to unit test their log output without tying their +// tests to a particular output encoding. +package observer // import "go.uber.org/zap/zaptest/observer" + +import ( + "strings" + "sync" + "time" + + "go.uber.org/zap/internal" + "go.uber.org/zap/zapcore" +) + +// ObservedLogs is a concurrency-safe, ordered collection of observed logs. +type ObservedLogs struct { + mu sync.RWMutex + logs []LoggedEntry +} + +// Len returns the number of items in the collection. +func (o *ObservedLogs) Len() int { + o.mu.RLock() + n := len(o.logs) + o.mu.RUnlock() + return n +} + +// All returns a copy of all the observed logs. +func (o *ObservedLogs) All() []LoggedEntry { + o.mu.RLock() + ret := make([]LoggedEntry, len(o.logs)) + copy(ret, o.logs) + o.mu.RUnlock() + return ret +} + +// TakeAll returns a copy of all the observed logs, and truncates the observed +// slice. +func (o *ObservedLogs) TakeAll() []LoggedEntry { + o.mu.Lock() + ret := o.logs + o.logs = nil + o.mu.Unlock() + return ret +} + +// AllUntimed returns a copy of all the observed logs, but overwrites the +// observed timestamps with time.Time's zero value. This is useful when making +// assertions in tests. +func (o *ObservedLogs) AllUntimed() []LoggedEntry { + ret := o.All() + for i := range ret { + ret[i].Time = time.Time{} + } + return ret +} + +// FilterLevelExact filters entries to those logged at exactly the given level. +func (o *ObservedLogs) FilterLevelExact(level zapcore.Level) *ObservedLogs { + return o.Filter(func(e LoggedEntry) bool { + return e.Level == level + }) +} + +// FilterMessage filters entries to those that have the specified message. +func (o *ObservedLogs) FilterMessage(msg string) *ObservedLogs { + return o.Filter(func(e LoggedEntry) bool { + return e.Message == msg + }) +} + +// FilterMessageSnippet filters entries to those that have a message containing the specified snippet. +func (o *ObservedLogs) FilterMessageSnippet(snippet string) *ObservedLogs { + return o.Filter(func(e LoggedEntry) bool { + return strings.Contains(e.Message, snippet) + }) +} + +// FilterField filters entries to those that have the specified field. +func (o *ObservedLogs) FilterField(field zapcore.Field) *ObservedLogs { + return o.Filter(func(e LoggedEntry) bool { + for _, ctxField := range e.Context { + if ctxField.Equals(field) { + return true + } + } + return false + }) +} + +// FilterFieldKey filters entries to those that have the specified key. +func (o *ObservedLogs) FilterFieldKey(key string) *ObservedLogs { + return o.Filter(func(e LoggedEntry) bool { + for _, ctxField := range e.Context { + if ctxField.Key == key { + return true + } + } + return false + }) +} + +// Filter returns a copy of this ObservedLogs containing only those entries +// for which the provided function returns true. +func (o *ObservedLogs) Filter(keep func(LoggedEntry) bool) *ObservedLogs { + o.mu.RLock() + defer o.mu.RUnlock() + + var filtered []LoggedEntry + for _, entry := range o.logs { + if keep(entry) { + filtered = append(filtered, entry) + } + } + return &ObservedLogs{logs: filtered} +} + +func (o *ObservedLogs) add(log LoggedEntry) { + o.mu.Lock() + o.logs = append(o.logs, log) + o.mu.Unlock() +} + +// New creates a new Core that buffers logs in memory (without any encoding). +// It's particularly useful in tests. +func New(enab zapcore.LevelEnabler) (zapcore.Core, *ObservedLogs) { + ol := &ObservedLogs{} + return &contextObserver{ + LevelEnabler: enab, + logs: ol, + }, ol +} + +type contextObserver struct { + zapcore.LevelEnabler + logs *ObservedLogs + context []zapcore.Field +} + +var ( + _ zapcore.Core = (*contextObserver)(nil) + _ internal.LeveledEnabler = (*contextObserver)(nil) +) + +func (co *contextObserver) Level() zapcore.Level { + return zapcore.LevelOf(co.LevelEnabler) +} + +func (co *contextObserver) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry { + if co.Enabled(ent.Level) { + return ce.AddCore(ent, co) + } + return ce +} + +func (co *contextObserver) With(fields []zapcore.Field) zapcore.Core { + return &contextObserver{ + LevelEnabler: co.LevelEnabler, + logs: co.logs, + context: append(co.context[:len(co.context):len(co.context)], fields...), + } +} + +func (co *contextObserver) Write(ent zapcore.Entry, fields []zapcore.Field) error { + all := make([]zapcore.Field, 0, len(fields)+len(co.context)) + all = append(all, co.context...) + all = append(all, fields...) + co.logs.add(LoggedEntry{ent, all}) + return nil +} + +func (co *contextObserver) Sync() error { + return nil +} diff --git a/vendor/modules.txt b/vendor/modules.txt index e722801212..38685744c9 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -629,6 +629,7 @@ go.uber.org/zap/internal/ztest go.uber.org/zap/zapcore go.uber.org/zap/zapgrpc go.uber.org/zap/zaptest +go.uber.org/zap/zaptest/observer # golang.org/x/crypto v0.39.0 ## explicit; go 1.23.0 golang.org/x/crypto/bcrypt From cde5386e863d41ea841de45cfe4c6759bf163ee3 Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Mon, 2 Mar 2026 21:28:52 +0530 Subject: [PATCH 13/24] Adding unit test fixes --- .github/workflows/makefile.yml | 32 ++++++++++++------- .../providers/oci/instances_test.go | 5 +++ .../providers/oci/tagging_controller_test.go | 12 +++++-- pkg/csi/driver/bv_controller_test.go | 5 +++ pkg/csi/driver/lustre_controller_test.go | 19 ++++++----- pkg/csi/driver/lustre_params_test.go | 6 ++-- pkg/volume/provisioner/block/block_test.go | 5 +++ pkg/volume/provisioner/fss/fss_test.go | 5 +++ 8 files changed, 64 insertions(+), 25 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 12f618c277..9b0c5164a9 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -3,30 +3,40 @@ name: Unit Tests on: pull_request: {} push: {} +# Prevent multiple runs from the same PR/branch from overlapping +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Build runs-on: ubuntu-latest + # Added a job-level timeout as a safety net + timeout-minutes: 15 steps: + - name: Check out code + uses: actions/checkout@v4 # Upgraded - - name: Set up Go 1.x - uses: actions/setup-go@v2 + - name: Set up Go + uses: actions/setup-go@v5 # Upgraded with: go-version: '1.24.0' - id: go + cache: true # Built-in caching for faster runs - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - name: Install dependencies - run: | - go mod download + run: go mod download + - name: Run Unit Tests + env: + GOMEMLIMIT: 6GiB + # Added -v to see which specific test hangs if it fails again run: | - go test -covermode=count -coverprofile=profile.cov ./pkg/... - - name: Install goveralls - run: go install github.com/mattn/goveralls@latest + go test -v -p 1 -covermode=count -coverprofile=profile.cov ./pkg/... + - name: Send coverage env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - goveralls -coverprofile=profile.cov -service=github + go install github.com/mattn/goveralls@latest + $(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github \ No newline at end of file diff --git a/pkg/cloudprovider/providers/oci/instances_test.go b/pkg/cloudprovider/providers/oci/instances_test.go index 6caa26412e..58f3015404 100644 --- a/pkg/cloudprovider/providers/oci/instances_test.go +++ b/pkg/cloudprovider/providers/oci/instances_test.go @@ -1414,6 +1414,11 @@ func (MockFileStorageClient) DeleteMountTarget(ctx context.Context, id string) e // MockIdentityClient mocks Identity client implementaion type MockIdentityClient struct{} +func (c MockIdentityClient) ListAvailabilityDomains(ctx context.Context, compartmentID string) ([]identity.AvailabilityDomain, error) { + //TODO implement me + panic("implement me") +} + func (MockIdentityClient) GetAvailabilityDomainByName(ctx context.Context, compartmentID, name string) (*identity.AvailabilityDomain, error) { return nil, nil } diff --git a/pkg/cloudprovider/providers/oci/tagging_controller_test.go b/pkg/cloudprovider/providers/oci/tagging_controller_test.go index 3fff1fe3cc..7d19b3d0ae 100644 --- a/pkg/cloudprovider/providers/oci/tagging_controller_test.go +++ b/pkg/cloudprovider/providers/oci/tagging_controller_test.go @@ -12,6 +12,7 @@ import ( "github.com/oracle/oci-go-sdk/v65/core" "go.uber.org/zap" "go.uber.org/zap/zaptest/observer" + authv1 "k8s.io/api/authentication/v1" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -173,10 +174,16 @@ func (r *recordingComputeClient) UpdateInstance(ctx context.Context, request cor // recordingOCIClient implements client.Interface returning the provided compute client and stubs others. type recordingOCIClient struct{ compute ociClient.ComputeInterface } -func (m recordingOCIClient) Compute() ociClient.ComputeInterface { return m.compute } -func (m recordingOCIClient) LoadBalancer(*zap.SugaredLogger, string, *ociClient.OCIClientConfig) ociClient.GenericLoadBalancerInterface { +func (m recordingOCIClient) LoadBalancer(logger *zap.SugaredLogger, s string, s2 string, request *authv1.TokenRequest) ociClient.GenericLoadBalancerInterface { + return nil +} + +func (m recordingOCIClient) Lustre() ociClient.LustreInterface { return nil } + +func (m recordingOCIClient) Compute() ociClient.ComputeInterface { return m.compute } + func (m recordingOCIClient) Networking(*ociClient.OCIClientConfig) ociClient.NetworkingInterface { return nil } @@ -187,7 +194,6 @@ func (m recordingOCIClient) FSS(*ociClient.OCIClientConfig) ociClient.FileStorag func (m recordingOCIClient) Identity(*ociClient.OCIClientConfig) ociClient.IdentityInterface { return nil } -func (m recordingOCIClient) ContainerEngine() ociClient.ContainerEngineInterface { return nil } func (m recordingOCIClient) NewWorkloadIdentityClient(*zap.SugaredLogger, string, *ociClient.OCIClientConfig) ociClient.Interface { return m } diff --git a/pkg/csi/driver/bv_controller_test.go b/pkg/csi/driver/bv_controller_test.go index 07b3d4c2b5..8657121410 100644 --- a/pkg/csi/driver/bv_controller_test.go +++ b/pkg/csi/driver/bv_controller_test.go @@ -831,6 +831,11 @@ type MockIdentityClient struct { common.BaseClient } +func (mockClient MockIdentityClient) ListAvailabilityDomains(ctx context.Context, compartmentID string) ([]identity.AvailabilityDomain, error) { + //TODO implement me + panic("implement me") +} + // ListAvailabilityDomains mocks the client ListAvailabilityDomains implementation func (mockClient MockIdentityClient) GetAvailabilityDomainByName(ctx context.Context, compartmentID, name string) (*identity.AvailabilityDomain, error) { var ad1 string diff --git a/pkg/csi/driver/lustre_controller_test.go b/pkg/csi/driver/lustre_controller_test.go index 5d919c6a6b..2cf4797fe6 100644 --- a/pkg/csi/driver/lustre_controller_test.go +++ b/pkg/csi/driver/lustre_controller_test.go @@ -14,6 +14,7 @@ import ( "go.uber.org/zap" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + authv1 "k8s.io/api/authentication/v1" "k8s.io/utils/pointer" ) @@ -102,6 +103,11 @@ type MockOCIIdentityClient struct { listErr error } +func (i *MockOCIIdentityClient) ListAvailabilityDomains(ctx context.Context, compartmentID string) ([]ociidentity.AvailabilityDomain, error) { + //TODO implement me + panic("implement me") +} + func (i *MockOCIIdentityClient) GetAvailabilityDomainByName(ctx context.Context, compartmentID, name string) (*ociidentity.AvailabilityDomain, error) { // interface{} to avoid ctx import if i.getErr != nil { return nil, i.getErr @@ -898,7 +904,7 @@ func TestHelper_buildLustreVolumeHandle(t *testing.T) { func newControllerWith(flustre client.LustreInterface, fid client.IdentityInterface) *LustreControllerDriver { logger, _ := zap.NewDevelopment() - cd := &ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit", Tags: &providercfg.InitialTags{ + cd := ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit", Tags: &providercfg.InitialTags{ LoadBalancer: nil, BlockVolume: &providercfg.TagConfig{ FreeformTags: map[string]string{"Project": "Lustre"}, @@ -914,20 +920,17 @@ type testOCIClient struct { id client.IdentityInterface } -func (t *testOCIClient) Compute() client.ComputeInterface { return nil } -func (t *testOCIClient) LoadBalancer(*zap.SugaredLogger, string, *client.OCIClientConfig) client.GenericLoadBalancerInterface { +func (t *testOCIClient) LoadBalancer(logger *zap.SugaredLogger, s string, s2 string, request *authv1.TokenRequest) client.GenericLoadBalancerInterface { return nil } + +func (t *testOCIClient) Compute() client.ComputeInterface { return nil } + func (t *testOCIClient) Networking(*client.OCIClientConfig) client.NetworkingInterface { return nil } func (t *testOCIClient) BlockStorage() client.BlockStorageInterface { return nil } func (t *testOCIClient) FSS(*client.OCIClientConfig) client.FileStorageInterface { return nil } func (t *testOCIClient) Lustre() client.LustreInterface { return t.lustre } func (t *testOCIClient) Identity(*client.OCIClientConfig) client.IdentityInterface { return t.id } -func (t *testOCIClient) ContainerEngine() client.ContainerEngineInterface { return nil } -func (t *testOCIClient) NewWorkloadIdentityClient(*zap.SugaredLogger, string, *client.OCIClientConfig) client.Interface { - return t -} -func (t *testOCIClient) CertManager() client.CertificateManagerInterface { return nil } // Keep for compatibility if other tests add additional helpers here. diff --git a/pkg/csi/driver/lustre_params_test.go b/pkg/csi/driver/lustre_params_test.go index 74f6d55201..6c2128db28 100644 --- a/pkg/csi/driver/lustre_params_test.go +++ b/pkg/csi/driver/lustre_params_test.go @@ -15,7 +15,7 @@ import ( // helper to call extractLustreStorageClassParameters func parseParams(t *testing.T, p map[string]string, identity client.IdentityInterface) (*LustreStorageClassParameters, error) { - d := &LustreControllerDriver{ControllerDriver: &ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit-test"}}} + d := &LustreControllerDriver{ControllerDriver: ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit-test"}}} _, _, parsed, err := extractLustreStorageClassParameters(context.Background(), d, zap.S(), "vol-1", p, identity) if err != nil { return nil, err @@ -164,7 +164,7 @@ func TestLustreParams_AvailabilityDomain_ExplicitValidNormalization(t *testing.T "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2", } - d := &LustreControllerDriver{ControllerDriver: &ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit-test"}}} + d := &LustreControllerDriver{ControllerDriver: ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit-test"}}} _, _, parsed, err := extractLustreStorageClassParameters(context.Background(), d, zap.S(), "vol-xyz", p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) if err != nil { t.Fatalf("unexpected error: %v", err) @@ -232,7 +232,7 @@ func TestLustreParams_DeriveDefaultFSName(t *testing.T) { "performanceTier": "MBPS_PER_TB_125", "availabilityDomain": "PHX-AD-2", } - d := &LustreControllerDriver{ControllerDriver: &ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit-test"}}} + d := &LustreControllerDriver{ControllerDriver: ControllerDriver{config: &providercfg.Config{CompartmentID: "ocid1.compartment.oc1..unit-test"}}} _, _, parsed, err := extractLustreStorageClassParameters(context.Background(), d, zap.S(), "vol-abc_DEF123", p, &MockOCIIdentityClient{ads: []string{"phx:PHX-AD-2"}}) if err != nil { t.Fatalf("unexpected error: %v", err) diff --git a/pkg/volume/provisioner/block/block_test.go b/pkg/volume/provisioner/block/block_test.go index 596c608151..1c9882350b 100644 --- a/pkg/volume/provisioner/block/block_test.go +++ b/pkg/volume/provisioner/block/block_test.go @@ -380,6 +380,11 @@ type MockIdentityClient struct { common.BaseClient } +func (client MockIdentityClient) ListAvailabilityDomains(ctx context.Context, compartmentID string) ([]identity.AvailabilityDomain, error) { + //TODO implement me + panic("implement me") +} + // ListAvailabilityDomains mocks the client ListAvailabilityDomains implementation func (client MockIdentityClient) GetAvailabilityDomainByName(ctx context.Context, compartmentID, name string) (*identity.AvailabilityDomain, error) { return nil, nil diff --git a/pkg/volume/provisioner/fss/fss_test.go b/pkg/volume/provisioner/fss/fss_test.go index bc376cb21f..c3b464fbc6 100644 --- a/pkg/volume/provisioner/fss/fss_test.go +++ b/pkg/volume/provisioner/fss/fss_test.go @@ -386,6 +386,11 @@ type MockIdentityClient struct { common.BaseClient } +func (client MockIdentityClient) ListAvailabilityDomains(ctx context.Context, compartmentID string) ([]identity.AvailabilityDomain, error) { + //TODO implement me + panic("implement me") +} + // ListAvailabilityDomains mocks the client ListAvailabilityDomains implementation func (client MockIdentityClient) GetAvailabilityDomainByName(ctx context.Context, compartmentID, name string) (*identity.AvailabilityDomain, error) { return nil, nil From 00ef815c77281bf5e35e0fe5a705505b7f620906 Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Wed, 4 Mar 2026 13:41:41 +0530 Subject: [PATCH 14/24] bumping golang version to 1.24.13 --- .github/workflows/makefile.yml | 2 +- Dockerfile | 2 +- Dockerfile_arm_all | 2 +- go.mod | 4 +- .../available_compute_capacity.go | 39 -- .../cancel_work_request_request_response.go | 4 + .../lustrefilestorage/capacity_reservation.go | 42 -- .../capacity_reservation_info.go | 74 --- .../capacity_reservation_info_collection.go | 39 -- .../capacity_reservation_info_summary.go | 74 --- .../capacity_reservations_collection.go | 39 -- ...ile_system_compartment_request_response.go | 4 + ...orage_link_compartment_request_response.go | 4 + .../v65/lustrefilestorage/cpg_override.go | 58 --- .../cpg_override_collection.go | 39 -- .../lustrefilestorage/cpg_override_summary.go | 58 --- ...reate_capacity_reservation_info_details.go | 60 --- ...acity_reservation_info_request_response.go | 99 ---- .../create_cpg_override_details.go | 48 -- .../create_cpg_override_request_response.go | 99 ---- .../create_lfs_cpg_info_details.go | 47 -- .../create_lfs_cpg_info_request_response.go | 99 ---- ...ate_lustre_file_system_request_response.go | 4 + .../create_management_cell_details.go | 168 ------- ...create_management_cell_request_response.go | 99 ---- .../create_map_tenancy_configuration.go | 39 -- ...te_object_storage_link_request_response.go | 4 + .../lustrefilestorage/create_pool_details.go | 102 ----- .../create_pool_request_response.go | 99 ---- .../create_tenancy_override_details.go | 42 -- ...reate_tenancy_override_request_response.go | 99 ---- .../current_compute_capacity.go | 39 -- ...y_overrides_for_tenant_request_response.go | 92 ---- ...acity_reservation_info_request_response.go | 92 ---- .../delete_cpg_override_request_response.go | 92 ---- .../delete_lfs_cpg_info_request_response.go | 92 ---- ...ete_lustre_file_system_request_response.go | 4 + ...delete_management_cell_request_response.go | 96 ---- ...te_object_storage_link_request_response.go | 4 + .../delete_pool_request_response.go | 92 ---- ..._tenancy_configuration_request_response.go | 96 ---- ...elete_tenancy_override_request_response.go | 95 ---- .../desired_compute_count.go | 39 -- .../v65/lustrefilestorage/details.go | 45 -- .../lustrefilestorage/fault_domain_usage.go | 41 -- ...acity_reservation_info_request_response.go | 92 ---- .../get_cpg_override_request_response.go | 92 ---- .../get_lfs_cpg_info_request_response.go | 92 ---- ...get_lustre_file_system_request_response.go | 4 + .../get_management_cell_request_response.go | 92 ---- ...et_object_storage_link_request_response.go | 4 + .../get_pool_request_response.go | 92 ---- .../get_sync_job_request_response.go | 4 + .../get_tenancy_override_request_response.go | 92 ---- .../get_work_request_request_response.go | 4 + .../lustrefilestorage/inject_fault_details.go | 53 --- .../inject_fault_output_details.go | 39 -- .../inject_fault_request_response.go | 101 ----- .../v65/lustrefilestorage/lfs_cpg_info.go | 60 --- .../lfs_cpg_info_collection.go | 39 -- .../lustrefilestorage/lfs_cpg_info_summary.go | 60 --- ...city_reservation_infos_request_response.go | 157 ------- .../list_cpg_overrides_request_response.go | 154 ------- .../list_lfs_cpg_infos_request_response.go | 155 ------- ...st_lustre_file_systems_request_response.go | 4 + .../list_management_cells_request_response.go | 158 ------- ...t_object_storage_links_request_response.go | 4 + .../list_pools_request_response.go | 148 ------ .../list_profiles_request_response.go | 151 ------- .../list_sync_jobs_request_response.go | 4 + ...tenancy_configurations_request_response.go | 151 ------- ...list_tenancy_overrides_request_response.go | 148 ------ ...st_work_request_errors_request_response.go | 4 + ...list_work_request_logs_request_response.go | 4 + .../list_work_requests_request_response.go | 4 + ...estorage_capacityreservationinfo_client.go | 367 --------------- .../lustrefilestorage_client.go | 212 ++++----- .../lustrefilestorage_configmgmt_client.go | 313 ------------- .../lustrefilestorage_cpgoverride_client.go | 367 --------------- .../lustrefilestorage_internal_client.go | 146 ------ .../lustrefilestorage_lfscpginfo_client.go | 367 --------------- .../lustrefilestorage_lfspool_client.go | 367 --------------- .../lustrefilestorage_mgmtcell_client.go | 367 --------------- ...ustrefilestorage_tenancyoverride_client.go | 421 ------------------ .../v65/lustrefilestorage/management_cell.go | 189 -------- .../management_cell_collection.go | 39 -- .../management_cell_summary.go | 89 ---- .../map_tenancy_configuration.go | 44 -- .../map_tenancy_configuration_collection.go | 39 -- .../map_tenancy_configuration_details.go | 39 -- ..._tenancy_configuration_request_response.go | 105 ----- .../pause_sync_job_details.go | 39 -- .../pause_sync_job_request_response.go | 102 ----- .../oci-go-sdk/v65/lustrefilestorage/pool.go | 108 ----- .../v65/lustrefilestorage/pool_collection.go | 39 -- .../v65/lustrefilestorage/pool_summary.go | 108 ----- .../lustrefilestorage/profile_collection.go | 39 -- .../v65/lustrefilestorage/profile_summary.go | 42 -- .../reserved_and_used_count.go | 42 -- ...start_export_to_object_request_response.go | 4 + ...art_import_from_object_request_response.go | 4 + .../stop_export_to_object_request_response.go | 4 + ...top_import_from_object_request_response.go | 4 + .../tenancy_configuration_summary.go | 44 -- .../v65/lustrefilestorage/tenancy_override.go | 42 -- .../tenancy_override_collection.go | 39 -- .../tenancy_override_summary.go | 42 -- .../unpause_sync_job_details.go | 39 -- .../unpause_sync_job_request_response.go | 102 ----- ...pdate_capacity_reservation_info_details.go | 57 --- ...acity_reservation_info_request_response.go | 98 ---- .../update_cpg_override_details.go | 45 -- .../update_cpg_override_request_response.go | 98 ---- .../update_lfs_cpg_info_details.go | 44 -- .../update_lfs_cpg_info_request_response.go | 98 ---- ...ate_lustre_file_system_request_response.go | 4 + .../update_management_cell_details.go | 160 ------- ...update_management_cell_request_response.go | 99 ---- ...te_object_storage_link_request_response.go | 4 + .../lustrefilestorage/update_pool_details.go | 102 ----- .../update_pool_request_response.go | 98 ---- .../update_tenancy_override_details.go | 39 -- ...pdate_tenancy_override_request_response.go | 101 ----- 123 files changed, 189 insertions(+), 9849 deletions(-) delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/available_compute_capacity.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservations_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_map_tenancy_configuration.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/current_compute_capacity.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_all_tenancy_overrides_for_tenant_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_capacity_reservation_info_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_cpg_override_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lfs_cpg_info_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_management_cell_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_pool_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_configuration_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_override_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/desired_compute_count.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/fault_domain_usage.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_capacity_reservation_info_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_cpg_override_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lfs_cpg_info_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_management_cell_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_pool_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_tenancy_override_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_output_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_capacity_reservation_infos_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_cpg_overrides_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lfs_cpg_infos_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_management_cells_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_pools_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_profiles_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_configurations_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_overrides_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_capacityreservationinfo_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_configmgmt_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_cpgoverride_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_internal_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfscpginfo_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfspool_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_mgmtcell_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_tenancyoverride_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/reserved_and_used_count.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_configuration_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_request_response.go diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 9b0c5164a9..e345d182a7 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 # Upgraded with: - go-version: '1.24.0' + go-version: '1.24.13' cache: true # Built-in caching for faster runs - name: Install dependencies diff --git a/Dockerfile b/Dockerfile index bb533ad4c7..c1d36b44b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ ARG CI_IMAGE_REGISTRY -FROM golang:1.24.0 as builder +FROM golang:1.24.13 as builder ARG COMPONENT diff --git a/Dockerfile_arm_all b/Dockerfile_arm_all index 775058e2a6..955e8e508f 100644 --- a/Dockerfile_arm_all +++ b/Dockerfile_arm_all @@ -1,6 +1,6 @@ ARG CI_IMAGE_REGISTRY -FROM golang:1.24.0 as builder +FROM golang:1.24.13 as builder ARG COMPONENT diff --git a/go.mod b/go.mod index 7feb55b91d..d0969c5766 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/oracle/oci-cloud-controller-manager -go 1.24.0 +go 1.24.13 replace ( github.com/docker/distribution => github.com/docker/distribution v2.8.3+incompatible @@ -77,6 +77,7 @@ require ( require ( golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 golang.org/x/sync v0.15.0 + golang.org/x/time v0.9.0 google.golang.org/protobuf v1.36.5 gopkg.in/yaml.v3 v3.0.1 helm.sh/helm/v3 v3.18.4 @@ -216,7 +217,6 @@ require ( golang.org/x/oauth2 v0.28.0 // indirect golang.org/x/term v0.32.0 // indirect golang.org/x/text v0.26.0 // indirect - golang.org/x/time v0.9.0 // indirect golang.org/x/tools v0.33.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/api v0.0.0-20250218202821-56aae31c358a // indirect diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/available_compute_capacity.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/available_compute_capacity.go deleted file mode 100644 index 3857710e68..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/available_compute_capacity.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// AvailableComputeCapacity The compute capacity returned from Compute API. -type AvailableComputeCapacity struct { - Cores16 *FaultDomainUsage `mandatory:"false" json:"cores16"` - - Cores94 *FaultDomainUsage `mandatory:"false" json:"cores94"` -} - -func (m AvailableComputeCapacity) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m AvailableComputeCapacity) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go index 7bcd8bc300..e8f11d9f21 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cancel_work_request_request_response.go @@ -12,6 +12,10 @@ import ( ) // CancelWorkRequestRequest wrapper for the CancelWorkRequest operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequestRequest. type CancelWorkRequestRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation.go deleted file mode 100644 index 82578e0226..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CapacityReservation Capacity reservation associated to physical availability domain -type CapacityReservation struct { - - // The capacity reservation OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) assigned to tenancy. - Id *string `mandatory:"false" json:"id"` - - // The physical availability domain where the capacity reservation is created. - PhysicalAvailabilityDomain *string `mandatory:"false" json:"physicalAvailabilityDomain"` -} - -func (m CapacityReservation) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CapacityReservation) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info.go deleted file mode 100644 index 3a72f9aa6c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CapacityReservationInfo An object that gives more details about a capacity reservation. -type CapacityReservationInfo struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"true" json:"customerCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. - CustomerTenancyId *string `mandatory:"true" json:"customerTenancyId"` - - // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. - AvailableBlockCapacityInGBs *int64 `mandatory:"true" json:"availableBlockCapacityInGBs"` - - DesiredComputeCount *DesiredComputeCount `mandatory:"true" json:"desiredComputeCount"` - - AvailableComputeCapacity *AvailableComputeCapacity `mandatory:"true" json:"availableComputeCapacity"` - - CurrentComputeCapacity *CurrentComputeCapacity `mandatory:"true" json:"currentComputeCapacity"` - - // If set to true, update capacity requests would not be sent. - IsUpdateRequestPaused *bool `mandatory:"true" json:"isUpdateRequestPaused"` - - // A list of CPG OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) with block capacity - // A maximum of 10 is allowed. - BlockCpgIds []string `mandatory:"true" json:"blockCpgIds"` - - // The date and time the Capacity Reservation Info was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2024-04-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the Capacity Reservation Info was updated, in the format defined - // by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2024-04-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` -} - -func (m CapacityReservationInfo) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CapacityReservationInfo) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_collection.go deleted file mode 100644 index f90d933181..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CapacityReservationInfoCollection Results of a Capacity Reservation Info search. Contains CapacityReservationInfo items. -type CapacityReservationInfoCollection struct { - - // List of CapacityReservationInfoSummary. - Items []CapacityReservationInfoSummary `mandatory:"true" json:"items"` -} - -func (m CapacityReservationInfoCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CapacityReservationInfoCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_summary.go deleted file mode 100644 index 5e32e34eba..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservation_info_summary.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CapacityReservationInfoSummary An object that gives more details about a capacity reservation. -type CapacityReservationInfoSummary struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"true" json:"customerCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. - CustomerTenancyId *string `mandatory:"true" json:"customerTenancyId"` - - // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. - AvailableBlockCapacityInGBs *int64 `mandatory:"true" json:"availableBlockCapacityInGBs"` - - DesiredComputeCount *DesiredComputeCount `mandatory:"true" json:"desiredComputeCount"` - - AvailableComputeCapacity *AvailableComputeCapacity `mandatory:"true" json:"availableComputeCapacity"` - - CurrentComputeCapacity *CurrentComputeCapacity `mandatory:"true" json:"currentComputeCapacity"` - - // If set to true, update capacity requests would not be sent. - IsUpdateRequestPaused *bool `mandatory:"true" json:"isUpdateRequestPaused"` - - // A list of CPG OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) with block capacity - // A maximum of 10 is allowed. - BlockCpgIds []string `mandatory:"true" json:"blockCpgIds"` - - // The date and time the Capacity Reservation Info was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2024-04-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the Capacity Reservation Info was updated, in the format defined - // by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2024-04-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` -} - -func (m CapacityReservationInfoSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CapacityReservationInfoSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservations_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservations_collection.go deleted file mode 100644 index cd36efef2f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/capacity_reservations_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CapacityReservationsCollection List of Capacity reservations as per physical AD. -type CapacityReservationsCollection struct { - - // List of capacity reservations for the given fleet. - Items []CapacityReservation `mandatory:"false" json:"items"` -} - -func (m CapacityReservationsCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CapacityReservationsCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go index 61b36a1fe2..e52138834d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_lustre_file_system_compartment_request_response.go @@ -12,6 +12,10 @@ import ( ) // ChangeLustreFileSystemCompartmentRequest wrapper for the ChangeLustreFileSystemCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeLustreFileSystemCompartment.go.html to see an example of how to use ChangeLustreFileSystemCompartmentRequest. type ChangeLustreFileSystemCompartmentRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go index 0aacc0e9a6..f0e22e8831 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/change_object_storage_link_compartment_request_response.go @@ -12,6 +12,10 @@ import ( ) // ChangeObjectStorageLinkCompartmentRequest wrapper for the ChangeObjectStorageLinkCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeObjectStorageLinkCompartment.go.html to see an example of how to use ChangeObjectStorageLinkCompartmentRequest. type ChangeObjectStorageLinkCompartmentRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override.go deleted file mode 100644 index e9f2640cbc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CpgOverride A mapping between a customer CPG and an LFS service CPG. -type CpgOverride struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"true" json:"customerCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. - CustomerTenancyId *string `mandatory:"true" json:"customerTenancyId"` - - // The date and time the override was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2024-04-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the override was updated, in the format defined - // by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2024-04-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` -} - -func (m CpgOverride) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CpgOverride) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_collection.go deleted file mode 100644 index 7001ce9978..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CpgOverrideCollection Results of a CPG Override search. Contains CpgOverride items. -type CpgOverrideCollection struct { - - // List of CPG Override Summary. - Items []CpgOverrideSummary `mandatory:"true" json:"items"` -} - -func (m CpgOverrideCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CpgOverrideCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_summary.go deleted file mode 100644 index 3faac87531..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/cpg_override_summary.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CpgOverrideSummary A mapping between a customer CPG and an LFS service CPG. -type CpgOverrideSummary struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"true" json:"customerCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. - CustomerTenancyId *string `mandatory:"true" json:"customerTenancyId"` - - // The date and time the override was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2024-04-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the override was updated, in the format defined - // by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2024-04-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` -} - -func (m CpgOverrideSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CpgOverrideSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_details.go deleted file mode 100644 index 344713b077..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_details.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreateCapacityReservationInfoDetails The data required for creating a Capacity Reservation Info. -type CreateCapacityReservationInfoDetails struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"false" json:"lfsCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"false" json:"customerCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. - CustomerTenancyId *string `mandatory:"false" json:"customerTenancyId"` - - // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. - AvailableBlockCapacityInGBs *int64 `mandatory:"false" json:"availableBlockCapacityInGBs"` - - DesiredComputeCount *DesiredComputeCount `mandatory:"false" json:"desiredComputeCount"` - - // If set to true, update capacity requests would not be sent. - IsUpdateRequestPaused *bool `mandatory:"false" json:"isUpdateRequestPaused"` - - // A list of CPG OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) with block capacity - // A maximum of 10 is allowed. - BlockCpgIds []string `mandatory:"false" json:"blockCpgIds"` -} - -func (m CreateCapacityReservationInfoDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreateCapacityReservationInfoDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_request_response.go deleted file mode 100644 index cc61ee0f12..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_capacity_reservation_info_request_response.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreateCapacityReservationInfoRequest wrapper for the CreateCapacityReservationInfo operation -type CreateCapacityReservationInfoRequest struct { - - // Details for the new Capacity Reservation Info. - CreateCapacityReservationInfoDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 CreateCapacityReservationInfoRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateCapacityReservationInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateCapacityReservationInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateCapacityReservationInfoRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreateCapacityReservationInfoRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreateCapacityReservationInfoResponse wrapper for the CreateCapacityReservationInfo operation -type CreateCapacityReservationInfoResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CapacityReservationInfo instance - CapacityReservationInfo `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 CreateCapacityReservationInfoResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateCapacityReservationInfoResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_details.go deleted file mode 100644 index a753d72c7e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_details.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreateCpgOverrideDetails The data required for creating a CPG Override. -type CreateCpgOverrideDetails struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"true" json:"customerCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"true" json:"capacityReservationId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. - CustomerTenancyId *string `mandatory:"true" json:"customerTenancyId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"false" json:"lfsCpgId"` -} - -func (m CreateCpgOverrideDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreateCpgOverrideDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_request_response.go deleted file mode 100644 index 1f72b1bc3a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_cpg_override_request_response.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreateCpgOverrideRequest wrapper for the CreateCpgOverride operation -type CreateCpgOverrideRequest struct { - - // Details for the new CPG Override. - CreateCpgOverrideDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 CreateCpgOverrideRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateCpgOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateCpgOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateCpgOverrideRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreateCpgOverrideRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreateCpgOverrideResponse wrapper for the CreateCpgOverride operation -type CreateCpgOverrideResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CpgOverride instance - CpgOverride `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 CreateCpgOverrideResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateCpgOverrideResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_details.go deleted file mode 100644 index 5abf2800fb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreateLfsCpgInfoDetails The data required for creating a LFS CPG Info. -type CreateLfsCpgInfoDetails struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default capacity reservation. - DefaultCapacityReservationId *string `mandatory:"true" json:"defaultCapacityReservationId"` - - // The availability domain the Management Cell is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` -} - -func (m CreateLfsCpgInfoDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreateLfsCpgInfoDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_request_response.go deleted file mode 100644 index 0fd9661a2c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lfs_cpg_info_request_response.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreateLfsCpgInfoRequest wrapper for the CreateLfsCpgInfo operation -type CreateLfsCpgInfoRequest struct { - - // Details for the new lfsCpgInfo. - CreateLfsCpgInfoDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 CreateLfsCpgInfoRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateLfsCpgInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateLfsCpgInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateLfsCpgInfoRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreateLfsCpgInfoRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreateLfsCpgInfoResponse wrapper for the CreateLfsCpgInfo operation -type CreateLfsCpgInfoResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The LfsCpgInfo instance - LfsCpgInfo `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 CreateLfsCpgInfoResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateLfsCpgInfoResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go index fda3fd960f..b62ba01282 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_lustre_file_system_request_response.go @@ -12,6 +12,10 @@ import ( ) // CreateLustreFileSystemRequest wrapper for the CreateLustreFileSystem operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateLustreFileSystem.go.html to see an example of how to use CreateLustreFileSystemRequest. type CreateLustreFileSystemRequest struct { // Details for the new Lustre file system. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_details.go deleted file mode 100644 index 8cff46e67f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_details.go +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreateManagementCellDetails The data required for creating a ManagementCell. -type CreateManagementCellDetails struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the ManagementCell. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The availability domain the Management Cell is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The current state of the ManagementCell. - LifecycleState CreateManagementCellDetailsLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // ManagementCell can be categorized based on the customer filesystems it is hosting. - // Example: `RESTRICTED` category cell is restricted for use by only one customer - Category CreateManagementCellDetailsCategoryEnum `mandatory:"true" json:"category"` - - // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. - AvailableCapacityInGBs *int64 `mandatory:"true" json:"availableCapacityInGBs"` - - Details *Details `mandatory:"true" json:"details"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateManagementCellDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreateManagementCellDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingCreateManagementCellDetailsLifecycleStateEnum(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(GetCreateManagementCellDetailsLifecycleStateEnumStringValues(), ","))) - } - if _, ok := GetMappingCreateManagementCellDetailsCategoryEnum(string(m.Category)); !ok && m.Category != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Category: %s. Supported values are: %s.", m.Category, strings.Join(GetCreateManagementCellDetailsCategoryEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreateManagementCellDetailsLifecycleStateEnum Enum with underlying type: string -type CreateManagementCellDetailsLifecycleStateEnum string - -// Set of constants representing the allowable values for CreateManagementCellDetailsLifecycleStateEnum -const ( - CreateManagementCellDetailsLifecycleStateCreating CreateManagementCellDetailsLifecycleStateEnum = "CREATING" - CreateManagementCellDetailsLifecycleStateActive CreateManagementCellDetailsLifecycleStateEnum = "ACTIVE" - CreateManagementCellDetailsLifecycleStateInactive CreateManagementCellDetailsLifecycleStateEnum = "INACTIVE" - CreateManagementCellDetailsLifecycleStateDeleted CreateManagementCellDetailsLifecycleStateEnum = "DELETED" -) - -var mappingCreateManagementCellDetailsLifecycleStateEnum = map[string]CreateManagementCellDetailsLifecycleStateEnum{ - "CREATING": CreateManagementCellDetailsLifecycleStateCreating, - "ACTIVE": CreateManagementCellDetailsLifecycleStateActive, - "INACTIVE": CreateManagementCellDetailsLifecycleStateInactive, - "DELETED": CreateManagementCellDetailsLifecycleStateDeleted, -} - -var mappingCreateManagementCellDetailsLifecycleStateEnumLowerCase = map[string]CreateManagementCellDetailsLifecycleStateEnum{ - "creating": CreateManagementCellDetailsLifecycleStateCreating, - "active": CreateManagementCellDetailsLifecycleStateActive, - "inactive": CreateManagementCellDetailsLifecycleStateInactive, - "deleted": CreateManagementCellDetailsLifecycleStateDeleted, -} - -// GetCreateManagementCellDetailsLifecycleStateEnumValues Enumerates the set of values for CreateManagementCellDetailsLifecycleStateEnum -func GetCreateManagementCellDetailsLifecycleStateEnumValues() []CreateManagementCellDetailsLifecycleStateEnum { - values := make([]CreateManagementCellDetailsLifecycleStateEnum, 0) - for _, v := range mappingCreateManagementCellDetailsLifecycleStateEnum { - values = append(values, v) - } - return values -} - -// GetCreateManagementCellDetailsLifecycleStateEnumStringValues Enumerates the set of values in String for CreateManagementCellDetailsLifecycleStateEnum -func GetCreateManagementCellDetailsLifecycleStateEnumStringValues() []string { - return []string{ - "CREATING", - "ACTIVE", - "INACTIVE", - "DELETED", - } -} - -// GetMappingCreateManagementCellDetailsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingCreateManagementCellDetailsLifecycleStateEnum(val string) (CreateManagementCellDetailsLifecycleStateEnum, bool) { - enum, ok := mappingCreateManagementCellDetailsLifecycleStateEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// CreateManagementCellDetailsCategoryEnum Enum with underlying type: string -type CreateManagementCellDetailsCategoryEnum string - -// Set of constants representing the allowable values for CreateManagementCellDetailsCategoryEnum -const ( - CreateManagementCellDetailsCategoryGeneral CreateManagementCellDetailsCategoryEnum = "GENERAL" - CreateManagementCellDetailsCategoryInternal CreateManagementCellDetailsCategoryEnum = "INTERNAL" - CreateManagementCellDetailsCategoryRestricted CreateManagementCellDetailsCategoryEnum = "RESTRICTED" -) - -var mappingCreateManagementCellDetailsCategoryEnum = map[string]CreateManagementCellDetailsCategoryEnum{ - "GENERAL": CreateManagementCellDetailsCategoryGeneral, - "INTERNAL": CreateManagementCellDetailsCategoryInternal, - "RESTRICTED": CreateManagementCellDetailsCategoryRestricted, -} - -var mappingCreateManagementCellDetailsCategoryEnumLowerCase = map[string]CreateManagementCellDetailsCategoryEnum{ - "general": CreateManagementCellDetailsCategoryGeneral, - "internal": CreateManagementCellDetailsCategoryInternal, - "restricted": CreateManagementCellDetailsCategoryRestricted, -} - -// GetCreateManagementCellDetailsCategoryEnumValues Enumerates the set of values for CreateManagementCellDetailsCategoryEnum -func GetCreateManagementCellDetailsCategoryEnumValues() []CreateManagementCellDetailsCategoryEnum { - values := make([]CreateManagementCellDetailsCategoryEnum, 0) - for _, v := range mappingCreateManagementCellDetailsCategoryEnum { - values = append(values, v) - } - return values -} - -// GetCreateManagementCellDetailsCategoryEnumStringValues Enumerates the set of values in String for CreateManagementCellDetailsCategoryEnum -func GetCreateManagementCellDetailsCategoryEnumStringValues() []string { - return []string{ - "GENERAL", - "INTERNAL", - "RESTRICTED", - } -} - -// GetMappingCreateManagementCellDetailsCategoryEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingCreateManagementCellDetailsCategoryEnum(val string) (CreateManagementCellDetailsCategoryEnum, bool) { - enum, ok := mappingCreateManagementCellDetailsCategoryEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_request_response.go deleted file mode 100644 index e5cd196fc0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_management_cell_request_response.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreateManagementCellRequest wrapper for the CreateManagementCell operation -type CreateManagementCellRequest struct { - - // Details for the new ManagementCell. - CreateManagementCellDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 CreateManagementCellRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateManagementCellRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateManagementCellRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateManagementCellRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreateManagementCellRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreateManagementCellResponse wrapper for the CreateManagementCell operation -type CreateManagementCellResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ManagementCell instance - ManagementCell `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 CreateManagementCellResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateManagementCellResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_map_tenancy_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_map_tenancy_configuration.go deleted file mode 100644 index e4d68378a3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_map_tenancy_configuration.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreateMapTenancyConfiguration Response to be returned post successful mapping -type CreateMapTenancyConfiguration struct { - - // The response message - Message *string `mandatory:"true" json:"message"` -} - -func (m CreateMapTenancyConfiguration) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreateMapTenancyConfiguration) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go index 3f37c92120..5415864659 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_object_storage_link_request_response.go @@ -12,6 +12,10 @@ import ( ) // CreateObjectStorageLinkRequest wrapper for the CreateObjectStorageLink operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateObjectStorageLink.go.html to see an example of how to use CreateObjectStorageLinkRequest. type CreateObjectStorageLinkRequest struct { // Details for the new Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_details.go deleted file mode 100644 index e78bb45aa8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_details.go +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreatePoolDetails The data required for creating a Pool. -type CreatePoolDetails struct { - - // The type of pool - PoolType CreatePoolDetailsPoolTypeEnum `mandatory:"true" json:"poolType"` - - // Name of the pool - PoolName *string `mandatory:"true" json:"poolName"` - - // The name of the site group this pool is associated with - SiteGroup *string `mandatory:"true" json:"siteGroup"` - - // List of customer tenancies it is dedicated for - Resources []interface{} `mandatory:"true" json:"resources"` - - // List of customer tenancies it is dedicated for - DedicatedCustomerTenancies []string `mandatory:"false" json:"dedicatedCustomerTenancies"` - - // List of customer tenancies it is dedicated for - Tags []string `mandatory:"false" json:"tags"` - - // The pools that have affinity with this pool. - PoolAffinities *interface{} `mandatory:"false" json:"poolAffinities"` -} - -func (m CreatePoolDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreatePoolDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingCreatePoolDetailsPoolTypeEnum(string(m.PoolType)); !ok && m.PoolType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PoolType: %s. Supported values are: %s.", m.PoolType, strings.Join(GetCreatePoolDetailsPoolTypeEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreatePoolDetailsPoolTypeEnum Enum with underlying type: string -type CreatePoolDetailsPoolTypeEnum string - -// Set of constants representing the allowable values for CreatePoolDetailsPoolTypeEnum -const ( - CreatePoolDetailsPoolTypeCompute CreatePoolDetailsPoolTypeEnum = "COMPUTE" - CreatePoolDetailsPoolTypeBlock CreatePoolDetailsPoolTypeEnum = "BLOCK" -) - -var mappingCreatePoolDetailsPoolTypeEnum = map[string]CreatePoolDetailsPoolTypeEnum{ - "COMPUTE": CreatePoolDetailsPoolTypeCompute, - "BLOCK": CreatePoolDetailsPoolTypeBlock, -} - -var mappingCreatePoolDetailsPoolTypeEnumLowerCase = map[string]CreatePoolDetailsPoolTypeEnum{ - "compute": CreatePoolDetailsPoolTypeCompute, - "block": CreatePoolDetailsPoolTypeBlock, -} - -// GetCreatePoolDetailsPoolTypeEnumValues Enumerates the set of values for CreatePoolDetailsPoolTypeEnum -func GetCreatePoolDetailsPoolTypeEnumValues() []CreatePoolDetailsPoolTypeEnum { - values := make([]CreatePoolDetailsPoolTypeEnum, 0) - for _, v := range mappingCreatePoolDetailsPoolTypeEnum { - values = append(values, v) - } - return values -} - -// GetCreatePoolDetailsPoolTypeEnumStringValues Enumerates the set of values in String for CreatePoolDetailsPoolTypeEnum -func GetCreatePoolDetailsPoolTypeEnumStringValues() []string { - return []string{ - "COMPUTE", - "BLOCK", - } -} - -// GetMappingCreatePoolDetailsPoolTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingCreatePoolDetailsPoolTypeEnum(val string) (CreatePoolDetailsPoolTypeEnum, bool) { - enum, ok := mappingCreatePoolDetailsPoolTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_request_response.go deleted file mode 100644 index 1ddfb63015..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_pool_request_response.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreatePoolRequest wrapper for the CreatePool operation -type CreatePoolRequest struct { - - // Details for the new Pool. - CreatePoolDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 CreatePoolRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreatePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreatePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreatePoolRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreatePoolRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreatePoolResponse wrapper for the CreatePool operation -type CreatePoolResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Pool instance - Pool `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 CreatePoolResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreatePoolResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_details.go deleted file mode 100644 index b6e042f337..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_details.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreateTenancyOverrideDetails The data required for creating a Tenancy Override. -type CreateTenancyOverrideDetails struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. - TenancyId *string `mandatory:"true" json:"tenancyId"` - - // The list of overrides for a tenant. - Overrides []interface{} `mandatory:"true" json:"overrides"` -} - -func (m CreateTenancyOverrideDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreateTenancyOverrideDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_request_response.go deleted file mode 100644 index 7edd957be0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/create_tenancy_override_request_response.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreateTenancyOverrideRequest wrapper for the CreateTenancyOverride operation -type CreateTenancyOverrideRequest struct { - - // Details for the new Tenancy Override. - CreateTenancyOverrideDetails `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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 CreateTenancyOverrideRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateTenancyOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateTenancyOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateTenancyOverrideRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreateTenancyOverrideRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreateTenancyOverrideResponse wrapper for the CreateTenancyOverride operation -type CreateTenancyOverrideResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The TenancyOverride instance - TenancyOverride `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 CreateTenancyOverrideResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateTenancyOverrideResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/current_compute_capacity.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/current_compute_capacity.go deleted file mode 100644 index 5468d55378..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/current_compute_capacity.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CurrentComputeCapacity The compute capacity tracked internally. -type CurrentComputeCapacity struct { - Cores16 *FaultDomainUsage `mandatory:"false" json:"cores16"` - - Cores94 *FaultDomainUsage `mandatory:"false" json:"cores94"` -} - -func (m CurrentComputeCapacity) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CurrentComputeCapacity) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_all_tenancy_overrides_for_tenant_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_all_tenancy_overrides_for_tenant_request_response.go deleted file mode 100644 index 79cf3e8298..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_all_tenancy_overrides_for_tenant_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteAllTenancyOverridesForTenantRequest wrapper for the DeleteAllTenancyOverridesForTenant operation -type DeleteAllTenancyOverridesForTenantRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. - TenantId *string `mandatory:"true" contributesTo:"path" name:"tenantId"` - - // 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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 DeleteAllTenancyOverridesForTenantRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteAllTenancyOverridesForTenantRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteAllTenancyOverridesForTenantRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteAllTenancyOverridesForTenantRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteAllTenancyOverridesForTenantRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteAllTenancyOverridesForTenantResponse wrapper for the DeleteAllTenancyOverridesForTenant operation -type DeleteAllTenancyOverridesForTenantResponse 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 DeleteAllTenancyOverridesForTenantResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteAllTenancyOverridesForTenantResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_capacity_reservation_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_capacity_reservation_info_request_response.go deleted file mode 100644 index d7a73e2af0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_capacity_reservation_info_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteCapacityReservationInfoRequest wrapper for the DeleteCapacityReservationInfo operation -type DeleteCapacityReservationInfoRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"true" contributesTo:"path" name:"capacityReservationId"` - - // 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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 DeleteCapacityReservationInfoRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteCapacityReservationInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteCapacityReservationInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteCapacityReservationInfoRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteCapacityReservationInfoRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteCapacityReservationInfoResponse wrapper for the DeleteCapacityReservationInfo operation -type DeleteCapacityReservationInfoResponse 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 DeleteCapacityReservationInfoResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteCapacityReservationInfoResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_cpg_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_cpg_override_request_response.go deleted file mode 100644 index 157fec9ba0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_cpg_override_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteCpgOverrideRequest wrapper for the DeleteCpgOverride operation -type DeleteCpgOverrideRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"true" contributesTo:"path" name:"customerCpgId"` - - // 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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 DeleteCpgOverrideRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteCpgOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteCpgOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteCpgOverrideRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteCpgOverrideRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteCpgOverrideResponse wrapper for the DeleteCpgOverride operation -type DeleteCpgOverrideResponse 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 DeleteCpgOverrideResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteCpgOverrideResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lfs_cpg_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lfs_cpg_info_request_response.go deleted file mode 100644 index a59c15f8d4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lfs_cpg_info_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteLfsCpgInfoRequest wrapper for the DeleteLfsCpgInfo operation -type DeleteLfsCpgInfoRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"true" contributesTo:"path" name:"lfsCpgId"` - - // 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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 DeleteLfsCpgInfoRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteLfsCpgInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteLfsCpgInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteLfsCpgInfoRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteLfsCpgInfoRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteLfsCpgInfoResponse wrapper for the DeleteLfsCpgInfo operation -type DeleteLfsCpgInfoResponse 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 DeleteLfsCpgInfoResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteLfsCpgInfoResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go index c207d28246..42f9289a34 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_lustre_file_system_request_response.go @@ -12,6 +12,10 @@ import ( ) // DeleteLustreFileSystemRequest wrapper for the DeleteLustreFileSystem operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteLustreFileSystem.go.html to see an example of how to use DeleteLustreFileSystemRequest. type DeleteLustreFileSystemRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_management_cell_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_management_cell_request_response.go deleted file mode 100644 index 9981550e09..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_management_cell_request_response.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteManagementCellRequest wrapper for the DeleteManagementCell operation -type DeleteManagementCellRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ManagementCell. - ManagementCellId *string `mandatory:"true" contributesTo:"path" name:"managementCellId"` - - // 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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 DeleteManagementCellRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteManagementCellRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteManagementCellRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteManagementCellRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteManagementCellRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteManagementCellResponse wrapper for the DeleteManagementCell operation -type DeleteManagementCellResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. - // Use 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 DeleteManagementCellResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteManagementCellResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go index f3623aa666..65a8f851ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_object_storage_link_request_response.go @@ -12,6 +12,10 @@ import ( ) // DeleteObjectStorageLinkRequest wrapper for the DeleteObjectStorageLink operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteObjectStorageLink.go.html to see an example of how to use DeleteObjectStorageLinkRequest. type DeleteObjectStorageLinkRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_pool_request_response.go deleted file mode 100644 index ba34debac9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_pool_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeletePoolRequest wrapper for the DeletePool operation -type DeletePoolRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool. - PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` - - // 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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 DeletePoolRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeletePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeletePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeletePoolRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeletePoolRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeletePoolResponse wrapper for the DeletePool operation -type DeletePoolResponse 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 DeletePoolResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeletePoolResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_configuration_request_response.go deleted file mode 100644 index 52a7c8ac42..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_configuration_request_response.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteTenancyConfigurationRequest wrapper for the DeleteTenancyConfiguration operation -type DeleteTenancyConfigurationRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy. - TenancyId *string `mandatory:"true" contributesTo:"path" name:"tenancyId"` - - // 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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 DeleteTenancyConfigurationRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteTenancyConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteTenancyConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteTenancyConfigurationRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteTenancyConfigurationRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteTenancyConfigurationResponse wrapper for the DeleteTenancyConfiguration operation -type DeleteTenancyConfigurationResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. - // Use 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 DeleteTenancyConfigurationResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteTenancyConfigurationResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_override_request_response.go deleted file mode 100644 index 4a4b030283..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/delete_tenancy_override_request_response.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteTenancyOverrideRequest wrapper for the DeleteTenancyOverride operation -type DeleteTenancyOverrideRequest struct { - - // The ID associated with an override. - OverrideId *string `mandatory:"true" contributesTo:"path" name:"overrideId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. - TenantId *string `mandatory:"true" contributesTo:"path" name:"tenantId"` - - // 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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 DeleteTenancyOverrideRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteTenancyOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteTenancyOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteTenancyOverrideRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteTenancyOverrideRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteTenancyOverrideResponse wrapper for the DeleteTenancyOverride operation -type DeleteTenancyOverrideResponse 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 DeleteTenancyOverrideResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteTenancyOverrideResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/desired_compute_count.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/desired_compute_count.go deleted file mode 100644 index d34b5155fd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/desired_compute_count.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// DesiredComputeCount The desired compute configuration. -type DesiredComputeCount struct { - - // List of desired compute configurations. - Configs []interface{} `mandatory:"false" json:"configs"` -} - -func (m DesiredComputeCount) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m DesiredComputeCount) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/details.go deleted file mode 100644 index 073d154041..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/details.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// Details ManagementCell details are captured in this JSON object. -type Details struct { - - // JSON object version. It helps in deploying read/write phase when JSON object is updated. - Version *int64 `mandatory:"false" json:"version"` - - // Management plane load balancer endpoint for ManagementCell - MpLoadBalancerEndpoint *string `mandatory:"false" json:"mpLoadBalancerEndpoint"` - - // Total Cell capacity available for creating new filesystems on the cell. Measured in GB. For create request, this will mapped to availableCapacityInGBs and need not to be part of request params. - TotalCapacityInGBs *int64 `mandatory:"false" json:"totalCapacityInGBs"` -} - -func (m Details) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m Details) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/fault_domain_usage.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/fault_domain_usage.go deleted file mode 100644 index 0c7bb74398..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/fault_domain_usage.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// FaultDomainUsage Usage per fault domain. -type FaultDomainUsage struct { - Fd1 *ReservedAndUsedCount `mandatory:"false" json:"fd1"` - - Fd2 *ReservedAndUsedCount `mandatory:"false" json:"fd2"` - - Fd3 *ReservedAndUsedCount `mandatory:"false" json:"fd3"` -} - -func (m FaultDomainUsage) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m FaultDomainUsage) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_capacity_reservation_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_capacity_reservation_info_request_response.go deleted file mode 100644 index 310532ec04..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_capacity_reservation_info_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetCapacityReservationInfoRequest wrapper for the GetCapacityReservationInfo operation -type GetCapacityReservationInfoRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"true" contributesTo:"path" name:"capacityReservationId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 GetCapacityReservationInfoRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetCapacityReservationInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetCapacityReservationInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetCapacityReservationInfoRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request GetCapacityReservationInfoRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetCapacityReservationInfoResponse wrapper for the GetCapacityReservationInfo operation -type GetCapacityReservationInfoResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CapacityReservationInfo instance - CapacityReservationInfo `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 GetCapacityReservationInfoResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetCapacityReservationInfoResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_cpg_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_cpg_override_request_response.go deleted file mode 100644 index 2423401f2c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_cpg_override_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetCpgOverrideRequest wrapper for the GetCpgOverride operation -type GetCpgOverrideRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"true" contributesTo:"path" name:"customerCpgId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 GetCpgOverrideRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetCpgOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetCpgOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetCpgOverrideRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request GetCpgOverrideRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetCpgOverrideResponse wrapper for the GetCpgOverride operation -type GetCpgOverrideResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CpgOverride instance - CpgOverride `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 GetCpgOverrideResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetCpgOverrideResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lfs_cpg_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lfs_cpg_info_request_response.go deleted file mode 100644 index a973a50f87..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lfs_cpg_info_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetLfsCpgInfoRequest wrapper for the GetLfsCpgInfo operation -type GetLfsCpgInfoRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"true" contributesTo:"path" name:"lfsCpgId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 GetLfsCpgInfoRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetLfsCpgInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetLfsCpgInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetLfsCpgInfoRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request GetLfsCpgInfoRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetLfsCpgInfoResponse wrapper for the GetLfsCpgInfo operation -type GetLfsCpgInfoResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The LfsCpgInfo instance - LfsCpgInfo `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 GetLfsCpgInfoResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetLfsCpgInfoResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go index 6b0f5cade9..c856c12a92 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_lustre_file_system_request_response.go @@ -12,6 +12,10 @@ import ( ) // GetLustreFileSystemRequest wrapper for the GetLustreFileSystem operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetLustreFileSystem.go.html to see an example of how to use GetLustreFileSystemRequest. type GetLustreFileSystemRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_management_cell_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_management_cell_request_response.go deleted file mode 100644 index 93371e44c3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_management_cell_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetManagementCellRequest wrapper for the GetManagementCell operation -type GetManagementCellRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ManagementCell. - ManagementCellId *string `mandatory:"true" contributesTo:"path" name:"managementCellId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 GetManagementCellRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetManagementCellRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetManagementCellRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetManagementCellRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request GetManagementCellRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetManagementCellResponse wrapper for the GetManagementCell operation -type GetManagementCellResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ManagementCell instance - ManagementCell `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 GetManagementCellResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetManagementCellResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go index 0c308c20c6..0d04382d9b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_object_storage_link_request_response.go @@ -12,6 +12,10 @@ import ( ) // GetObjectStorageLinkRequest wrapper for the GetObjectStorageLink operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetObjectStorageLink.go.html to see an example of how to use GetObjectStorageLinkRequest. type GetObjectStorageLinkRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_pool_request_response.go deleted file mode 100644 index 795f21ba08..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_pool_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetPoolRequest wrapper for the GetPool operation -type GetPoolRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool. - PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 GetPoolRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetPoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetPoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetPoolRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request GetPoolRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetPoolResponse wrapper for the GetPool operation -type GetPoolResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Pool instance - Pool `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 GetPoolResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetPoolResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go index 7cf1a640bc..df1abe6635 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_sync_job_request_response.go @@ -12,6 +12,10 @@ import ( ) // GetSyncJobRequest wrapper for the GetSyncJob operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetSyncJob.go.html to see an example of how to use GetSyncJobRequest. type GetSyncJobRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_tenancy_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_tenancy_override_request_response.go deleted file mode 100644 index ebc49eb6ff..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_tenancy_override_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetTenancyOverrideRequest wrapper for the GetTenancyOverride operation -type GetTenancyOverrideRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. - TenantId *string `mandatory:"true" contributesTo:"path" name:"tenantId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 GetTenancyOverrideRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetTenancyOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetTenancyOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetTenancyOverrideRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request GetTenancyOverrideRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetTenancyOverrideResponse wrapper for the GetTenancyOverride operation -type GetTenancyOverrideResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The TenancyOverride instance - TenancyOverride `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 GetTenancyOverrideResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetTenancyOverrideResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go index bd50e6824c..d1f1ccadbf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/get_work_request_request_response.go @@ -12,6 +12,10 @@ import ( ) // GetWorkRequestRequest wrapper for the GetWorkRequest operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. type GetWorkRequestRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_details.go deleted file mode 100644 index 67d5c305da..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_details.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// InjectFaultDetails Wrapper object for input map -type InjectFaultDetails struct { - - // Example: `{"action": "terminate_host"}` - PropertiesMap map[string]string `mandatory:"true" json:"map"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.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.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: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m InjectFaultDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m InjectFaultDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_output_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_output_details.go deleted file mode 100644 index a95d4ff833..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_output_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// InjectFaultOutputDetails Wrapper object for output map -type InjectFaultOutputDetails struct { - - // Example: `{"status": "success"}` - PropertiesMap map[string]string `mandatory:"true" json:"map"` -} - -func (m InjectFaultOutputDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m InjectFaultOutputDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_request_response.go deleted file mode 100644 index a4ce06707f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/inject_fault_request_response.go +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// InjectFaultRequest wrapper for the InjectFault operation -type InjectFaultRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. - LustreFileSystemId *string `mandatory:"true" contributesTo:"path" name:"lustreFileSystemId"` - - // Inject faults for a particular lustre file system - InjectFaultDetails `contributesTo:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 InjectFaultRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request InjectFaultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request InjectFaultRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request InjectFaultRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request InjectFaultRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// InjectFaultResponse wrapper for the InjectFault operation -type InjectFaultResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The InjectFaultOutputDetails instance - InjectFaultOutputDetails `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 InjectFaultResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response InjectFaultResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info.go deleted file mode 100644 index ad05137b64..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// LfsCpgInfo An object that gives more details about a LFS CPG. -type LfsCpgInfo struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` - - // The name of the site group that the LFS CPG belongs to. - SiteGroupKey *string `mandatory:"true" json:"siteGroupKey"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default capacity reservation. - DefaultCapacityReservationId *string `mandatory:"true" json:"defaultCapacityReservationId"` - - // The availability domain the Management Cell is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The date and time the LFS CPG Info was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2024-04-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the LFS CPG Info was updated, in the format defined - // by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2024-04-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` -} - -func (m LfsCpgInfo) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m LfsCpgInfo) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_collection.go deleted file mode 100644 index 2f17362dd8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// LfsCpgInfoCollection Results of a LFS CPG Info search. Contains LFSCpgInfo items. -type LfsCpgInfoCollection struct { - - // List of LFSCpgInfoSummary. - Items []LfsCpgInfoSummary `mandatory:"true" json:"items"` -} - -func (m LfsCpgInfoCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m LfsCpgInfoCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_summary.go deleted file mode 100644 index c19a04c3aa..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lfs_cpg_info_summary.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// LfsCpgInfoSummary An object that gives more details about a LFS CPG. -type LfsCpgInfoSummary struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"true" json:"lfsCpgId"` - - // The name of the site group that the LFS CPG belongs to. - SiteGroupKey *string `mandatory:"true" json:"siteGroupKey"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default capacity reservation. - DefaultCapacityReservationId *string `mandatory:"true" json:"defaultCapacityReservationId"` - - // The availability domain the Management Cell is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The date and time the LFS CPG Info was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2024-04-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the LFS CPG Info was updated, in the format defined - // by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2024-04-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` -} - -func (m LfsCpgInfoSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m LfsCpgInfoSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_capacity_reservation_infos_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_capacity_reservation_infos_request_response.go deleted file mode 100644 index 433cf18b94..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_capacity_reservation_infos_request_response.go +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListCapacityReservationInfosRequest wrapper for the ListCapacityReservationInfos operation -type ListCapacityReservationInfosRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"false" contributesTo:"query" name:"capacityReservationId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"false" contributesTo:"query" name:"customerCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. - CustomerTenancyId *string `mandatory:"false" contributesTo:"query" name:"customerTenancyId"` - - // 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.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.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`). - SortOrder ListCapacityReservationInfosSortOrderEnum `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 ListCapacityReservationInfosRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListCapacityReservationInfosRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListCapacityReservationInfosRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListCapacityReservationInfosRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListCapacityReservationInfosRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListCapacityReservationInfosSortOrderEnum(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(GetListCapacityReservationInfosSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListCapacityReservationInfosResponse wrapper for the ListCapacityReservationInfos operation -type ListCapacityReservationInfosResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of CapacityReservationInfoCollection instances - CapacityReservationInfoCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListCapacityReservationInfosResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListCapacityReservationInfosResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListCapacityReservationInfosSortOrderEnum Enum with underlying type: string -type ListCapacityReservationInfosSortOrderEnum string - -// Set of constants representing the allowable values for ListCapacityReservationInfosSortOrderEnum -const ( - ListCapacityReservationInfosSortOrderAsc ListCapacityReservationInfosSortOrderEnum = "ASC" - ListCapacityReservationInfosSortOrderDesc ListCapacityReservationInfosSortOrderEnum = "DESC" -) - -var mappingListCapacityReservationInfosSortOrderEnum = map[string]ListCapacityReservationInfosSortOrderEnum{ - "ASC": ListCapacityReservationInfosSortOrderAsc, - "DESC": ListCapacityReservationInfosSortOrderDesc, -} - -var mappingListCapacityReservationInfosSortOrderEnumLowerCase = map[string]ListCapacityReservationInfosSortOrderEnum{ - "asc": ListCapacityReservationInfosSortOrderAsc, - "desc": ListCapacityReservationInfosSortOrderDesc, -} - -// GetListCapacityReservationInfosSortOrderEnumValues Enumerates the set of values for ListCapacityReservationInfosSortOrderEnum -func GetListCapacityReservationInfosSortOrderEnumValues() []ListCapacityReservationInfosSortOrderEnum { - values := make([]ListCapacityReservationInfosSortOrderEnum, 0) - for _, v := range mappingListCapacityReservationInfosSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListCapacityReservationInfosSortOrderEnumStringValues Enumerates the set of values in String for ListCapacityReservationInfosSortOrderEnum -func GetListCapacityReservationInfosSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListCapacityReservationInfosSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListCapacityReservationInfosSortOrderEnum(val string) (ListCapacityReservationInfosSortOrderEnum, bool) { - enum, ok := mappingListCapacityReservationInfosSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_cpg_overrides_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_cpg_overrides_request_response.go deleted file mode 100644 index 459348ffac..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_cpg_overrides_request_response.go +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListCpgOverridesRequest wrapper for the ListCpgOverrides operation -type ListCpgOverridesRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"false" contributesTo:"query" name:"customerCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. - CustomerTenancyId *string `mandatory:"false" contributesTo:"query" name:"customerTenancyId"` - - // 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.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.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`). - SortOrder ListCpgOverridesSortOrderEnum `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 ListCpgOverridesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListCpgOverridesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListCpgOverridesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListCpgOverridesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListCpgOverridesRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListCpgOverridesSortOrderEnum(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(GetListCpgOverridesSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListCpgOverridesResponse wrapper for the ListCpgOverrides operation -type ListCpgOverridesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of CpgOverrideCollection instances - CpgOverrideCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListCpgOverridesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListCpgOverridesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListCpgOverridesSortOrderEnum Enum with underlying type: string -type ListCpgOverridesSortOrderEnum string - -// Set of constants representing the allowable values for ListCpgOverridesSortOrderEnum -const ( - ListCpgOverridesSortOrderAsc ListCpgOverridesSortOrderEnum = "ASC" - ListCpgOverridesSortOrderDesc ListCpgOverridesSortOrderEnum = "DESC" -) - -var mappingListCpgOverridesSortOrderEnum = map[string]ListCpgOverridesSortOrderEnum{ - "ASC": ListCpgOverridesSortOrderAsc, - "DESC": ListCpgOverridesSortOrderDesc, -} - -var mappingListCpgOverridesSortOrderEnumLowerCase = map[string]ListCpgOverridesSortOrderEnum{ - "asc": ListCpgOverridesSortOrderAsc, - "desc": ListCpgOverridesSortOrderDesc, -} - -// GetListCpgOverridesSortOrderEnumValues Enumerates the set of values for ListCpgOverridesSortOrderEnum -func GetListCpgOverridesSortOrderEnumValues() []ListCpgOverridesSortOrderEnum { - values := make([]ListCpgOverridesSortOrderEnum, 0) - for _, v := range mappingListCpgOverridesSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListCpgOverridesSortOrderEnumStringValues Enumerates the set of values in String for ListCpgOverridesSortOrderEnum -func GetListCpgOverridesSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListCpgOverridesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListCpgOverridesSortOrderEnum(val string) (ListCpgOverridesSortOrderEnum, bool) { - enum, ok := mappingListCpgOverridesSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lfs_cpg_infos_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lfs_cpg_infos_request_response.go deleted file mode 100644 index 2d6beafa62..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lfs_cpg_infos_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListLfsCpgInfosRequest wrapper for the ListLfsCpgInfos operation -type ListLfsCpgInfosRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"false" contributesTo:"query" name:"lfsCpgId"` - - // 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.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.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`). - SortOrder ListLfsCpgInfosSortOrderEnum `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 ListLfsCpgInfosRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListLfsCpgInfosRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListLfsCpgInfosRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListLfsCpgInfosRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListLfsCpgInfosRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListLfsCpgInfosSortOrderEnum(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(GetListLfsCpgInfosSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListLfsCpgInfosResponse wrapper for the ListLfsCpgInfos operation -type ListLfsCpgInfosResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of LfsCpgInfoCollection instances - LfsCpgInfoCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListLfsCpgInfosResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListLfsCpgInfosResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListLfsCpgInfosSortOrderEnum Enum with underlying type: string -type ListLfsCpgInfosSortOrderEnum string - -// Set of constants representing the allowable values for ListLfsCpgInfosSortOrderEnum -const ( - ListLfsCpgInfosSortOrderAsc ListLfsCpgInfosSortOrderEnum = "ASC" - ListLfsCpgInfosSortOrderDesc ListLfsCpgInfosSortOrderEnum = "DESC" -) - -var mappingListLfsCpgInfosSortOrderEnum = map[string]ListLfsCpgInfosSortOrderEnum{ - "ASC": ListLfsCpgInfosSortOrderAsc, - "DESC": ListLfsCpgInfosSortOrderDesc, -} - -var mappingListLfsCpgInfosSortOrderEnumLowerCase = map[string]ListLfsCpgInfosSortOrderEnum{ - "asc": ListLfsCpgInfosSortOrderAsc, - "desc": ListLfsCpgInfosSortOrderDesc, -} - -// GetListLfsCpgInfosSortOrderEnumValues Enumerates the set of values for ListLfsCpgInfosSortOrderEnum -func GetListLfsCpgInfosSortOrderEnumValues() []ListLfsCpgInfosSortOrderEnum { - values := make([]ListLfsCpgInfosSortOrderEnum, 0) - for _, v := range mappingListLfsCpgInfosSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListLfsCpgInfosSortOrderEnumStringValues Enumerates the set of values in String for ListLfsCpgInfosSortOrderEnum -func GetListLfsCpgInfosSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListLfsCpgInfosSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListLfsCpgInfosSortOrderEnum(val string) (ListLfsCpgInfosSortOrderEnum, bool) { - enum, ok := mappingListLfsCpgInfosSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go index 66714263d3..446f864823 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_lustre_file_systems_request_response.go @@ -12,6 +12,10 @@ import ( ) // ListLustreFileSystemsRequest wrapper for the ListLustreFileSystems operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListLustreFileSystems.go.html to see an example of how to use ListLustreFileSystemsRequest. type ListLustreFileSystemsRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_management_cells_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_management_cells_request_response.go deleted file mode 100644 index ae42ea5615..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_management_cells_request_response.go +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListManagementCellsRequest wrapper for the ListManagementCells operation -type ListManagementCellsRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. - CompartmentId *string `mandatory:"false" 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 (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ManagementCell. - Id *string `mandatory:"false" contributesTo:"query" name:"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.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.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`). - SortOrder ListManagementCellsSortOrderEnum `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 ListManagementCellsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListManagementCellsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListManagementCellsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListManagementCellsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListManagementCellsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListManagementCellsSortOrderEnum(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(GetListManagementCellsSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListManagementCellsResponse wrapper for the ListManagementCells operation -type ListManagementCellsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ManagementCellCollection instances - ManagementCellCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListManagementCellsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListManagementCellsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListManagementCellsSortOrderEnum Enum with underlying type: string -type ListManagementCellsSortOrderEnum string - -// Set of constants representing the allowable values for ListManagementCellsSortOrderEnum -const ( - ListManagementCellsSortOrderAsc ListManagementCellsSortOrderEnum = "ASC" - ListManagementCellsSortOrderDesc ListManagementCellsSortOrderEnum = "DESC" -) - -var mappingListManagementCellsSortOrderEnum = map[string]ListManagementCellsSortOrderEnum{ - "ASC": ListManagementCellsSortOrderAsc, - "DESC": ListManagementCellsSortOrderDesc, -} - -var mappingListManagementCellsSortOrderEnumLowerCase = map[string]ListManagementCellsSortOrderEnum{ - "asc": ListManagementCellsSortOrderAsc, - "desc": ListManagementCellsSortOrderDesc, -} - -// GetListManagementCellsSortOrderEnumValues Enumerates the set of values for ListManagementCellsSortOrderEnum -func GetListManagementCellsSortOrderEnumValues() []ListManagementCellsSortOrderEnum { - values := make([]ListManagementCellsSortOrderEnum, 0) - for _, v := range mappingListManagementCellsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListManagementCellsSortOrderEnumStringValues Enumerates the set of values in String for ListManagementCellsSortOrderEnum -func GetListManagementCellsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListManagementCellsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListManagementCellsSortOrderEnum(val string) (ListManagementCellsSortOrderEnum, bool) { - enum, ok := mappingListManagementCellsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go index 0a4c443a40..02c56cf8d0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_object_storage_links_request_response.go @@ -12,6 +12,10 @@ import ( ) // ListObjectStorageLinksRequest wrapper for the ListObjectStorageLinks operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListObjectStorageLinks.go.html to see an example of how to use ListObjectStorageLinksRequest. type ListObjectStorageLinksRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_pools_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_pools_request_response.go deleted file mode 100644 index 76a4b745d0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_pools_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListPoolsRequest wrapper for the ListPools operation -type ListPoolsRequest 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.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.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`). - SortOrder ListPoolsSortOrderEnum `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 ListPoolsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPoolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPoolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPoolsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListPoolsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListPoolsSortOrderEnum(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(GetListPoolsSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListPoolsResponse wrapper for the ListPools operation -type ListPoolsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of PoolCollection instances - PoolCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListPoolsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPoolsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListPoolsSortOrderEnum Enum with underlying type: string -type ListPoolsSortOrderEnum string - -// Set of constants representing the allowable values for ListPoolsSortOrderEnum -const ( - ListPoolsSortOrderAsc ListPoolsSortOrderEnum = "ASC" - ListPoolsSortOrderDesc ListPoolsSortOrderEnum = "DESC" -) - -var mappingListPoolsSortOrderEnum = map[string]ListPoolsSortOrderEnum{ - "ASC": ListPoolsSortOrderAsc, - "DESC": ListPoolsSortOrderDesc, -} - -var mappingListPoolsSortOrderEnumLowerCase = map[string]ListPoolsSortOrderEnum{ - "asc": ListPoolsSortOrderAsc, - "desc": ListPoolsSortOrderDesc, -} - -// GetListPoolsSortOrderEnumValues Enumerates the set of values for ListPoolsSortOrderEnum -func GetListPoolsSortOrderEnumValues() []ListPoolsSortOrderEnum { - values := make([]ListPoolsSortOrderEnum, 0) - for _, v := range mappingListPoolsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListPoolsSortOrderEnumStringValues Enumerates the set of values in String for ListPoolsSortOrderEnum -func GetListPoolsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListPoolsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListPoolsSortOrderEnum(val string) (ListPoolsSortOrderEnum, bool) { - enum, ok := mappingListPoolsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_profiles_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_profiles_request_response.go deleted file mode 100644 index a03af979d7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_profiles_request_response.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListProfilesRequest wrapper for the ListProfiles operation -type ListProfilesRequest struct { - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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.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.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`). - SortOrder ListProfilesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only profile associated with given name. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListProfilesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListProfilesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListProfilesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListProfilesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListProfilesRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListProfilesSortOrderEnum(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(GetListProfilesSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListProfilesResponse wrapper for the ListProfiles operation -type ListProfilesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ProfileCollection instances - ProfileCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListProfilesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListProfilesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListProfilesSortOrderEnum Enum with underlying type: string -type ListProfilesSortOrderEnum string - -// Set of constants representing the allowable values for ListProfilesSortOrderEnum -const ( - ListProfilesSortOrderAsc ListProfilesSortOrderEnum = "ASC" - ListProfilesSortOrderDesc ListProfilesSortOrderEnum = "DESC" -) - -var mappingListProfilesSortOrderEnum = map[string]ListProfilesSortOrderEnum{ - "ASC": ListProfilesSortOrderAsc, - "DESC": ListProfilesSortOrderDesc, -} - -var mappingListProfilesSortOrderEnumLowerCase = map[string]ListProfilesSortOrderEnum{ - "asc": ListProfilesSortOrderAsc, - "desc": ListProfilesSortOrderDesc, -} - -// GetListProfilesSortOrderEnumValues Enumerates the set of values for ListProfilesSortOrderEnum -func GetListProfilesSortOrderEnumValues() []ListProfilesSortOrderEnum { - values := make([]ListProfilesSortOrderEnum, 0) - for _, v := range mappingListProfilesSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListProfilesSortOrderEnumStringValues Enumerates the set of values in String for ListProfilesSortOrderEnum -func GetListProfilesSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListProfilesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListProfilesSortOrderEnum(val string) (ListProfilesSortOrderEnum, bool) { - enum, ok := mappingListProfilesSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go index ec415dcdbe..1630840836 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_sync_jobs_request_response.go @@ -12,6 +12,10 @@ import ( ) // ListSyncJobsRequest wrapper for the ListSyncJobs operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListSyncJobs.go.html to see an example of how to use ListSyncJobsRequest. type ListSyncJobsRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_configurations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_configurations_request_response.go deleted file mode 100644 index 4349fc81f3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_configurations_request_response.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListTenancyConfigurationsRequest wrapper for the ListTenancyConfigurations operation -type ListTenancyConfigurationsRequest struct { - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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.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.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`). - SortOrder ListTenancyConfigurationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only profile associated with given name. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListTenancyConfigurationsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListTenancyConfigurationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListTenancyConfigurationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListTenancyConfigurationsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListTenancyConfigurationsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListTenancyConfigurationsSortOrderEnum(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(GetListTenancyConfigurationsSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListTenancyConfigurationsResponse wrapper for the ListTenancyConfigurations operation -type ListTenancyConfigurationsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of MapTenancyConfigurationCollection instances - MapTenancyConfigurationCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListTenancyConfigurationsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListTenancyConfigurationsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListTenancyConfigurationsSortOrderEnum Enum with underlying type: string -type ListTenancyConfigurationsSortOrderEnum string - -// Set of constants representing the allowable values for ListTenancyConfigurationsSortOrderEnum -const ( - ListTenancyConfigurationsSortOrderAsc ListTenancyConfigurationsSortOrderEnum = "ASC" - ListTenancyConfigurationsSortOrderDesc ListTenancyConfigurationsSortOrderEnum = "DESC" -) - -var mappingListTenancyConfigurationsSortOrderEnum = map[string]ListTenancyConfigurationsSortOrderEnum{ - "ASC": ListTenancyConfigurationsSortOrderAsc, - "DESC": ListTenancyConfigurationsSortOrderDesc, -} - -var mappingListTenancyConfigurationsSortOrderEnumLowerCase = map[string]ListTenancyConfigurationsSortOrderEnum{ - "asc": ListTenancyConfigurationsSortOrderAsc, - "desc": ListTenancyConfigurationsSortOrderDesc, -} - -// GetListTenancyConfigurationsSortOrderEnumValues Enumerates the set of values for ListTenancyConfigurationsSortOrderEnum -func GetListTenancyConfigurationsSortOrderEnumValues() []ListTenancyConfigurationsSortOrderEnum { - values := make([]ListTenancyConfigurationsSortOrderEnum, 0) - for _, v := range mappingListTenancyConfigurationsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListTenancyConfigurationsSortOrderEnumStringValues Enumerates the set of values in String for ListTenancyConfigurationsSortOrderEnum -func GetListTenancyConfigurationsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListTenancyConfigurationsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListTenancyConfigurationsSortOrderEnum(val string) (ListTenancyConfigurationsSortOrderEnum, bool) { - enum, ok := mappingListTenancyConfigurationsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_overrides_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_overrides_request_response.go deleted file mode 100644 index 3d60eadfc9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_tenancy_overrides_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListTenancyOverridesRequest wrapper for the ListTenancyOverrides operation -type ListTenancyOverridesRequest 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.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.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`). - SortOrder ListTenancyOverridesSortOrderEnum `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 ListTenancyOverridesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListTenancyOverridesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListTenancyOverridesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListTenancyOverridesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListTenancyOverridesRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListTenancyOverridesSortOrderEnum(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(GetListTenancyOverridesSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListTenancyOverridesResponse wrapper for the ListTenancyOverrides operation -type ListTenancyOverridesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of TenancyOverrideCollection instances - TenancyOverrideCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListTenancyOverridesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListTenancyOverridesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListTenancyOverridesSortOrderEnum Enum with underlying type: string -type ListTenancyOverridesSortOrderEnum string - -// Set of constants representing the allowable values for ListTenancyOverridesSortOrderEnum -const ( - ListTenancyOverridesSortOrderAsc ListTenancyOverridesSortOrderEnum = "ASC" - ListTenancyOverridesSortOrderDesc ListTenancyOverridesSortOrderEnum = "DESC" -) - -var mappingListTenancyOverridesSortOrderEnum = map[string]ListTenancyOverridesSortOrderEnum{ - "ASC": ListTenancyOverridesSortOrderAsc, - "DESC": ListTenancyOverridesSortOrderDesc, -} - -var mappingListTenancyOverridesSortOrderEnumLowerCase = map[string]ListTenancyOverridesSortOrderEnum{ - "asc": ListTenancyOverridesSortOrderAsc, - "desc": ListTenancyOverridesSortOrderDesc, -} - -// GetListTenancyOverridesSortOrderEnumValues Enumerates the set of values for ListTenancyOverridesSortOrderEnum -func GetListTenancyOverridesSortOrderEnumValues() []ListTenancyOverridesSortOrderEnum { - values := make([]ListTenancyOverridesSortOrderEnum, 0) - for _, v := range mappingListTenancyOverridesSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListTenancyOverridesSortOrderEnumStringValues Enumerates the set of values in String for ListTenancyOverridesSortOrderEnum -func GetListTenancyOverridesSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListTenancyOverridesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListTenancyOverridesSortOrderEnum(val string) (ListTenancyOverridesSortOrderEnum, bool) { - enum, ok := mappingListTenancyOverridesSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go index 171974001d..3e79fc829d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_errors_request_response.go @@ -12,6 +12,10 @@ import ( ) // ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest. type ListWorkRequestErrorsRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go index 0fe2f3837b..f8c49d2a42 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_request_logs_request_response.go @@ -12,6 +12,10 @@ import ( ) // ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest. type ListWorkRequestLogsRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go index 5fd14a7d83..49e56868b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/list_work_requests_request_response.go @@ -12,6 +12,10 @@ import ( ) // ListWorkRequestsRequest wrapper for the ListWorkRequests operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. type ListWorkRequestsRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_capacityreservationinfo_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_capacityreservationinfo_client.go deleted file mode 100644 index 10c404e5af..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_capacityreservationinfo_client.go +++ /dev/null @@ -1,367 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "github.com/oracle/oci-go-sdk/v65/common/auth" - "net/http" -) - -// CapacityReservationInfoClient a client for CapacityReservationInfo -type CapacityReservationInfoClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewCapacityReservationInfoClientWithConfigurationProvider Creates a new default CapacityReservationInfo client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewCapacityReservationInfoClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CapacityReservationInfoClient, err error) { - if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { - return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") - } - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newCapacityReservationInfoClientFromBaseClient(baseClient, provider) -} - -// NewCapacityReservationInfoClientWithOboToken Creates a new default CapacityReservationInfo 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 NewCapacityReservationInfoClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CapacityReservationInfoClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newCapacityReservationInfoClientFromBaseClient(baseClient, configProvider) -} - -func newCapacityReservationInfoClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client CapacityReservationInfoClient, err error) { - // CapacityReservationInfo service default circuit breaker is enabled - baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("CapacityReservationInfo")) - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = CapacityReservationInfoClient{BaseClient: baseClient} - client.BasePath = "20250228" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *CapacityReservationInfoClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *CapacityReservationInfoClient) 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 *CapacityReservationInfoClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// CreateCapacityReservationInfo Creates a Capacity Reservation Info. -// A default retry strategy applies to this operation CreateCapacityReservationInfo() -func (client CapacityReservationInfoClient) CreateCapacityReservationInfo(ctx context.Context, request CreateCapacityReservationInfoRequest) (response CreateCapacityReservationInfoResponse, 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.createCapacityReservationInfo, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateCapacityReservationInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateCapacityReservationInfoResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateCapacityReservationInfoResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateCapacityReservationInfoResponse") - } - return -} - -// createCapacityReservationInfo implements the OCIOperation interface (enables retrying operations) -func (client CapacityReservationInfoClient) createCapacityReservationInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/capacityReservationInfos", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateCapacityReservationInfoResponse - 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/lustre/20250228/CapacityReservationInfo/CreateCapacityReservationInfo" - err = common.PostProcessServiceError(err, "CapacityReservationInfo", "CreateCapacityReservationInfo", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteCapacityReservationInfo Deletes a CapacityReservationInfo. -// A default retry strategy applies to this operation DeleteCapacityReservationInfo() -func (client CapacityReservationInfoClient) DeleteCapacityReservationInfo(ctx context.Context, request DeleteCapacityReservationInfoRequest) (response DeleteCapacityReservationInfoResponse, 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.deleteCapacityReservationInfo, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteCapacityReservationInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteCapacityReservationInfoResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteCapacityReservationInfoResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteCapacityReservationInfoResponse") - } - return -} - -// deleteCapacityReservationInfo implements the OCIOperation interface (enables retrying operations) -func (client CapacityReservationInfoClient) deleteCapacityReservationInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/capacityReservationInfos/{capacityReservationId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteCapacityReservationInfoResponse - 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/lustre/20250228/CapacityReservationInfo/DeleteCapacityReservationInfo" - err = common.PostProcessServiceError(err, "CapacityReservationInfo", "DeleteCapacityReservationInfo", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetCapacityReservationInfo Gets information about a CapacityReservationInfo. -// A default retry strategy applies to this operation GetCapacityReservationInfo() -func (client CapacityReservationInfoClient) GetCapacityReservationInfo(ctx context.Context, request GetCapacityReservationInfoRequest) (response GetCapacityReservationInfoResponse, 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.getCapacityReservationInfo, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetCapacityReservationInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetCapacityReservationInfoResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetCapacityReservationInfoResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetCapacityReservationInfoResponse") - } - return -} - -// getCapacityReservationInfo implements the OCIOperation interface (enables retrying operations) -func (client CapacityReservationInfoClient) getCapacityReservationInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/capacityReservationInfos/{capacityReservationId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetCapacityReservationInfoResponse - 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/lustre/20250228/CapacityReservationInfo/GetCapacityReservationInfo" - err = common.PostProcessServiceError(err, "CapacityReservationInfo", "GetCapacityReservationInfo", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListCapacityReservationInfos Gets a list of Capacity Reservation Info. -// A default retry strategy applies to this operation ListCapacityReservationInfos() -func (client CapacityReservationInfoClient) ListCapacityReservationInfos(ctx context.Context, request ListCapacityReservationInfosRequest) (response ListCapacityReservationInfosResponse, 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.listCapacityReservationInfos, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListCapacityReservationInfosResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListCapacityReservationInfosResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListCapacityReservationInfosResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListCapacityReservationInfosResponse") - } - return -} - -// listCapacityReservationInfos implements the OCIOperation interface (enables retrying operations) -func (client CapacityReservationInfoClient) listCapacityReservationInfos(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/capacityReservationInfos", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListCapacityReservationInfosResponse - 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/lustre/20250228/CapacityReservationInfoCollection/ListCapacityReservationInfos" - err = common.PostProcessServiceError(err, "CapacityReservationInfo", "ListCapacityReservationInfos", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateCapacityReservationInfo Updates a CapacityReservationInfo. -// A default retry strategy applies to this operation UpdateCapacityReservationInfo() -func (client CapacityReservationInfoClient) UpdateCapacityReservationInfo(ctx context.Context, request UpdateCapacityReservationInfoRequest) (response UpdateCapacityReservationInfoResponse, 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.updateCapacityReservationInfo, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateCapacityReservationInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateCapacityReservationInfoResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateCapacityReservationInfoResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateCapacityReservationInfoResponse") - } - return -} - -// updateCapacityReservationInfo implements the OCIOperation interface (enables retrying operations) -func (client CapacityReservationInfoClient) updateCapacityReservationInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/capacityReservationInfos/{capacityReservationId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateCapacityReservationInfoResponse - 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/lustre/20250228/CapacityReservationInfo/UpdateCapacityReservationInfo" - err = common.PostProcessServiceError(err, "CapacityReservationInfo", "UpdateCapacityReservationInfo", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go index b9bb3c8c4a..502e6cef14 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_client.go @@ -92,6 +92,10 @@ func (client *LustreFileStorageClient) ConfigurationProvider() *common.Configura } // CancelWorkRequest Cancels a work request. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequest API. // A default retry strategy applies to this operation CancelWorkRequest() func (client LustreFileStorageClient) CancelWorkRequest(ctx context.Context, request CancelWorkRequestRequest) (response CancelWorkRequestResponse, err error) { var ociResponse common.OCIResponse @@ -147,6 +151,10 @@ func (client LustreFileStorageClient) cancelWorkRequest(ctx context.Context, req // ChangeLustreFileSystemCompartment Moves a Lustre file system into a different compartment within the same tenancy. For information about moving resources between // compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeLustreFileSystemCompartment.go.html to see an example of how to use ChangeLustreFileSystemCompartment API. // A default retry strategy applies to this operation ChangeLustreFileSystemCompartment() func (client LustreFileStorageClient) ChangeLustreFileSystemCompartment(ctx context.Context, request ChangeLustreFileSystemCompartmentRequest) (response ChangeLustreFileSystemCompartmentResponse, err error) { var ociResponse common.OCIResponse @@ -202,6 +210,10 @@ func (client LustreFileStorageClient) changeLustreFileSystemCompartment(ctx cont // ChangeObjectStorageLinkCompartment Moves an Object Storage link into a different compartment within the same tenancy. For information about moving resources between // compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ChangeObjectStorageLinkCompartment.go.html to see an example of how to use ChangeObjectStorageLinkCompartment API. // A default retry strategy applies to this operation ChangeObjectStorageLinkCompartment() func (client LustreFileStorageClient) ChangeObjectStorageLinkCompartment(ctx context.Context, request ChangeObjectStorageLinkCompartmentRequest) (response ChangeObjectStorageLinkCompartmentResponse, err error) { var ociResponse common.OCIResponse @@ -261,6 +273,10 @@ func (client LustreFileStorageClient) changeObjectStorageLinkCompartment(ctx con } // CreateLustreFileSystem Creates a Lustre file system. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateLustreFileSystem.go.html to see an example of how to use CreateLustreFileSystem API. // A default retry strategy applies to this operation CreateLustreFileSystem() func (client LustreFileStorageClient) CreateLustreFileSystem(ctx context.Context, request CreateLustreFileSystemRequest) (response CreateLustreFileSystemResponse, err error) { var ociResponse common.OCIResponse @@ -320,6 +336,10 @@ func (client LustreFileStorageClient) createLustreFileSystem(ctx context.Context } // CreateObjectStorageLink Creates an Object Storage link. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/CreateObjectStorageLink.go.html to see an example of how to use CreateObjectStorageLink API. // A default retry strategy applies to this operation CreateObjectStorageLink() func (client LustreFileStorageClient) CreateObjectStorageLink(ctx context.Context, request CreateObjectStorageLinkRequest) (response CreateObjectStorageLinkResponse, err error) { var ociResponse common.OCIResponse @@ -379,6 +399,10 @@ func (client LustreFileStorageClient) createObjectStorageLink(ctx context.Contex } // DeleteLustreFileSystem Deletes a Lustre file system. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteLustreFileSystem.go.html to see an example of how to use DeleteLustreFileSystem API. // A default retry strategy applies to this operation DeleteLustreFileSystem() func (client LustreFileStorageClient) DeleteLustreFileSystem(ctx context.Context, request DeleteLustreFileSystemRequest) (response DeleteLustreFileSystemResponse, err error) { var ociResponse common.OCIResponse @@ -433,6 +457,10 @@ func (client LustreFileStorageClient) deleteLustreFileSystem(ctx context.Context } // DeleteObjectStorageLink Deletes an Object Storage link. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/DeleteObjectStorageLink.go.html to see an example of how to use DeleteObjectStorageLink API. // A default retry strategy applies to this operation DeleteObjectStorageLink() func (client LustreFileStorageClient) DeleteObjectStorageLink(ctx context.Context, request DeleteObjectStorageLinkRequest) (response DeleteObjectStorageLinkResponse, err error) { var ociResponse common.OCIResponse @@ -487,6 +515,10 @@ func (client LustreFileStorageClient) deleteObjectStorageLink(ctx context.Contex } // GetLustreFileSystem Gets information about a Lustre file system. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetLustreFileSystem.go.html to see an example of how to use GetLustreFileSystem API. // A default retry strategy applies to this operation GetLustreFileSystem() func (client LustreFileStorageClient) GetLustreFileSystem(ctx context.Context, request GetLustreFileSystemRequest) (response GetLustreFileSystemResponse, err error) { var ociResponse common.OCIResponse @@ -541,6 +573,10 @@ func (client LustreFileStorageClient) getLustreFileSystem(ctx context.Context, r } // GetObjectStorageLink Gets information about an Object Storage link. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetObjectStorageLink.go.html to see an example of how to use GetObjectStorageLink API. // A default retry strategy applies to this operation GetObjectStorageLink() func (client LustreFileStorageClient) GetObjectStorageLink(ctx context.Context, request GetObjectStorageLinkRequest) (response GetObjectStorageLinkResponse, err error) { var ociResponse common.OCIResponse @@ -595,6 +631,10 @@ func (client LustreFileStorageClient) getObjectStorageLink(ctx context.Context, } // GetSyncJob Gets details of a sync job associated with an Object Storage link when `objectStorageLink` and a unique ID are provided. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetSyncJob.go.html to see an example of how to use GetSyncJob API. // A default retry strategy applies to this operation GetSyncJob() func (client LustreFileStorageClient) GetSyncJob(ctx context.Context, request GetSyncJobRequest) (response GetSyncJobResponse, err error) { var ociResponse common.OCIResponse @@ -649,6 +689,10 @@ func (client LustreFileStorageClient) getSyncJob(ctx context.Context, request co } // GetWorkRequest Gets the details of a work request. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. // A default retry strategy applies to this operation GetWorkRequest() func (client LustreFileStorageClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { var ociResponse common.OCIResponse @@ -703,6 +747,10 @@ func (client LustreFileStorageClient) getWorkRequest(ctx context.Context, reques } // ListLustreFileSystems Gets a list of Lustre file systems. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListLustreFileSystems.go.html to see an example of how to use ListLustreFileSystems API. // A default retry strategy applies to this operation ListLustreFileSystems() func (client LustreFileStorageClient) ListLustreFileSystems(ctx context.Context, request ListLustreFileSystemsRequest) (response ListLustreFileSystemsResponse, err error) { var ociResponse common.OCIResponse @@ -757,6 +805,10 @@ func (client LustreFileStorageClient) listLustreFileSystems(ctx context.Context, } // ListObjectStorageLinks Gets a list of Object Storage links. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListObjectStorageLinks.go.html to see an example of how to use ListObjectStorageLinks API. // A default retry strategy applies to this operation ListObjectStorageLinks() func (client LustreFileStorageClient) ListObjectStorageLinks(ctx context.Context, request ListObjectStorageLinksRequest) (response ListObjectStorageLinksResponse, err error) { var ociResponse common.OCIResponse @@ -811,6 +863,10 @@ func (client LustreFileStorageClient) listObjectStorageLinks(ctx context.Context } // ListSyncJobs Lists all sync jobs associated with the Object Storage link. Contains a unique ID for each sync job. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListSyncJobs.go.html to see an example of how to use ListSyncJobs API. // A default retry strategy applies to this operation ListSyncJobs() func (client LustreFileStorageClient) ListSyncJobs(ctx context.Context, request ListSyncJobsRequest) (response ListSyncJobsResponse, err error) { var ociResponse common.OCIResponse @@ -865,6 +921,10 @@ func (client LustreFileStorageClient) listSyncJobs(ctx context.Context, request } // ListWorkRequestErrors Lists the errors for a work request. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. // A default retry strategy applies to this operation ListWorkRequestErrors() func (client LustreFileStorageClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error) { var ociResponse common.OCIResponse @@ -919,6 +979,10 @@ func (client LustreFileStorageClient) listWorkRequestErrors(ctx context.Context, } // ListWorkRequestLogs Lists the logs for a work request. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. // A default retry strategy applies to this operation ListWorkRequestLogs() func (client LustreFileStorageClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error) { var ociResponse common.OCIResponse @@ -973,6 +1037,10 @@ func (client LustreFileStorageClient) listWorkRequestLogs(ctx context.Context, r } // ListWorkRequests Lists the work requests in a compartment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. // A default retry strategy applies to this operation ListWorkRequests() func (client LustreFileStorageClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { var ociResponse common.OCIResponse @@ -1026,68 +1094,12 @@ func (client LustreFileStorageClient) listWorkRequests(ctx context.Context, requ return response, err } -// PauseSyncJob Pauses the object sync job in progress. The object sync job can either have Object Storage or Lustre File -// System as either source or target. -// A default retry strategy applies to this operation PauseSyncJob() -func (client LustreFileStorageClient) PauseSyncJob(ctx context.Context, request PauseSyncJobRequest) (response PauseSyncJobResponse, 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.pauseSyncJob, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = PauseSyncJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = PauseSyncJobResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(PauseSyncJobResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into PauseSyncJobResponse") - } - return -} - -// pauseSyncJob implements the OCIOperation interface (enables retrying operations) -func (client LustreFileStorageClient) pauseSyncJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/objectStorageLinks/{objectStorageLinkId}/actions/pauseSyncJob", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response PauseSyncJobResponse - 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/lustre/20250228/ObjectStorageLink/PauseSyncJob" - err = common.PostProcessServiceError(err, "LustreFileStorage", "PauseSyncJob", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // StartExportToObject Starts the export of data from the Lustre file system to Object Storage. // The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartExportToObject.go.html to see an example of how to use StartExportToObject API. // A default retry strategy applies to this operation StartExportToObject() func (client LustreFileStorageClient) StartExportToObject(ctx context.Context, request StartExportToObjectRequest) (response StartExportToObjectResponse, err error) { var ociResponse common.OCIResponse @@ -1148,6 +1160,10 @@ func (client LustreFileStorageClient) startExportToObject(ctx context.Context, r // StartImportFromObject Starts the import of data from Object Storage to the Lustre file system. // The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartImportFromObject.go.html to see an example of how to use StartImportFromObject API. // A default retry strategy applies to this operation StartImportFromObject() func (client LustreFileStorageClient) StartImportFromObject(ctx context.Context, request StartImportFromObjectRequest) (response StartImportFromObjectResponse, err error) { var ociResponse common.OCIResponse @@ -1208,6 +1224,10 @@ func (client LustreFileStorageClient) startImportFromObject(ctx context.Context, // StopExportToObject Stops the export of data from the Lustre file system to Object Storage. // The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopExportToObject.go.html to see an example of how to use StopExportToObject API. // A default retry strategy applies to this operation StopExportToObject() func (client LustreFileStorageClient) StopExportToObject(ctx context.Context, request StopExportToObjectRequest) (response StopExportToObjectResponse, err error) { var ociResponse common.OCIResponse @@ -1268,6 +1288,10 @@ func (client LustreFileStorageClient) stopExportToObject(ctx context.Context, re // StopImportFromObject Stops the import of data from Object Storage to the Lustre file system. // The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopImportFromObject.go.html to see an example of how to use StopImportFromObject API. // A default retry strategy applies to this operation StopImportFromObject() func (client LustreFileStorageClient) StopImportFromObject(ctx context.Context, request StopImportFromObjectRequest) (response StopImportFromObjectResponse, err error) { var ociResponse common.OCIResponse @@ -1326,67 +1350,11 @@ func (client LustreFileStorageClient) stopImportFromObject(ctx context.Context, return response, err } -// UnpauseSyncJob Unpauses the object sync job in progress. The object sync job can either have Object Storage or Lustre File -// System as either source or target. -// A default retry strategy applies to this operation UnpauseSyncJob() -func (client LustreFileStorageClient) UnpauseSyncJob(ctx context.Context, request UnpauseSyncJobRequest) (response UnpauseSyncJobResponse, 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.unpauseSyncJob, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UnpauseSyncJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UnpauseSyncJobResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UnpauseSyncJobResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UnpauseSyncJobResponse") - } - return -} - -// unpauseSyncJob implements the OCIOperation interface (enables retrying operations) -func (client LustreFileStorageClient) unpauseSyncJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/objectStorageLinks/{objectStorageLinkId}/actions/unpauseSyncJob", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UnpauseSyncJobResponse - 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/lustre/20250228/ObjectStorageLink/UnpauseSyncJob" - err = common.PostProcessServiceError(err, "LustreFileStorage", "UnpauseSyncJob", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // UpdateLustreFileSystem Updates a Lustre file system. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateLustreFileSystem.go.html to see an example of how to use UpdateLustreFileSystem API. // A default retry strategy applies to this operation UpdateLustreFileSystem() func (client LustreFileStorageClient) UpdateLustreFileSystem(ctx context.Context, request UpdateLustreFileSystemRequest) (response UpdateLustreFileSystemResponse, err error) { var ociResponse common.OCIResponse @@ -1441,6 +1409,10 @@ func (client LustreFileStorageClient) updateLustreFileSystem(ctx context.Context } // UpdateObjectStorageLink Updates an Object Storage link. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateObjectStorageLink.go.html to see an example of how to use UpdateObjectStorageLink API. // A default retry strategy applies to this operation UpdateObjectStorageLink() func (client LustreFileStorageClient) UpdateObjectStorageLink(ctx context.Context, request UpdateObjectStorageLinkRequest) (response UpdateObjectStorageLinkResponse, err error) { var ociResponse common.OCIResponse diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_configmgmt_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_configmgmt_client.go deleted file mode 100644 index 09a0d610c6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_configmgmt_client.go +++ /dev/null @@ -1,313 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "github.com/oracle/oci-go-sdk/v65/common/auth" - "net/http" -) - -// ConfigMgmtClient a client for ConfigMgmt -type ConfigMgmtClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewConfigMgmtClientWithConfigurationProvider Creates a new default ConfigMgmt client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewConfigMgmtClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ConfigMgmtClient, err error) { - if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { - return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") - } - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newConfigMgmtClientFromBaseClient(baseClient, provider) -} - -// NewConfigMgmtClientWithOboToken Creates a new default ConfigMgmt 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 NewConfigMgmtClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ConfigMgmtClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newConfigMgmtClientFromBaseClient(baseClient, configProvider) -} - -func newConfigMgmtClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client ConfigMgmtClient, err error) { - // ConfigMgmt service default circuit breaker is enabled - baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("ConfigMgmt")) - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = ConfigMgmtClient{BaseClient: baseClient} - client.BasePath = "20250228" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *ConfigMgmtClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *ConfigMgmtClient) 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 *ConfigMgmtClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// DeleteTenancyConfiguration Delete the tenancy configuration mapping for given tenancy -// A default retry strategy applies to this operation DeleteTenancyConfiguration() -func (client ConfigMgmtClient) DeleteTenancyConfiguration(ctx context.Context, request DeleteTenancyConfigurationRequest) (response DeleteTenancyConfigurationResponse, 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.deleteTenancyConfiguration, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteTenancyConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteTenancyConfigurationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteTenancyConfigurationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteTenancyConfigurationResponse") - } - return -} - -// deleteTenancyConfiguration implements the OCIOperation interface (enables retrying operations) -func (client ConfigMgmtClient) deleteTenancyConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/configManagement/tenancyConfigurations/{tenancyId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteTenancyConfigurationResponse - 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/lustre/20250228/TenancyConfigurationSummary/DeleteTenancyConfiguration" - err = common.PostProcessServiceError(err, "ConfigMgmt", "DeleteTenancyConfiguration", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListProfiles Retrieve all available profiles for the file system configuration. -// A default retry strategy applies to this operation ListProfiles() -func (client ConfigMgmtClient) ListProfiles(ctx context.Context, request ListProfilesRequest) (response ListProfilesResponse, 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.listProfiles, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListProfilesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListProfilesResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListProfilesResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListProfilesResponse") - } - return -} - -// listProfiles implements the OCIOperation interface (enables retrying operations) -func (client ConfigMgmtClient) listProfiles(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/configManagement/profiles", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListProfilesResponse - 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/lustre/20250228/ProfileCollection/ListProfiles" - err = common.PostProcessServiceError(err, "ConfigMgmt", "ListProfiles", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListTenancyConfigurations Returns all the tenancy configuration along with profile and capacity reservation associated. -// A default retry strategy applies to this operation ListTenancyConfigurations() -func (client ConfigMgmtClient) ListTenancyConfigurations(ctx context.Context, request ListTenancyConfigurationsRequest) (response ListTenancyConfigurationsResponse, 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.listTenancyConfigurations, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListTenancyConfigurationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListTenancyConfigurationsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListTenancyConfigurationsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListTenancyConfigurationsResponse") - } - return -} - -// listTenancyConfigurations implements the OCIOperation interface (enables retrying operations) -func (client ConfigMgmtClient) listTenancyConfigurations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/configManagement/tenancyConfigurations", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListTenancyConfigurationsResponse - 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/lustre/20250228/MapTenancyConfigurationCollection/ListTenancyConfigurations" - err = common.PostProcessServiceError(err, "ConfigMgmt", "ListTenancyConfigurations", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// MapTenancyConfiguration Assigns given configuration to a tenancy. -// A default retry strategy applies to this operation MapTenancyConfiguration() -func (client ConfigMgmtClient) MapTenancyConfiguration(ctx context.Context, request MapTenancyConfigurationRequest) (response MapTenancyConfigurationResponse, 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.mapTenancyConfiguration, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = MapTenancyConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = MapTenancyConfigurationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(MapTenancyConfigurationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into MapTenancyConfigurationResponse") - } - return -} - -// mapTenancyConfiguration implements the OCIOperation interface (enables retrying operations) -func (client ConfigMgmtClient) mapTenancyConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/configManagement/tenancyConfigurations", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response MapTenancyConfigurationResponse - 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/lustre/20250228/CreateMapTenancyConfiguration/MapTenancyConfiguration" - err = common.PostProcessServiceError(err, "ConfigMgmt", "MapTenancyConfiguration", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_cpgoverride_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_cpgoverride_client.go deleted file mode 100644 index 3e380c5f3c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_cpgoverride_client.go +++ /dev/null @@ -1,367 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "github.com/oracle/oci-go-sdk/v65/common/auth" - "net/http" -) - -// CpgOverrideClient a client for CpgOverride -type CpgOverrideClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewCpgOverrideClientWithConfigurationProvider Creates a new default CpgOverride client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewCpgOverrideClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CpgOverrideClient, err error) { - if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { - return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") - } - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newCpgOverrideClientFromBaseClient(baseClient, provider) -} - -// NewCpgOverrideClientWithOboToken Creates a new default CpgOverride 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 NewCpgOverrideClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CpgOverrideClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newCpgOverrideClientFromBaseClient(baseClient, configProvider) -} - -func newCpgOverrideClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client CpgOverrideClient, err error) { - // CpgOverride service default circuit breaker is enabled - baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("CpgOverride")) - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = CpgOverrideClient{BaseClient: baseClient} - client.BasePath = "20250228" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *CpgOverrideClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *CpgOverrideClient) 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 *CpgOverrideClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// CreateCpgOverride Creates a CPG Override. -// A default retry strategy applies to this operation CreateCpgOverride() -func (client CpgOverrideClient) CreateCpgOverride(ctx context.Context, request CreateCpgOverrideRequest) (response CreateCpgOverrideResponse, 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.createCpgOverride, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateCpgOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateCpgOverrideResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateCpgOverrideResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateCpgOverrideResponse") - } - return -} - -// createCpgOverride implements the OCIOperation interface (enables retrying operations) -func (client CpgOverrideClient) createCpgOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/cpgOverrides", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateCpgOverrideResponse - 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/lustre/20250228/CpgOverride/CreateCpgOverride" - err = common.PostProcessServiceError(err, "CpgOverride", "CreateCpgOverride", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteCpgOverride Deletes a CPG Override. -// A default retry strategy applies to this operation DeleteCpgOverride() -func (client CpgOverrideClient) DeleteCpgOverride(ctx context.Context, request DeleteCpgOverrideRequest) (response DeleteCpgOverrideResponse, 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.deleteCpgOverride, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteCpgOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteCpgOverrideResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteCpgOverrideResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteCpgOverrideResponse") - } - return -} - -// deleteCpgOverride implements the OCIOperation interface (enables retrying operations) -func (client CpgOverrideClient) deleteCpgOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/cpgOverrides/{customerCpgId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteCpgOverrideResponse - 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/lustre/20250228/CpgOverride/DeleteCpgOverride" - err = common.PostProcessServiceError(err, "CpgOverride", "DeleteCpgOverride", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetCpgOverride Gets information about a CPG Override. -// A default retry strategy applies to this operation GetCpgOverride() -func (client CpgOverrideClient) GetCpgOverride(ctx context.Context, request GetCpgOverrideRequest) (response GetCpgOverrideResponse, 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.getCpgOverride, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetCpgOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetCpgOverrideResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetCpgOverrideResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetCpgOverrideResponse") - } - return -} - -// getCpgOverride implements the OCIOperation interface (enables retrying operations) -func (client CpgOverrideClient) getCpgOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/cpgOverrides/{customerCpgId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetCpgOverrideResponse - 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/lustre/20250228/CpgOverride/GetCpgOverride" - err = common.PostProcessServiceError(err, "CpgOverride", "GetCpgOverride", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListCpgOverrides Gets a list of CPG Overrides. -// A default retry strategy applies to this operation ListCpgOverrides() -func (client CpgOverrideClient) ListCpgOverrides(ctx context.Context, request ListCpgOverridesRequest) (response ListCpgOverridesResponse, 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.listCpgOverrides, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListCpgOverridesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListCpgOverridesResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListCpgOverridesResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListCpgOverridesResponse") - } - return -} - -// listCpgOverrides implements the OCIOperation interface (enables retrying operations) -func (client CpgOverrideClient) listCpgOverrides(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/cpgOverrides", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListCpgOverridesResponse - 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/lustre/20250228/CpgOverrideCollection/ListCpgOverrides" - err = common.PostProcessServiceError(err, "CpgOverride", "ListCpgOverrides", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateCpgOverride Updates a CPG Override. -// A default retry strategy applies to this operation UpdateCpgOverride() -func (client CpgOverrideClient) UpdateCpgOverride(ctx context.Context, request UpdateCpgOverrideRequest) (response UpdateCpgOverrideResponse, 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.updateCpgOverride, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateCpgOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateCpgOverrideResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateCpgOverrideResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateCpgOverrideResponse") - } - return -} - -// updateCpgOverride implements the OCIOperation interface (enables retrying operations) -func (client CpgOverrideClient) updateCpgOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/cpgOverrides/{customerCpgId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateCpgOverrideResponse - 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/lustre/20250228/CpgOverride/UpdateCpgOverride" - err = common.PostProcessServiceError(err, "CpgOverride", "UpdateCpgOverride", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_internal_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_internal_client.go deleted file mode 100644 index a3d5ff04e6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_internal_client.go +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "github.com/oracle/oci-go-sdk/v65/common/auth" - "net/http" -) - -// InternalClient a client for Internal -type InternalClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewInternalClientWithConfigurationProvider Creates a new default Internal client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewInternalClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client InternalClient, err error) { - if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { - return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") - } - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newInternalClientFromBaseClient(baseClient, provider) -} - -// NewInternalClientWithOboToken Creates a new default Internal 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 NewInternalClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client InternalClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newInternalClientFromBaseClient(baseClient, configProvider) -} - -func newInternalClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client InternalClient, err error) { - // Internal service default circuit breaker is enabled - baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("Internal")) - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = InternalClient{BaseClient: baseClient} - client.BasePath = "20250228" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *InternalClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *InternalClient) 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 *InternalClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// InjectFault Inject Fault in the system to test its robustness, like terminating host to trigger failover. Will be called by canaries. -// A default retry strategy applies to this operation InjectFault() -func (client InternalClient) InjectFault(ctx context.Context, request InjectFaultRequest) (response InjectFaultResponse, 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.injectFault, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = InjectFaultResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = InjectFaultResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(InjectFaultResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into InjectFaultResponse") - } - return -} - -// injectFault implements the OCIOperation interface (enables retrying operations) -func (client InternalClient) injectFault(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/internal/injectFault/{lustreFileSystemId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response InjectFaultResponse - 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/lustre/20250228/LustreFileSystem/InjectFault" - err = common.PostProcessServiceError(err, "Internal", "InjectFault", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfscpginfo_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfscpginfo_client.go deleted file mode 100644 index d8f161391a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfscpginfo_client.go +++ /dev/null @@ -1,367 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "github.com/oracle/oci-go-sdk/v65/common/auth" - "net/http" -) - -// LfsCpgInfoClient a client for LfsCpgInfo -type LfsCpgInfoClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewLfsCpgInfoClientWithConfigurationProvider Creates a new default LfsCpgInfo client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewLfsCpgInfoClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client LfsCpgInfoClient, err error) { - if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { - return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") - } - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newLfsCpgInfoClientFromBaseClient(baseClient, provider) -} - -// NewLfsCpgInfoClientWithOboToken Creates a new default LfsCpgInfo 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 NewLfsCpgInfoClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client LfsCpgInfoClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newLfsCpgInfoClientFromBaseClient(baseClient, configProvider) -} - -func newLfsCpgInfoClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client LfsCpgInfoClient, err error) { - // LfsCpgInfo service default circuit breaker is enabled - baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("LfsCpgInfo")) - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = LfsCpgInfoClient{BaseClient: baseClient} - client.BasePath = "20250228" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *LfsCpgInfoClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *LfsCpgInfoClient) 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 *LfsCpgInfoClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// CreateLfsCpgInfo Creates a CPG lfsCpgInfo. -// A default retry strategy applies to this operation CreateLfsCpgInfo() -func (client LfsCpgInfoClient) CreateLfsCpgInfo(ctx context.Context, request CreateLfsCpgInfoRequest) (response CreateLfsCpgInfoResponse, 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.createLfsCpgInfo, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateLfsCpgInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateLfsCpgInfoResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateLfsCpgInfoResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateLfsCpgInfoResponse") - } - return -} - -// createLfsCpgInfo implements the OCIOperation interface (enables retrying operations) -func (client LfsCpgInfoClient) createLfsCpgInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/lfsCpgInfos", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateLfsCpgInfoResponse - 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/lustre/20250228/LfsCpgInfo/CreateLfsCpgInfo" - err = common.PostProcessServiceError(err, "LfsCpgInfo", "CreateLfsCpgInfo", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteLfsCpgInfo Deletes a LFS CPG Info. -// A default retry strategy applies to this operation DeleteLfsCpgInfo() -func (client LfsCpgInfoClient) DeleteLfsCpgInfo(ctx context.Context, request DeleteLfsCpgInfoRequest) (response DeleteLfsCpgInfoResponse, 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.deleteLfsCpgInfo, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteLfsCpgInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteLfsCpgInfoResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteLfsCpgInfoResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteLfsCpgInfoResponse") - } - return -} - -// deleteLfsCpgInfo implements the OCIOperation interface (enables retrying operations) -func (client LfsCpgInfoClient) deleteLfsCpgInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/lfsCpgInfos/{lfsCpgId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteLfsCpgInfoResponse - 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/lustre/20250228/LfsCpgInfo/DeleteLfsCpgInfo" - err = common.PostProcessServiceError(err, "LfsCpgInfo", "DeleteLfsCpgInfo", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetLfsCpgInfo Gets information about a LFS CPG -// A default retry strategy applies to this operation GetLfsCpgInfo() -func (client LfsCpgInfoClient) GetLfsCpgInfo(ctx context.Context, request GetLfsCpgInfoRequest) (response GetLfsCpgInfoResponse, 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.getLfsCpgInfo, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetLfsCpgInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetLfsCpgInfoResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetLfsCpgInfoResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetLfsCpgInfoResponse") - } - return -} - -// getLfsCpgInfo implements the OCIOperation interface (enables retrying operations) -func (client LfsCpgInfoClient) getLfsCpgInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/lfsCpgInfos/{lfsCpgId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetLfsCpgInfoResponse - 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/lustre/20250228/LfsCpgInfo/GetLfsCpgInfo" - err = common.PostProcessServiceError(err, "LfsCpgInfo", "GetLfsCpgInfo", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListLfsCpgInfos Gets a list of lfsCpgInfo. -// A default retry strategy applies to this operation ListLfsCpgInfos() -func (client LfsCpgInfoClient) ListLfsCpgInfos(ctx context.Context, request ListLfsCpgInfosRequest) (response ListLfsCpgInfosResponse, 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.listLfsCpgInfos, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListLfsCpgInfosResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListLfsCpgInfosResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListLfsCpgInfosResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListLfsCpgInfosResponse") - } - return -} - -// listLfsCpgInfos implements the OCIOperation interface (enables retrying operations) -func (client LfsCpgInfoClient) listLfsCpgInfos(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/lfsCpgInfos", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListLfsCpgInfosResponse - 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/lustre/20250228/LfsCpgInfoCollection/ListLfsCpgInfos" - err = common.PostProcessServiceError(err, "LfsCpgInfo", "ListLfsCpgInfos", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateLfsCpgInfo Updates a a LfsCpgInfo. -// A default retry strategy applies to this operation UpdateLfsCpgInfo() -func (client LfsCpgInfoClient) UpdateLfsCpgInfo(ctx context.Context, request UpdateLfsCpgInfoRequest) (response UpdateLfsCpgInfoResponse, 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.updateLfsCpgInfo, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateLfsCpgInfoResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateLfsCpgInfoResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateLfsCpgInfoResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateLfsCpgInfoResponse") - } - return -} - -// updateLfsCpgInfo implements the OCIOperation interface (enables retrying operations) -func (client LfsCpgInfoClient) updateLfsCpgInfo(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/lfsCpgInfos/{lfsCpgId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateLfsCpgInfoResponse - 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/lustre/20250228/LfsCpgInfo/UpdateLfsCpgInfo" - err = common.PostProcessServiceError(err, "LfsCpgInfo", "UpdateLfsCpgInfo", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfspool_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfspool_client.go deleted file mode 100644 index 9474f49f33..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_lfspool_client.go +++ /dev/null @@ -1,367 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "github.com/oracle/oci-go-sdk/v65/common/auth" - "net/http" -) - -// LfsPoolClient a client for LfsPool -type LfsPoolClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewLfsPoolClientWithConfigurationProvider Creates a new default LfsPool client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewLfsPoolClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client LfsPoolClient, err error) { - if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { - return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") - } - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newLfsPoolClientFromBaseClient(baseClient, provider) -} - -// NewLfsPoolClientWithOboToken Creates a new default LfsPool 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 NewLfsPoolClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client LfsPoolClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newLfsPoolClientFromBaseClient(baseClient, configProvider) -} - -func newLfsPoolClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client LfsPoolClient, err error) { - // LfsPool service default circuit breaker is enabled - baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("LfsPool")) - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = LfsPoolClient{BaseClient: baseClient} - client.BasePath = "20250228" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *LfsPoolClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *LfsPoolClient) 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 *LfsPoolClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// CreatePool Creates a Pool. -// A default retry strategy applies to this operation CreatePool() -func (client LfsPoolClient) CreatePool(ctx context.Context, request CreatePoolRequest) (response CreatePoolResponse, 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.createPool, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreatePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreatePoolResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreatePoolResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreatePoolResponse") - } - return -} - -// createPool implements the OCIOperation interface (enables retrying operations) -func (client LfsPoolClient) createPool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/pools", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreatePoolResponse - 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/lustre/20250228/Pool/CreatePool" - err = common.PostProcessServiceError(err, "LfsPool", "CreatePool", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeletePool Deletes the pool. -// A default retry strategy applies to this operation DeletePool() -func (client LfsPoolClient) DeletePool(ctx context.Context, request DeletePoolRequest) (response DeletePoolResponse, 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.deletePool, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeletePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeletePoolResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeletePoolResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeletePoolResponse") - } - return -} - -// deletePool implements the OCIOperation interface (enables retrying operations) -func (client LfsPoolClient) deletePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/pools/{poolId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeletePoolResponse - 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/lustre/20250228/Pool/DeletePool" - err = common.PostProcessServiceError(err, "LfsPool", "DeletePool", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetPool Gets information about a Pool. -// A default retry strategy applies to this operation GetPool() -func (client LfsPoolClient) GetPool(ctx context.Context, request GetPoolRequest) (response GetPoolResponse, 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.getPool, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetPoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetPoolResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetPoolResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetPoolResponse") - } - return -} - -// getPool implements the OCIOperation interface (enables retrying operations) -func (client LfsPoolClient) getPool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/pools/{poolId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetPoolResponse - 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/lustre/20250228/Pool/GetPool" - err = common.PostProcessServiceError(err, "LfsPool", "GetPool", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListPools Gets a list of Pools. -// A default retry strategy applies to this operation ListPools() -func (client LfsPoolClient) ListPools(ctx context.Context, request ListPoolsRequest) (response ListPoolsResponse, 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.listPools, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListPoolsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListPoolsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListPoolsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListPoolsResponse") - } - return -} - -// listPools implements the OCIOperation interface (enables retrying operations) -func (client LfsPoolClient) listPools(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/pools", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListPoolsResponse - 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/lustre/20250228/PoolCollection/ListPools" - err = common.PostProcessServiceError(err, "LfsPool", "ListPools", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdatePool Updates a Pool. -// A default retry strategy applies to this operation UpdatePool() -func (client LfsPoolClient) UpdatePool(ctx context.Context, request UpdatePoolRequest) (response UpdatePoolResponse, 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.updatePool, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdatePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdatePoolResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdatePoolResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdatePoolResponse") - } - return -} - -// updatePool implements the OCIOperation interface (enables retrying operations) -func (client LfsPoolClient) updatePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/pools/{poolId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdatePoolResponse - 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/lustre/20250228/Pool/UpdatePool" - err = common.PostProcessServiceError(err, "LfsPool", "UpdatePool", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_mgmtcell_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_mgmtcell_client.go deleted file mode 100644 index b04b8e0ac1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_mgmtcell_client.go +++ /dev/null @@ -1,367 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "github.com/oracle/oci-go-sdk/v65/common/auth" - "net/http" -) - -// MgmtCellClient a client for MgmtCell -type MgmtCellClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewMgmtCellClientWithConfigurationProvider Creates a new default MgmtCell client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewMgmtCellClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client MgmtCellClient, err error) { - if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { - return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") - } - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newMgmtCellClientFromBaseClient(baseClient, provider) -} - -// NewMgmtCellClientWithOboToken Creates a new default MgmtCell 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 NewMgmtCellClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client MgmtCellClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newMgmtCellClientFromBaseClient(baseClient, configProvider) -} - -func newMgmtCellClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client MgmtCellClient, err error) { - // MgmtCell service default circuit breaker is enabled - baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("MgmtCell")) - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = MgmtCellClient{BaseClient: baseClient} - client.BasePath = "20250228" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *MgmtCellClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *MgmtCellClient) 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 *MgmtCellClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// CreateManagementCell Creates a ManagementCell. -// A default retry strategy applies to this operation CreateManagementCell() -func (client MgmtCellClient) CreateManagementCell(ctx context.Context, request CreateManagementCellRequest) (response CreateManagementCellResponse, 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.createManagementCell, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateManagementCellResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateManagementCellResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateManagementCellResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateManagementCellResponse") - } - return -} - -// createManagementCell implements the OCIOperation interface (enables retrying operations) -func (client MgmtCellClient) createManagementCell(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/managementCells", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateManagementCellResponse - 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/lustre/20250228/ManagementCell/CreateManagementCell" - err = common.PostProcessServiceError(err, "MgmtCell", "CreateManagementCell", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteManagementCell Deletes a ManagementCell. -// A default retry strategy applies to this operation DeleteManagementCell() -func (client MgmtCellClient) DeleteManagementCell(ctx context.Context, request DeleteManagementCellRequest) (response DeleteManagementCellResponse, 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.deleteManagementCell, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteManagementCellResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteManagementCellResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteManagementCellResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteManagementCellResponse") - } - return -} - -// deleteManagementCell implements the OCIOperation interface (enables retrying operations) -func (client MgmtCellClient) deleteManagementCell(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/managementCells/{managementCellId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteManagementCellResponse - 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/lustre/20250228/ManagementCell/DeleteManagementCell" - err = common.PostProcessServiceError(err, "MgmtCell", "DeleteManagementCell", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetManagementCell Gets information about a ManagementCell. -// A default retry strategy applies to this operation GetManagementCell() -func (client MgmtCellClient) GetManagementCell(ctx context.Context, request GetManagementCellRequest) (response GetManagementCellResponse, 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.getManagementCell, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetManagementCellResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetManagementCellResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetManagementCellResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetManagementCellResponse") - } - return -} - -// getManagementCell implements the OCIOperation interface (enables retrying operations) -func (client MgmtCellClient) getManagementCell(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/managementCells/{managementCellId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetManagementCellResponse - 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/lustre/20250228/ManagementCell/GetManagementCell" - err = common.PostProcessServiceError(err, "MgmtCell", "GetManagementCell", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListManagementCells Gets a list of ManagementCells. -// A default retry strategy applies to this operation ListManagementCells() -func (client MgmtCellClient) ListManagementCells(ctx context.Context, request ListManagementCellsRequest) (response ListManagementCellsResponse, 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.listManagementCells, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListManagementCellsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListManagementCellsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListManagementCellsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListManagementCellsResponse") - } - return -} - -// listManagementCells implements the OCIOperation interface (enables retrying operations) -func (client MgmtCellClient) listManagementCells(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/managementCells", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListManagementCellsResponse - 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/lustre/20250228/ManagementCellCollection/ListManagementCells" - err = common.PostProcessServiceError(err, "MgmtCell", "ListManagementCells", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateManagementCell Updates a ManagementCell. -// A default retry strategy applies to this operation UpdateManagementCell() -func (client MgmtCellClient) UpdateManagementCell(ctx context.Context, request UpdateManagementCellRequest) (response UpdateManagementCellResponse, 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.updateManagementCell, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateManagementCellResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateManagementCellResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateManagementCellResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateManagementCellResponse") - } - return -} - -// updateManagementCell implements the OCIOperation interface (enables retrying operations) -func (client MgmtCellClient) updateManagementCell(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/managementCells/{managementCellId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateManagementCellResponse - 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/lustre/20250228/ManagementCell/UpdateManagementCell" - err = common.PostProcessServiceError(err, "MgmtCell", "UpdateManagementCell", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_tenancyoverride_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_tenancyoverride_client.go deleted file mode 100644 index a4feeb2e6f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/lustrefilestorage_tenancyoverride_client.go +++ /dev/null @@ -1,421 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "github.com/oracle/oci-go-sdk/v65/common/auth" - "net/http" -) - -// TenancyOverrideClient a client for TenancyOverride -type TenancyOverrideClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewTenancyOverrideClientWithConfigurationProvider Creates a new default TenancyOverride client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewTenancyOverrideClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client TenancyOverrideClient, err error) { - if enabled := common.CheckForEnabledServices("lustrefilestorage"); !enabled { - return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") - } - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newTenancyOverrideClientFromBaseClient(baseClient, provider) -} - -// NewTenancyOverrideClientWithOboToken Creates a new default TenancyOverride 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 NewTenancyOverrideClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client TenancyOverrideClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newTenancyOverrideClientFromBaseClient(baseClient, configProvider) -} - -func newTenancyOverrideClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client TenancyOverrideClient, err error) { - // TenancyOverride service default circuit breaker is enabled - baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("TenancyOverride")) - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = TenancyOverrideClient{BaseClient: baseClient} - client.BasePath = "20250228" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *TenancyOverrideClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("lustrefilestorage", "https://lustre-file-storage.{region}.oci.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *TenancyOverrideClient) 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 *TenancyOverrideClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// CreateTenancyOverride Creates a Tenancy Override. -// A default retry strategy applies to this operation CreateTenancyOverride() -func (client TenancyOverrideClient) CreateTenancyOverride(ctx context.Context, request CreateTenancyOverrideRequest) (response CreateTenancyOverrideResponse, 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.createTenancyOverride, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateTenancyOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateTenancyOverrideResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateTenancyOverrideResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateTenancyOverrideResponse") - } - return -} - -// createTenancyOverride implements the OCIOperation interface (enables retrying operations) -func (client TenancyOverrideClient) createTenancyOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/tenancyOverrides", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateTenancyOverrideResponse - 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/lustre/20250228/TenancyOverride/CreateTenancyOverride" - err = common.PostProcessServiceError(err, "TenancyOverride", "CreateTenancyOverride", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteAllTenancyOverridesForTenant Deletes all Tenancy Overrides for Tenant. -// A default retry strategy applies to this operation DeleteAllTenancyOverridesForTenant() -func (client TenancyOverrideClient) DeleteAllTenancyOverridesForTenant(ctx context.Context, request DeleteAllTenancyOverridesForTenantRequest) (response DeleteAllTenancyOverridesForTenantResponse, 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.deleteAllTenancyOverridesForTenant, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteAllTenancyOverridesForTenantResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteAllTenancyOverridesForTenantResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteAllTenancyOverridesForTenantResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteAllTenancyOverridesForTenantResponse") - } - return -} - -// deleteAllTenancyOverridesForTenant implements the OCIOperation interface (enables retrying operations) -func (client TenancyOverrideClient) deleteAllTenancyOverridesForTenant(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/tenancyOverrides/{tenantId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteAllTenancyOverridesForTenantResponse - 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/lustre/20250228/TenancyOverride/DeleteAllTenancyOverridesForTenant" - err = common.PostProcessServiceError(err, "TenancyOverride", "DeleteAllTenancyOverridesForTenant", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteTenancyOverride Deletes a Tenancy Override. -// A default retry strategy applies to this operation DeleteTenancyOverride() -func (client TenancyOverrideClient) DeleteTenancyOverride(ctx context.Context, request DeleteTenancyOverrideRequest) (response DeleteTenancyOverrideResponse, 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.deleteTenancyOverride, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteTenancyOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteTenancyOverrideResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteTenancyOverrideResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteTenancyOverrideResponse") - } - return -} - -// deleteTenancyOverride implements the OCIOperation interface (enables retrying operations) -func (client TenancyOverrideClient) deleteTenancyOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/tenancyOverrides/{tenantId}/{overrideId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteTenancyOverrideResponse - 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/lustre/20250228/TenancyOverride/DeleteTenancyOverride" - err = common.PostProcessServiceError(err, "TenancyOverride", "DeleteTenancyOverride", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetTenancyOverride Gets information about a Tenancy Override. -// A default retry strategy applies to this operation GetTenancyOverride() -func (client TenancyOverrideClient) GetTenancyOverride(ctx context.Context, request GetTenancyOverrideRequest) (response GetTenancyOverrideResponse, 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.getTenancyOverride, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetTenancyOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetTenancyOverrideResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetTenancyOverrideResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetTenancyOverrideResponse") - } - return -} - -// getTenancyOverride implements the OCIOperation interface (enables retrying operations) -func (client TenancyOverrideClient) getTenancyOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/tenancyOverrides/{tenantId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetTenancyOverrideResponse - 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/lustre/20250228/TenancyOverride/GetTenancyOverride" - err = common.PostProcessServiceError(err, "TenancyOverride", "GetTenancyOverride", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListTenancyOverrides Gets a list of Tenancy Overrides. -// A default retry strategy applies to this operation ListTenancyOverrides() -func (client TenancyOverrideClient) ListTenancyOverrides(ctx context.Context, request ListTenancyOverridesRequest) (response ListTenancyOverridesResponse, 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.listTenancyOverrides, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListTenancyOverridesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListTenancyOverridesResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListTenancyOverridesResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListTenancyOverridesResponse") - } - return -} - -// listTenancyOverrides implements the OCIOperation interface (enables retrying operations) -func (client TenancyOverrideClient) listTenancyOverrides(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/tenancyOverrides", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListTenancyOverridesResponse - 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/lustre/20250228/TenancyOverrideCollection/ListTenancyOverrides" - err = common.PostProcessServiceError(err, "TenancyOverride", "ListTenancyOverrides", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateTenancyOverride Updates a Tenancy Override. -// A default retry strategy applies to this operation UpdateTenancyOverride() -func (client TenancyOverrideClient) UpdateTenancyOverride(ctx context.Context, request UpdateTenancyOverrideRequest) (response UpdateTenancyOverrideResponse, 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.updateTenancyOverride, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateTenancyOverrideResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateTenancyOverrideResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateTenancyOverrideResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateTenancyOverrideResponse") - } - return -} - -// updateTenancyOverride implements the OCIOperation interface (enables retrying operations) -func (client TenancyOverrideClient) updateTenancyOverride(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/tenancyOverrides/{tenantId}/{overrideId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateTenancyOverrideResponse - 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/lustre/20250228/TenancyOverride/UpdateTenancyOverride" - err = common.PostProcessServiceError(err, "TenancyOverride", "UpdateTenancyOverride", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell.go deleted file mode 100644 index 2d9b0f1a21..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell.go +++ /dev/null @@ -1,189 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ManagementCell The Lustre File Service architecture is a cellular architecture which can create new management -// plane cells as the number of filesystems, hosts, and volumes grow. Lustre management plane cells -// are the main scalable unit within the Lustre File Service. -// A single management cell is capable of placing Lustre filesystems in different locations using -// cluster placement groups. -type ManagementCell struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ManagementCell - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the Management Cell. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The availability domain the Management Cell is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The current state of the ManagementCell. - LifecycleState ManagementCellLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // ManagementCell can be categorized based on the customer filesystems it is hosting. - // Example: `RESTRICTED` category cell is restricted for use by only one customer - Category ManagementCellCategoryEnum `mandatory:"true" json:"category"` - - // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. - AvailableCapacityInGBs *int64 `mandatory:"true" json:"availableCapacityInGBs"` - - // The date and time the ManagementCell was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2024-04-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the ManagementCell was updated, in the format defined - // by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2024-04-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"true" json:"systemTags"` - - Details *Details `mandatory:"true" json:"details"` -} - -func (m ManagementCell) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ManagementCell) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingManagementCellLifecycleStateEnum(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(GetManagementCellLifecycleStateEnumStringValues(), ","))) - } - if _, ok := GetMappingManagementCellCategoryEnum(string(m.Category)); !ok && m.Category != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Category: %s. Supported values are: %s.", m.Category, strings.Join(GetManagementCellCategoryEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ManagementCellLifecycleStateEnum Enum with underlying type: string -type ManagementCellLifecycleStateEnum string - -// Set of constants representing the allowable values for ManagementCellLifecycleStateEnum -const ( - ManagementCellLifecycleStateCreating ManagementCellLifecycleStateEnum = "CREATING" - ManagementCellLifecycleStateActive ManagementCellLifecycleStateEnum = "ACTIVE" - ManagementCellLifecycleStateInactive ManagementCellLifecycleStateEnum = "INACTIVE" - ManagementCellLifecycleStateDeleted ManagementCellLifecycleStateEnum = "DELETED" -) - -var mappingManagementCellLifecycleStateEnum = map[string]ManagementCellLifecycleStateEnum{ - "CREATING": ManagementCellLifecycleStateCreating, - "ACTIVE": ManagementCellLifecycleStateActive, - "INACTIVE": ManagementCellLifecycleStateInactive, - "DELETED": ManagementCellLifecycleStateDeleted, -} - -var mappingManagementCellLifecycleStateEnumLowerCase = map[string]ManagementCellLifecycleStateEnum{ - "creating": ManagementCellLifecycleStateCreating, - "active": ManagementCellLifecycleStateActive, - "inactive": ManagementCellLifecycleStateInactive, - "deleted": ManagementCellLifecycleStateDeleted, -} - -// GetManagementCellLifecycleStateEnumValues Enumerates the set of values for ManagementCellLifecycleStateEnum -func GetManagementCellLifecycleStateEnumValues() []ManagementCellLifecycleStateEnum { - values := make([]ManagementCellLifecycleStateEnum, 0) - for _, v := range mappingManagementCellLifecycleStateEnum { - values = append(values, v) - } - return values -} - -// GetManagementCellLifecycleStateEnumStringValues Enumerates the set of values in String for ManagementCellLifecycleStateEnum -func GetManagementCellLifecycleStateEnumStringValues() []string { - return []string{ - "CREATING", - "ACTIVE", - "INACTIVE", - "DELETED", - } -} - -// GetMappingManagementCellLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingManagementCellLifecycleStateEnum(val string) (ManagementCellLifecycleStateEnum, bool) { - enum, ok := mappingManagementCellLifecycleStateEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ManagementCellCategoryEnum Enum with underlying type: string -type ManagementCellCategoryEnum string - -// Set of constants representing the allowable values for ManagementCellCategoryEnum -const ( - ManagementCellCategoryGeneral ManagementCellCategoryEnum = "GENERAL" - ManagementCellCategoryInternal ManagementCellCategoryEnum = "INTERNAL" - ManagementCellCategoryRestricted ManagementCellCategoryEnum = "RESTRICTED" -) - -var mappingManagementCellCategoryEnum = map[string]ManagementCellCategoryEnum{ - "GENERAL": ManagementCellCategoryGeneral, - "INTERNAL": ManagementCellCategoryInternal, - "RESTRICTED": ManagementCellCategoryRestricted, -} - -var mappingManagementCellCategoryEnumLowerCase = map[string]ManagementCellCategoryEnum{ - "general": ManagementCellCategoryGeneral, - "internal": ManagementCellCategoryInternal, - "restricted": ManagementCellCategoryRestricted, -} - -// GetManagementCellCategoryEnumValues Enumerates the set of values for ManagementCellCategoryEnum -func GetManagementCellCategoryEnumValues() []ManagementCellCategoryEnum { - values := make([]ManagementCellCategoryEnum, 0) - for _, v := range mappingManagementCellCategoryEnum { - values = append(values, v) - } - return values -} - -// GetManagementCellCategoryEnumStringValues Enumerates the set of values in String for ManagementCellCategoryEnum -func GetManagementCellCategoryEnumStringValues() []string { - return []string{ - "GENERAL", - "INTERNAL", - "RESTRICTED", - } -} - -// GetMappingManagementCellCategoryEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingManagementCellCategoryEnum(val string) (ManagementCellCategoryEnum, bool) { - enum, ok := mappingManagementCellCategoryEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_collection.go deleted file mode 100644 index bcd010038e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ManagementCellCollection Results of a ManagementCell search. Contains both ManagementCellSummary items and other information, such as metadata. -type ManagementCellCollection struct { - - // List of ManagementCells. - Items []ManagementCellSummary `mandatory:"true" json:"items"` -} - -func (m ManagementCellCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ManagementCellCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_summary.go deleted file mode 100644 index 90883d6eb9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/management_cell_summary.go +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ManagementCellSummary Summary information about a ManagementCell. -type ManagementCellSummary struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Management Cell - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the ManagementCell. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The availability domain the Management Cell is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The current state of the ManagementCell - LifecycleState ManagementCellLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // ManagementCell can be categorized based on the customer filesystems it is hosting. - // Example: `RESTRICTED` category cell is restricted for use by only one customer - Category ManagementCellCategoryEnum `mandatory:"true" json:"category"` - - // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. - AvailableCapacityInGBs *int64 `mandatory:"true" json:"availableCapacityInGBs"` - - // The date and time the ManagementCell was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2024-04-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the ManagementCell was updated, in the format defined - // by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2024-04-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"true" json:"systemTags"` - - Details *Details `mandatory:"true" json:"details"` -} - -func (m ManagementCellSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ManagementCellSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingManagementCellLifecycleStateEnum(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(GetManagementCellLifecycleStateEnumStringValues(), ","))) - } - if _, ok := GetMappingManagementCellCategoryEnum(string(m.Category)); !ok && m.Category != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Category: %s. Supported values are: %s.", m.Category, strings.Join(GetManagementCellCategoryEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration.go deleted file mode 100644 index d0b358841e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// MapTenancyConfiguration Details required to create tenancy configuration -type MapTenancyConfiguration struct { - - // The tenancy OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - TenancyId *string `mandatory:"true" json:"tenancyId"` - - // The profile name which is applicable for the given tenancy. - Profile *string `mandatory:"false" json:"profile"` - - CapacityReservations *CapacityReservationsCollection `mandatory:"false" json:"capacityReservations"` -} - -func (m MapTenancyConfiguration) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m MapTenancyConfiguration) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_collection.go deleted file mode 100644 index 29eebf7e85..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// MapTenancyConfigurationCollection List of MapTenancyConfiguration. -type MapTenancyConfigurationCollection struct { - - // List of MapTenancyConfiguration. - Items []TenancyConfigurationSummary `mandatory:"true" json:"items"` -} - -func (m MapTenancyConfigurationCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m MapTenancyConfigurationCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_details.go deleted file mode 100644 index 7bfd350b64..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// MapTenancyConfigurationDetails List of MapTenancyConfiguration. -type MapTenancyConfigurationDetails struct { - - // List of MapTenancyConfiguration. - Items []MapTenancyConfiguration `mandatory:"true" json:"items"` -} - -func (m MapTenancyConfigurationDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m MapTenancyConfigurationDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_request_response.go deleted file mode 100644 index 735bd544c9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/map_tenancy_configuration_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// MapTenancyConfigurationRequest wrapper for the MapTenancyConfiguration operation -type MapTenancyConfigurationRequest struct { - - // The information to be updated. - MapTenancyConfigurationDetails `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 running 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 removed 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 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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 MapTenancyConfigurationRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request MapTenancyConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request MapTenancyConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request MapTenancyConfigurationRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request MapTenancyConfigurationRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MapTenancyConfigurationResponse wrapper for the MapTenancyConfiguration operation -type MapTenancyConfigurationResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CreateMapTenancyConfiguration instance - CreateMapTenancyConfiguration `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 MapTenancyConfigurationResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response MapTenancyConfigurationResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_details.go deleted file mode 100644 index 9f9d6c6127..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PauseSyncJobDetails Details about pausing an object sync job. -type PauseSyncJobDetails struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of currently running job. - SyncJobId *string `mandatory:"true" json:"syncJobId"` -} - -func (m PauseSyncJobDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PauseSyncJobDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_request_response.go deleted file mode 100644 index 7af78bbfef..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pause_sync_job_request_response.go +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// PauseSyncJobRequest wrapper for the PauseSyncJob operation -type PauseSyncJobRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. - ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` - - // The information needed to pause the sync job. - PauseSyncJobDetails `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 running 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 removed 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 PauseSyncJobRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request PauseSyncJobRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request PauseSyncJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request PauseSyncJobRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request PauseSyncJobRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// PauseSyncJobResponse wrapper for the PauseSyncJob operation -type PauseSyncJobResponse 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 PauseSyncJobResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response PauseSyncJobResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool.go deleted file mode 100644 index 9f448848ac..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// Pool A construct that to represent compute capacity reservation(s) for a purpose (can be a default, or dedicated for customers). -type Pool struct { - - // The id of the pool - Id *string `mandatory:"true" json:"id"` - - // The type of pool - PoolType PoolPoolTypeEnum `mandatory:"true" json:"poolType"` - - // Name of the pool - PoolName *string `mandatory:"true" json:"poolName"` - - // List of customer tenancies it is dedicated for - DedicatedCustomerTenancies []string `mandatory:"false" json:"dedicatedCustomerTenancies"` - - // The name of the site group this pool is associated with - SiteGroup *string `mandatory:"false" json:"siteGroup"` - - // List of customer tenancies it is dedicated for - Tags []string `mandatory:"false" json:"tags"` - - // List of customer tenancies it is dedicated for - Resources []interface{} `mandatory:"false" json:"resources"` - - // List of customer tenancies it is dedicated for - Accounting *interface{} `mandatory:"false" json:"accounting"` - - // The pools that have affinity with this pool. - PoolAffinities *interface{} `mandatory:"false" json:"poolAffinities"` -} - -func (m Pool) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m Pool) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingPoolPoolTypeEnum(string(m.PoolType)); !ok && m.PoolType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PoolType: %s. Supported values are: %s.", m.PoolType, strings.Join(GetPoolPoolTypeEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// PoolPoolTypeEnum Enum with underlying type: string -type PoolPoolTypeEnum string - -// Set of constants representing the allowable values for PoolPoolTypeEnum -const ( - PoolPoolTypeCompute PoolPoolTypeEnum = "COMPUTE" - PoolPoolTypeBlock PoolPoolTypeEnum = "BLOCK" -) - -var mappingPoolPoolTypeEnum = map[string]PoolPoolTypeEnum{ - "COMPUTE": PoolPoolTypeCompute, - "BLOCK": PoolPoolTypeBlock, -} - -var mappingPoolPoolTypeEnumLowerCase = map[string]PoolPoolTypeEnum{ - "compute": PoolPoolTypeCompute, - "block": PoolPoolTypeBlock, -} - -// GetPoolPoolTypeEnumValues Enumerates the set of values for PoolPoolTypeEnum -func GetPoolPoolTypeEnumValues() []PoolPoolTypeEnum { - values := make([]PoolPoolTypeEnum, 0) - for _, v := range mappingPoolPoolTypeEnum { - values = append(values, v) - } - return values -} - -// GetPoolPoolTypeEnumStringValues Enumerates the set of values in String for PoolPoolTypeEnum -func GetPoolPoolTypeEnumStringValues() []string { - return []string{ - "COMPUTE", - "BLOCK", - } -} - -// GetMappingPoolPoolTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPoolPoolTypeEnum(val string) (PoolPoolTypeEnum, bool) { - enum, ok := mappingPoolPoolTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_collection.go deleted file mode 100644 index 86e0613cef..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PoolCollection Results of a Pool search. Contains Pool items. -type PoolCollection struct { - - // List of Pool Summary. - Items []PoolSummary `mandatory:"true" json:"items"` -} - -func (m PoolCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PoolCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_summary.go deleted file mode 100644 index 572bbd5438..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/pool_summary.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PoolSummary A list of pools. -type PoolSummary struct { - - // The id of the pool - PoolId *string `mandatory:"false" json:"poolId"` - - // The type of pool - PoolType PoolSummaryPoolTypeEnum `mandatory:"false" json:"poolType,omitempty"` - - // Name of the pool - PoolName *string `mandatory:"false" json:"poolName"` - - // List of customer tenancies it is dedicated for - DedicatedCustomerTenancies []string `mandatory:"false" json:"dedicatedCustomerTenancies"` - - // The name of the site group this pool is associated with - SiteGroup *string `mandatory:"false" json:"siteGroup"` - - // List of customer tenancies it is dedicated for - Tags []string `mandatory:"false" json:"tags"` - - // List of customer tenancies it is dedicated for - Resources []interface{} `mandatory:"false" json:"resources"` - - // List of customer tenancies it is dedicated for - Accounting *interface{} `mandatory:"false" json:"accounting"` - - // The pools that have affinity with this pool. - PoolAffinities *interface{} `mandatory:"false" json:"poolAffinities"` -} - -func (m PoolSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PoolSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingPoolSummaryPoolTypeEnum(string(m.PoolType)); !ok && m.PoolType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PoolType: %s. Supported values are: %s.", m.PoolType, strings.Join(GetPoolSummaryPoolTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// PoolSummaryPoolTypeEnum Enum with underlying type: string -type PoolSummaryPoolTypeEnum string - -// Set of constants representing the allowable values for PoolSummaryPoolTypeEnum -const ( - PoolSummaryPoolTypeCompute PoolSummaryPoolTypeEnum = "COMPUTE" - PoolSummaryPoolTypeBlock PoolSummaryPoolTypeEnum = "BLOCK" -) - -var mappingPoolSummaryPoolTypeEnum = map[string]PoolSummaryPoolTypeEnum{ - "COMPUTE": PoolSummaryPoolTypeCompute, - "BLOCK": PoolSummaryPoolTypeBlock, -} - -var mappingPoolSummaryPoolTypeEnumLowerCase = map[string]PoolSummaryPoolTypeEnum{ - "compute": PoolSummaryPoolTypeCompute, - "block": PoolSummaryPoolTypeBlock, -} - -// GetPoolSummaryPoolTypeEnumValues Enumerates the set of values for PoolSummaryPoolTypeEnum -func GetPoolSummaryPoolTypeEnumValues() []PoolSummaryPoolTypeEnum { - values := make([]PoolSummaryPoolTypeEnum, 0) - for _, v := range mappingPoolSummaryPoolTypeEnum { - values = append(values, v) - } - return values -} - -// GetPoolSummaryPoolTypeEnumStringValues Enumerates the set of values in String for PoolSummaryPoolTypeEnum -func GetPoolSummaryPoolTypeEnumStringValues() []string { - return []string{ - "COMPUTE", - "BLOCK", - } -} - -// GetMappingPoolSummaryPoolTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPoolSummaryPoolTypeEnum(val string) (PoolSummaryPoolTypeEnum, bool) { - enum, ok := mappingPoolSummaryPoolTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_collection.go deleted file mode 100644 index 2f8b0a2e9b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ProfileCollection List of ProfileSummary. -type ProfileCollection struct { - - // List of ProfileSummary. - Items []ProfileSummary `mandatory:"true" json:"items"` -} - -func (m ProfileCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ProfileCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_summary.go deleted file mode 100644 index d69990c00d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/profile_summary.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ProfileSummary complete profile details. It will be in key-value format. -type ProfileSummary struct { - - // The profile name. - Name *string `mandatory:"true" json:"name"` - - // Configuration values associated with profile in key-value pairs - Values *interface{} `mandatory:"false" json:"values"` -} - -func (m ProfileSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ProfileSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/reserved_and_used_count.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/reserved_and_used_count.go deleted file mode 100644 index 71cdfa1e8b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/reserved_and_used_count.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ReservedAndUsedCount Reserved and used count for compute instances. -type ReservedAndUsedCount struct { - - // Reserved compute instances count. - ReservedCount *int `mandatory:"true" json:"reservedCount"` - - // Reserved compute instances count. - UsedCount *int `mandatory:"true" json:"usedCount"` -} - -func (m ReservedAndUsedCount) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ReservedAndUsedCount) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go index f253ea3840..7b0e213234 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_export_to_object_request_response.go @@ -12,6 +12,10 @@ import ( ) // StartExportToObjectRequest wrapper for the StartExportToObject operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartExportToObject.go.html to see an example of how to use StartExportToObjectRequest. type StartExportToObjectRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go index 1e5f52d9ac..beb01e8c83 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/start_import_from_object_request_response.go @@ -12,6 +12,10 @@ import ( ) // StartImportFromObjectRequest wrapper for the StartImportFromObject operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StartImportFromObject.go.html to see an example of how to use StartImportFromObjectRequest. type StartImportFromObjectRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go index a3eb2f53d8..34c51040c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_export_to_object_request_response.go @@ -12,6 +12,10 @@ import ( ) // StopExportToObjectRequest wrapper for the StopExportToObject operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopExportToObject.go.html to see an example of how to use StopExportToObjectRequest. type StopExportToObjectRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go index 51c82f3d86..d3584f2cf3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/stop_import_from_object_request_response.go @@ -12,6 +12,10 @@ import ( ) // StopImportFromObjectRequest wrapper for the StopImportFromObject operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/StopImportFromObject.go.html to see an example of how to use StopImportFromObjectRequest. type StopImportFromObjectRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_configuration_summary.go deleted file mode 100644 index 6d81472249..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_configuration_summary.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// TenancyConfigurationSummary Details of the tenancy configuration -type TenancyConfigurationSummary struct { - - // The tenancy OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - TenancyId *string `mandatory:"true" json:"tenancyId"` - - // The profile name which is applicable for the given tenancy. - Profile *string `mandatory:"false" json:"profile"` - - CapacityReservations *CapacityReservationsCollection `mandatory:"false" json:"capacityReservations"` -} - -func (m TenancyConfigurationSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m TenancyConfigurationSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override.go deleted file mode 100644 index 14e215fb88..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// TenancyOverride A construct that stores configuration and capacity reservation overrides for a tenant. -type TenancyOverride struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. - TenancyId *string `mandatory:"true" json:"tenancyId"` - - // The list of overrides for a tenant. - Overrides []interface{} `mandatory:"true" json:"overrides"` -} - -func (m TenancyOverride) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m TenancyOverride) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_collection.go deleted file mode 100644 index ea6c5682bb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// TenancyOverrideCollection Results of a Tenancy Override search. Contains TenancyOverride items. -type TenancyOverrideCollection struct { - - // List of Tenancy Override Summary. - Items []TenancyOverrideSummary `mandatory:"true" json:"items"` -} - -func (m TenancyOverrideCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m TenancyOverrideCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_summary.go deleted file mode 100644 index 835a99fbef..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/tenancy_override_summary.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// TenancyOverrideSummary A construct that stores configuration and capacity reservation overrides for a tenant. -type TenancyOverrideSummary struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. - TenancyId *string `mandatory:"true" json:"tenancyId"` - - // The list of overrides for a tenant. - Overrides []interface{} `mandatory:"true" json:"overrides"` -} - -func (m TenancyOverrideSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m TenancyOverrideSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_details.go deleted file mode 100644 index 9c6132b1d7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UnpauseSyncJobDetails Details about un-pausing an object sync job. -type UnpauseSyncJobDetails struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of currently running job. - SyncJobId *string `mandatory:"true" json:"syncJobId"` -} - -func (m UnpauseSyncJobDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UnpauseSyncJobDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_request_response.go deleted file mode 100644 index 7e4acf3708..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/unpause_sync_job_request_response.go +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UnpauseSyncJobRequest wrapper for the UnpauseSyncJob operation -type UnpauseSyncJobRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. - ObjectStorageLinkId *string `mandatory:"true" contributesTo:"path" name:"objectStorageLinkId"` - - // The information needed to start the export to Object Storage. - UnpauseSyncJobDetails `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 running 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 removed 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 UnpauseSyncJobRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UnpauseSyncJobRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UnpauseSyncJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UnpauseSyncJobRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UnpauseSyncJobRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnpauseSyncJobResponse wrapper for the UnpauseSyncJob operation -type UnpauseSyncJobResponse 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 UnpauseSyncJobResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UnpauseSyncJobResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_details.go deleted file mode 100644 index 178676d433..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_details.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdateCapacityReservationInfoDetails The data required for updating a Capacity Reservation Info. -type UpdateCapacityReservationInfoDetails struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"false" json:"lfsCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. Use empty string to unset the value. - CustomerCpgId *string `mandatory:"false" json:"customerCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. Use empty string to unset the value. - CustomerTenancyId *string `mandatory:"false" json:"customerTenancyId"` - - // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. - AvailableBlockCapacityInGBs *int64 `mandatory:"false" json:"availableBlockCapacityInGBs"` - - DesiredComputeCount *DesiredComputeCount `mandatory:"false" json:"desiredComputeCount"` - - // If set to true, update capacity requests would not be sent. - IsUpdateRequestPaused *bool `mandatory:"false" json:"isUpdateRequestPaused"` - - // A list of CPG OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) with block capacity - // A maximum of 10 is allowed. - BlockCpgIds []string `mandatory:"false" json:"blockCpgIds"` -} - -func (m UpdateCapacityReservationInfoDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdateCapacityReservationInfoDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_request_response.go deleted file mode 100644 index aa5bc960a8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_capacity_reservation_info_request_response.go +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdateCapacityReservationInfoRequest wrapper for the UpdateCapacityReservationInfo operation -type UpdateCapacityReservationInfoRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"true" contributesTo:"path" name:"capacityReservationId"` - - // The information to be updated. - UpdateCapacityReservationInfoDetails `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 UpdateCapacityReservationInfoRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateCapacityReservationInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateCapacityReservationInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateCapacityReservationInfoRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdateCapacityReservationInfoRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateCapacityReservationInfoResponse wrapper for the UpdateCapacityReservationInfo operation -type UpdateCapacityReservationInfoResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CapacityReservationInfo instance - CapacityReservationInfo `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 UpdateCapacityReservationInfoResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateCapacityReservationInfoResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_details.go deleted file mode 100644 index 45ef0da473..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_details.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdateCpgOverrideDetails The data required for updating a CPG Override. -type UpdateCpgOverrideDetails struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"false" json:"lfsCpgId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capacity reservation. - CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer tenancy. - CustomerTenancyId *string `mandatory:"false" json:"customerTenancyId"` -} - -func (m UpdateCpgOverrideDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdateCpgOverrideDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_request_response.go deleted file mode 100644 index cd2d8f0981..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_cpg_override_request_response.go +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdateCpgOverrideRequest wrapper for the UpdateCpgOverride operation -type UpdateCpgOverrideRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer CPG. - CustomerCpgId *string `mandatory:"true" contributesTo:"path" name:"customerCpgId"` - - // The information to be updated. - UpdateCpgOverrideDetails `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 UpdateCpgOverrideRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateCpgOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateCpgOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateCpgOverrideRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdateCpgOverrideRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateCpgOverrideResponse wrapper for the UpdateCpgOverride operation -type UpdateCpgOverrideResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CpgOverride instance - CpgOverride `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 UpdateCpgOverrideResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateCpgOverrideResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_details.go deleted file mode 100644 index 838b683175..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdateLfsCpgInfoDetails The data required for creating a LFS CPG Info. -type UpdateLfsCpgInfoDetails struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default capacity reservation. - DefaultCapacityReservationId *string `mandatory:"false" json:"defaultCapacityReservationId"` - - // The availability domain the Management Cell is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` -} - -func (m UpdateLfsCpgInfoDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdateLfsCpgInfoDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_request_response.go deleted file mode 100644 index df0d6e4f12..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lfs_cpg_info_request_response.go +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdateLfsCpgInfoRequest wrapper for the UpdateLfsCpgInfo operation -type UpdateLfsCpgInfoRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LFS service CPG. - LfsCpgId *string `mandatory:"true" contributesTo:"path" name:"lfsCpgId"` - - // The information to be updated. - UpdateLfsCpgInfoDetails `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 UpdateLfsCpgInfoRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateLfsCpgInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateLfsCpgInfoRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateLfsCpgInfoRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdateLfsCpgInfoRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateLfsCpgInfoResponse wrapper for the UpdateLfsCpgInfo operation -type UpdateLfsCpgInfoResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The LfsCpgInfo instance - LfsCpgInfo `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 UpdateLfsCpgInfoResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateLfsCpgInfoResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go index 8894bf015c..f03549f60f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_lustre_file_system_request_response.go @@ -12,6 +12,10 @@ import ( ) // UpdateLustreFileSystemRequest wrapper for the UpdateLustreFileSystem operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateLustreFileSystem.go.html to see an example of how to use UpdateLustreFileSystemRequest. type UpdateLustreFileSystemRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Lustre file system. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_details.go deleted file mode 100644 index 079242fe31..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_details.go +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdateManagementCellDetails The data required for updating a ManagementCell. -type UpdateManagementCellDetails struct { - - // The current state of the Management cell. - LifecycleState UpdateManagementCellDetailsLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // ManagementCell can be categorized based on the customer filesystems it is hosting. - // Example: `RESTRICTED` category cell is restricted for use by only one customer - Category UpdateManagementCellDetailsCategoryEnum `mandatory:"false" json:"category,omitempty"` - - // Provisional cell capacity available for creating new filesystems on the cell. Measured in GB. - AvailableCapacityInGBs *int64 `mandatory:"false" json:"availableCapacityInGBs"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - Details *Details `mandatory:"false" json:"details"` -} - -func (m UpdateManagementCellDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdateManagementCellDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingUpdateManagementCellDetailsLifecycleStateEnum(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(GetUpdateManagementCellDetailsLifecycleStateEnumStringValues(), ","))) - } - if _, ok := GetMappingUpdateManagementCellDetailsCategoryEnum(string(m.Category)); !ok && m.Category != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Category: %s. Supported values are: %s.", m.Category, strings.Join(GetUpdateManagementCellDetailsCategoryEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateManagementCellDetailsLifecycleStateEnum Enum with underlying type: string -type UpdateManagementCellDetailsLifecycleStateEnum string - -// Set of constants representing the allowable values for UpdateManagementCellDetailsLifecycleStateEnum -const ( - UpdateManagementCellDetailsLifecycleStateCreating UpdateManagementCellDetailsLifecycleStateEnum = "CREATING" - UpdateManagementCellDetailsLifecycleStateActive UpdateManagementCellDetailsLifecycleStateEnum = "ACTIVE" - UpdateManagementCellDetailsLifecycleStateInactive UpdateManagementCellDetailsLifecycleStateEnum = "INACTIVE" - UpdateManagementCellDetailsLifecycleStateDeleted UpdateManagementCellDetailsLifecycleStateEnum = "DELETED" -) - -var mappingUpdateManagementCellDetailsLifecycleStateEnum = map[string]UpdateManagementCellDetailsLifecycleStateEnum{ - "CREATING": UpdateManagementCellDetailsLifecycleStateCreating, - "ACTIVE": UpdateManagementCellDetailsLifecycleStateActive, - "INACTIVE": UpdateManagementCellDetailsLifecycleStateInactive, - "DELETED": UpdateManagementCellDetailsLifecycleStateDeleted, -} - -var mappingUpdateManagementCellDetailsLifecycleStateEnumLowerCase = map[string]UpdateManagementCellDetailsLifecycleStateEnum{ - "creating": UpdateManagementCellDetailsLifecycleStateCreating, - "active": UpdateManagementCellDetailsLifecycleStateActive, - "inactive": UpdateManagementCellDetailsLifecycleStateInactive, - "deleted": UpdateManagementCellDetailsLifecycleStateDeleted, -} - -// GetUpdateManagementCellDetailsLifecycleStateEnumValues Enumerates the set of values for UpdateManagementCellDetailsLifecycleStateEnum -func GetUpdateManagementCellDetailsLifecycleStateEnumValues() []UpdateManagementCellDetailsLifecycleStateEnum { - values := make([]UpdateManagementCellDetailsLifecycleStateEnum, 0) - for _, v := range mappingUpdateManagementCellDetailsLifecycleStateEnum { - values = append(values, v) - } - return values -} - -// GetUpdateManagementCellDetailsLifecycleStateEnumStringValues Enumerates the set of values in String for UpdateManagementCellDetailsLifecycleStateEnum -func GetUpdateManagementCellDetailsLifecycleStateEnumStringValues() []string { - return []string{ - "CREATING", - "ACTIVE", - "INACTIVE", - "DELETED", - } -} - -// GetMappingUpdateManagementCellDetailsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingUpdateManagementCellDetailsLifecycleStateEnum(val string) (UpdateManagementCellDetailsLifecycleStateEnum, bool) { - enum, ok := mappingUpdateManagementCellDetailsLifecycleStateEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// UpdateManagementCellDetailsCategoryEnum Enum with underlying type: string -type UpdateManagementCellDetailsCategoryEnum string - -// Set of constants representing the allowable values for UpdateManagementCellDetailsCategoryEnum -const ( - UpdateManagementCellDetailsCategoryGeneral UpdateManagementCellDetailsCategoryEnum = "GENERAL" - UpdateManagementCellDetailsCategoryInternal UpdateManagementCellDetailsCategoryEnum = "INTERNAL" - UpdateManagementCellDetailsCategoryRestricted UpdateManagementCellDetailsCategoryEnum = "RESTRICTED" -) - -var mappingUpdateManagementCellDetailsCategoryEnum = map[string]UpdateManagementCellDetailsCategoryEnum{ - "GENERAL": UpdateManagementCellDetailsCategoryGeneral, - "INTERNAL": UpdateManagementCellDetailsCategoryInternal, - "RESTRICTED": UpdateManagementCellDetailsCategoryRestricted, -} - -var mappingUpdateManagementCellDetailsCategoryEnumLowerCase = map[string]UpdateManagementCellDetailsCategoryEnum{ - "general": UpdateManagementCellDetailsCategoryGeneral, - "internal": UpdateManagementCellDetailsCategoryInternal, - "restricted": UpdateManagementCellDetailsCategoryRestricted, -} - -// GetUpdateManagementCellDetailsCategoryEnumValues Enumerates the set of values for UpdateManagementCellDetailsCategoryEnum -func GetUpdateManagementCellDetailsCategoryEnumValues() []UpdateManagementCellDetailsCategoryEnum { - values := make([]UpdateManagementCellDetailsCategoryEnum, 0) - for _, v := range mappingUpdateManagementCellDetailsCategoryEnum { - values = append(values, v) - } - return values -} - -// GetUpdateManagementCellDetailsCategoryEnumStringValues Enumerates the set of values in String for UpdateManagementCellDetailsCategoryEnum -func GetUpdateManagementCellDetailsCategoryEnumStringValues() []string { - return []string{ - "GENERAL", - "INTERNAL", - "RESTRICTED", - } -} - -// GetMappingUpdateManagementCellDetailsCategoryEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingUpdateManagementCellDetailsCategoryEnum(val string) (UpdateManagementCellDetailsCategoryEnum, bool) { - enum, ok := mappingUpdateManagementCellDetailsCategoryEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_request_response.go deleted file mode 100644 index fb5b98c7ff..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_management_cell_request_response.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdateManagementCellRequest wrapper for the UpdateManagementCell operation -type UpdateManagementCellRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ManagementCell. - ManagementCellId *string `mandatory:"true" contributesTo:"path" name:"managementCellId"` - - // The information to be updated. - UpdateManagementCellDetails `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 UpdateManagementCellRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateManagementCellRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateManagementCellRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateManagementCellRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdateManagementCellRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateManagementCellResponse wrapper for the UpdateManagementCell operation -type UpdateManagementCellResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. - // Use 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 UpdateManagementCellResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateManagementCellResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go index bd822e5b28..9f6373afba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_object_storage_link_request_response.go @@ -12,6 +12,10 @@ import ( ) // UpdateObjectStorageLinkRequest wrapper for the UpdateObjectStorageLink operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/lustrefilestorage/UpdateObjectStorageLink.go.html to see an example of how to use UpdateObjectStorageLinkRequest. type UpdateObjectStorageLinkRequest struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Object Storage link. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_details.go deleted file mode 100644 index 2ae820a070..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_details.go +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdatePoolDetails The data required for updating a Pool. -type UpdatePoolDetails struct { - - // The type of pool - PoolType UpdatePoolDetailsPoolTypeEnum `mandatory:"false" json:"poolType,omitempty"` - - // Name of the pool - PoolName *string `mandatory:"false" json:"poolName"` - - // List of customer tenancies it is dedicated for - DedicatedCustomerTenancies []string `mandatory:"false" json:"dedicatedCustomerTenancies"` - - // The name of the site group this pool is associated with - SiteGroup *string `mandatory:"false" json:"siteGroup"` - - // List of customer tenancies it is dedicated for - Tags []string `mandatory:"false" json:"tags"` - - // List of customer tenancies it is dedicated for - Resources []interface{} `mandatory:"false" json:"resources"` - - // The pools that have affinity with this pool. - PoolAffinities *interface{} `mandatory:"false" json:"poolAffinities"` -} - -func (m UpdatePoolDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdatePoolDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingUpdatePoolDetailsPoolTypeEnum(string(m.PoolType)); !ok && m.PoolType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PoolType: %s. Supported values are: %s.", m.PoolType, strings.Join(GetUpdatePoolDetailsPoolTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdatePoolDetailsPoolTypeEnum Enum with underlying type: string -type UpdatePoolDetailsPoolTypeEnum string - -// Set of constants representing the allowable values for UpdatePoolDetailsPoolTypeEnum -const ( - UpdatePoolDetailsPoolTypeCompute UpdatePoolDetailsPoolTypeEnum = "COMPUTE" - UpdatePoolDetailsPoolTypeBlock UpdatePoolDetailsPoolTypeEnum = "BLOCK" -) - -var mappingUpdatePoolDetailsPoolTypeEnum = map[string]UpdatePoolDetailsPoolTypeEnum{ - "COMPUTE": UpdatePoolDetailsPoolTypeCompute, - "BLOCK": UpdatePoolDetailsPoolTypeBlock, -} - -var mappingUpdatePoolDetailsPoolTypeEnumLowerCase = map[string]UpdatePoolDetailsPoolTypeEnum{ - "compute": UpdatePoolDetailsPoolTypeCompute, - "block": UpdatePoolDetailsPoolTypeBlock, -} - -// GetUpdatePoolDetailsPoolTypeEnumValues Enumerates the set of values for UpdatePoolDetailsPoolTypeEnum -func GetUpdatePoolDetailsPoolTypeEnumValues() []UpdatePoolDetailsPoolTypeEnum { - values := make([]UpdatePoolDetailsPoolTypeEnum, 0) - for _, v := range mappingUpdatePoolDetailsPoolTypeEnum { - values = append(values, v) - } - return values -} - -// GetUpdatePoolDetailsPoolTypeEnumStringValues Enumerates the set of values in String for UpdatePoolDetailsPoolTypeEnum -func GetUpdatePoolDetailsPoolTypeEnumStringValues() []string { - return []string{ - "COMPUTE", - "BLOCK", - } -} - -// GetMappingUpdatePoolDetailsPoolTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingUpdatePoolDetailsPoolTypeEnum(val string) (UpdatePoolDetailsPoolTypeEnum, bool) { - enum, ok := mappingUpdatePoolDetailsPoolTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_request_response.go deleted file mode 100644 index ad854db70b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_pool_request_response.go +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdatePoolRequest wrapper for the UpdatePool operation -type UpdatePoolRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool. - PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` - - // The information to be updated. - UpdatePoolDetails `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 UpdatePoolRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdatePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdatePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdatePoolRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdatePoolRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdatePoolResponse wrapper for the UpdatePool operation -type UpdatePoolResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Pool instance - Pool `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 UpdatePoolResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdatePoolResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_details.go deleted file mode 100644 index d36d47c243..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 with Lustre API -// -// Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see File Storage with Lustre (https://docs.oracle.com/iaas/Content/lustre/home.htm). -// - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdateTenancyOverrideDetails The data required for updating a Tenancy Override. -type UpdateTenancyOverrideDetails struct { - - // The override for a tenant. - Override *interface{} `mandatory:"true" json:"override"` -} - -func (m UpdateTenancyOverrideDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdateTenancyOverrideDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_request_response.go deleted file mode 100644 index cc4ee63d47..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/lustrefilestorage/update_tenancy_override_request_response.go +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package lustrefilestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdateTenancyOverrideRequest wrapper for the UpdateTenancyOverride operation -type UpdateTenancyOverrideRequest struct { - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant. - TenantId *string `mandatory:"true" contributesTo:"path" name:"tenantId"` - - // The ID associated with an override. - OverrideId *string `mandatory:"true" contributesTo:"path" name:"overrideId"` - - // The information to be updated. - UpdateTenancyOverrideDetails `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. - // The only valid characters for request IDs are letters, numbers, - // underscore, and dash. - 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 UpdateTenancyOverrideRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateTenancyOverrideRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateTenancyOverrideRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateTenancyOverrideRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdateTenancyOverrideRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf("%s", strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateTenancyOverrideResponse wrapper for the UpdateTenancyOverride operation -type UpdateTenancyOverrideResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The TenancyOverride instance - TenancyOverride `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 UpdateTenancyOverrideResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateTenancyOverrideResponse) HTTPResponse() *http.Response { - return response.RawResponse -} From 2356a75e82bbe82c82aa8b7cd7f2edc51e3b60d8 Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Tue, 17 Feb 2026 14:58:21 +0530 Subject: [PATCH 15/24] Adding lustre controller driver OSS enablement --- cmd/oci-csi-controller-driver/main.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmd/oci-csi-controller-driver/main.go b/cmd/oci-csi-controller-driver/main.go index 940216c869..90d53f781f 100644 --- a/cmd/oci-csi-controller-driver/main.go +++ b/cmd/oci-csi-controller-driver/main.go @@ -16,6 +16,8 @@ package main import ( "flag" + "os" + "strings" "time" csicontrollerdriver "github.com/oracle/oci-cloud-controller-manager/cmd/oci-csi-controller-driver/csi-controller-driver" @@ -33,6 +35,7 @@ func main() { csiOptions := csioptions.CSIOptions{} flag.StringVar(&csiOptions.Endpoint, "endpoint", "unix://tmp/csi.sock", "CSI endpoint") flag.StringVar(&csiOptions.FssEndpoint, "fss-csi-endpoint", "unix://tmp/csi-fss.sock", "CSI FSS endpoint") + flag.StringVar(&csiOptions.LustreEndpoint, "lustre-csi-endpoint", "unix://tmp/csi-lustre.sock", "CSI Lustre endpoint") flag.StringVar(&csiOptions.Master, "master", "", "kube master") flag.StringVar(&csiOptions.Kubeconfig, "kubeconfig", "", "cluster kubeconfig") flag.Parse() @@ -63,5 +66,14 @@ func main() { go csicontrollerdriver.StartControllerDriver(csiOptions, driver.BV) go csicontrollerdriver.StartControllerDriver(csiOptions, driver.FSS) + + if IsLustreControllerDriverEnabled() { + go csicontrollerdriver.StartControllerDriver(csiOptions, driver.Lustre) + } + <-stopCh } + +func IsLustreControllerDriverEnabled() bool { + return strings.EqualFold(os.Getenv("LUSTRE_CSI_CONTROLLER_DRIVER_ENABLED"), "true") +} From 9bcc610d2b72466ee35f8da54a6a1ee01eccab35 Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Fri, 6 Mar 2026 09:33:28 +0530 Subject: [PATCH 16/24] Fixing bug in e2e test for load balancer --- test/e2e/cloud-provider-oci/load_balancer.go | 2 +- test/e2e/framework/framework.go | 52 ++++++++++---------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/test/e2e/cloud-provider-oci/load_balancer.go b/test/e2e/cloud-provider-oci/load_balancer.go index f1eb4e9685..47ada184f6 100644 --- a/test/e2e/cloud-provider-oci/load_balancer.go +++ b/test/e2e/cloud-provider-oci/load_balancer.go @@ -844,7 +844,7 @@ var _ = Describe("ESIPP - IpMode Proxy [Slow]", func() { var srcIP, expectedIP string By(fmt.Sprintf("Hitting external lb %v from pod %v (%v) on node %v", ingressIP, podName, execPod.Status.PodIP, nodeName)) if pollErr := wait.PollImmediate(sharedfw.K8sResourcePoll, 5*time.Minute, func() (bool, error) { - expectedIP = execPod.Spec.NodeName // Node IP + expectedIP = execPod.Status.HostIP // Node IP stdout, err := sharedfw.RunHostCmd(execPod.Namespace, execPod.Name, cmd) if err != nil { diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 5ab34703eb..a2401fcfe5 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -34,7 +34,7 @@ const ( // test suite before giving up. DefaultTimeout = 15 * time.Minute // Some pods can take much longer to get ready due to volume attach/detach latency. - slowPodStartTimeout = 7 * time.Minute + slowPodStartTimeout = 15 * time.Minute JobCompletionTimeout = 5 * time.Minute deploymentAvailableTimeout = 5 * time.Minute @@ -43,22 +43,22 @@ const ( DefaultClusterKubeconfig = "/tmp/clusterkubeconfig" DefaultCloudConfig = "/tmp/cloudconfig" - ClassOCI = "oci" - ClassOCICSI = "oci-bv" - ClassCustom = "oci-bv-custom" - ClassOCICSIExpand = "oci-bv-expand" - ClassOCILowCost = "oci-bv-low" - ClassOCIBalanced = "oci-bal" - ClassOCIHigh = "oci-bv-high" - ClassOCIUHP = "oci-uhp" - ClassOCIKMS = "oci-kms" - ClassOCIExt3 = "oci-ext3" - ClassOCIXfs = "oci-xfs" - ClassFssDynamic = "oci-file-storage-test" - ClassSnapshot = "oci-snapshot-sc" - MinVolumeBlock = "50Gi" - MaxVolumeBlock = "100Gi" - VolumeFss = "1Gi" + ClassOCI = "oci" + ClassOCICSI = "oci-bv" + ClassCustom = "oci-bv-custom" + ClassOCICSIExpand = "oci-bv-expand" + ClassOCILowCost = "oci-bv-low" + ClassOCIBalanced = "oci-bal" + ClassOCIHigh = "oci-bv-high" + ClassOCIUHP = "oci-uhp" + ClassOCIKMS = "oci-kms" + ClassOCIExt3 = "oci-ext3" + ClassOCIXfs = "oci-xfs" + ClassFssDynamic = "oci-file-storage-test" + ClassSnapshot = "oci-snapshot-sc" + MinVolumeBlock = "50Gi" + MaxVolumeBlock = "100Gi" + VolumeFss = "1Gi" VSClassDefault = "oci-snapclass" NodeHostnameLabel = "kubernetes.io/hostname" @@ -87,7 +87,7 @@ var ( reservedIP string // Testing public reserved IP feature architecture string volumeHandle string // The FSS mount volume handle - lustreVolumeHandle string // The Lustre mount volume handle + lustreVolumeHandle string // The Lustre mount volume handle lustreSubnetCidr string // The Lustre Subnet Cidr enableLustreTests bool // Flag to enable disable lustre tests lustreWorkerNodeImage string // Ocid of worker node image having backed in lustre clients to create separate nodepool @@ -95,9 +95,9 @@ var ( lustreSubnet string lustreAD string staticSnapshotCompartmentOCID string // Compartment ID for cross compartment snapshot test - customDriverHandle string // Custom driver handle for custom CSI driver installation + customDriverHandle string // Custom driver handle for custom CSI driver installation runUhpE2E bool // Whether to run UHP E2Es, requires Volume Management Plugin enabled on the node and 16+ cores (check blockvolumeperformance public doc for the exact requirements) - enableParallelRun bool + enableParallelRun bool addOkeSystemTags bool clusterID string // Ocid of the newly created E2E cluster clusterType string // Cluster type can be BASIC_CLUSTER or ENHANCED_CLUSTER (Default: BASIC_CLUSTER) @@ -175,7 +175,7 @@ type Framework struct { ReservedIP string Architecture string - VolumeHandle string + VolumeHandle string LustreVolumeHandle string LustreSubnetCidr string @@ -188,11 +188,11 @@ type Framework struct { // Compartment ID for cross compartment snapshot test StaticSnapshotCompartmentOcid string RunUhpE2E bool - CustomDriverHandle string - BlockProvisionerName string - FSSProvisionerName string + CustomDriverHandle string + BlockProvisionerName string + FSSProvisionerName string LustreProvisionerName string - AddOkeSystemTags bool + AddOkeSystemTags bool } // New creates a new a framework that holds the context of the test @@ -224,7 +224,7 @@ func NewWithConfig() *Framework { EnableLustreTests: enableLustreTests, StaticSnapshotCompartmentOcid: staticSnapshotCompartmentOCID, RunUhpE2E: runUhpE2E, - CustomDriverHandle: customDriverHandle, + CustomDriverHandle: customDriverHandle, AddOkeSystemTags: addOkeSystemTags, ClusterType: clusterTypeEnum, } From 2ca5c21427c848d4fc85082a327f5dfb53af8222 Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Wed, 4 Mar 2026 15:29:38 +0530 Subject: [PATCH 17/24] Adding manifest for release 1.33.1 --- .../oci-cloud-controller-manager.yaml | 2 +- .../csi/Chart.yaml | 4 ++-- .../templates/oci-csi-controller-driver.yaml | 24 ++++++++++++++++++- .../csi/templates/oci-csi-node-driver.yaml | 2 +- .../csi/values.yaml | 2 ++ .../oci-csi-controller-driver.yaml | 23 +++++++++++++++++- .../oci-csi-node-driver.yaml | 2 +- .../oci-flexvolume-driver.yaml | 4 ++-- .../oci-volume-provisioner-fss.yaml | 2 +- .../oci-volume-provisioner.yaml | 2 +- 10 files changed, 56 insertions(+), 11 deletions(-) diff --git a/manifests/cloud-controller-manager/oci-cloud-controller-manager.yaml b/manifests/cloud-controller-manager/oci-cloud-controller-manager.yaml index 5ea62b3aff..aa93034b75 100644 --- a/manifests/cloud-controller-manager/oci-cloud-controller-manager.yaml +++ b/manifests/cloud-controller-manager/oci-cloud-controller-manager.yaml @@ -42,7 +42,7 @@ spec: path: /etc/kubernetes containers: - name: oci-cloud-controller-manager - image: ghcr.io/oracle/cloud-provider-oci:v1.33.0 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 command: ["/usr/local/bin/oci-cloud-controller-manager"] args: - --cloud-config=/etc/oci/cloud-provider.yaml diff --git a/manifests/container-storage-interface/csi/Chart.yaml b/manifests/container-storage-interface/csi/Chart.yaml index df7781ad1c..1ced02d38f 100644 --- a/manifests/container-storage-interface/csi/Chart.yaml +++ b/manifests/container-storage-interface/csi/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: oci-oke-csi-driver description: A Helm chart for OKE CSI driver -version: 1.0.0 -appVersion: "1.0.0" +version: 1.1.0 +appVersion: "1.1.0" home: https://github.com/oracle/oci-cloud-controller-manager sources: - https://github.com/oracle/oci-cloud-controller-manager diff --git a/manifests/container-storage-interface/csi/templates/oci-csi-controller-driver.yaml b/manifests/container-storage-interface/csi/templates/oci-csi-controller-driver.yaml index ccc7017504..3ad2c3011d 100644 --- a/manifests/container-storage-interface/csi/templates/oci-csi-controller-driver.yaml +++ b/manifests/container-storage-interface/csi/templates/oci-csi-controller-driver.yaml @@ -51,6 +51,23 @@ spec: readOnly: true - mountPath: /var/run/shared-tmpfs name: shared-tmpfs + - name: csi-lustre-volume-provisioner + image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1 + args: + - --csi-address=/var/run/shared-tmpfs/csi-lustre.sock + - --volume-name-prefix=csi-lustre + - --feature-gates=Topology=true + - --timeout=720s + - --worker-threads=15 + - --default-fstype=lustre + - --leader-election + - --leader-election-namespace=kube-system + volumeMounts: + - name: config + mountPath: /etc/oci/ + readOnly: true + - mountPath: /var/run/shared-tmpfs + name: shared-tmpfs - name: csi-attacher image: registry.k8s.io/sig-storage/csi-attacher:v4.6.1 args: @@ -94,15 +111,20 @@ spec: args: - --endpoint=unix://var/run/shared-tmpfs/csi.sock - --fss-csi-endpoint=unix://var/run/shared-tmpfs/csi-fss.sock + - --lustre-csi-endpoint=unix://var/run/shared-tmpfs/csi-lustre.sock command: - /usr/local/bin/oci-csi-controller-driver - image: ghcr.io/oracle/cloud-provider-oci:v1.33.0 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 imagePullPolicy: IfNotPresent env: - name: BLOCK_VOLUME_DRIVER_NAME value: "{{ if .Values.customHandle }}{{ .Values.customHandle }}.{{ end }}blockvolume.csi.oraclecloud.com" - name: FSS_VOLUME_DRIVER_NAME value: "{{ if .Values.customHandle }}{{ .Values.customHandle }}.{{ end }}fss.csi.oraclecloud.com" + - name: LUSTRE_VOLUME_DRIVER_NAME + value: "{{ if .Values.customHandle }}{{ .Values.customHandle }}.{{ end }}lustre.csi.oraclecloud.com" + - name: LUSTRE_CSI_CONTROLLER_DRIVER_ENABLED + value: {{ .Values.lustreCsi.controllerDriverEnabled | default true | quote }} volumeMounts: - name: config mountPath: /etc/oci/ diff --git a/manifests/container-storage-interface/csi/templates/oci-csi-node-driver.yaml b/manifests/container-storage-interface/csi/templates/oci-csi-node-driver.yaml index 3d8e4e0150..2dbe1e9066 100644 --- a/manifests/container-storage-interface/csi/templates/oci-csi-node-driver.yaml +++ b/manifests/container-storage-interface/csi/templates/oci-csi-node-driver.yaml @@ -135,7 +135,7 @@ spec: value: "{{ if .Values.customHandle }}{{ .Values.customHandle }}.{{ end }}fss.csi.oraclecloud.com" - name: LUSTRE_VOLUME_DRIVER_NAME value: "{{ if .Values.customHandle }}{{ .Values.customHandle }}.{{ end }}lustre.csi.oraclecloud.com" - image: ghcr.io/oracle/cloud-provider-oci:v1.33.0 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 securityContext: privileged: true volumeMounts: diff --git a/manifests/container-storage-interface/csi/values.yaml b/manifests/container-storage-interface/csi/values.yaml index 11a8eca26b..53e4422249 100644 --- a/manifests/container-storage-interface/csi/values.yaml +++ b/manifests/container-storage-interface/csi/values.yaml @@ -1,3 +1,5 @@ #customHandle is used to change resource names to help deploy csi related resources alongside default OKE installation #for example customHandle: "custom" results in service account csi-oci-custom-sa and container csi-oci-custom-controller customHandle: "" +lustreCsi: + controllerDriverEnabled: true \ No newline at end of file diff --git a/manifests/container-storage-interface/oci-csi-controller-driver.yaml b/manifests/container-storage-interface/oci-csi-controller-driver.yaml index 1edd22252f..8a3f4910c3 100644 --- a/manifests/container-storage-interface/oci-csi-controller-driver.yaml +++ b/manifests/container-storage-interface/oci-csi-controller-driver.yaml @@ -51,6 +51,23 @@ spec: readOnly: true - mountPath: /var/run/shared-tmpfs name: shared-tmpfs + - name: csi-lustre-volume-provisioner + image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1 + args: + - --csi-address=/var/run/shared-tmpfs/csi-lustre.sock + - --volume-name-prefix=csi-lustre + - --feature-gates=Topology=true + - --timeout=720s + - --worker-threads=15 + - --default-fstype=lustre + - --leader-election + - --leader-election-namespace=kube-system + volumeMounts: + - name: config + mountPath: /etc/oci/ + readOnly: true + - mountPath: /var/run/shared-tmpfs + name: shared-tmpfs - name: csi-attacher image: registry.k8s.io/sig-storage/csi-attacher:v4.6.1 args: @@ -94,9 +111,13 @@ spec: args: - --endpoint=unix://var/run/shared-tmpfs/csi.sock - --fss-csi-endpoint=unix://var/run/shared-tmpfs/csi-fss.sock + - --lustre-csi-endpoint=unix://var/run/shared-tmpfs/csi-lustre.sock command: - /usr/local/bin/oci-csi-controller-driver - image: ghcr.io/oracle/cloud-provider-oci:v1.33.0 + env: + - name: LUSTRE_CSI_CONTROLLER_DRIVER_ENABLED + value: "true" + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 imagePullPolicy: IfNotPresent volumeMounts: - name: config diff --git a/manifests/container-storage-interface/oci-csi-node-driver.yaml b/manifests/container-storage-interface/oci-csi-node-driver.yaml index c80c8f1300..99e6dfeede 100644 --- a/manifests/container-storage-interface/oci-csi-node-driver.yaml +++ b/manifests/container-storage-interface/oci-csi-node-driver.yaml @@ -129,7 +129,7 @@ spec: value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/host/usr/bin:/host/sbin - name: LUSTRE_DRIVER_ENABLED value: "true" - image: ghcr.io/oracle/cloud-provider-oci:v1.33.0 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 securityContext: privileged: true volumeMounts: diff --git a/manifests/flexvolume-driver/oci-flexvolume-driver.yaml b/manifests/flexvolume-driver/oci-flexvolume-driver.yaml index 370a847dc9..236cef03d8 100644 --- a/manifests/flexvolume-driver/oci-flexvolume-driver.yaml +++ b/manifests/flexvolume-driver/oci-flexvolume-driver.yaml @@ -40,7 +40,7 @@ spec: secretName: oci-flexvolume-driver containers: - name: oci-flexvolume-driver - image: ghcr.io/oracle/cloud-provider-oci:v1.33.0 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 command: ["/usr/local/bin/install.py", "-c", "/tmp/config.yaml"] securityContext: privileged: true @@ -76,7 +76,7 @@ spec: type: DirectoryOrCreate containers: - name: oci-flexvolume-driver - image: ghcr.io/oracle/cloud-provider-oci:v1.33.0 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 command: ["/usr/local/bin/install.py"] securityContext: privileged: true diff --git a/manifests/volume-provisioner/oci-volume-provisioner-fss.yaml b/manifests/volume-provisioner/oci-volume-provisioner-fss.yaml index 35afb92938..2cd5cc2b2f 100644 --- a/manifests/volume-provisioner/oci-volume-provisioner-fss.yaml +++ b/manifests/volume-provisioner/oci-volume-provisioner-fss.yaml @@ -35,7 +35,7 @@ spec: secretName: oci-volume-provisioner containers: - name: oci-volume-provisioner - image: ghcr.io/oracle/cloud-provider-oci:v1.33.0 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 command: ["/usr/local/bin/oci-volume-provisioner"] env: - name: NODE_NAME diff --git a/manifests/volume-provisioner/oci-volume-provisioner.yaml b/manifests/volume-provisioner/oci-volume-provisioner.yaml index 354ccc7c3a..03c4caf66c 100644 --- a/manifests/volume-provisioner/oci-volume-provisioner.yaml +++ b/manifests/volume-provisioner/oci-volume-provisioner.yaml @@ -35,7 +35,7 @@ spec: secretName: oci-volume-provisioner containers: - name: oci-volume-provisioner - image: ghcr.io/oracle/cloud-provider-oci:v1.33.0 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 command: ["/usr/local/bin/oci-volume-provisioner"] env: - name: NODE_NAME From 0b4d4dc6736edbf458bc85520af4ae6db1bf1a54 Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Fri, 6 Mar 2026 18:49:25 +0530 Subject: [PATCH 18/24] Updating manifests with 1.34.0 CPO images --- .../oci-cloud-controller-manager.yaml | 2 +- .../csi/templates/oci-csi-controller-driver.yaml | 16 ++++++++-------- .../csi/templates/oci-csi-node-driver.yaml | 2 +- .../oci-csi-controller-driver.yaml | 16 ++++++++-------- .../oci-csi-node-driver.yaml | 2 +- .../flexvolume-driver/oci-flexvolume-driver.yaml | 4 ++-- .../oci-volume-provisioner-fss.yaml | 2 +- .../oci-volume-provisioner.yaml | 2 +- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/manifests/cloud-controller-manager/oci-cloud-controller-manager.yaml b/manifests/cloud-controller-manager/oci-cloud-controller-manager.yaml index aa93034b75..39c2db878f 100644 --- a/manifests/cloud-controller-manager/oci-cloud-controller-manager.yaml +++ b/manifests/cloud-controller-manager/oci-cloud-controller-manager.yaml @@ -42,7 +42,7 @@ spec: path: /etc/kubernetes containers: - name: oci-cloud-controller-manager - image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.34.0-test command: ["/usr/local/bin/oci-cloud-controller-manager"] args: - --cloud-config=/etc/oci/cloud-provider.yaml diff --git a/manifests/container-storage-interface/csi/templates/oci-csi-controller-driver.yaml b/manifests/container-storage-interface/csi/templates/oci-csi-controller-driver.yaml index 3ad2c3011d..82fb746f8e 100644 --- a/manifests/container-storage-interface/csi/templates/oci-csi-controller-driver.yaml +++ b/manifests/container-storage-interface/csi/templates/oci-csi-controller-driver.yaml @@ -22,7 +22,7 @@ spec: node-role.kubernetes.io/control-plane: "" containers: - name: csi-volume-provisioner - image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1 + image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0 args: - --csi-address=/var/run/shared-tmpfs/csi.sock - --volume-name-prefix=csi @@ -37,7 +37,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: csi-fss-volume-provisioner - image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1 + image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0 args: - --csi-address=/var/run/shared-tmpfs/csi-fss.sock - --volume-name-prefix=csi-fss @@ -52,7 +52,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: csi-lustre-volume-provisioner - image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1 + image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0 args: - --csi-address=/var/run/shared-tmpfs/csi-lustre.sock - --volume-name-prefix=csi-lustre @@ -69,7 +69,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: csi-attacher - image: registry.k8s.io/sig-storage/csi-attacher:v4.6.1 + image: registry.k8s.io/sig-storage/csi-attacher:v4.8.1 args: - --csi-address=/var/run/shared-tmpfs/csi.sock - --timeout=120s @@ -82,7 +82,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: csi-resizer - image: registry.k8s.io/sig-storage/csi-resizer:v1.11.1 + image: registry.k8s.io/sig-storage/csi-resizer:v1.13.2 args: - --csi-address=/var/run/shared-tmpfs/csi.sock - --leader-election @@ -91,7 +91,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: snapshot-controller - image: registry.k8s.io/sig-storage/snapshot-controller:v6.3.0 + image: registry.k8s.io/sig-storage/snapshot-controller:v8.3.0 args: - --leader-election imagePullPolicy: "IfNotPresent" @@ -99,7 +99,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: csi-snapshotter - image: registry.k8s.io/sig-storage/csi-snapshotter:v6.3.0 + image: registry.k8s.io/sig-storage/csi-snapshotter:v8.3.0 args: - --csi-address=/var/run/shared-tmpfs/csi.sock - --leader-election @@ -114,7 +114,7 @@ spec: - --lustre-csi-endpoint=unix://var/run/shared-tmpfs/csi-lustre.sock command: - /usr/local/bin/oci-csi-controller-driver - image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.34.0-test imagePullPolicy: IfNotPresent env: - name: BLOCK_VOLUME_DRIVER_NAME diff --git a/manifests/container-storage-interface/csi/templates/oci-csi-node-driver.yaml b/manifests/container-storage-interface/csi/templates/oci-csi-node-driver.yaml index 2dbe1e9066..ca9bce5512 100644 --- a/manifests/container-storage-interface/csi/templates/oci-csi-node-driver.yaml +++ b/manifests/container-storage-interface/csi/templates/oci-csi-node-driver.yaml @@ -135,7 +135,7 @@ spec: value: "{{ if .Values.customHandle }}{{ .Values.customHandle }}.{{ end }}fss.csi.oraclecloud.com" - name: LUSTRE_VOLUME_DRIVER_NAME value: "{{ if .Values.customHandle }}{{ .Values.customHandle }}.{{ end }}lustre.csi.oraclecloud.com" - image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.34.0-test securityContext: privileged: true volumeMounts: diff --git a/manifests/container-storage-interface/oci-csi-controller-driver.yaml b/manifests/container-storage-interface/oci-csi-controller-driver.yaml index 8a3f4910c3..3a8640d793 100644 --- a/manifests/container-storage-interface/oci-csi-controller-driver.yaml +++ b/manifests/container-storage-interface/oci-csi-controller-driver.yaml @@ -22,7 +22,7 @@ spec: node-role.kubernetes.io/control-plane: "" containers: - name: csi-volume-provisioner - image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1 + image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0 args: - --csi-address=/var/run/shared-tmpfs/csi.sock - --volume-name-prefix=csi @@ -37,7 +37,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: csi-fss-volume-provisioner - image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1 + image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0 args: - --csi-address=/var/run/shared-tmpfs/csi-fss.sock - --volume-name-prefix=csi-fss @@ -52,7 +52,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: csi-lustre-volume-provisioner - image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1 + image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0 args: - --csi-address=/var/run/shared-tmpfs/csi-lustre.sock - --volume-name-prefix=csi-lustre @@ -69,7 +69,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: csi-attacher - image: registry.k8s.io/sig-storage/csi-attacher:v4.6.1 + image: registry.k8s.io/sig-storage/csi-attacher:v4.8.1 args: - --csi-address=/var/run/shared-tmpfs/csi.sock - --timeout=120s @@ -82,7 +82,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: csi-resizer - image: registry.k8s.io/sig-storage/csi-resizer:v1.11.1 + image: registry.k8s.io/sig-storage/csi-resizer:v1.13.2 args: - --csi-address=/var/run/shared-tmpfs/csi.sock - --leader-election @@ -91,7 +91,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: snapshot-controller - image: registry.k8s.io/sig-storage/snapshot-controller:v6.3.0 + image: registry.k8s.io/sig-storage/snapshot-controller:v8.3.0 args: - --leader-election imagePullPolicy: "IfNotPresent" @@ -99,7 +99,7 @@ spec: - mountPath: /var/run/shared-tmpfs name: shared-tmpfs - name: csi-snapshotter - image: registry.k8s.io/sig-storage/csi-snapshotter:v6.3.0 + image: registry.k8s.io/sig-storage/csi-snapshotter:v8.3.0 args: - --csi-address=/var/run/shared-tmpfs/csi.sock - --leader-election @@ -117,7 +117,7 @@ spec: env: - name: LUSTRE_CSI_CONTROLLER_DRIVER_ENABLED value: "true" - image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.34.0-test imagePullPolicy: IfNotPresent volumeMounts: - name: config diff --git a/manifests/container-storage-interface/oci-csi-node-driver.yaml b/manifests/container-storage-interface/oci-csi-node-driver.yaml index 99e6dfeede..19a5c5b06d 100644 --- a/manifests/container-storage-interface/oci-csi-node-driver.yaml +++ b/manifests/container-storage-interface/oci-csi-node-driver.yaml @@ -129,7 +129,7 @@ spec: value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/host/usr/bin:/host/sbin - name: LUSTRE_DRIVER_ENABLED value: "true" - image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.34.0-test securityContext: privileged: true volumeMounts: diff --git a/manifests/flexvolume-driver/oci-flexvolume-driver.yaml b/manifests/flexvolume-driver/oci-flexvolume-driver.yaml index 236cef03d8..2bba09be0f 100644 --- a/manifests/flexvolume-driver/oci-flexvolume-driver.yaml +++ b/manifests/flexvolume-driver/oci-flexvolume-driver.yaml @@ -40,7 +40,7 @@ spec: secretName: oci-flexvolume-driver containers: - name: oci-flexvolume-driver - image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.34.0-test command: ["/usr/local/bin/install.py", "-c", "/tmp/config.yaml"] securityContext: privileged: true @@ -76,7 +76,7 @@ spec: type: DirectoryOrCreate containers: - name: oci-flexvolume-driver - image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.34.0-test command: ["/usr/local/bin/install.py"] securityContext: privileged: true diff --git a/manifests/volume-provisioner/oci-volume-provisioner-fss.yaml b/manifests/volume-provisioner/oci-volume-provisioner-fss.yaml index 2cd5cc2b2f..c6ec0b6c24 100644 --- a/manifests/volume-provisioner/oci-volume-provisioner-fss.yaml +++ b/manifests/volume-provisioner/oci-volume-provisioner-fss.yaml @@ -35,7 +35,7 @@ spec: secretName: oci-volume-provisioner containers: - name: oci-volume-provisioner - image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.34.0-test command: ["/usr/local/bin/oci-volume-provisioner"] env: - name: NODE_NAME diff --git a/manifests/volume-provisioner/oci-volume-provisioner.yaml b/manifests/volume-provisioner/oci-volume-provisioner.yaml index 03c4caf66c..501625fe73 100644 --- a/manifests/volume-provisioner/oci-volume-provisioner.yaml +++ b/manifests/volume-provisioner/oci-volume-provisioner.yaml @@ -35,7 +35,7 @@ spec: secretName: oci-volume-provisioner containers: - name: oci-volume-provisioner - image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.33.1-test9 + image: ghcr.io/dhananjay-ng/cloud-provider-oci:v1.34.0-test command: ["/usr/local/bin/oci-volume-provisioner"] env: - name: NODE_NAME From 5402000dfbc16dd1888425a3019fd5a3656e981e Mon Sep 17 00:00:00 2001 From: Dhananjay Nagargoje Date: Fri, 6 Mar 2026 18:48:27 +0530 Subject: [PATCH 19/24] Upgrading go modules to k8s version 1.34.1 --- go.mod | 180 +- go.sum | 289 +- pkg/util/mock_kubeclient.go | 24 +- vendor/cel.dev/expr/.bazelversion | 2 +- vendor/cel.dev/expr/MODULE.bazel | 34 +- vendor/cel.dev/expr/cloudbuild.yaml | 2 +- vendor/cel.dev/expr/eval.pb.go | 361 +- .../cyphar/filepath-securejoin/.golangci.yml | 56 + .../cyphar/filepath-securejoin/CHANGELOG.md | 153 +- .../cyphar/filepath-securejoin/COPYING.md | 447 + .../{LICENSE => LICENSE.BSD} | 0 .../filepath-securejoin/LICENSE.MPL-2.0 | 373 + .../cyphar/filepath-securejoin/README.md | 21 +- .../cyphar/filepath-securejoin/VERSION | 2 +- .../cyphar/filepath-securejoin/codecov.yml | 29 + .../filepath-securejoin/deprecated_linux.go | 48 + .../cyphar/filepath-securejoin/doc.go | 34 +- .../gocompat_generics_go121.go | 32 - .../gocompat_generics_unsupported.go | 124 - .../internal/consts/consts.go | 15 + .../cyphar/filepath-securejoin/join.go | 23 +- .../filepath-securejoin/openat2_linux.go | 127 - .../filepath-securejoin/openat_linux.go | 59 - .../filepath-securejoin/pathrs-lite/README.md | 33 + .../filepath-securejoin/pathrs-lite/doc.go | 14 + .../pathrs-lite/internal/assert/assert.go | 30 + .../pathrs-lite/internal/errors_linux.go | 41 + .../pathrs-lite/internal/fd/at_linux.go | 148 + .../pathrs-lite/internal/fd/fd.go | 55 + .../pathrs-lite/internal/fd/fd_linux.go | 78 + .../pathrs-lite/internal/fd/mount_linux.go | 54 + .../pathrs-lite/internal/fd/openat2_linux.go | 62 + .../pathrs-lite/internal/gocompat/README.md | 10 + .../pathrs-lite/internal/gocompat/doc.go | 13 + .../gocompat}/gocompat_errors_go120.go | 7 +- .../gocompat}/gocompat_errors_unsupported.go | 8 +- .../gocompat/gocompat_generics_go121.go | 53 + .../gocompat/gocompat_generics_unsupported.go | 187 + .../internal/kernelversion/kernel_linux.go | 123 + .../pathrs-lite/internal/linux/doc.go | 12 + .../pathrs-lite/internal/linux/mount_linux.go | 47 + .../internal/linux/openat2_linux.go | 31 + .../internal/procfs/procfs_linux.go | 544 + .../internal/procfs/procfs_lookup_linux.go | 222 + .../{ => pathrs-lite}/lookup_linux.go | 61 +- .../{ => pathrs-lite}/mkdir_linux.go | 46 +- .../{ => pathrs-lite}/open_linux.go | 59 +- .../pathrs-lite/openat2_linux.go | 101 + .../pathrs-lite/procfs/procfs_linux.go | 157 + .../filepath-securejoin/procfs_linux.go | 452 - .../cyphar/filepath-securejoin/vfs.go | 2 + .../emicklei/go-restful/v3/CHANGES.md | 5 +- .../emicklei/go-restful/v3/README.md | 2 +- .../emicklei/go-restful/v3/jsr311.go | 19 +- .../emicklei/go-restful/v3/route.go | 2 + .../github.com/fsnotify/fsnotify/.cirrus.yml | 2 +- .../github.com/fsnotify/fsnotify/CHANGELOG.md | 35 +- .../fsnotify/fsnotify/CONTRIBUTING.md | 1 + vendor/github.com/fsnotify/fsnotify/README.md | 2 - .../fsnotify/fsnotify/backend_fen.go | 107 +- .../fsnotify/fsnotify/backend_inotify.go | 421 +- .../fsnotify/fsnotify/backend_kqueue.go | 112 +- .../fsnotify/fsnotify/backend_other.go | 5 +- .../fsnotify/fsnotify/backend_windows.go | 24 +- .../github.com/fsnotify/fsnotify/fsnotify.go | 10 +- .../fsnotify/fsnotify/internal/darwin.go | 6 +- .../fsnotify/fsnotify/internal/freebsd.go | 4 +- .../fsnotify/fsnotify/internal/unix.go | 6 +- .../fsnotify/fsnotify/internal/windows.go | 4 +- vendor/github.com/fsnotify/fsnotify/shared.go | 64 + .../fsnotify/fsnotify/staticcheck.conf | 3 + vendor/github.com/fxamacker/cbor/v2/README.md | 607 +- .../fxamacker/cbor/v2/bytestring.go | 27 + vendor/github.com/fxamacker/cbor/v2/cache.go | 25 +- vendor/github.com/fxamacker/cbor/v2/common.go | 9 + vendor/github.com/fxamacker/cbor/v2/decode.go | 425 +- vendor/github.com/fxamacker/cbor/v2/doc.go | 51 +- vendor/github.com/fxamacker/cbor/v2/encode.go | 442 +- .../fxamacker/cbor/v2/encode_map.go | 10 +- .../fxamacker/cbor/v2/encode_map_go117.go | 60 - .../fxamacker/cbor/v2/omitzero_go124.go | 8 + .../fxamacker/cbor/v2/omitzero_pre_go124.go | 8 + .../fxamacker/cbor/v2/simplevalue.go | 29 + vendor/github.com/fxamacker/cbor/v2/stream.go | 4 +- .../fxamacker/cbor/v2/structfields.go | 18 +- vendor/github.com/fxamacker/cbor/v2/tag.go | 48 +- vendor/github.com/go-logr/logr/.golangci.yaml | 16 +- vendor/github.com/go-logr/logr/funcr/funcr.go | 8 +- .../github.com/google/cel-go/cel/BUILD.bazel | 13 +- vendor/github.com/google/cel-go/cel/decls.go | 70 +- vendor/github.com/google/cel-go/cel/env.go | 233 +- .../github.com/google/cel-go/cel/folding.go | 60 +- vendor/github.com/google/cel-go/cel/io.go | 57 +- .../github.com/google/cel-go/cel/library.go | 409 +- vendor/github.com/google/cel-go/cel/macro.go | 30 +- .../github.com/google/cel-go/cel/options.go | 227 +- .../github.com/google/cel-go/cel/program.go | 274 +- vendor/github.com/google/cel-go/cel/prompt.go | 155 + .../cel-go/cel/templates/authoring.tmpl | 56 + .../github.com/google/cel-go/cel/validator.go | 70 +- .../google/cel-go/checker/checker.go | 11 + .../github.com/google/cel-go/checker/cost.go | 7 +- .../google/cel-go/checker/decls/decls.go | 37 +- .../google/cel-go/checker/errors.go | 4 + .../google/cel-go/common/BUILD.bazel | 2 + .../google/cel-go/common/ast/ast.go | 78 + .../google/cel-go/common/ast/navigable.go | 7 +- .../cel-go/common/containers/container.go | 14 +- .../google/cel-go/common/decls/BUILD.bazel | 2 + .../google/cel-go/common/decls/decls.go | 287 +- vendor/github.com/google/cel-go/common/doc.go | 154 + .../google/cel-go/common/env/BUILD.bazel | 50 + .../google/cel-go/common/env/env.go | 887 ++ .../google/cel-go/common/stdlib/BUILD.bazel | 1 + .../google/cel-go/common/stdlib/standard.go | 702 +- .../google/cel-go/common/types/BUILD.bazel | 1 + .../google/cel-go/common/types/bool.go | 9 + .../google/cel-go/common/types/bytes.go | 15 + .../google/cel-go/common/types/double.go | 22 + .../google/cel-go/common/types/duration.go | 5 + .../google/cel-go/common/types/format.go | 42 + .../google/cel-go/common/types/int.go | 5 + .../google/cel-go/common/types/list.go | 16 + .../google/cel-go/common/types/map.go | 36 + .../google/cel-go/common/types/null.go | 5 + .../google/cel-go/common/types/object.go | 29 + .../google/cel-go/common/types/optional.go | 11 + .../google/cel-go/common/types/string.go | 4 + .../google/cel-go/common/types/timestamp.go | 4 + .../google/cel-go/common/types/types.go | 11 +- .../google/cel-go/common/types/uint.go | 6 + .../github.com/google/cel-go/ext/BUILD.bazel | 17 +- vendor/github.com/google/cel-go/ext/README.md | 30 +- .../github.com/google/cel-go/ext/bindings.go | 10 +- .../cel-go/ext/extension_option_factory.go | 75 + .../google/cel-go/ext/formatting.go | 25 +- .../google/cel-go/ext/formatting_v2.go | 788 + vendor/github.com/google/cel-go/ext/lists.go | 268 +- vendor/github.com/google/cel-go/ext/math.go | 47 + vendor/github.com/google/cel-go/ext/native.go | 2 +- vendor/github.com/google/cel-go/ext/regex.go | 332 + vendor/github.com/google/cel-go/ext/sets.go | 14 +- .../github.com/google/cel-go/ext/strings.go | 63 +- .../google/cel-go/interpreter/activation.go | 14 +- .../cel-go/interpreter/attribute_patterns.go | 2 +- .../cel-go/interpreter/interpretable.go | 86 +- .../google/cel-go/interpreter/interpreter.go | 188 +- .../google/cel-go/interpreter/planner.go | 48 +- .../google/cel-go/interpreter/runtimecost.go | 225 +- .../github.com/google/cel-go/parser/macro.go | 181 +- .../google/gnostic-models/compiler/context.go | 2 +- .../gnostic-models/compiler/extensions.go | 2 +- .../google/gnostic-models/compiler/helpers.go | 2 +- .../google/gnostic-models/compiler/reader.go | 2 +- .../gnostic-models/jsonschema/models.go | 2 +- .../gnostic-models/jsonschema/reader.go | 2 +- .../gnostic-models/jsonschema/writer.go | 2 +- .../gnostic-models/openapiv2/OpenAPIv2.go | 80 +- .../gnostic-models/openapiv2/document.go | 2 +- .../gnostic-models/openapiv3/OpenAPIv3.go | 24 +- .../gnostic-models/openapiv3/document.go | 2 +- vendor/github.com/google/shlex/COPYING | 202 - vendor/github.com/google/shlex/README | 2 - vendor/github.com/google/shlex/shlex.go | 416 - .../protoc-gen-openapiv2/options/BUILD.bazel | 44 + .../options/annotations.pb.go | 269 + .../options/annotations.proto | 51 + .../options/annotations_protoopaque.pb.go | 269 + .../protoc-gen-openapiv2/options/buf.gen.yaml | 7 + .../options/openapiv2.pb.go | 4263 ++++++ .../options/openapiv2.proto | 759 + .../options/openapiv2_protoopaque.pb.go | 4055 +++++ .../grpc-gateway/v2/runtime/errors.go | 32 +- .../grpc-gateway/v2/runtime/handler.go | 12 +- .../grpc-gateway/v2/runtime/mux.go | 8 + .../grpc-gateway/v2/runtime/query.go | 16 +- .../modern-go/reflect2/safe_type.go | 22 +- .../selinux/go-selinux/selinux.go | 26 +- .../selinux/go-selinux/selinux_linux.go | 307 +- .../selinux/go-selinux/selinux_stub.go | 12 +- .../prometheus/internal/difflib.go | 4 +- .../client_golang/prometheus/metric.go | 25 +- .../prometheus/process_collector_darwin.go | 6 +- .../process_collector_mem_nocgo_darwin.go | 2 +- .../process_collector_procfsenabled.go | 8 +- .../prometheus/promhttp/instrument_server.go | 2 +- .../client_golang/prometheus/vec.go | 10 +- .../client_golang/prometheus/wrap.go | 36 +- .../prometheus/common/expfmt/text_parse.go | 4 +- .../prometheus/common/model/alert.go | 2 +- .../prometheus/common/model/labels.go | 5 +- .../prometheus/common/model/metric.go | 28 +- .../prometheus/common/model/time.go | 25 +- .../prometheus/procfs/.golangci.yml | 63 +- .../prometheus/procfs/Makefile.common | 10 +- vendor/github.com/prometheus/procfs/README.md | 6 +- vendor/github.com/prometheus/procfs/arp.go | 4 +- vendor/github.com/prometheus/procfs/fs.go | 10 +- .../prometheus/procfs/fs_statfs_notype.go | 4 +- .../github.com/prometheus/procfs/fscache.go | 6 +- .../prometheus/procfs/internal/fs/fs.go | 3 + .../prometheus/procfs/internal/util/parse.go | 14 + .../procfs/internal/util/sysreadfile.go | 20 + .../prometheus/procfs/mountstats.go | 27 +- .../prometheus/procfs/net_dev_snmp6.go | 96 + .../prometheus/procfs/net_ip_socket.go | 8 +- .../prometheus/procfs/net_protocols.go | 21 +- .../github.com/prometheus/procfs/net_tcp.go | 4 + .../github.com/prometheus/procfs/net_unix.go | 8 +- vendor/github.com/prometheus/procfs/proc.go | 8 +- .../prometheus/procfs/proc_cgroup.go | 2 +- .../github.com/prometheus/procfs/proc_io.go | 2 +- .../prometheus/procfs/proc_netstat.go | 224 +- .../prometheus/procfs/proc_smaps.go | 4 +- .../github.com/prometheus/procfs/proc_snmp.go | 120 +- .../prometheus/procfs/proc_snmp6.go | 150 +- .../prometheus/procfs/proc_status.go | 18 +- .../github.com/prometheus/procfs/proc_sys.go | 2 +- .../github.com/prometheus/procfs/softirqs.go | 22 +- .../testify/assert/assertion_compare.go | 22 +- .../testify/assert/assertion_format.go | 51 +- .../testify/assert/assertion_forward.go | 102 +- .../testify/assert/assertion_order.go | 2 +- .../stretchr/testify/assert/assertions.go | 367 +- .../github.com/stretchr/testify/assert/doc.go | 4 + .../testify/assert/http_assertions.go | 4 +- .../testify/assert/yaml/yaml_custom.go | 1 - .../testify/assert/yaml/yaml_default.go | 1 - .../stretchr/testify/assert/yaml/yaml_fail.go | 1 - .../go.etcd.io/etcd/api/v3/authpb/auth.pb.go | 47 +- .../go.etcd.io/etcd/api/v3/authpb/auth.proto | 2 + .../etcd/api/v3/etcdserverpb/etcdserver.pb.go | 52 +- .../etcd/api/v3/etcdserverpb/etcdserver.proto | 2 + .../api/v3/etcdserverpb/raft_internal.pb.go | 192 +- .../api/v3/etcdserverpb/raft_internal.proto | 22 +- .../v3/etcdserverpb/raft_internal_stringer.go | 12 +- .../etcd/api/v3/etcdserverpb/rpc.pb.go | 1291 +- .../etcd/api/v3/etcdserverpb/rpc.proto | 343 +- .../etcd/api/v3/membershippb/membership.pb.go | 53 +- .../etcd/api/v3/membershippb/membership.proto | 15 + vendor/go.etcd.io/etcd/api/v3/mvccpb/kv.pb.go | 42 +- vendor/go.etcd.io/etcd/api/v3/mvccpb/kv.proto | 2 + .../etcd/api/v3/v3rpc/rpctypes/error.go | 168 +- .../api/v3/v3rpc/rpctypes/metadatafields.go | 3 + .../go.etcd.io/etcd/api/v3/version/version.go | 31 +- .../etcd/api/v3/versionpb/version.pb.go | 91 + .../etcd/api/v3/versionpb/version.proto | 30 + .../etcd/client/pkg/v3/fileutil/dir_unix.go | 3 +- .../client/pkg/v3/fileutil/dir_windows.go | 3 +- .../etcd/client/pkg/v3/fileutil/fileutil.go | 27 +- .../etcd/client/pkg/v3/fileutil/lock.go | 4 +- .../etcd/client/pkg/v3/fileutil/lock_flock.go | 4 +- .../etcd/client/pkg/v3/fileutil/lock_linux.go | 8 +- .../client/pkg/v3/fileutil/lock_solaris.go | 1 - .../etcd/client/pkg/v3/fileutil/lock_unix.go | 1 - .../client/pkg/v3/fileutil/lock_windows.go | 47 +- .../client/pkg/v3/fileutil/preallocate.go | 6 +- .../pkg/v3/fileutil/preallocate_darwin.go | 4 +- .../pkg/v3/fileutil/preallocate_unix.go | 10 +- .../v3/fileutil/preallocate_unsupported.go | 1 - .../etcd/client/pkg/v3/fileutil/purge.go | 38 +- .../etcd/client/pkg/v3/fileutil/sync.go | 1 - .../client/pkg/v3/fileutil/sync_darwin.go | 1 - .../etcd/client/pkg/v3/fileutil/sync_linux.go | 1 - .../etcd/client/pkg/v3/logutil/log_format.go | 42 + .../etcd/client/pkg/v3/logutil/zap.go | 49 +- .../etcd/client/pkg/v3/logutil/zap_journal.go | 5 +- .../etcd/client/pkg/v3/tlsutil/tlsutil.go | 8 +- .../pkg/v3/transport/keepalive_listener.go | 12 +- .../client/pkg/v3/transport/limit_listen.go | 4 +- .../etcd/client/pkg/v3/transport/listener.go | 190 +- .../client/pkg/v3/transport/listener_opts.go | 14 + .../client/pkg/v3/transport/listener_tls.go | 11 +- .../etcd/client/pkg/v3/transport/sockopt.go | 14 + .../pkg/v3/transport/sockopt_solaris.go | 5 +- .../client/pkg/v3/transport/sockopt_unix.go | 3 +- .../client/pkg/v3/transport/sockopt_wasm.go | 30 + .../pkg/v3/transport/sockopt_windows.go | 21 +- .../etcd/client/pkg/v3/transport/tls.go | 3 +- .../etcd/client/pkg/v3/transport/transport.go | 13 +- .../go.etcd.io/etcd/client/pkg/v3/types/id.go | 19 +- .../etcd/client/pkg/v3/types/set.go | 2 +- .../etcd/client/pkg/v3/verify/verify.go | 80 + vendor/go.etcd.io/etcd/client/v3/OWNERS | 4 + vendor/go.etcd.io/etcd/client/v3/README.md | 22 +- vendor/go.etcd.io/etcd/client/v3/auth.go | 3 +- vendor/go.etcd.io/etcd/client/v3/client.go | 130 +- vendor/go.etcd.io/etcd/client/v3/cluster.go | 12 +- vendor/go.etcd.io/etcd/client/v3/compare.go | 12 +- vendor/go.etcd.io/etcd/client/v3/config.go | 129 +- .../etcd/client/v3/credentials/credentials.go | 86 +- vendor/go.etcd.io/etcd/client/v3/ctx.go | 3 +- vendor/go.etcd.io/etcd/client/v3/doc.go | 5 +- .../client/v3/internal/endpoint/endpoint.go | 26 +- .../client/v3/internal/resolver/resolver.go | 11 +- .../etcd/client/v3/kubernetes/interface.go | 10 +- vendor/go.etcd.io/etcd/client/v3/kv.go | 20 +- vendor/go.etcd.io/etcd/client/v3/lease.go | 27 +- vendor/go.etcd.io/etcd/client/v3/logger.go | 5 +- .../go.etcd.io/etcd/client/v3/maintenance.go | 159 +- vendor/go.etcd.io/etcd/client/v3/op.go | 35 +- vendor/go.etcd.io/etcd/client/v3/options.go | 2 +- vendor/go.etcd.io/etcd/client/v3/retry.go | 45 +- .../etcd/client/v3/retry_interceptor.go | 92 +- vendor/go.etcd.io/etcd/client/v3/sort.go | 6 +- vendor/go.etcd.io/etcd/client/v3/txn.go | 4 +- vendor/go.etcd.io/etcd/client/v3/watch.go | 77 +- .../grpc/otelgrpc/stats_handler.go | 51 +- .../grpc/otelgrpc/version.go | 2 +- vendor/go.opentelemetry.io/otel/.gitignore | 1 + vendor/go.opentelemetry.io/otel/.golangci.yml | 103 +- vendor/go.opentelemetry.io/otel/CHANGELOG.md | 44 +- .../go.opentelemetry.io/otel/CONTRIBUTING.md | 12 + vendor/go.opentelemetry.io/otel/Makefile | 39 +- vendor/go.opentelemetry.io/otel/README.md | 13 +- vendor/go.opentelemetry.io/otel/RELEASING.md | 11 +- .../otel/dependencies.Dockerfile | 3 + .../otlp/otlptrace/otlptracegrpc/client.go | 2 +- .../otel/exporters/otlp/otlptrace/version.go | 2 +- vendor/go.opentelemetry.io/otel/renovate.json | 6 +- .../go.opentelemetry.io/otel/requirements.txt | 2 +- vendor/go.opentelemetry.io/otel/trace/auto.go | 661 + .../otel/trace/internal/telemetry/attr.go | 58 + .../otel/trace/internal/telemetry/doc.go | 8 + .../otel/trace/internal/telemetry/id.go | 103 + .../otel/trace/internal/telemetry/number.go | 67 + .../otel/trace/internal/telemetry/resource.go | 66 + .../otel/trace/internal/telemetry/scope.go | 67 + .../otel/trace/internal/telemetry/span.go | 460 + .../otel/trace/internal/telemetry/status.go | 40 + .../otel/trace/internal/telemetry/traces.go | 189 + .../otel/trace/internal/telemetry/value.go | 453 + vendor/go.opentelemetry.io/otel/trace/noop.go | 20 +- vendor/go.opentelemetry.io/otel/version.go | 2 +- vendor/go.opentelemetry.io/otel/versions.yaml | 7 +- vendor/go.yaml.in/yaml/v2/.travis.yml | 17 + .../v4 => go.yaml.in/yaml/v2}/LICENSE | 0 .../yaml/v2}/LICENSE.libyaml | 0 .../goyaml.v2 => go.yaml.in/yaml/v2}/NOTICE | 0 .../yaml/v2}/README.md | 20 +- .../goyaml.v2 => go.yaml.in/yaml/v2}/apic.go | 0 .../yaml/v2}/decode.go | 0 .../yaml/v2}/emitterc.go | 0 .../yaml/v2}/encode.go | 0 .../yaml/v2}/parserc.go | 0 .../yaml/v2}/readerc.go | 0 .../yaml/v2}/resolve.go | 0 .../yaml/v2}/scannerc.go | 0 .../yaml/v2}/sorter.go | 0 .../yaml/v2}/writerc.go | 0 .../goyaml.v2 => go.yaml.in/yaml/v2}/yaml.go | 2 +- .../goyaml.v2 => go.yaml.in/yaml/v2}/yamlh.go | 0 .../yaml/v2}/yamlprivateh.go | 0 .../goyaml.v3 => go.yaml.in/yaml/v3}/LICENSE | 0 .../goyaml.v3 => go.yaml.in/yaml/v3}/NOTICE | 0 vendor/go.yaml.in/yaml/v3/README.md | 171 + .../goyaml.v3 => go.yaml.in/yaml/v3}/apic.go | 8 +- .../yaml/v3}/decode.go | 24 +- .../yaml/v3}/emitterc.go | 19 +- .../yaml/v3}/encode.go | 0 .../yaml/v3}/parserc.go | 140 +- .../yaml/v3}/readerc.go | 8 +- .../yaml/v3}/resolve.go | 0 .../yaml/v3}/scannerc.go | 42 +- .../yaml/v3}/sorter.go | 0 .../yaml/v3}/writerc.go | 8 +- .../goyaml.v3 => go.yaml.in/yaml/v3}/yaml.go | 85 +- .../goyaml.v3 => go.yaml.in/yaml/v3}/yamlh.go | 10 +- .../yaml/v3}/yamlprivateh.go | 20 +- vendor/golang.org/x/net/http2/frame.go | 16 +- vendor/golang.org/x/net/http2/http2.go | 2 - vendor/golang.org/x/net/trace/events.go | 2 +- vendor/golang.org/x/oauth2/internal/doc.go | 2 +- vendor/golang.org/x/oauth2/internal/oauth2.go | 2 +- vendor/golang.org/x/oauth2/internal/token.go | 50 +- .../golang.org/x/oauth2/internal/transport.go | 4 +- vendor/golang.org/x/oauth2/oauth2.go | 55 +- vendor/golang.org/x/oauth2/pkce.go | 15 +- vendor/golang.org/x/oauth2/token.go | 17 +- vendor/golang.org/x/oauth2/transport.go | 24 +- vendor/golang.org/x/sync/errgroup/errgroup.go | 118 +- vendor/golang.org/x/sys/unix/mkerrors.sh | 3 + .../golang.org/x/sys/unix/syscall_darwin.go | 56 +- vendor/golang.org/x/sys/unix/zerrors_linux.go | 63 +- .../x/sys/unix/zerrors_linux_386.go | 3 + .../x/sys/unix/zerrors_linux_amd64.go | 3 + .../x/sys/unix/zerrors_linux_arm.go | 3 + .../x/sys/unix/zerrors_linux_arm64.go | 3 + .../x/sys/unix/zerrors_linux_loong64.go | 3 + .../x/sys/unix/zerrors_linux_mips.go | 3 + .../x/sys/unix/zerrors_linux_mips64.go | 3 + .../x/sys/unix/zerrors_linux_mips64le.go | 3 + .../x/sys/unix/zerrors_linux_mipsle.go | 3 + .../x/sys/unix/zerrors_linux_ppc.go | 3 + .../x/sys/unix/zerrors_linux_ppc64.go | 3 + .../x/sys/unix/zerrors_linux_ppc64le.go | 3 + .../x/sys/unix/zerrors_linux_riscv64.go | 3 + .../x/sys/unix/zerrors_linux_s390x.go | 3 + .../x/sys/unix/zerrors_linux_sparc64.go | 3 + .../x/sys/unix/zsysnum_linux_386.go | 1 + .../x/sys/unix/zsysnum_linux_amd64.go | 1 + .../x/sys/unix/zsysnum_linux_arm.go | 1 + .../x/sys/unix/zsysnum_linux_arm64.go | 1 + .../x/sys/unix/zsysnum_linux_loong64.go | 1 + .../x/sys/unix/zsysnum_linux_mips.go | 1 + .../x/sys/unix/zsysnum_linux_mips64.go | 1 + .../x/sys/unix/zsysnum_linux_mips64le.go | 1 + .../x/sys/unix/zsysnum_linux_mipsle.go | 1 + .../x/sys/unix/zsysnum_linux_ppc.go | 1 + .../x/sys/unix/zsysnum_linux_ppc64.go | 1 + .../x/sys/unix/zsysnum_linux_ppc64le.go | 1 + .../x/sys/unix/zsysnum_linux_riscv64.go | 1 + .../x/sys/unix/zsysnum_linux_s390x.go | 1 + .../x/sys/unix/zsysnum_linux_sparc64.go | 1 + vendor/golang.org/x/sys/unix/ztypes_linux.go | 139 +- .../golang.org/x/sys/unix/ztypes_linux_386.go | 18 +- .../x/sys/unix/ztypes_linux_amd64.go | 16 + .../golang.org/x/sys/unix/ztypes_linux_arm.go | 20 +- .../x/sys/unix/ztypes_linux_arm64.go | 16 + .../x/sys/unix/ztypes_linux_loong64.go | 16 + .../x/sys/unix/ztypes_linux_mips.go | 18 +- .../x/sys/unix/ztypes_linux_mips64.go | 16 + .../x/sys/unix/ztypes_linux_mips64le.go | 16 + .../x/sys/unix/ztypes_linux_mipsle.go | 18 +- .../golang.org/x/sys/unix/ztypes_linux_ppc.go | 20 +- .../x/sys/unix/ztypes_linux_ppc64.go | 16 + .../x/sys/unix/ztypes_linux_ppc64le.go | 16 + .../x/sys/unix/ztypes_linux_riscv64.go | 16 + .../x/sys/unix/ztypes_linux_s390x.go | 16 + .../x/sys/unix/ztypes_linux_sparc64.go | 16 + vendor/golang.org/x/term/term_windows.go | 4 +- vendor/golang.org/x/term/terminal.go | 9 +- .../golang.org/x/tools/go/packages/golist.go | 18 +- .../x/tools/go/packages/golist_overlay.go | 2 +- .../x/tools/go/types/objectpath/objectpath.go | 2 +- .../internal/packagesinternal/packages.go | 6 + .../internal/typesinternal/classify_call.go | 8 +- .../x/tools/internal/typesinternal/types.go | 61 +- .../delegatingresolver/delegatingresolver.go | 173 +- .../grpc/internal/transport/http2_client.go | 5 +- .../grpc/internal/transport/http_util.go | 4 +- vendor/google.golang.org/grpc/version.go | 2 +- .../editiondefaults/editions_defaults.binpb | Bin 138 -> 146 bytes .../protobuf/internal/filedesc/editions.go | 3 + .../protobuf/internal/genid/descriptor_gen.go | 16 + ...ings_unsafe_go121.go => strings_unsafe.go} | 2 - .../internal/strs/strings_unsafe_go120.go | 94 - .../protobuf/internal/version/version.go | 2 +- .../google.golang.org/protobuf/proto/merge.go | 6 + .../reflect/protoreflect/source_gen.go | 2 + ...{value_unsafe_go121.go => value_unsafe.go} | 2 - .../protoreflect/value_unsafe_go120.go | 98 - .../types/descriptorpb/descriptor.pb.go | 1439 +- .../types/gofeaturespb/go_features.pb.go | 80 +- .../protobuf/types/known/anypb/any.pb.go | 24 +- .../types/known/durationpb/duration.pb.go | 25 +- .../protobuf/types/known/emptypb/empty.pb.go | 20 +- .../types/known/fieldmaskpb/field_mask.pb.go | 23 +- .../types/known/structpb/struct.pb.go | 74 +- .../types/known/timestamppb/timestamp.pb.go | 25 +- .../types/known/wrapperspb/wrappers.pb.go | 103 +- .../v1beta1/generated.pb.go | 5038 ++++-- .../v1beta1/generated.proto | 301 + .../admissionregistration/v1beta1/register.go | 4 + .../admissionregistration/v1beta1/types.go | 331 +- .../v1beta1/types_swagger_doc_generated.go | 95 + .../v1beta1/zz_generated.deepcopy.go | 254 +- .../zz_generated.prerelease-lifecycle.go | 72 + vendor/k8s.io/api/apps/v1/generated.proto | 2 +- vendor/k8s.io/api/apps/v1/types.go | 2 +- .../apps/v1/types_swagger_doc_generated.go | 2 +- .../k8s.io/api/apps/v1beta1/generated.proto | 3 + vendor/k8s.io/api/apps/v1beta1/types.go | 4 + .../k8s.io/api/apps/v1beta2/generated.proto | 5 +- vendor/k8s.io/api/apps/v1beta2/types.go | 6 +- .../v1beta2/types_swagger_doc_generated.go | 2 +- .../api/authorization/v1/generated.proto | 6 - vendor/k8s.io/api/authorization/v1/types.go | 6 - .../v1/types_swagger_doc_generated.go | 4 +- .../k8s.io/api/autoscaling/v1/generated.proto | 3 + vendor/k8s.io/api/autoscaling/v1/types.go | 4 + vendor/k8s.io/api/batch/v1/generated.proto | 7 +- vendor/k8s.io/api/batch/v1/types.go | 7 +- .../batch/v1/types_swagger_doc_generated.go | 6 +- .../api/certificates/v1/generated.proto | 7 + vendor/k8s.io/api/certificates/v1/types.go | 7 + .../api/certificates/v1alpha1/generated.pb.go | 1511 +- .../api/certificates/v1alpha1/generated.proto | 205 + .../api/certificates/v1alpha1/register.go | 2 + .../k8s.io/api/certificates/v1alpha1/types.go | 231 + .../v1alpha1/types_swagger_doc_generated.go | 52 + .../v1alpha1/zz_generated.deepcopy.go | 128 + .../zz_generated.prerelease-lifecycle.go | 36 + .../api/certificates/v1beta1/generated.proto | 7 + .../k8s.io/api/certificates/v1beta1/types.go | 7 + vendor/k8s.io/api/core/v1/generated.pb.go | 5809 ++++--- vendor/k8s.io/api/core/v1/generated.proto | 305 +- vendor/k8s.io/api/core/v1/types.go | 320 +- .../core/v1/types_swagger_doc_generated.go | 149 +- .../api/core/v1/zz_generated.deepcopy.go | 155 + vendor/k8s.io/api/extensions/v1beta1/doc.go | 2 + .../api/extensions/v1beta1/generated.proto | 5 +- vendor/k8s.io/api/extensions/v1beta1/types.go | 6 +- .../v1beta1/types_swagger_doc_generated.go | 2 +- .../v1beta1/zz_generated.validations.go | 78 + .../k8s.io/api/networking/v1/generated.proto | 7 +- vendor/k8s.io/api/networking/v1/types.go | 7 +- .../v1/types_swagger_doc_generated.go | 2 +- .../api/networking/v1alpha1/generated.pb.go | 1929 --- .../api/networking/v1alpha1/generated.proto | 142 - .../k8s.io/api/networking/v1alpha1/types.go | 154 - .../v1alpha1/types_swagger_doc_generated.go | 110 - .../networking/v1alpha1/well_known_labels.go | 33 - .../v1alpha1/zz_generated.deepcopy.go | 229 - .../zz_generated.prerelease-lifecycle.go | 94 - vendor/k8s.io/api/resource/v1/devicetaint.go | 35 + .../v1alpha1 => resource/v1}/doc.go | 9 +- vendor/k8s.io/api/resource/v1/generated.pb.go | 12777 ++++++++++++++++ vendor/k8s.io/api/resource/v1/generated.proto | 1589 ++ vendor/k8s.io/api/resource/v1/register.go | 60 + vendor/k8s.io/api/resource/v1/types.go | 1873 +++ .../v1/types_swagger_doc_generated.go | 510 + .../api/resource/v1/zz_generated.deepcopy.go | 1257 ++ .../v1/zz_generated.prerelease-lifecycle.go | 70 + .../api/resource/v1alpha3/devicetaint.go | 35 + .../api/resource/v1alpha3/generated.pb.go | 11648 +------------- .../api/resource/v1alpha3/generated.proto | 1160 +- .../k8s.io/api/resource/v1alpha3/register.go | 8 - vendor/k8s.io/api/resource/v1alpha3/types.go | 1534 +- .../v1alpha3/types_swagger_doc_generated.go | 395 - .../v1alpha3/zz_generated.deepcopy.go | 1099 +- .../zz_generated.prerelease-lifecycle.go | 196 - .../api/resource/v1beta1/generated.pb.go | 2280 ++- .../api/resource/v1beta1/generated.proto | 313 +- vendor/k8s.io/api/resource/v1beta1/types.go | 331 +- .../v1beta1/types_swagger_doc_generated.go | 102 +- .../resource/v1beta1/zz_generated.deepcopy.go | 165 + .../api/resource/v1beta2/generated.pb.go | 2520 ++- .../api/resource/v1beta2/generated.proto | 313 +- vendor/k8s.io/api/resource/v1beta2/types.go | 331 +- .../v1beta2/types_swagger_doc_generated.go | 104 +- .../resource/v1beta2/zz_generated.deepcopy.go | 165 + vendor/k8s.io/api/storage/v1/generated.pb.go | 828 +- vendor/k8s.io/api/storage/v1/generated.proto | 47 +- vendor/k8s.io/api/storage/v1/register.go | 3 + vendor/k8s.io/api/storage/v1/types.go | 59 +- .../storage/v1/types_swagger_doc_generated.go | 27 +- .../api/storage/v1/zz_generated.deepcopy.go | 66 + .../v1/zz_generated.prerelease-lifecycle.go | 12 + vendor/k8s.io/api/storage/v1alpha1/types.go | 4 + .../zz_generated.prerelease-lifecycle.go | 12 + .../api/storage/v1beta1/generated.proto | 7 +- vendor/k8s.io/api/storage/v1beta1/types.go | 11 +- .../v1beta1/types_swagger_doc_generated.go | 6 +- .../zz_generated.prerelease-lifecycle.go | 12 + .../pkg/apis/apiextensions/v1/conversion.go | 2 +- .../pkg/apis/apiextensions/v1/defaults.go | 4 +- .../apis/apiextensions/v1beta1/conversion.go | 2 +- .../apis/apiextensions/v1beta1/defaults.go | 6 +- .../v1/customresourcedefinition.go | 17 + .../v1beta1/customresourcedefinition.go | 17 + .../pkg/features/kube_features.go | 14 +- .../apimachinery/pkg/api/errors/errors.go | 2 +- .../pkg/api/operation/operation.go | 50 +- .../k8s.io/apimachinery/pkg/api/safe/safe.go | 30 +- .../pkg/api/validate/content/errors.go | 10 + .../apimachinery/pkg/api/validate/each.go | 120 +- .../apimachinery/pkg/api/validate/enum.go | 40 + .../apimachinery/pkg/api/validate/equality.go | 38 + .../pkg/api/validate/immutable.go | 20 +- .../apimachinery/pkg/api/validate/item.go | 72 + .../apimachinery/pkg/api/validate/required.go | 2 +- .../apimachinery/pkg/api/validate/subfield.go | 5 + .../apimachinery/pkg/api/validate/union.go | 212 + .../pkg/api/validate/zeroorone.go | 54 + .../pkg/api/validation/objectmeta.go | 6 +- .../apimachinery/pkg/apis/meta/v1/types.go | 16 +- .../pkg/apis/meta/v1/validation/validation.go | 4 +- .../k8s.io/apimachinery/pkg/labels/labels.go | 9 + .../apimachinery/pkg/labels/selector.go | 32 +- .../apimachinery/pkg/runtime/converter.go | 29 +- .../apimachinery/pkg/runtime/interfaces.go | 6 + .../k8s.io/apimachinery/pkg/runtime/scheme.go | 78 +- .../pkg/runtime/serializer/cbor/cbor.go | 6 - .../runtime/serializer/cbor/direct/direct.go | 22 +- .../serializer/cbor/internal/modes/custom.go | 422 - .../serializer/cbor/internal/modes/decode.go | 22 +- .../serializer/cbor/internal/modes/encode.go | 24 +- .../cbor/internal/modes/transcoding.go | 108 + .../apimachinery/pkg/util/diff/cmp.go} | 24 +- .../k8s.io/apimachinery/pkg/util/diff/diff.go | 142 +- .../apimachinery/pkg/util/diff/legacy_diff.go | 67 + .../apimachinery/pkg/util/errors/errors.go | 2 + .../pkg/util/httpstream/spdy/roundtripper.go | 2 +- .../pkg/util/managedfields/extract.go | 4 +- .../pkg/util/managedfields/fieldmanager.go | 2 +- .../pkg/util/managedfields/gvkparser.go | 4 +- .../managedfields/internal/capmanagers.go | 2 +- .../util/managedfields/internal/conflict.go | 4 +- .../managedfields/internal/fieldmanager.go | 2 +- .../pkg/util/managedfields/internal/fields.go | 2 +- .../internal/lastappliedmanager.go | 4 +- .../managedfields/internal/managedfields.go | 2 +- .../internal/managedfieldsupdater.go | 2 +- .../util/managedfields/internal/manager.go | 2 +- .../managedfields/internal/pathelement.go | 4 +- .../internal/runtimetypeconverter.go | 62 + .../managedfields/internal/skipnonapplied.go | 3 + .../util/managedfields/internal/stripmeta.go | 2 +- .../managedfields/internal/structuredmerge.go | 6 +- .../managedfields/internal/typeconverter.go | 6 +- .../internal/versionconverter.go | 6 +- .../pkg/util/managedfields/scalehandler.go | 2 +- .../pkg/util/managedfields/typeconverter.go | 9 + .../apimachinery/pkg/util/runtime/runtime.go | 25 +- .../util/validation/field/error_matcher.go | 14 +- .../pkg/util/validation/field/errors.go | 78 +- .../pkg/util/validation/validation.go | 2 +- .../apimachinery/pkg/util/yaml/decoder.go | 4 +- .../k8s.io/apiserver/pkg/admission/audit.go | 6 +- .../pkg/admission/metrics/metrics.go | 5 + .../policy/generic/policy_test_context.go | 25 +- .../plugin/policy/mutating/accessor.go | 6 +- .../plugin/policy/mutating/compilation.go | 6 +- .../plugin/policy/mutating/dispatcher.go | 12 +- .../plugin/policy/mutating/errors.go | 38 + .../plugin/policy/mutating/metrics/errors.go | 38 + .../plugin/policy/mutating/metrics/metrics.go | 110 + .../plugin/policy/mutating/patch/smd.go | 8 +- .../plugin/policy/mutating/plugin.go | 14 +- .../policy/validating/metrics/metrics.go | 2 +- .../plugin/webhook/mutating/dispatcher.go | 6 +- .../webhook/predicates/namespace/matcher.go | 4 +- .../webhook/predicates/object/matcher.go | 2 +- .../plugin/webhook/validating/dispatcher.go | 4 +- .../apiserver/pkg/apis/apiserver/types.go | 19 + .../pkg/apis/apiserver/v1/defaults.go | 7 + .../pkg/apis/apiserver/v1/register.go | 2 + .../apiserver/pkg/apis/apiserver/v1/types.go | 389 + .../apiserver/v1/zz_generated.conversion.go | 502 +- .../apiserver/v1/zz_generated.deepcopy.go | 273 + .../pkg/apis/apiserver/v1alpha1/defaults.go | 7 + .../pkg/apis/apiserver/v1alpha1/types.go | 35 + .../v1alpha1/zz_generated.conversion.go | 58 +- .../v1alpha1/zz_generated.deepcopy.go | 10 + .../pkg/apis/apiserver/v1beta1/defaults.go | 7 + .../pkg/apis/apiserver/v1beta1/types.go | 35 + .../v1beta1/zz_generated.conversion.go | 58 +- .../v1beta1/zz_generated.deepcopy.go | 10 + .../apis/apiserver/validation/validation.go | 64 +- .../pkg/apis/flowcontrol/bootstrap/default.go | 48 - vendor/k8s.io/apiserver/pkg/audit/context.go | 266 +- .../apiserver/pkg/audit/policy/reader.go | 4 +- vendor/k8s.io/apiserver/pkg/audit/request.go | 207 +- .../pkg/authentication/cel/interface.go | 9 +- .../pkg/authentication/cel/mapper.go | 33 +- .../token/cache/cached_token_authenticator.go | 6 +- .../apiserver/pkg/cel/common/schemas.go | 28 +- .../apiserver/pkg/cel/common/typeprovider.go | 20 +- .../apiserver/pkg/cel/common/valuesreflect.go | 678 + .../{values.go => valuesunstructured.go} | 18 +- .../apiserver/pkg/cel/environment/base.go | 7 + .../k8s.io/apiserver/pkg/cel/library/cost.go | 28 +- .../endpoints/discovery/aggregated/fake.go | 4 +- .../endpoints/discovery/aggregated/handler.go | 19 +- .../endpoints/filterlatency/filterlatency.go | 20 +- .../apiserver/pkg/endpoints/filters/audit.go | 105 +- .../pkg/endpoints/filters/authentication.go | 2 +- .../pkg/endpoints/filters/authn_audit.go | 13 +- .../pkg/endpoints/filters/authorization.go | 2 +- .../pkg/endpoints/filters/impersonation.go | 3 +- .../pkg/endpoints/filters/request_deadline.go | 12 +- .../apiserver/pkg/endpoints/filters/traces.go | 7 +- .../pkg/endpoints/filters/webhook_duration.go | 8 +- .../pkg/endpoints/handlers/create.go | 2 +- .../pkg/endpoints/handlers/delete.go | 4 +- .../apiserver/pkg/endpoints/handlers/get.go | 34 +- .../pkg/endpoints/handlers/metrics/metrics.go | 7 +- .../apiserver/pkg/endpoints/handlers/patch.go | 10 +- .../pkg/endpoints/handlers/response.go | 143 +- .../apiserver/pkg/endpoints/handlers/rest.go | 9 +- .../pkg/endpoints/handlers/update.go | 2 +- .../apiserver/pkg/endpoints/handlers/watch.go | 18 +- .../apiserver/pkg/endpoints/installer.go | 103 +- .../pkg/endpoints/metrics/metrics.go | 84 +- .../pkg/endpoints/openapi/openapi.go | 17 +- .../pkg/endpoints/request/methods.go | 37 + .../pkg/endpoints/request/requestinfo.go | 10 +- .../apiserver/pkg/features/kube_features.go | 247 +- .../pkg/registry/generic/registry/dryrun.go | 4 +- .../pkg/registry/generic/registry/store.go | 23 +- .../apiserver/pkg/registry/rest/delete.go | 6 +- .../apiserver/pkg/registry/rest/rest.go | 2 +- .../apiserver/pkg/registry/rest/validate.go | 213 +- .../pkg/server/egressselector/config.go | 8 +- .../apiserver/pkg/server/genericapiserver.go | 6 + .../apiserver/pkg/server/healthz/healthz.go | 39 +- .../pkg/server/options/api_enablement.go | 9 + .../server/options/encryptionconfig/config.go | 35 +- .../encryptionconfig/controller/controller.go | 2 +- .../encryptionconfig/metrics/metrics.go | 57 +- .../apiserver/pkg/server/options/etcd.go | 98 +- .../apiserver/pkg/server/options/tracing.go | 4 +- .../apiserver/pkg/server/routes/flags.go | 33 +- .../storage/resource_encoding_config.go | 2 +- .../pkg/storage/cacher/cache_watcher.go | 4 +- .../apiserver/pkg/storage/cacher/cacher.go | 64 +- .../apiserver/pkg/storage/cacher/compactor.go | 83 + .../apiserver/pkg/storage/cacher/delegator.go | 166 +- .../pkg/storage/cacher/lister_watcher.go | 26 +- .../pkg/storage/cacher/metrics/metrics.go | 53 +- .../pkg/storage/cacher/watch_cache.go | 142 +- .../apiserver/pkg/storage/etcd3/compact.go | 201 +- .../pkg/storage/etcd3/metrics/metrics.go | 106 +- .../apiserver/pkg/storage/etcd3/stats.go | 220 + .../apiserver/pkg/storage/etcd3/store.go | 188 +- .../apiserver/pkg/storage/etcd3/watcher.go | 111 +- .../apiserver/pkg/storage/interfaces.go | 25 +- .../storage/storagebackend/factory/etcd3.go | 59 +- .../value/encrypt/envelope/kmsv2/envelope.go | 26 +- .../value/encrypt/envelope/kmsv2/v2/api.pb.go | 294 +- .../pkg/util/configmetrics/info_collector.go | 92 + .../pkg/util/flowcontrol/apf_controller.go | 4 +- .../pkg/util/flowcontrol/metrics/metrics.go | 2 +- .../pkg/util/flowcontrol/request/config.go | 24 +- .../request/list_work_estimator.go | 110 +- .../request/mutating_work_estimator.go | 4 +- .../request/object_count_tracker.go | 42 +- .../pkg/util/flowcontrol/request/width.go | 19 +- .../apiserver/pkg/util/webhook/validation.go | 4 +- .../pkg/genericclioptions/builder_flags.go | 9 +- .../pkg/genericclioptions/config_flags.go | 38 +- .../pkg/genericclioptions/json_yaml_flags.go | 17 +- .../k8s.io/cli-runtime/pkg/printers/kyaml.go | 66 + .../pkg/resource/query_param_verifier.go | 2 +- .../v1/mutatingwebhookconfiguration.go | 17 + .../v1/validatingadmissionpolicy.go | 17 + .../v1/validatingadmissionpolicybinding.go | 17 + .../v1/validatingwebhookconfiguration.go | 17 + .../v1alpha1/mutatingadmissionpolicy.go | 17 + .../mutatingadmissionpolicybinding.go | 17 + .../v1alpha1/validatingadmissionpolicy.go | 17 + .../validatingadmissionpolicybinding.go | 17 + .../v1beta1/applyconfiguration.go | 39 + .../v1beta1/jsonpatch.go | 39 + .../v1beta1/mutatingadmissionpolicy.go | 270 + .../v1beta1/mutatingadmissionpolicybinding.go | 270 + .../mutatingadmissionpolicybindingspec.go | 57 + .../v1beta1/mutatingadmissionpolicyspec.go | 113 + .../v1beta1/mutatingwebhook.go | 27 +- .../v1beta1/mutatingwebhookconfiguration.go | 17 + .../admissionregistration/v1beta1/mutation.go | 61 + .../v1beta1/validatingadmissionpolicy.go | 17 + .../validatingadmissionpolicybinding.go | 17 + .../v1beta1/validatingwebhookconfiguration.go | 17 + .../v1alpha1/storageversion.go | 17 + .../apps/v1/controllerrevision.go | 17 + .../applyconfigurations/apps/v1/daemonset.go | 17 + .../applyconfigurations/apps/v1/deployment.go | 17 + .../applyconfigurations/apps/v1/replicaset.go | 17 + .../apps/v1/statefulset.go | 17 + .../apps/v1beta1/controllerrevision.go | 17 + .../apps/v1beta1/deployment.go | 17 + .../apps/v1beta1/statefulset.go | 17 + .../apps/v1beta2/controllerrevision.go | 17 + .../apps/v1beta2/daemonset.go | 17 + .../apps/v1beta2/deployment.go | 17 + .../apps/v1beta2/replicaset.go | 17 + .../applyconfigurations/apps/v1beta2/scale.go | 17 + .../apps/v1beta2/statefulset.go | 17 + .../autoscaling/v1/horizontalpodautoscaler.go | 17 + .../autoscaling/v1/scale.go | 17 + .../autoscaling/v2/horizontalpodautoscaler.go | 17 + .../v2beta1/horizontalpodautoscaler.go | 17 + .../v2beta2/horizontalpodautoscaler.go | 17 + .../applyconfigurations/batch/v1/cronjob.go | 17 + .../applyconfigurations/batch/v1/job.go | 17 + .../batch/v1/jobtemplatespec.go | 6 + .../batch/v1beta1/cronjob.go | 17 + .../batch/v1beta1/jobtemplatespec.go | 6 + .../v1/certificatesigningrequest.go | 17 + .../v1alpha1/clustertrustbundle.go | 17 + .../v1alpha1/podcertificaterequest.go} | 109 +- .../v1alpha1/podcertificaterequestspec.go | 128 + .../v1alpha1/podcertificaterequeststatus.go | 85 + .../v1beta1/certificatesigningrequest.go | 17 + .../v1beta1/clustertrustbundle.go | 17 + .../coordination/v1/lease.go | 17 + .../coordination/v1alpha2/leasecandidate.go | 17 + .../coordination/v1beta1/lease.go | 17 + .../coordination/v1beta1/leasecandidate.go | 17 + .../core/v1/componentstatus.go | 17 + .../applyconfigurations/core/v1/configmap.go | 17 + .../applyconfigurations/core/v1/container.go | 14 + .../v1/containerextendedresourcerequest.go | 57 + .../core/v1/containerrestartrule.go | 52 + .../v1/containerrestartruleonexitcodes.go | 54 + .../applyconfigurations/core/v1/endpoints.go | 17 + .../core/v1/envvarsource.go | 9 + .../core/v1/ephemeralcontainer.go | 13 + .../core/v1/ephemeralcontainercommon.go | 14 + .../applyconfigurations/core/v1/event.go | 17 + .../core/v1/filekeyselector.go | 66 + .../applyconfigurations/core/v1/limitrange.go | 17 + .../applyconfigurations/core/v1/namespace.go | 17 + .../applyconfigurations/core/v1/node.go | 17 + .../core/v1/persistentvolume.go | 17 + .../core/v1/persistentvolumeclaim.go | 17 + .../core/v1/persistentvolumeclaimtemplate.go | 6 + .../applyconfigurations/core/v1/pod.go | 17 + .../core/v1/podcertificateprojection.go | 84 + .../core/v1/podextendedresourceclaimstatus.go | 53 + .../applyconfigurations/core/v1/podspec.go | 9 + .../applyconfigurations/core/v1/podstatus.go | 43 +- .../core/v1/podtemplate.go | 17 + .../core/v1/podtemplatespec.go | 6 + .../core/v1/replicationcontroller.go | 17 + .../core/v1/resourcequota.go | 17 + .../applyconfigurations/core/v1/secret.go | 17 + .../applyconfigurations/core/v1/service.go | 17 + .../core/v1/serviceaccount.go | 17 + .../core/v1/volumeprojection.go | 9 + .../discovery/v1/endpointslice.go | 17 + .../discovery/v1beta1/endpointslice.go | 17 + .../client-go/applyconfigurations/doc.go | 1 - .../applyconfigurations/events/v1/event.go | 17 + .../events/v1beta1/event.go | 17 + .../extensions/v1beta1/daemonset.go | 17 + .../extensions/v1beta1/deployment.go | 17 + .../extensions/v1beta1/ingress.go | 17 + .../extensions/v1beta1/networkpolicy.go | 17 + .../extensions/v1beta1/replicaset.go | 17 + .../extensions/v1beta1/scale.go | 17 + .../flowcontrol/v1/flowschema.go | 17 + .../v1/prioritylevelconfiguration.go | 17 + .../flowcontrol/v1beta1/flowschema.go | 17 + .../v1beta1/prioritylevelconfiguration.go | 17 + .../flowcontrol/v1beta2/flowschema.go | 17 + .../v1beta2/prioritylevelconfiguration.go | 17 + .../flowcontrol/v1beta3/flowschema.go | 17 + .../v1beta3/prioritylevelconfiguration.go | 17 + .../imagepolicy/v1alpha1/imagereview.go | 17 + .../applyconfigurations/internal/internal.go | 1057 +- .../meta/v1/deleteoptions.go | 11 + .../applyconfigurations/meta/v1/objectmeta.go | 5 + .../applyconfigurations/meta/v1/typemeta.go | 10 + .../meta/v1/unstructured.go | 2 +- .../networking/v1/ingress.go | 17 + .../networking/v1/ingressclass.go | 17 + .../networking/v1/ipaddress.go | 17 + .../networking/v1/networkpolicy.go | 17 + .../networking/v1/servicecidr.go | 17 + .../networking/v1alpha1/ipaddress.go | 253 - .../networking/v1alpha1/ipaddressspec.go | 39 - .../networking/v1alpha1/parentreference.go | 66 - .../networking/v1alpha1/servicecidrspec.go | 41 - .../networking/v1alpha1/servicecidrstatus.go | 48 - .../networking/v1beta1/ingress.go | 17 + .../networking/v1beta1/ingressclass.go | 17 + .../networking/v1beta1/ipaddress.go | 17 + .../networking/v1beta1/servicecidr.go | 17 + .../node/v1/runtimeclass.go | 17 + .../node/v1alpha1/runtimeclass.go | 17 + .../node/v1beta1/runtimeclass.go | 17 + .../applyconfigurations/policy/v1/eviction.go | 17 + .../policy/v1/poddisruptionbudget.go | 17 + .../policy/v1beta1/eviction.go | 17 + .../policy/v1beta1/poddisruptionbudget.go | 17 + .../rbac/v1/clusterrole.go | 17 + .../rbac/v1/clusterrolebinding.go | 17 + .../applyconfigurations/rbac/v1/role.go | 17 + .../rbac/v1/rolebinding.go | 17 + .../rbac/v1alpha1/clusterrole.go | 17 + .../rbac/v1alpha1/clusterrolebinding.go | 17 + .../applyconfigurations/rbac/v1alpha1/role.go | 17 + .../rbac/v1alpha1/rolebinding.go | 17 + .../rbac/v1beta1/clusterrole.go | 17 + .../rbac/v1beta1/clusterrolebinding.go | 17 + .../applyconfigurations/rbac/v1beta1/role.go | 17 + .../rbac/v1beta1/rolebinding.go | 17 + .../{v1alpha3 => v1}/allocateddevicestatus.go | 17 +- .../{v1alpha3 => v1}/allocationresult.go | 20 +- .../resource/v1/capacityrequestpolicy.go | 63 + .../resource/v1/capacityrequestpolicyrange.go | 61 + .../resource/v1/capacityrequirements.go | 50 + .../resource/v1/celdeviceselector.go | 39 + .../resource/{v1alpha3 => v1}/counter.go | 2 +- .../resource/{v1alpha3 => v1}/counterset.go | 2 +- .../applyconfigurations/resource/v1/device.go | 169 + .../deviceallocationconfiguration.go | 10 +- .../deviceallocationresult.go | 2 +- .../{v1alpha3 => v1}/deviceattribute.go | 2 +- .../resource/v1/devicecapacity.go | 52 + .../resource/{v1alpha3 => v1}/deviceclaim.go | 2 +- .../deviceclaimconfiguration.go | 2 +- .../resource/{v1alpha3 => v1}/deviceclass.go | 51 +- .../deviceclassconfiguration.go | 2 +- .../{v1alpha3 => v1}/deviceclassspec.go | 15 +- .../{v1alpha3 => v1}/deviceconfiguration.go | 2 +- .../{v1alpha3 => v1}/deviceconstraint.go | 19 +- .../devicecounterconsumption.go | 2 +- .../resource/v1/devicerequest.go | 62 + .../devicerequestallocationresult.go | 66 +- .../resource/v1/deviceselector.go | 39 + .../{v1alpha3 => v1}/devicesubrequest.go | 27 +- .../resource/v1/devicetaint.go | 71 + .../{v1alpha3 => v1}/devicetoleration.go | 18 +- .../exactdevicerequest.go} | 70 +- .../{v1alpha3 => v1}/networkdevicedata.go | 2 +- .../opaquedeviceconfiguration.go | 2 +- .../{v1alpha3 => v1}/resourceclaim.go | 53 +- .../resourceclaimconsumerreference.go | 2 +- .../{v1alpha3 => v1}/resourceclaimspec.go | 2 +- .../{v1alpha3 => v1}/resourceclaimstatus.go | 2 +- .../{v1alpha3 => v1}/resourceclaimtemplate.go | 51 +- .../resourceclaimtemplatespec.go | 24 +- .../resource/{v1alpha3 => v1}/resourcepool.go | 2 +- .../{v1alpha3 => v1}/resourceslice.go | 51 +- .../{v1alpha3 => v1}/resourceslicespec.go | 22 +- .../resource/v1alpha3/basicdevice.go | 121 - .../resource/v1alpha3/device.go | 48 - .../resource/v1alpha3/devicetaintrule.go | 17 + .../resource/v1beta1/allocateddevicestatus.go | 9 + .../resource/v1beta1/allocationresult.go | 14 +- .../resource/v1beta1/basicdevice.go | 54 +- .../resource/v1beta1/capacityrequestpolicy.go | 63 + .../v1beta1/capacityrequestpolicyrange.go | 61 + .../resource/v1beta1/capacityrequirements.go | 50 + .../resource/v1beta1/devicecapacity.go | 11 +- .../resource/v1beta1/deviceclass.go | 17 + .../resource/v1beta1/deviceclassspec.go | 13 +- .../resource/v1beta1/deviceconstraint.go | 13 +- .../resource/v1beta1/devicerequest.go | 25 +- .../v1beta1/devicerequestallocationresult.go | 64 +- .../resource/v1beta1/devicesubrequest.go | 21 +- .../resource/v1beta1/resourceclaim.go | 17 + .../resource/v1beta1/resourceclaimtemplate.go | 17 + .../v1beta1/resourceclaimtemplatespec.go | 6 + .../resource/v1beta1/resourceslice.go | 17 + .../resource/v1beta2/allocateddevicestatus.go | 9 + .../resource/v1beta2/allocationresult.go | 14 +- .../resource/v1beta2/capacityrequestpolicy.go | 63 + .../v1beta2/capacityrequestpolicyrange.go | 61 + .../resource/v1beta2/capacityrequirements.go | 50 + .../resource/v1beta2/device.go | 56 +- .../resource/v1beta2/devicecapacity.go | 11 +- .../resource/v1beta2/deviceclass.go | 17 + .../resource/v1beta2/deviceclassspec.go | 13 +- .../resource/v1beta2/deviceconstraint.go | 13 +- .../v1beta2/devicerequestallocationresult.go | 64 +- .../resource/v1beta2/devicesubrequest.go | 21 +- .../resource/v1beta2/exactdevicerequest.go | 21 +- .../resource/v1beta2/resourceclaim.go | 17 + .../resource/v1beta2/resourceclaimtemplate.go | 17 + .../v1beta2/resourceclaimtemplatespec.go | 6 + .../resource/v1beta2/resourceslice.go | 17 + .../scheduling/v1/priorityclass.go | 17 + .../scheduling/v1alpha1/priorityclass.go | 17 + .../scheduling/v1beta1/priorityclass.go | 17 + .../storage/v1/csidriver.go | 17 + .../applyconfigurations/storage/v1/csinode.go | 17 + .../storage/v1/csistoragecapacity.go | 17 + .../storage/v1/storageclass.go | 17 + .../storage/v1/volumeattachment.go | 17 + .../storage/v1/volumeattributesclass.go | 285 + .../storage/v1alpha1/csistoragecapacity.go | 17 + .../storage/v1alpha1/volumeattachment.go | 17 + .../storage/v1alpha1/volumeattributesclass.go | 17 + .../storage/v1beta1/csidriver.go | 17 + .../storage/v1beta1/csinode.go | 17 + .../storage/v1beta1/csistoragecapacity.go | 17 + .../storage/v1beta1/storageclass.go | 17 + .../storage/v1beta1/volumeattachment.go | 17 + .../storage/v1beta1/volumeattributesclass.go | 17 + .../v1alpha1/storageversionmigration.go | 17 + .../client-go/applyconfigurations/utils.go | 214 +- .../k8s.io/client-go/dynamic/fake/simple.go | 10 +- vendor/k8s.io/client-go/dynamic/simple.go | 46 +- .../client-go/features/known_features.go | 31 +- vendor/k8s.io/client-go/gentype/type.go | 39 - .../v1beta1/interface.go | 14 + .../v1beta1/mutatingadmissionpolicy.go | 101 + .../v1beta1/mutatingadmissionpolicybinding.go | 101 + .../certificates/v1alpha1/interface.go | 7 + .../v1alpha1/podcertificaterequest.go | 102 + vendor/k8s.io/client-go/informers/generic.go | 34 +- .../informers/networking/interface.go | 8 - .../networking/v1alpha1/interface.go | 52 - .../networking/v1alpha1/ipaddress.go | 101 - .../networking/v1alpha1/servicecidr.go | 101 - .../client-go/informers/resource/interface.go | 8 + .../resource/{v1alpha3 => v1}/deviceclass.go | 34 +- .../informers/resource/v1/interface.go | 66 + .../{v1alpha3 => v1}/resourceclaim.go | 34 +- .../{v1alpha3 => v1}/resourceclaimtemplate.go | 34 +- .../{v1alpha3 => v1}/resourceslice.go | 34 +- .../informers/resource/v1alpha3/interface.go | 28 - .../informers/storage/v1/interface.go | 7 + .../storage/v1/volumeattributesclass.go | 101 + .../k8s.io/client-go/kubernetes/clientset.go | 26 +- .../kubernetes/fake/clientset_generated.go | 18 +- .../client-go/kubernetes/fake/register.go | 4 +- .../client-go/kubernetes/scheme/register.go | 4 +- .../v1beta1/admissionregistration_client.go | 10 + .../fake/fake_admissionregistration_client.go | 8 + .../fake/fake_mutatingadmissionpolicy.go | 53 + .../fake_mutatingadmissionpolicybinding.go | 55 + .../v1beta1/generated_expansion.go | 4 + .../v1beta1/mutatingadmissionpolicy.go | 75 + .../v1beta1/mutatingadmissionpolicybinding.go | 75 + .../v1alpha1/certificates_client.go | 5 + .../v1alpha1/fake/fake_certificates_client.go | 4 + .../fake/fake_podcertificaterequest.go | 53 + .../v1alpha1/generated_expansion.go | 2 + .../v1alpha1/podcertificaterequest.go | 79 + .../v1alpha1/fake/fake_ipaddress.go | 51 - .../v1alpha1/fake/fake_servicecidr.go | 53 - .../typed/networking/v1alpha1/ipaddress.go | 71 - .../typed/networking/v1alpha1/servicecidr.go | 75 - .../typed/resource/v1/deviceclass.go | 71 + .../v1alpha1 => resource/v1}/doc.go | 2 +- .../v1alpha1 => resource/v1}/fake/doc.go | 0 .../resource/v1/fake/fake_deviceclass.go | 49 + .../v1/fake/fake_resource_client.go} | 22 +- .../resource/v1/fake/fake_resourceclaim.go | 51 + .../v1/fake/fake_resourceclaimtemplate.go | 53 + .../resource/v1/fake/fake_resourceslice.go | 51 + .../v1}/generated_expansion.go | 10 +- .../v1/resource_client.go} | 56 +- .../typed/resource/v1/resourceclaim.go | 75 + .../resource/v1/resourceclaimtemplate.go | 71 + .../typed/resource/v1/resourceslice.go | 71 + .../typed/resource/v1alpha3/deviceclass.go | 71 - .../v1alpha3/fake/fake_deviceclass.go | 53 - .../v1alpha3/fake/fake_resource_client.go | 16 - .../v1alpha3/fake/fake_resourceclaim.go | 53 - .../fake/fake_resourceclaimtemplate.go | 53 - .../v1alpha3/fake/fake_resourceslice.go | 53 - .../resource/v1alpha3/generated_expansion.go | 8 - .../resource/v1alpha3/resource_client.go | 20 - .../typed/resource/v1alpha3/resourceclaim.go | 75 - .../v1alpha3/resourceclaimtemplate.go | 73 - .../typed/resource/v1alpha3/resourceslice.go | 71 - .../storage/v1/fake/fake_storage_client.go | 4 + .../v1/fake/fake_volumeattributesclass.go | 53 + .../typed/storage/v1/generated_expansion.go | 2 + .../typed/storage/v1/storage_client.go | 5 + .../typed/storage/v1/volumeattributesclass.go | 71 + .../v1beta1/expansion_generated.go | 8 + .../v1beta1/mutatingadmissionpolicy.go | 48 + .../v1beta1/mutatingadmissionpolicybinding.go | 48 + .../v1alpha1/expansion_generated.go | 8 + .../v1alpha1/podcertificaterequest.go | 70 + .../listers/networking/v1alpha1/ipaddress.go | 48 - .../networking/v1alpha1/servicecidr.go | 48 - .../resource/{v1alpha3 => v1}/deviceclass.go | 12 +- .../resource/v1/expansion_generated.go | 43 + .../{v1alpha3 => v1}/resourceclaim.go | 18 +- .../{v1alpha3 => v1}/resourceclaimtemplate.go | 18 +- .../{v1alpha3 => v1}/resourceslice.go | 12 +- .../resource/v1alpha3/expansion_generated.go | 24 - .../listers/storage/v1/expansion_generated.go | 4 + .../storage/v1/volumeattributesclass.go | 48 + vendor/k8s.io/client-go/metadata/metadata.go | 39 - vendor/k8s.io/client-go/openapi/client.go | 4 + vendor/k8s.io/client-go/pkg/version/base.go | 8 +- vendor/k8s.io/client-go/rest/request.go | 211 +- vendor/k8s.io/client-go/testing/fixture.go | 79 +- .../client-go/tools/cache/controller.go | 16 +- .../client-go/tools/cache/delta_fifo.go | 5 + .../k8s.io/client-go/tools/cache/listers.go | 8 + .../k8s.io/client-go/tools/cache/listwatch.go | 4 + .../k8s.io/client-go/tools/cache/reflector.go | 109 +- .../client-go/tools/cache/shared_informer.go | 1 - vendor/k8s.io/client-go/tools/cache/store.go | 37 +- .../client-go/tools/cache/the_real_fifo.go | 10 +- .../client-go/tools/clientcmd/api/types.go | 17 +- .../client-go/tools/clientcmd/api/v1/types.go | 7 +- .../tools/leaderelection/leaderelection.go | 18 +- .../leaderelection/resourcelock/interface.go | 16 +- .../leaderelection/resourcelock/leaselock.go | 15 +- .../client-go/tools/remotecommand/fallback.go | 2 +- .../tools/remotecommand/remotecommand.go | 2 +- .../client-go/tools/remotecommand/spdy.go | 6 +- .../client-go/tools/remotecommand/v1.go | 7 +- .../client-go/tools/remotecommand/v2.go | 7 +- .../client-go/tools/remotecommand/v3.go | 7 +- .../client-go/tools/remotecommand/v4.go | 7 +- .../client-go/tools/remotecommand/v5.go | 4 +- .../tools/remotecommand/websocket.go | 26 +- vendor/k8s.io/client-go/tools/watch/until.go | 2 +- .../data_consistency_detector.go | 22 +- .../list_data_consistency_detector.go | 76 - .../watch_list_data_consistency_detector.go | 54 - vendor/k8s.io/client-go/util/retry/util.go | 2 +- .../client-go/util/watchlist/watch_list.go | 82 - vendor/k8s.io/client-go/util/workqueue/doc.go | 1 + .../k8s.io/client-go/util/workqueue/queue.go | 73 +- vendor/k8s.io/cloud-provider/README.md | 5 + .../config/v1alpha1/defaults.go | 4 +- .../controllers/service/controller.go | 10 +- .../cloud-provider/node/helpers/address.go | 54 +- .../component-base/compatibility/registry.go | 33 + .../config/v1alpha1/defaults.go | 6 +- .../component-base/logs/api/v1/options.go | 4 +- .../k8s.io/component-base/metrics/counter.go | 39 +- vendor/k8s.io/component-base/metrics/gauge.go | 48 +- .../component-base/metrics/histogram.go | 41 +- vendor/k8s.io/component-base/metrics/opts.go | 2 +- .../prometheus/compatversion/metrics.go | 50 + .../k8s.io/component-base/metrics/summary.go | 38 +- .../metrics/testutil/metrics.go | 20 +- .../metrics/testutil/promlint.go | 1 + .../metrics/timing_histogram.go | 43 +- vendor/k8s.io/component-base/version/base.go | 10 +- .../component-base/zpages/statusz/registry.go | 90 + .../component-base/zpages/statusz/statusz.go | 146 + .../component-helpers/resource/helpers.go | 35 +- .../clientbuilder/client_builder_dynamic.go | 4 +- .../pkg/features/kube_features.go | 19 +- .../pkg/leadermigration/config/config.go | 4 +- .../dynamic-resource-allocation/api/OWNERS | 14 + .../dynamic-resource-allocation/api/doc.go | 2 +- .../dynamic-resource-allocation/api/types.go | 43 +- .../api/zz_generated.conversion.go | 435 +- .../dynamic-resource-allocation/cel/cache.go | 27 +- .../cel/compile.go | 102 +- .../cel/feature_enabled.go | 42 + .../resourceclaim/devicetoleration.go | 2 +- .../resourceclaim/pod.go | 21 + .../resourceclaim/resourceclaim.go | 2 +- .../structured/allocator.go | 1417 +- .../structured/internal/allocatedstate.go | 204 + .../structured/internal/diff.sh | 31 + .../experimental/allocator_experimental.go | 1678 ++ .../internal/experimental/constraint.go | 127 + .../experimental/consumable_capacity.go | 220 + .../experimental/pools_experimental.go | 220 + .../incubating/allocator_incubating.go | 1474 ++ .../incubating/pools_incubating.go} | 47 +- .../internal/stable/allocator_stable.go | 1406 ++ .../internal/stable/pools_stable.go | 170 + .../structured/internal/types.go | 108 + vendor/k8s.io/kms/apis/v1beta1/api.pb.go | 749 +- vendor/k8s.io/kms/apis/v1beta1/api_grpc.pb.go | 240 + vendor/k8s.io/kms/apis/v2/api.pb.go | 753 +- vendor/k8s.io/kms/apis/v2/api_grpc.pb.go | 240 + vendor/k8s.io/kms/pkg/service/grpc_service.go | 1 + .../k8s.io/kube-openapi/pkg/common/common.go | 4 +- .../kube-openapi/pkg/schemaconv/openapi.go | 2 +- .../pkg/schemaconv/proto_models.go | 2 +- .../k8s.io/kube-openapi/pkg/schemaconv/smd.go | 2 +- .../kube-openapi/pkg/util/proto/document.go | 2 +- .../pkg/util/proto/document_v3.go | 2 +- .../pkg/validation/strfmt/format.go | 24 + .../strfmt/kubernetes-extensions.go | 143 + .../framework/api_dispatcher.go | 113 + .../kube-scheduler/framework/cycle_state.go | 84 + .../kube-scheduler/framework/interface.go | 235 + .../k8s.io/kube-scheduler/framework/types.go | 538 + .../kubectl/pkg/cmd/util/caching_verifier.go | 59 + .../pkg/cmd/util/factory_client_access.go | 2 +- vendor/k8s.io/kubectl/pkg/cmd/util/helpers.go | 40 +- vendor/k8s.io/kubectl/pkg/util/i18n/i18n.go | 1 - vendor/k8s.io/kubelet/pkg/apis/OWNERS | 10 + .../kubernetes/pkg/api/service/warnings.go | 16 + .../k8s.io/kubernetes/pkg/api/v1/pod/util.go | 183 +- .../k8s.io/kubernetes/pkg/apis/batch/types.go | 9 +- .../kubernetes/pkg/apis/certificates/OWNERS | 8 + .../pkg/apis/certificates/doc.go} | 15 +- .../pkg/apis/certificates/helpers.go | 138 + .../pkg/apis/certificates}/register.go | 44 +- .../kubernetes/pkg/apis/certificates/types.go | 497 + .../certificates/zz_generated.deepcopy.go | 408 + .../k8s.io/kubernetes/pkg/apis/core/types.go | 258 +- .../kubernetes/pkg/apis/core/v1/defaults.go | 30 +- .../apis/core/v1/zz_generated.conversion.go | 218 + .../pkg/apis/core/v1/zz_generated.defaults.go | 54 + .../apis/core/v1/zz_generated.validations.go | 29 +- .../pkg/apis/core/validation/names.go | 6 + .../pkg/apis/core/validation/validation.go | 600 +- .../pkg/apis/core/zz_generated.deepcopy.go | 155 + .../kubernetes/pkg/apis/networking/types.go | 7 +- .../pkg/controller/controller_utils.go | 88 +- .../node_lifecycle_controller.go | 8 +- .../tainteviction/taint_eviction.go | 2 +- .../kubernetes/pkg/features/kube_features.go | 1298 +- .../kubernetes/pkg/kubelet/events/event.go | 1 + .../pkg/scheduler/apis/config/OWNERS | 3 +- .../pkg/scheduler/apis/config/register.go | 1 + .../scheduler/apis/config/types_pluginargs.go | 44 + .../apis/config/zz_generated.deepcopy.go | 37 +- .../pkg/scheduler/framework/cycle_state.go | 75 +- .../pkg/scheduler/framework/events.go | 114 +- .../pkg/scheduler/framework/extender.go | 5 +- .../pkg/scheduler/framework/interface.go | 399 +- .../pkg/scheduler/framework/listers.go | 14 +- .../pkg/scheduler/framework/types.go | 1319 +- .../pkg/scheduler/metrics/metrics.go | 59 +- .../kubernetes/pkg/scheduler/util/utils.go | 67 +- .../k8s.io/kubernetes/pkg/volume/plugins.go | 18 +- .../kubernetes/pkg/volume/util/types/types.go | 4 + vendor/k8s.io/kubernetes/pkg/volume/volume.go | 9 + .../kubernetes/pkg/volume/volume_linux.go | 4 +- .../pkg/volume/volume_unsupported.go | 6 +- .../gpu/gce/nvidia-driver-installer.yaml | 2 +- .../legacy/redis-master-controller.yaml | 2 +- .../legacy/redis-slave-controller.yaml | 2 +- .../kubectl/agnhost-primary-pod.yaml | 4 +- .../statefulset/nginx/service.yaml | 13 - .../statefulset/nginx/statefulset.yaml | 34 - .../statefulset/redis/service.yaml | 16 - .../statefulset/redis/statefulset.yaml | 81 - ...lator.storage.k8s.io_volumepopulators.yaml | 1 - .../csi-hostpath-plugin.yaml | 2 +- .../run_group_snapshot_e2e.sh | 8 +- .../storage-csi/gce-pd/controller_ss.yaml | 2 +- .../hostpath/csi-hostpath-plugin.yaml | 2 +- .../mock/csi-mock-driver-snapshotter.yaml | 2 +- .../kubernetes/test/utils/image/manifest.go | 42 +- .../k8s.io/kubernetes/test/utils/runners.go | 43 +- vendor/k8s.io/mount-utils/README.md | 5 + vendor/k8s.io/mount-utils/mount.go | 6 +- .../k8s.io/mount-utils/mount_helper_unix.go | 2 +- vendor/k8s.io/utils/buffer/ring_growing.go | 122 +- vendor/k8s.io/utils/net/multi_listen.go | 6 +- vendor/modules.txt | 281 +- .../api/filters/replacement/replacement.go | 9 +- .../builtins/HelmChartInflationGenerator.go | 3 + .../api/internal/builtins/PatchTransformer.go | 5 +- .../builtins/ReplacementTransformer.go | 10 +- .../konfig/builtinpluginconsts/images.go | 4 + .../internal/plugins/execplugin/execplugin.go | 8 +- .../api/internal/plugins/execplugin/shlex.go | 62 + .../kustomize/api/provenance/provenance.go | 40 +- .../kustomize/api/resmap/reswrangler.go | 4 + .../kustomize/api/types/helmchartargs.go | 6 + .../kustomize/api/types/replacement.go | 3 + .../kustomize/kyaml/fn/runtime/exec/exec.go | 4 + .../fn/runtime/runtimeutil/functiontypes.go | 6 + .../kustomize/kyaml/runfn/runfn.go | 28 +- .../sigs.k8s.io/kustomize/kyaml/yaml/alias.go | 2 +- .../kustomize/kyaml/yaml/compatibility.go | 4 +- .../sigs.k8s.io/kustomize/kyaml/yaml/fns.go | 2 +- .../sigs.k8s.io/kustomize/kyaml/yaml/kfns.go | 2 +- .../sigs.k8s.io/kustomize/kyaml/yaml/match.go | 2 +- .../sigs.k8s.io/kustomize/kyaml/yaml/rnode.go | 2 +- .../sigs.k8s.io/kustomize/kyaml/yaml/types.go | 2 +- .../v6}/LICENSE | 0 .../{v4 => v6}/fieldpath/doc.go | 0 .../{v4 => v6}/fieldpath/element.go | 73 +- .../{v4 => v6}/fieldpath/fromvalue.go | 2 +- .../{v4 => v6}/fieldpath/managers.go | 0 .../{v4 => v6}/fieldpath/path.go | 2 +- .../{v4 => v6}/fieldpath/pathelementmap.go | 2 +- .../{v4 => v6}/fieldpath/serialize-pe.go | 28 +- .../{v4 => v6}/fieldpath/serialize.go | 0 .../{v4 => v6}/fieldpath/set.go | 43 +- .../{v4 => v6}/merge/conflict.go | 2 +- .../{v4 => v6}/merge/update.go | 7 +- .../{v4 => v6}/schema/doc.go | 0 .../{v4 => v6}/schema/elements.go | 0 .../{v4 => v6}/schema/equals.go | 0 .../{v4 => v6}/schema/schemaschema.go | 0 .../{v4 => v6}/typed/compare.go | 6 +- .../{v4 => v6}/typed/doc.go | 0 .../{v4 => v6}/typed/helpers.go | 15 +- .../{v4 => v6}/typed/merge.go | 6 +- .../{v4 => v6}/typed/parser.go | 6 +- .../{v4 => v6}/typed/reconcile_schema.go | 4 +- .../{v4 => v6}/typed/remove.go | 6 +- .../{v4 => v6}/typed/tofieldset.go | 6 +- .../{v4 => v6}/typed/typed.go | 6 +- .../{v4 => v6}/typed/validate.go | 10 +- .../{v4 => v6}/value/allocator.go | 0 .../{v4 => v6}/value/doc.go | 0 .../{v4 => v6}/value/fields.go | 8 + .../{v4 => v6}/value/jsontagutil.go | 63 +- .../{v4 => v6}/value/list.go | 0 .../{v4 => v6}/value/listreflect.go | 0 .../{v4 => v6}/value/listunstructured.go | 0 .../{v4 => v6}/value/map.go | 0 .../{v4 => v6}/value/mapreflect.go | 0 .../{v4 => v6}/value/mapunstructured.go | 0 .../{v4 => v6}/value/reflectcache.go | 14 +- .../{v4 => v6}/value/scalar.go | 0 .../{v4 => v6}/value/structreflect.go | 0 .../{v4 => v6}/value/value.go | 19 +- .../{v4 => v6}/value/valuereflect.go | 0 .../{v4 => v6}/value/valueunstructured.go | 0 vendor/sigs.k8s.io/yaml/.travis.yml | 12 - vendor/sigs.k8s.io/yaml/goyaml.v2/OWNERS | 24 - vendor/sigs.k8s.io/yaml/goyaml.v3/OWNERS | 24 - vendor/sigs.k8s.io/yaml/goyaml.v3/README.md | 210 +- vendor/sigs.k8s.io/yaml/goyaml.v3/patch.go | 39 - .../yaml/goyaml.v3/yaml_aliases.go | 130 + vendor/sigs.k8s.io/yaml/kyaml/kyaml.go | 828 + vendor/sigs.k8s.io/yaml/yaml.go | 11 +- 1298 files changed, 97909 insertions(+), 40850 deletions(-) create mode 100644 vendor/github.com/cyphar/filepath-securejoin/.golangci.yml create mode 100644 vendor/github.com/cyphar/filepath-securejoin/COPYING.md rename vendor/github.com/cyphar/filepath-securejoin/{LICENSE => LICENSE.BSD} (100%) create mode 100644 vendor/github.com/cyphar/filepath-securejoin/LICENSE.MPL-2.0 create mode 100644 vendor/github.com/cyphar/filepath-securejoin/codecov.yml create mode 100644 vendor/github.com/cyphar/filepath-securejoin/deprecated_linux.go delete mode 100644 vendor/github.com/cyphar/filepath-securejoin/gocompat_generics_go121.go delete mode 100644 vendor/github.com/cyphar/filepath-securejoin/gocompat_generics_unsupported.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/internal/consts/consts.go delete mode 100644 vendor/github.com/cyphar/filepath-securejoin/openat2_linux.go delete mode 100644 vendor/github.com/cyphar/filepath-securejoin/openat_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/README.md create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/doc.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/assert/assert.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/errors_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/at_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/fd.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/fd_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/mount_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/openat2_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/README.md create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/doc.go rename vendor/github.com/cyphar/filepath-securejoin/{ => pathrs-lite/internal/gocompat}/gocompat_errors_go120.go (69%) rename vendor/github.com/cyphar/filepath-securejoin/{ => pathrs-lite/internal/gocompat}/gocompat_errors_unsupported.go (80%) create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_generics_go121.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_generics_unsupported.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/kernelversion/kernel_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/doc.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/mount_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/openat2_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs/procfs_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs/procfs_lookup_linux.go rename vendor/github.com/cyphar/filepath-securejoin/{ => pathrs-lite}/lookup_linux.go (86%) rename vendor/github.com/cyphar/filepath-securejoin/{ => pathrs-lite}/mkdir_linux.go (86%) rename vendor/github.com/cyphar/filepath-securejoin/{ => pathrs-lite}/open_linux.go (56%) create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/openat2_linux.go create mode 100644 vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/procfs/procfs_linux.go delete mode 100644 vendor/github.com/cyphar/filepath-securejoin/procfs_linux.go create mode 100644 vendor/github.com/fsnotify/fsnotify/shared.go create mode 100644 vendor/github.com/fsnotify/fsnotify/staticcheck.conf delete mode 100644 vendor/github.com/fxamacker/cbor/v2/encode_map_go117.go create mode 100644 vendor/github.com/fxamacker/cbor/v2/omitzero_go124.go create mode 100644 vendor/github.com/fxamacker/cbor/v2/omitzero_pre_go124.go create mode 100644 vendor/github.com/google/cel-go/cel/prompt.go create mode 100644 vendor/github.com/google/cel-go/cel/templates/authoring.tmpl create mode 100644 vendor/github.com/google/cel-go/common/env/BUILD.bazel create mode 100644 vendor/github.com/google/cel-go/common/env/env.go create mode 100644 vendor/github.com/google/cel-go/common/types/format.go create mode 100644 vendor/github.com/google/cel-go/ext/extension_option_factory.go create mode 100644 vendor/github.com/google/cel-go/ext/formatting_v2.go create mode 100644 vendor/github.com/google/cel-go/ext/regex.go delete mode 100644 vendor/github.com/google/shlex/COPYING delete mode 100644 vendor/github.com/google/shlex/README delete mode 100644 vendor/github.com/google/shlex/shlex.go create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options/BUILD.bazel create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options/annotations.pb.go create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options/annotations.proto create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options/annotations_protoopaque.pb.go create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options/buf.gen.yaml create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options/openapiv2.pb.go create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options/openapiv2.proto create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options/openapiv2_protoopaque.pb.go create mode 100644 vendor/github.com/prometheus/procfs/net_dev_snmp6.go create mode 100644 vendor/go.etcd.io/etcd/api/v3/versionpb/version.pb.go create mode 100644 vendor/go.etcd.io/etcd/api/v3/versionpb/version.proto create mode 100644 vendor/go.etcd.io/etcd/client/pkg/v3/logutil/log_format.go create mode 100644 vendor/go.etcd.io/etcd/client/pkg/v3/transport/sockopt_wasm.go create mode 100644 vendor/go.etcd.io/etcd/client/pkg/v3/verify/verify.go create mode 100644 vendor/go.etcd.io/etcd/client/v3/OWNERS create mode 100644 vendor/go.opentelemetry.io/otel/dependencies.Dockerfile create mode 100644 vendor/go.opentelemetry.io/otel/trace/auto.go create mode 100644 vendor/go.opentelemetry.io/otel/trace/internal/telemetry/attr.go create mode 100644 vendor/go.opentelemetry.io/otel/trace/internal/telemetry/doc.go create mode 100644 vendor/go.opentelemetry.io/otel/trace/internal/telemetry/id.go create mode 100644 vendor/go.opentelemetry.io/otel/trace/internal/telemetry/number.go create mode 100644 vendor/go.opentelemetry.io/otel/trace/internal/telemetry/resource.go create mode 100644 vendor/go.opentelemetry.io/otel/trace/internal/telemetry/scope.go create mode 100644 vendor/go.opentelemetry.io/otel/trace/internal/telemetry/span.go create mode 100644 vendor/go.opentelemetry.io/otel/trace/internal/telemetry/status.go create mode 100644 vendor/go.opentelemetry.io/otel/trace/internal/telemetry/traces.go create mode 100644 vendor/go.opentelemetry.io/otel/trace/internal/telemetry/value.go create mode 100644 vendor/go.yaml.in/yaml/v2/.travis.yml rename vendor/{sigs.k8s.io/structured-merge-diff/v4 => go.yaml.in/yaml/v2}/LICENSE (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/LICENSE.libyaml (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/NOTICE (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/README.md (76%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/apic.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/decode.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/emitterc.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/encode.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/parserc.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/readerc.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/resolve.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/scannerc.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/sorter.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/writerc.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/yaml.go (99%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/yamlh.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v2 => go.yaml.in/yaml/v2}/yamlprivateh.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/LICENSE (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/NOTICE (100%) create mode 100644 vendor/go.yaml.in/yaml/v3/README.md rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/apic.go (99%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/decode.go (97%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/emitterc.go (98%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/encode.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/parserc.go (93%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/readerc.go (99%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/resolve.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/scannerc.go (99%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/sorter.go (100%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/writerc.go (99%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/yaml.go (91%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/yamlh.go (99%) rename vendor/{sigs.k8s.io/yaml/goyaml.v3 => go.yaml.in/yaml/v3}/yamlprivateh.go (97%) rename vendor/google.golang.org/protobuf/internal/strs/{strings_unsafe_go121.go => strings_unsafe.go} (99%) delete mode 100644 vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go rename vendor/google.golang.org/protobuf/reflect/protoreflect/{value_unsafe_go121.go => value_unsafe.go} (99%) delete mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go create mode 100644 vendor/k8s.io/api/extensions/v1beta1/zz_generated.validations.go delete mode 100644 vendor/k8s.io/api/networking/v1alpha1/generated.pb.go delete mode 100644 vendor/k8s.io/api/networking/v1alpha1/generated.proto delete mode 100644 vendor/k8s.io/api/networking/v1alpha1/types.go delete mode 100644 vendor/k8s.io/api/networking/v1alpha1/types_swagger_doc_generated.go delete mode 100644 vendor/k8s.io/api/networking/v1alpha1/well_known_labels.go delete mode 100644 vendor/k8s.io/api/networking/v1alpha1/zz_generated.deepcopy.go delete mode 100644 vendor/k8s.io/api/networking/v1alpha1/zz_generated.prerelease-lifecycle.go create mode 100644 vendor/k8s.io/api/resource/v1/devicetaint.go rename vendor/k8s.io/api/{networking/v1alpha1 => resource/v1}/doc.go (83%) create mode 100644 vendor/k8s.io/api/resource/v1/generated.pb.go create mode 100644 vendor/k8s.io/api/resource/v1/generated.proto create mode 100644 vendor/k8s.io/api/resource/v1/register.go create mode 100644 vendor/k8s.io/api/resource/v1/types.go create mode 100644 vendor/k8s.io/api/resource/v1/types_swagger_doc_generated.go create mode 100644 vendor/k8s.io/api/resource/v1/zz_generated.deepcopy.go create mode 100644 vendor/k8s.io/api/resource/v1/zz_generated.prerelease-lifecycle.go create mode 100644 vendor/k8s.io/api/resource/v1alpha3/devicetaint.go create mode 100644 vendor/k8s.io/apimachinery/pkg/api/validate/enum.go create mode 100644 vendor/k8s.io/apimachinery/pkg/api/validate/equality.go create mode 100644 vendor/k8s.io/apimachinery/pkg/api/validate/item.go create mode 100644 vendor/k8s.io/apimachinery/pkg/api/validate/union.go create mode 100644 vendor/k8s.io/apimachinery/pkg/api/validate/zeroorone.go delete mode 100644 vendor/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/custom.go create mode 100644 vendor/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/transcoding.go rename vendor/{sigs.k8s.io/yaml/yaml_go110.go => k8s.io/apimachinery/pkg/util/diff/cmp.go} (55%) create mode 100644 vendor/k8s.io/apimachinery/pkg/util/diff/legacy_diff.go create mode 100644 vendor/k8s.io/apimachinery/pkg/util/managedfields/internal/runtimetypeconverter.go create mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/policy/mutating/errors.go create mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/policy/mutating/metrics/errors.go create mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/policy/mutating/metrics/metrics.go create mode 100644 vendor/k8s.io/apiserver/pkg/cel/common/valuesreflect.go rename vendor/k8s.io/apiserver/pkg/cel/common/{values.go => valuesunstructured.go} (98%) create mode 100644 vendor/k8s.io/apiserver/pkg/endpoints/request/methods.go create mode 100644 vendor/k8s.io/apiserver/pkg/storage/cacher/compactor.go create mode 100644 vendor/k8s.io/apiserver/pkg/storage/etcd3/stats.go create mode 100644 vendor/k8s.io/apiserver/pkg/util/configmetrics/info_collector.go create mode 100644 vendor/k8s.io/cli-runtime/pkg/printers/kyaml.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1/applyconfiguration.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1/jsonpatch.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1/mutatingadmissionpolicy.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1/mutatingadmissionpolicybinding.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1/mutatingadmissionpolicybindingspec.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1/mutatingadmissionpolicyspec.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1/mutation.go rename vendor/k8s.io/client-go/applyconfigurations/{networking/v1alpha1/servicecidr.go => certificates/v1alpha1/podcertificaterequest.go} (62%) create mode 100644 vendor/k8s.io/client-go/applyconfigurations/certificates/v1alpha1/podcertificaterequestspec.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/certificates/v1alpha1/podcertificaterequeststatus.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/core/v1/containerextendedresourcerequest.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/core/v1/containerrestartrule.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/core/v1/containerrestartruleonexitcodes.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/core/v1/filekeyselector.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/core/v1/podcertificateprojection.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/core/v1/podextendedresourceclaimstatus.go delete mode 100644 vendor/k8s.io/client-go/applyconfigurations/networking/v1alpha1/ipaddress.go delete mode 100644 vendor/k8s.io/client-go/applyconfigurations/networking/v1alpha1/ipaddressspec.go delete mode 100644 vendor/k8s.io/client-go/applyconfigurations/networking/v1alpha1/parentreference.go delete mode 100644 vendor/k8s.io/client-go/applyconfigurations/networking/v1alpha1/servicecidrspec.go delete mode 100644 vendor/k8s.io/client-go/applyconfigurations/networking/v1alpha1/servicecidrstatus.go rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/allocateddevicestatus.go (85%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/allocationresult.go (66%) create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1/capacityrequestpolicy.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1/capacityrequestpolicyrange.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1/capacityrequirements.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1/celdeviceselector.go rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/counter.go (98%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/counterset.go (99%) create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1/device.go rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/deviceallocationconfiguration.go (89%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/deviceallocationresult.go (99%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/deviceattribute.go (99%) create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1/devicecapacity.go rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/deviceclaim.go (99%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/deviceclaimconfiguration.go (99%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/deviceclass.go (86%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/deviceclassconfiguration.go (98%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/deviceclassspec.go (73%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/deviceconfiguration.go (98%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/deviceconstraint.go (69%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/devicecounterconsumption.go (99%) create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1/devicerequest.go rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/devicerequestallocationresult.go (52%) create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1/deviceselector.go rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/devicesubrequest.go (76%) create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1/devicetaint.go rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/devicetoleration.go (82%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3/devicerequest.go => v1/exactdevicerequest.go} (52%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/networkdevicedata.go (99%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/opaquedeviceconfiguration.go (99%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/resourceclaim.go (86%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/resourceclaimconsumerreference.go (99%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/resourceclaimspec.go (98%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/resourceclaimstatus.go (99%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/resourceclaimtemplate.go (86%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/resourceclaimtemplatespec.go (91%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/resourcepool.go (99%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/resourceslice.go (86%) rename vendor/k8s.io/client-go/applyconfigurations/resource/{v1alpha3 => v1}/resourceslicespec.go (84%) delete mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1alpha3/basicdevice.go delete mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1alpha3/device.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1beta1/capacityrequestpolicy.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1beta1/capacityrequestpolicyrange.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1beta1/capacityrequirements.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1beta2/capacityrequestpolicy.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1beta2/capacityrequestpolicyrange.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/resource/v1beta2/capacityrequirements.go create mode 100644 vendor/k8s.io/client-go/applyconfigurations/storage/v1/volumeattributesclass.go create mode 100644 vendor/k8s.io/client-go/informers/admissionregistration/v1beta1/mutatingadmissionpolicy.go create mode 100644 vendor/k8s.io/client-go/informers/admissionregistration/v1beta1/mutatingadmissionpolicybinding.go create mode 100644 vendor/k8s.io/client-go/informers/certificates/v1alpha1/podcertificaterequest.go delete mode 100644 vendor/k8s.io/client-go/informers/networking/v1alpha1/interface.go delete mode 100644 vendor/k8s.io/client-go/informers/networking/v1alpha1/ipaddress.go delete mode 100644 vendor/k8s.io/client-go/informers/networking/v1alpha1/servicecidr.go rename vendor/k8s.io/client-go/informers/resource/{v1alpha3 => v1}/deviceclass.go (71%) create mode 100644 vendor/k8s.io/client-go/informers/resource/v1/interface.go rename vendor/k8s.io/client-go/informers/resource/{v1alpha3 => v1}/resourceclaim.go (71%) rename vendor/k8s.io/client-go/informers/resource/{v1alpha3 => v1}/resourceclaimtemplate.go (70%) rename vendor/k8s.io/client-go/informers/resource/{v1alpha3 => v1}/resourceslice.go (71%) create mode 100644 vendor/k8s.io/client-go/informers/storage/v1/volumeattributesclass.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1/fake/fake_mutatingadmissionpolicy.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1/fake/fake_mutatingadmissionpolicybinding.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1/mutatingadmissionpolicy.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1/mutatingadmissionpolicybinding.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/fake/fake_podcertificaterequest.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/podcertificaterequest.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/networking/v1alpha1/fake/fake_ipaddress.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/networking/v1alpha1/fake/fake_servicecidr.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/networking/v1alpha1/ipaddress.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/networking/v1alpha1/servicecidr.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1/deviceclass.go rename vendor/k8s.io/client-go/kubernetes/typed/{networking/v1alpha1 => resource/v1}/doc.go (97%) rename vendor/k8s.io/client-go/kubernetes/typed/{networking/v1alpha1 => resource/v1}/fake/doc.go (100%) create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1/fake/fake_deviceclass.go rename vendor/k8s.io/client-go/kubernetes/typed/{networking/v1alpha1/fake/fake_networking_client.go => resource/v1/fake/fake_resource_client.go} (58%) create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1/fake/fake_resourceclaim.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1/fake/fake_resourceclaimtemplate.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1/fake/fake_resourceslice.go rename vendor/k8s.io/client-go/kubernetes/typed/{networking/v1alpha1 => resource/v1}/generated_expansion.go (77%) rename vendor/k8s.io/client-go/kubernetes/typed/{networking/v1alpha1/networking_client.go => resource/v1/resource_client.go} (56%) create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1/resourceclaim.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1/resourceclaimtemplate.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1/resourceslice.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1alpha3/deviceclass.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1alpha3/fake/fake_deviceclass.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1alpha3/fake/fake_resourceclaim.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1alpha3/fake/fake_resourceclaimtemplate.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1alpha3/fake/fake_resourceslice.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1alpha3/resourceclaim.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1alpha3/resourceclaimtemplate.go delete mode 100644 vendor/k8s.io/client-go/kubernetes/typed/resource/v1alpha3/resourceslice.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/storage/v1/fake/fake_volumeattributesclass.go create mode 100644 vendor/k8s.io/client-go/kubernetes/typed/storage/v1/volumeattributesclass.go create mode 100644 vendor/k8s.io/client-go/listers/admissionregistration/v1beta1/mutatingadmissionpolicy.go create mode 100644 vendor/k8s.io/client-go/listers/admissionregistration/v1beta1/mutatingadmissionpolicybinding.go create mode 100644 vendor/k8s.io/client-go/listers/certificates/v1alpha1/podcertificaterequest.go delete mode 100644 vendor/k8s.io/client-go/listers/networking/v1alpha1/ipaddress.go delete mode 100644 vendor/k8s.io/client-go/listers/networking/v1alpha1/servicecidr.go rename vendor/k8s.io/client-go/listers/resource/{v1alpha3 => v1}/deviceclass.go (78%) create mode 100644 vendor/k8s.io/client-go/listers/resource/v1/expansion_generated.go rename vendor/k8s.io/client-go/listers/resource/{v1alpha3 => v1}/resourceclaim.go (79%) rename vendor/k8s.io/client-go/listers/resource/{v1alpha3 => v1}/resourceclaimtemplate.go (78%) rename vendor/k8s.io/client-go/listers/resource/{v1alpha3 => v1}/resourceslice.go (77%) create mode 100644 vendor/k8s.io/client-go/listers/storage/v1/volumeattributesclass.go delete mode 100644 vendor/k8s.io/client-go/util/consistencydetector/list_data_consistency_detector.go delete mode 100644 vendor/k8s.io/client-go/util/consistencydetector/watch_list_data_consistency_detector.go delete mode 100644 vendor/k8s.io/client-go/util/watchlist/watch_list.go create mode 100644 vendor/k8s.io/component-base/metrics/prometheus/compatversion/metrics.go create mode 100644 vendor/k8s.io/component-base/zpages/statusz/registry.go create mode 100644 vendor/k8s.io/component-base/zpages/statusz/statusz.go create mode 100644 vendor/k8s.io/dynamic-resource-allocation/api/OWNERS create mode 100644 vendor/k8s.io/dynamic-resource-allocation/cel/feature_enabled.go create mode 100644 vendor/k8s.io/dynamic-resource-allocation/structured/internal/allocatedstate.go create mode 100644 vendor/k8s.io/dynamic-resource-allocation/structured/internal/diff.sh create mode 100644 vendor/k8s.io/dynamic-resource-allocation/structured/internal/experimental/allocator_experimental.go create mode 100644 vendor/k8s.io/dynamic-resource-allocation/structured/internal/experimental/constraint.go create mode 100644 vendor/k8s.io/dynamic-resource-allocation/structured/internal/experimental/consumable_capacity.go create mode 100644 vendor/k8s.io/dynamic-resource-allocation/structured/internal/experimental/pools_experimental.go create mode 100644 vendor/k8s.io/dynamic-resource-allocation/structured/internal/incubating/allocator_incubating.go rename vendor/k8s.io/dynamic-resource-allocation/structured/{pools.go => internal/incubating/pools_incubating.go} (77%) create mode 100644 vendor/k8s.io/dynamic-resource-allocation/structured/internal/stable/allocator_stable.go create mode 100644 vendor/k8s.io/dynamic-resource-allocation/structured/internal/stable/pools_stable.go create mode 100644 vendor/k8s.io/dynamic-resource-allocation/structured/internal/types.go create mode 100644 vendor/k8s.io/kms/apis/v1beta1/api_grpc.pb.go create mode 100644 vendor/k8s.io/kms/apis/v2/api_grpc.pb.go create mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/kubernetes-extensions.go create mode 100644 vendor/k8s.io/kube-scheduler/framework/api_dispatcher.go create mode 100644 vendor/k8s.io/kube-scheduler/framework/cycle_state.go create mode 100644 vendor/k8s.io/kube-scheduler/framework/interface.go create mode 100644 vendor/k8s.io/kube-scheduler/framework/types.go create mode 100644 vendor/k8s.io/kubectl/pkg/cmd/util/caching_verifier.go create mode 100644 vendor/k8s.io/kubelet/pkg/apis/OWNERS create mode 100644 vendor/k8s.io/kubernetes/pkg/apis/certificates/OWNERS rename vendor/k8s.io/{client-go/listers/networking/v1alpha1/expansion_generated.go => kubernetes/pkg/apis/certificates/doc.go} (59%) create mode 100644 vendor/k8s.io/kubernetes/pkg/apis/certificates/helpers.go rename vendor/k8s.io/{api/networking/v1alpha1 => kubernetes/pkg/apis/certificates}/register.go (59%) create mode 100644 vendor/k8s.io/kubernetes/pkg/apis/certificates/types.go create mode 100644 vendor/k8s.io/kubernetes/pkg/apis/certificates/zz_generated.deepcopy.go delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/nginx/service.yaml delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/nginx/statefulset.yaml delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/redis/service.yaml delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/redis/statefulset.yaml create mode 100644 vendor/sigs.k8s.io/kustomize/api/internal/plugins/execplugin/shlex.go rename vendor/sigs.k8s.io/{yaml/goyaml.v2 => structured-merge-diff/v6}/LICENSE (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/fieldpath/doc.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/fieldpath/element.go (78%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/fieldpath/fromvalue.go (98%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/fieldpath/managers.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/fieldpath/path.go (98%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/fieldpath/pathelementmap.go (98%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/fieldpath/serialize-pe.go (84%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/fieldpath/serialize.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/fieldpath/set.go (95%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/merge/conflict.go (98%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/merge/update.go (99%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/schema/doc.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/schema/elements.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/schema/equals.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/schema/schemaschema.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/typed/compare.go (98%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/typed/doc.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/typed/helpers.go (93%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/typed/merge.go (98%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/typed/parser.go (97%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/typed/reconcile_schema.go (98%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/typed/remove.go (97%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/typed/tofieldset.go (96%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/typed/typed.go (98%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/typed/validate.go (96%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/allocator.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/doc.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/fields.go (92%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/jsontagutil.go (57%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/list.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/listreflect.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/listunstructured.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/map.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/mapreflect.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/mapunstructured.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/reflectcache.go (97%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/scalar.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/structreflect.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/value.go (94%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/valuereflect.go (100%) rename vendor/sigs.k8s.io/structured-merge-diff/{v4 => v6}/value/valueunstructured.go (100%) delete mode 100644 vendor/sigs.k8s.io/yaml/.travis.yml delete mode 100644 vendor/sigs.k8s.io/yaml/goyaml.v2/OWNERS delete mode 100644 vendor/sigs.k8s.io/yaml/goyaml.v3/OWNERS delete mode 100644 vendor/sigs.k8s.io/yaml/goyaml.v3/patch.go create mode 100644 vendor/sigs.k8s.io/yaml/goyaml.v3/yaml_aliases.go create mode 100644 vendor/sigs.k8s.io/yaml/kyaml/kyaml.go diff --git a/go.mod b/go.mod index d0969c5766..b741e40be9 100644 --- a/go.mod +++ b/go.mod @@ -5,36 +5,36 @@ go 1.24.13 replace ( github.com/docker/distribution => github.com/docker/distribution v2.8.3+incompatible github.com/docker/docker => github.com/docker/docker v25.0.6+incompatible - k8s.io/api => k8s.io/api v0.33.1 - k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.33.1 - k8s.io/apimachinery => k8s.io/apimachinery v0.33.1 - k8s.io/apiserver => k8s.io/apiserver v0.33.1 - k8s.io/cli-runtime => k8s.io/cli-runtime v0.33.1 - k8s.io/client-go => k8s.io/client-go v0.33.1 - k8s.io/cloud-provider => k8s.io/cloud-provider v0.33.1 - k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.33.1 - k8s.io/code-generator => k8s.io/code-generator v0.33.1 - k8s.io/component-base => k8s.io/component-base v0.33.1 - k8s.io/component-helpers => k8s.io/component-helpers v0.33.1 - k8s.io/controller-manager => k8s.io/controller-manager v0.33.1 - k8s.io/cri-api => k8s.io/cri-api v0.33.1 - k8s.io/cri-client => k8s.io/cri-client v0.33.1 - k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.33.1 - k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation v0.33.1 - k8s.io/endpointslice => k8s.io/kubernetes/staging/src/k8s.io/endpointslice v0.33.1 - k8s.io/kms => k8s.io/kms v0.33.1 - k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.33.1 - k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.33.1 - k8s.io/kube-proxy => k8s.io/kube-proxy v0.33.1 - k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.33.1 - k8s.io/kubectl => k8s.io/kubectl v0.33.1 - k8s.io/kubelet => k8s.io/kubelet v0.33.1 - k8s.io/kubernetes => k8s.io/kubernetes v1.33.1 - k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.33.1 - k8s.io/metrics => k8s.io/metrics v0.33.1 - k8s.io/mount-utils => k8s.io/mount-utils v0.33.1 - k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.33.1 - k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.33.1 + k8s.io/api => k8s.io/api v0.34.1 + k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.34.1 + k8s.io/apimachinery => k8s.io/apimachinery v0.34.1 + k8s.io/apiserver => k8s.io/apiserver v0.34.1 + k8s.io/cli-runtime => k8s.io/cli-runtime v0.34.1 + k8s.io/client-go => k8s.io/client-go v0.34.1 + k8s.io/cloud-provider => k8s.io/cloud-provider v0.34.1 + k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.34.1 + k8s.io/code-generator => k8s.io/code-generator v0.34.1 + k8s.io/component-base => k8s.io/component-base v0.34.1 + k8s.io/component-helpers => k8s.io/component-helpers v0.34.1 + k8s.io/controller-manager => k8s.io/controller-manager v0.34.1 + k8s.io/cri-api => k8s.io/cri-api v0.34.1 + k8s.io/cri-client => k8s.io/cri-client v0.34.1 + k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.34.1 + k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation v0.34.1 + k8s.io/endpointslice => k8s.io/kubernetes/staging/src/k8s.io/endpointslice v0.34.1 + k8s.io/kms => k8s.io/kms v0.34.1 + k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.34.1 + k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.34.1 + k8s.io/kube-proxy => k8s.io/kube-proxy v0.34.1 + k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.34.1 + k8s.io/kubectl => k8s.io/kubectl v0.34.1 + k8s.io/kubelet => k8s.io/kubelet v0.34.1 + k8s.io/kubernetes => k8s.io/kubernetes v1.34.1 + k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.34.1 + k8s.io/metrics => k8s.io/metrics v0.34.1 + k8s.io/mount-utils => k8s.io/mount-utils v0.34.1 + k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.34.1 + k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.34.1 ) require ( @@ -46,39 +46,39 @@ require ( github.com/onsi/gomega v1.36.2 github.com/oracle/oci-go-sdk/v65 v65.105.0 github.com/pkg/errors v0.9.1 - github.com/prometheus/client_golang v1.22.0 + github.com/prometheus/client_golang v1.23.0 github.com/spf13/cobra v1.9.1 // indirect github.com/spf13/pflag v1.0.6 github.com/spf13/viper v1.8.1 - github.com/stretchr/testify v1.10.0 + github.com/stretchr/testify v1.11.0 go.uber.org/zap v1.27.0 - golang.org/x/net v0.40.0 - golang.org/x/sys v0.33.0 // indirect - google.golang.org/grpc v1.72.0 + golang.org/x/net v0.43.0 + golang.org/x/sys v0.35.0 // indirect + google.golang.org/grpc v1.72.1 gopkg.in/natefinch/lumberjack.v2 v2.2.1 gopkg.in/yaml.v2 v2.4.0 - k8s.io/api v0.33.2 - k8s.io/apimachinery v0.33.2 - k8s.io/apiserver v0.33.2 // indirect - k8s.io/cloud-provider v0.33.1 - k8s.io/component-base v0.33.2 - k8s.io/component-helpers v0.33.1 - k8s.io/controller-manager v0.33.1 // indirect - k8s.io/csi-translation-lib v0.33.1 // indirect + k8s.io/api v0.34.1 + k8s.io/apimachinery v0.34.1 + k8s.io/apiserver v0.34.1 // indirect + k8s.io/cloud-provider v0.34.1 + k8s.io/component-base v0.34.1 + k8s.io/component-helpers v0.34.1 + k8s.io/controller-manager v0.34.1 // indirect + k8s.io/csi-translation-lib v0.34.1 // indirect k8s.io/klog v1.0.0 k8s.io/klog/v2 v2.130.1 - k8s.io/kubelet v0.33.1 // indirect - k8s.io/kubernetes v1.33.1 - k8s.io/mount-utils v0.33.1 - k8s.io/utils v0.0.0-20241210054802-24370beab758 + k8s.io/kubelet v0.34.1 // indirect + k8s.io/kubernetes v1.34.1 + k8s.io/mount-utils v0.34.1 + k8s.io/utils v0.0.0-20250820121507-0af2bda4dd1d sigs.k8s.io/sig-storage-lib-external-provisioner/v9 v9.1.0-rc.0 ) require ( golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 - golang.org/x/sync v0.15.0 + golang.org/x/sync v0.16.0 golang.org/x/time v0.9.0 - google.golang.org/protobuf v1.36.5 + google.golang.org/protobuf v1.36.6 gopkg.in/yaml.v3 v3.0.1 helm.sh/helm/v3 v3.18.4 k8s.io/apiextensions-apiserver v0.33.2 @@ -86,7 +86,7 @@ require ( ) require ( - cel.dev/expr v0.20.0 // indirect + cel.dev/expr v0.24.0 // indirect dario.cat/mergo v1.0.1 // indirect github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect github.com/BurntSushi/toml v1.5.0 // indirect @@ -109,19 +109,19 @@ require ( github.com/containerd/platforms v0.2.1 // indirect github.com/coreos/go-semver v0.3.1 // indirect github.com/coreos/go-systemd/v22 v22.5.0 // indirect - github.com/cyphar/filepath-securejoin v0.4.1 // indirect + github.com/cyphar/filepath-securejoin v0.5.1 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/distribution/reference v0.6.0 // indirect - github.com/emicklei/go-restful/v3 v3.12.1 // indirect + github.com/emicklei/go-restful/v3 v3.12.2 // indirect github.com/evanphx/json-patch v5.9.11+incompatible // indirect github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect github.com/fatih/color v1.14.1 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect - github.com/fsnotify/fsnotify v1.8.0 // indirect - github.com/fxamacker/cbor/v2 v2.7.0 // indirect + github.com/fsnotify/fsnotify v1.9.0 // indirect + github.com/fxamacker/cbor/v2 v2.9.0 // indirect github.com/go-errors/errors v1.4.2 // indirect github.com/go-gorp/gorp/v3 v3.1.0 // indirect - github.com/go-logr/logr v1.4.2 // indirect + github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/jsonreference v0.21.0 // indirect @@ -130,16 +130,15 @@ require ( github.com/gofrs/flock v0.12.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/google/btree v1.1.3 // indirect - github.com/google/cel-go v0.23.2 // indirect - github.com/google/gnostic-models v0.6.9 // indirect + github.com/google/cel-go v0.26.0 // indirect + github.com/google/gnostic-models v0.7.0 // indirect github.com/google/go-cmp v0.7.0 // indirect - github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect github.com/google/uuid v1.6.0 // indirect github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect github.com/gosuri/uitable v0.0.4 // indirect github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/hcl v1.0.0 // indirect @@ -168,20 +167,20 @@ require ( github.com/moby/sys/mountinfo v0.7.2 // indirect github.com/moby/term v0.5.2 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect github.com/nxadm/tail v1.4.8 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.1 // indirect - github.com/opencontainers/selinux v1.11.1 // indirect + github.com/opencontainers/selinux v1.13.1 // indirect github.com/pelletier/go-toml v1.9.5 // indirect github.com/peterbourgon/diskv v2.0.1+incompatible // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/prometheus/client_model v0.6.1 // indirect - github.com/prometheus/common v0.62.0 // indirect - github.com/prometheus/procfs v0.15.1 // indirect + github.com/prometheus/client_model v0.6.2 // indirect + github.com/prometheus/common v0.65.0 // indirect + github.com/prometheus/procfs v0.16.1 // indirect github.com/rubenv/sql-migrate v1.8.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/shopspring/decimal v1.4.0 // indirect @@ -198,45 +197,46 @@ require ( github.com/xeipuuv/gojsonschema v1.2.0 // indirect github.com/xlab/treeprint v1.2.0 // indirect github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect - go.etcd.io/etcd/api/v3 v3.5.21 // indirect - go.etcd.io/etcd/client/pkg/v3 v3.5.21 // indirect - go.etcd.io/etcd/client/v3 v3.5.21 // indirect + go.etcd.io/etcd/api/v3 v3.6.4 // indirect + go.etcd.io/etcd/client/pkg/v3 v3.6.4 // indirect + go.etcd.io/etcd/client/v3 v3.6.4 // indirect go.opentelemetry.io/auto/sdk v1.1.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect - go.opentelemetry.io/otel v1.34.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 // indirect - go.opentelemetry.io/otel/metric v1.34.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect go.opentelemetry.io/otel/sdk v1.34.0 // indirect - go.opentelemetry.io/otel/trace v1.34.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect go.opentelemetry.io/proto/otlp v1.5.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.39.0 // indirect - golang.org/x/mod v0.25.0 // indirect - golang.org/x/oauth2 v0.28.0 // indirect - golang.org/x/term v0.32.0 // indirect - golang.org/x/text v0.26.0 // indirect - golang.org/x/tools v0.33.0 // indirect - google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20250218202821-56aae31c358a // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20250218202821-56aae31c358a // indirect + go.yaml.in/yaml/v2 v2.4.2 // indirect + go.yaml.in/yaml/v3 v3.0.4 // indirect + golang.org/x/crypto v0.41.0 // indirect + golang.org/x/mod v0.26.0 // indirect + golang.org/x/oauth2 v0.30.0 // indirect + golang.org/x/term v0.34.0 // indirect + golang.org/x/text v0.28.0 // indirect + golang.org/x/tools v0.35.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect - k8s.io/cli-runtime v0.33.2 // indirect + k8s.io/cli-runtime v0.34.1 // indirect k8s.io/dynamic-resource-allocation v0.32.0 // indirect - k8s.io/kms v0.33.1 // indirect - k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect - k8s.io/kube-scheduler v0.33.1 // indirect + k8s.io/kms v0.34.1 // indirect + k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect + k8s.io/kube-scheduler v0.34.1 // indirect k8s.io/kubectl v0.33.2 // indirect oras.land/oras-go/v2 v2.6.0 // indirect sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect - sigs.k8s.io/kustomize/api v0.19.0 // indirect - sigs.k8s.io/kustomize/kyaml v0.19.0 // indirect + sigs.k8s.io/kustomize/api v0.20.1 // indirect + sigs.k8s.io/kustomize/kyaml v0.20.1 // indirect sigs.k8s.io/randfill v1.0.0 // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect - sigs.k8s.io/yaml v1.4.0 // indirect + sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect + sigs.k8s.io/yaml v1.6.0 // indirect ) diff --git a/go.sum b/go.sum index d26bc82f89..7fb4dac645 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -cel.dev/expr v0.20.0 h1:OunBvVCfvpWlt4dN7zg3FM6TDkzOePe1+foGJ9AXeeI= -cel.dev/expr v0.20.0/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= +cel.dev/expr v0.24.0 h1:56OvJKSH3hDGL0ml5uSxZmz3/3Pq4tJ+fb1unVLAFcY= +cel.dev/expr v0.24.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 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= @@ -116,8 +116,8 @@ github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= -github.com/cyphar/filepath-securejoin v0.4.1 h1:JyxxyPEaktOD+GAnqIqTf9A8tHyAG22rowi7HkoSU1s= -github.com/cyphar/filepath-securejoin v0.4.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI= +github.com/cyphar/filepath-securejoin v0.5.1 h1:eYgfMq5yryL4fbWfkLpFFy2ukSELzaJOTaUTuh+oF48= +github.com/cyphar/filepath-securejoin v0.5.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= @@ -136,8 +136,8 @@ github.com/docker/go-metrics v0.0.1 h1:AgB/0SvBxihN0X8OR4SjsblXkbMvalQ8cjmtKQ2rQ github.com/docker/go-metrics v0.0.1/go.mod h1:cG1hvH2utMXtqgqqYE9plW6lDxS3/5ayHzueweSI3Vw= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/emicklei/go-restful/v3 v3.12.1 h1:PJMDIM/ak7btuL8Ex0iYET9hxM3CI2sjZtzpL63nKAU= -github.com/emicklei/go-restful/v3 v3.12.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/emicklei/go-restful/v3 v3.12.2 h1:DhwDP0vY3k8ZzE0RunuJy8GhNpPL6zqLkDf9B/a0/xU= +github.com/emicklei/go-restful/v3 v3.12.2/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= @@ -160,10 +160,10 @@ github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHk github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= 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.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= -github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= -github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= -github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= +github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= +github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= +github.com/fxamacker/cbor/v2 v2.9.0 h1:NpKPmjDBgUfBms6tr6JZkTHtfFGcMKsw3eGcmD/sapM= +github.com/fxamacker/cbor/v2 v2.9.0/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= @@ -174,8 +174,8 @@ github.com/go-gorp/gorp/v3 v3.1.0 h1:ItKF/Vbuj31dmV4jxA1qblpSwkl9g1typ24xoe70IGs github.com/go-gorp/gorp/v3 v3.1.0/go.mod h1:dLEjIyyRNiXvNZ8PSmzpt1GsWAUK8kjVhEpjH8TixEw= github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= -github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ= @@ -199,8 +199,8 @@ github.com/gofrs/flock v0.12.1 h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E= github.com/gofrs/flock v0.12.1/go.mod h1:9zxTsyu5xtJ9DK+1tFZyibEV7y3uwDxPPfbxeeHCoD0= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= -github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8= +github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 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= @@ -236,10 +236,10 @@ github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Z github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= -github.com/google/cel-go v0.23.2 h1:UdEe3CvQh3Nv+E/j9r1Y//WO0K0cSyD7/y0bzyLIMI4= -github.com/google/cel-go v0.23.2/go.mod h1:52Pb6QsDbC5kvgxvZhiL9QX1oZEkcUF/ZqaPx1J5Wwo= -github.com/google/gnostic-models v0.6.9 h1:MU/8wDLif2qCXZmzncUQ/BOfxWfthHi63KqpoNbWqVw= -github.com/google/gnostic-models v0.6.9/go.mod h1:CiWsm0s6BSQd1hRn8/QmxqB6BesYcbSZxsz9b0KuDBw= +github.com/google/cel-go v0.26.0 h1:DPGjXackMpJWH680oGY4lZhYjIameYmR+/6RBdDGmaI= +github.com/google/cel-go v0.26.0/go.mod h1:A9O8OU9rdvrK5MQyrqfIxo1a0u4g3sF8KB6PUIaryMM= +github.com/google/gnostic-models v0.7.0 h1:qwTtogB15McXDaNqTZdzPJRHvaVJlAl+HVQnLmJEJxo= +github.com/google/gnostic-models v0.7.0/go.mod h1:whL5G0m6dmc5cPxKc5bdKdEN3UjI7OUGxBlw57miDrQ= 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= @@ -251,7 +251,6 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ 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.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= @@ -272,8 +271,6 @@ github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad h1:a6HEuzUHeKH6hwfN/ZoQgRgVIWFJljSWa/zetS2WTvg= github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -291,13 +288,15 @@ github.com/gosuri/uitable v0.0.4/go.mod h1:tKR86bXuXPZazfOTG1FIzvjIdXzd0mo4Vtn16 github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= 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-middleware/providers/prometheus v1.0.1 h1:qnpSQwGEnkcRpTqNOIR6bJbR0gAorgP9CSALpRcKoAA= +github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1/go.mod h1:lXGCsh6c22WGtjr+qGHj1otzZpV/1kwTMAqkwZsnWRU= +github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.0 h1:FbSCl+KggFl+Ocym490i/EyXF4lPgLoUtcSWquBM0Rs= +github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.0/go.mod h1:qOchhhIlmRcqk/O9uCo/puJlyo07YINaIqdZfZG3Jkc= 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.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1 h1:VNqngBF40hVlDloBruUehVYC3ArSgIyScOAyMRqBxRg= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1/go.mod h1:RBRO7fro65R6tjKzYgLAFo0t1QEXY1Dp+i/bvpRiqiQ= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 h1:5ZPtiqj0JL5oKWmcsq4VMaAW5ukBEgSGXEN89zeH1Jo= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3/go.mod h1:ndYquD05frm2vACXE1nsccT4oJzjhw2arTS2cpUD1PI= github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -337,8 +336,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jmoiron/sqlx v1.4.0 h1:1PLqN7S1UYp5t4SrVVnt4nUVNemrDAtxlulVe+Qgm3o= github.com/jmoiron/sqlx v1.4.0/go.mod h1:ZrZ7UsYB/weZdl2Bxg6jCRO9c3YHl8r3ahlKmRT4JLY= -github.com/jonboulle/clockwork v0.4.0 h1:p4Cf1aMWXnXAUh8lVfewRBx1zaTSYKrKMF2g3ST4RZ4= -github.com/jonboulle/clockwork v0.4.0/go.mod h1:xgRqUGwRcjKCO1vbZUEtSLrqKoPSsUpK7fnezOII0kc= +github.com/jonboulle/clockwork v0.5.0 h1:Hyh9A8u51kptdkR+cqRpT1EebBwTn1oK9YfGYbdFz6I= +github.com/jonboulle/clockwork v0.5.0/go.mod h1:3mZlmanh0g2NDKO5TWZVJAfofYk64M7XN3SzBPjZF60= 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/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -419,8 +418,9 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w 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/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/2gBQ3RWajuToeY6ZtZTIKv2v7ThUy5KKusIT0yc0= github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= @@ -444,8 +444,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8 github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040= github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M= -github.com/opencontainers/selinux v1.11.1 h1:nHFvthhM0qY8/m+vfhJylliSshm8G1jJ2jDMcgULaH8= -github.com/opencontainers/selinux v1.11.1/go.mod h1:E5dMC3VPuVvVHDYmi78qvhJp8+M586T4DlDRYpFkyec= +github.com/opencontainers/selinux v1.13.1 h1:A8nNeceYngH9Ow++M+VVEwJVpdFmrlxsN22F+ISDCJE= +github.com/opencontainers/selinux v1.13.1/go.mod h1:S10WXZ/osk2kWOYKy1x2f/eXF5ZHJoUs8UU/2caNRbg= github.com/oracle/oci-go-sdk/v65 v65.105.0 h1:VN3IkW4kwyOOIrjrg7Lh1QGG/sou54c8dqTZB2THeTE= github.com/oracle/oci-go-sdk/v65 v65.105.0/go.mod h1:oB8jFGVc/7/zJ+DbleE8MzGHjhs2ioCz5stRTdZdIcY= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= @@ -466,15 +466,15 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/poy/onpar v1.1.2 h1:QaNrNiZx0+Nar5dLgTVp5mXkyoVFIbepjyEoGSnhbAY= github.com/poy/onpar v1.1.2/go.mod h1:6X8FLNoxyr9kkmnlqpK6LSoiOtrO6MICtWwEuWkLjzg= -github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q= -github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0= +github.com/prometheus/client_golang v1.23.0 h1:ust4zpdl9r4trLY/gSjlm07PuiBq2ynaXXlptpfy8Uc= +github.com/prometheus/client_golang v1.23.0/go.mod h1:i/o0R9ByOnHX0McrTMTyhYvKE4haaf2mW08I+jGAjEE= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= -github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= -github.com/prometheus/common v0.62.0 h1:xasJaQlnWAeyHdUBeGjXmutelfJHWMRr+Fg4QszZ2Io= -github.com/prometheus/common v0.62.0/go.mod h1:vyBcEuLSvWos9B1+CyL7JZ2up+uFzXhkqml0W5zIY1I= -github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= -github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= +github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= +github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= +github.com/prometheus/common v0.65.0 h1:QDwzd+G1twt//Kwj/Ww6E9FQq1iVMmODnILtW1t2VzE= +github.com/prometheus/common v0.65.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8= +github.com/prometheus/procfs v0.16.1 h1:hZ15bTNuirocR6u0JZ6BAHHmwS1p8B4P6MRqxtzMyRg= +github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is= github.com/redis/go-redis/extra/rediscmd/v9 v9.0.5 h1:EaDatTxkdHG+U3Bk4EUr+DZ7fOGwTfezUiUJMaIcaho= github.com/redis/go-redis/extra/rediscmd/v9 v9.0.5/go.mod h1:fyalQWdtzDBECAQFBJuQe5bzQ02jGd5Qcbgb97Flm7U= github.com/redis/go-redis/extra/redisotel/v9 v9.0.5 h1:EfpWLLCyXw8PSM2/XNJLjI3Pb27yVE+gIAfeqp8LUCc= @@ -534,8 +534,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.11.0 h1:ib4sjIrwZKxE5u/Japgo/7SJV3PvgjGiRNAvTVGqQl8= +github.com/stretchr/testify v1.11.0/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= @@ -561,25 +561,23 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de 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= -go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0= -go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I= +go.etcd.io/bbolt v1.4.2 h1:IrUHp260R8c+zYx/Tm8QZr04CX+qWS5PGfPdevhdm1I= +go.etcd.io/bbolt v1.4.2/go.mod h1:Is8rSHO/b4f3XigBC0lL0+4FwAQv3HXEEIgFMuKHceM= go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/api/v3 v3.5.21 h1:A6O2/JDb3tvHhiIz3xf9nJ7REHvtEFJJ3veW3FbCnS8= -go.etcd.io/etcd/api/v3 v3.5.21/go.mod h1:c3aH5wcvXv/9dqIw2Y810LDXJfhSYdHQ0vxmP3CCHVY= +go.etcd.io/etcd/api/v3 v3.6.4 h1:7F6N7toCKcV72QmoUKa23yYLiiljMrT4xCeBL9BmXdo= +go.etcd.io/etcd/api/v3 v3.6.4/go.mod h1:eFhhvfR8Px1P6SEuLT600v+vrhdDTdcfMzmnxVXXSbk= go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/pkg/v3 v3.5.21 h1:lPBu71Y7osQmzlflM9OfeIV2JlmpBjqBNlLtcoBqUTc= -go.etcd.io/etcd/client/pkg/v3 v3.5.21/go.mod h1:BgqT/IXPjK9NkeSDjbzwsHySX3yIle2+ndz28nVsjUs= +go.etcd.io/etcd/client/pkg/v3 v3.6.4 h1:9HBYrjppeOfFjBjaMTRxT3R7xT0GLK8EJMVC4xg6ok0= +go.etcd.io/etcd/client/pkg/v3 v3.6.4/go.mod h1:sbdzr2cl3HzVmxNw//PH7aLGVtY4QySjQFuaCgcRFAI= go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= -go.etcd.io/etcd/client/v2 v2.305.21 h1:eLiFfexc2mE+pTLz9WwnoEsX5JTTpLCYVivKkmVXIRA= -go.etcd.io/etcd/client/v2 v2.305.21/go.mod h1:OKkn4hlYNf43hpjEM3Ke3aRdUkhSl8xjKjSf8eCq2J8= -go.etcd.io/etcd/client/v3 v3.5.21 h1:T6b1Ow6fNjOLOtM0xSoKNQt1ASPCLWrF9XMHcH9pEyY= -go.etcd.io/etcd/client/v3 v3.5.21/go.mod h1:mFYy67IOqmbRf/kRUvsHixzo3iG+1OF2W2+jVIQRAnU= -go.etcd.io/etcd/pkg/v3 v3.5.21 h1:jUItxeKyrDuVuWhdh0HtjUANwyuzcb7/FAeUfABmQsk= -go.etcd.io/etcd/pkg/v3 v3.5.21/go.mod h1:wpZx8Egv1g4y+N7JAsqi2zoUiBIUWznLjqJbylDjWgU= -go.etcd.io/etcd/raft/v3 v3.5.21 h1:dOmE0mT55dIUsX77TKBLq+RgyumsQuYeiRQnW/ylugk= -go.etcd.io/etcd/raft/v3 v3.5.21/go.mod h1:fmcuY5R2SNkklU4+fKVBQi2biVp5vafMrWUEj4TJ4Cs= -go.etcd.io/etcd/server/v3 v3.5.21 h1:9w0/k12majtgarGmlMVuhwXRI2ob3/d1Ik3X5TKo0yU= -go.etcd.io/etcd/server/v3 v3.5.21/go.mod h1:G1mOzdwuzKT1VRL7SqRchli/qcFrtLBTAQ4lV20sXXo= +go.etcd.io/etcd/client/v3 v3.6.4 h1:YOMrCfMhRzY8NgtzUsHl8hC2EBSnuqbR3dh84Uryl7A= +go.etcd.io/etcd/client/v3 v3.6.4/go.mod h1:jaNNHCyg2FdALyKWnd7hxZXZxZANb0+KGY+YQaEMISo= +go.etcd.io/etcd/pkg/v3 v3.6.4 h1:fy8bmXIec1Q35/jRZ0KOes8vuFxbvdN0aAFqmEfJZWA= +go.etcd.io/etcd/pkg/v3 v3.6.4/go.mod h1:kKcYWP8gHuBRcteyv6MXWSN0+bVMnfgqiHueIZnKMtE= +go.etcd.io/etcd/server/v3 v3.6.4 h1:LsCA7CzjVt+8WGrdsnh6RhC0XqCsLkBly3ve5rTxMAU= +go.etcd.io/etcd/server/v3 v3.6.4/go.mod h1:aYCL/h43yiONOv0QIR82kH/2xZ7m+IWYjzRmyQfnCAg= +go.etcd.io/raft/v3 v3.6.0 h1:5NtvbDVYpnfZWcIHgGRk9DyzkBIXOi8j+DDp1IcnUWQ= +go.etcd.io/raft/v3 v3.6.0/go.mod h1:nLvLevg6+xrVtHUmVaTcTz603gQPHfh7kUAwV6YpfGo= 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= @@ -593,12 +591,12 @@ go.opentelemetry.io/contrib/bridges/prometheus v0.57.0 h1:UW0+QyeyBVhn+COBec3nGh go.opentelemetry.io/contrib/bridges/prometheus v0.57.0/go.mod h1:ppciCHRLsyCio54qbzQv0E4Jyth/fLWDTJYfvWpcSVk= go.opentelemetry.io/contrib/exporters/autoexport v0.57.0 h1:jmTVJ86dP60C01K3slFQa2NQ/Aoi7zA+wy7vMOKD9H4= go.opentelemetry.io/contrib/exporters/autoexport v0.57.0/go.mod h1:EJBheUMttD/lABFyLXhce47Wr6DPWYReCzaZiXadH7g= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0 h1:PS8wXpbyaDJQ2VDHHncMe9Vct0Zn1fEjpsjrLxGJoSc= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0/go.mod h1:HDBUsEjOuRC0EzKZ1bSaRGZWUBAzo+MhAcUUORSr4D0= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 h1:x7wzEgXfnzJcHDwStJT+mxOz4etr2EcexjqhBvmoakw= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0/go.mod h1:rg+RlpR5dKwaS95IyyZqj5Wd4E13lk/msnTS0Xl9lJM= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 h1:yd02MEjBdJkG3uabWP9apV+OuWRIXGDuJEUJbOHmCFU= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0/go.mod h1:umTcuxiv1n/s/S6/c2AT/g2CQ7u5C59sHDNmfSwgz7Q= -go.opentelemetry.io/otel v1.34.0 h1:zRLXxLCgL1WyKsPVrgbSdMN4c0FMkDAskSTQP+0hdUY= -go.opentelemetry.io/otel v1.34.0/go.mod h1:OWFPOQ+h4G8xpyjgqo4SxJYdDQ/qmRH+wivy7zzx9oI= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.8.0 h1:WzNab7hOOLzdDF/EoWCt4glhrbMPVMOO5JYTmpz36Ls= go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.8.0/go.mod h1:hKvJwTzJdp90Vh7p6q/9PAOd55dI6WA6sWj62a/JvSs= go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.8.0 h1:S+LdBGiQXtJdowoJoQPEtI52syEP/JYBUpjO49EQhV8= @@ -607,10 +605,10 @@ go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.32.0 h1:j7Z go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.32.0/go.mod h1:WXbYJTUaZXAbYd8lbgGuvih0yuCfOFC5RJoYnoLcGz8= go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.32.0 h1:t/Qur3vKSkUCcDVaSumWF2PKHt85pc7fRvFuoVT8qFU= go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.32.0/go.mod h1:Rl61tySSdcOJWoEgYZVtmnKdA0GeKrSqkHC1t+91CH8= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 h1:Vh5HayB/0HHfOQA7Ctx69E/Y/DcQSMPpKANYVMQ7fBA= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0/go.mod h1:cpgtDBaqD/6ok/UG0jT15/uKjAY8mRA53diogHBg3UI= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 h1:5pojmb1U1AogINhN3SurB+zm/nIcusopeBNp42f45QM= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0/go.mod h1:57gTHJSE5S1tqg+EKsLPlTWhpHMsWlVmer+LA926XiA= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 h1:OeNbIYk/2C15ckl7glBlOBp5+WlYsOElzTNmiPW/x60= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0/go.mod h1:7Bept48yIeqxP2OZ9/AqIpYS94h2or0aB4FypJTc8ZM= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 h1:tgJ0uaNS4c98WRNUEx5U3aDlrDOI5Rs+1Vifcw4DJ8U= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0/go.mod h1:U7HYyW0zt/a9x5J1Kjs+r1f/d4ZHnYFclhYY2+YbeoE= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.32.0 h1:cMyu9O88joYEaI47CnQkxO1XZdpoTF9fEnW2duIddhw= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.32.0/go.mod h1:6Am3rn7P9TVVeXYG+wtcGE7IE1tsQ+bP3AuWcKt/gOI= go.opentelemetry.io/otel/exporters/prometheus v0.54.0 h1:rFwzp68QMgtzu9PgP3jm9XaMICI6TsofWWPcBDKwlsU= @@ -623,16 +621,16 @@ go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.32.0 h1:cC2yDI3IQd0Udsu go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.32.0/go.mod h1:2PD5Ex6z8CFzDbTdOlwyNIUywRr1DN0ospafJM1wJ+s= go.opentelemetry.io/otel/log v0.8.0 h1:egZ8vV5atrUWUbnSsHn6vB8R21G2wrKqNiDt3iWertk= go.opentelemetry.io/otel/log v0.8.0/go.mod h1:M9qvDdUTRCopJcGRKg57+JSQ9LgLBrwwfC32epk5NX8= -go.opentelemetry.io/otel/metric v1.34.0 h1:+eTR3U0MyfWjRDhmFMxe2SsW64QrZ84AOhvqS7Y+PoQ= -go.opentelemetry.io/otel/metric v1.34.0/go.mod h1:CEDrp0fy2D0MvkXE+dPV7cMi8tWZwX3dmaIhwPOaqHE= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.34.0 h1:95zS4k/2GOy069d321O8jWgYsW3MzVV+KuSPKp7Wr1A= go.opentelemetry.io/otel/sdk v1.34.0/go.mod h1:0e/pNiaMAqaykJGKbi+tSjWfNNHMTxoC9qANsCzbyxU= go.opentelemetry.io/otel/sdk/log v0.8.0 h1:zg7GUYXqxk1jnGF/dTdLPrK06xJdrXgqgFLnI4Crxvs= go.opentelemetry.io/otel/sdk/log v0.8.0/go.mod h1:50iXr0UVwQrYS45KbruFrEt4LvAdCaWWgIrsN3ZQggo= go.opentelemetry.io/otel/sdk/metric v1.34.0 h1:5CeK9ujjbFVL5c1PhLuStg1wxA7vQv7ce1EK0Gyvahk= go.opentelemetry.io/otel/sdk/metric v1.34.0/go.mod h1:jQ/r8Ze28zRKoNRdkjCZxfs6YvBTG1+YIqyFVFYec5w= -go.opentelemetry.io/otel/trace v1.34.0 h1:+ouXS2V8Rd4hp4580a8q23bg0azF2nI8cqLYnC8mh/k= -go.opentelemetry.io/otel/trace v1.34.0/go.mod h1:Svm7lSjQD7kG7KJ/MUHPVXSDGz2OX4h0M2jHBhmSfRE= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= go.opentelemetry.io/proto/otlp v1.5.0 h1:xJvq7gMzB31/d406fB8U5CBdyQGw4P399D1aQWU/3i4= go.opentelemetry.io/proto/otlp v1.5.0/go.mod h1:keN8WnHxOy8PG0rQZjJJ5A2ebUoafqWp0eVQ4yIXvJ4= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= @@ -644,6 +642,10 @@ go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN8 go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI= +go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU= +go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/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= @@ -651,8 +653,8 @@ golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8U 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-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.39.0 h1:SHs+kF4LP+f+p14esP5jAoDpHU8Gu/v9lFRK6IT5imM= -golang.org/x/crypto v0.39.0/go.mod h1:L+Xg3Wf6HoL4Bn4238Z6ft6KfEpN0tJGo53AAPC632U= +golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4= +golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/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-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -690,8 +692,8 @@ golang.org/x/mod v0.3.0/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.25.0 h1:n7a+ZbQKQA/Ysbyb0/6IbB1H/X41mKgbhfv7AfG/44w= -golang.org/x/mod v0.25.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww= +golang.org/x/mod v0.26.0 h1:EGMPT//Ezu+ylkCijjPc+f4Aih7sZvaAr+O3EHBxvZg= +golang.org/x/mod v0.26.0/go.mod h1:/j6NAhSk8iQ723BGAUyoAcn7SlD7s15Dp9Nd/SfeaFQ= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -730,8 +732,8 @@ golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v 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.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY= -golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds= +golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= +golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= 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= @@ -744,8 +746,8 @@ golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ 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.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc= -golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= +golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI= +golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU= 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= @@ -757,8 +759,8 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ 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/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.15.0 h1:KWH3jNZsfyT6xfAfKiz6MRNmd46ByHDYaZ7KSkCtdW8= -golang.org/x/sync v0.15.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= +golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -807,11 +809,11 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw= -golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= +golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg= -golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ= +golang.org/x/term v0.34.0 h1:O/2T7POpk0ZZ7MAzMeWFSg6S5IpWd/RXDlM9hgM3DR4= +golang.org/x/term v0.34.0/go.mod h1:5jC53AEywhIVebHgPVeg0mj8OD3VO9OzclacVrqpaAw= 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= @@ -819,8 +821,8 @@ 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.26.0 h1:P42AVeLghgTYr4+xUnTRKDMqpar+PtX7KWuNQL21L8M= -golang.org/x/text v0.26.0/go.mod h1:QK15LZJUUQVJxhz7wXgxSy/CJaTFjd0G+YLonydOVQA= +golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng= +golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU= 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= @@ -878,8 +880,8 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f 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.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.33.0 h1:4qz2S3zmRxbGIhDIAgjxvFutSvH5EfnsYrRBj0UI0bc= -golang.org/x/tools v0.33.0/go.mod h1:CIJMaWEY88juyUfo7UbgPqbC8rU2OqfAV1h2Qp0oMYI= +golang.org/x/tools v0.35.0 h1:mBffYraMEf7aa0sB+NuKnuCy8qI/9Bughn8dC2Gu5r0= +golang.org/x/tools v0.35.0/go.mod h1:NKdj5HkL/73byiZSJjqJgKn3ep7KjFkBOkR/Hps3VPw= 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= @@ -954,12 +956,10 @@ google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6D 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-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= -google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= -google.golang.org/genproto/googleapis/api v0.0.0-20250218202821-56aae31c358a h1:nwKuGPlUAt+aR+pcrkfFRrTU1BVrSmYyYMxYbUIVHr0= -google.golang.org/genproto/googleapis/api v0.0.0-20250218202821-56aae31c358a/go.mod h1:3kWAYMk1I75K4vykHtKt2ycnOgpA6974V7bREqbsenU= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250218202821-56aae31c358a h1:51aaUVRocpvUOSQKM6Q7VuoaktNIaMCLuhZB6DKksq4= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250218202821-56aae31c358a/go.mod h1:uRxBH1mhmO8PGhU89cMcHaXKZqO+OfakD8QQO0oYwlQ= +google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb h1:p31xT4yrYrSM/G4Sn2+TNUkVhFCbG9y8itM2S6Th950= +google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:jbe3Bkdp+Dh2IrslsFCklNhweNTBgSYanP1UXhJDhKg= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb h1:TLPQVbx1GJ8VKZxz52VAxl1EBgKXXbTiU9Fc5fZeLn4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:LuRYeWDFV6WOn90g357N17oMCaxpgCnbi/44qJvDn2I= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -980,8 +980,8 @@ google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAG google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.72.0 h1:S7UkcVa60b5AAQTaO6ZKamFp1zMZSU0fGDK2WZLbBnM= -google.golang.org/grpc v1.72.0/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM= +google.golang.org/grpc v1.72.1 h1:HR03wO6eyZ7lknl75XlxABNVLLFc2PAb6mHlYh756mA= +google.golang.org/grpc v1.72.1/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM= 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= @@ -994,8 +994,8 @@ google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGj 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.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM= -google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY= +google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= 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-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= @@ -1033,50 +1033,50 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh 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.33.1 h1:tA6Cf3bHnLIrUK4IqEgb2v++/GYUtqiu9sRVk3iBXyw= -k8s.io/api v0.33.1/go.mod h1:87esjTn9DRSRTD4fWMXamiXxJhpOIREjWOSjsW1kEHw= -k8s.io/apiextensions-apiserver v0.33.1 h1:N7ccbSlRN6I2QBcXevB73PixX2dQNIW0ZRuguEE91zI= -k8s.io/apiextensions-apiserver v0.33.1/go.mod h1:uNQ52z1A1Gu75QSa+pFK5bcXc4hq7lpOXbweZgi4dqA= -k8s.io/apimachinery v0.33.1 h1:mzqXWV8tW9Rw4VeW9rEkqvnxj59k1ezDUl20tFK/oM4= -k8s.io/apimachinery v0.33.1/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM= -k8s.io/apiserver v0.33.1 h1:yLgLUPDVC6tHbNcw5uE9mo1T6ELhJj7B0geifra3Qdo= -k8s.io/apiserver v0.33.1/go.mod h1:VMbE4ArWYLO01omz+k8hFjAdYfc3GVAYPrhP2tTKccs= -k8s.io/cli-runtime v0.33.1 h1:TvpjEtF71ViFmPeYMj1baZMJR4iWUEplklsUQ7D3quA= -k8s.io/cli-runtime v0.33.1/go.mod h1:9dz5Q4Uh8io4OWCLiEf/217DXwqNgiTS/IOuza99VZE= -k8s.io/client-go v0.33.1 h1:ZZV/Ks2g92cyxWkRRnfUDsnhNn28eFpt26aGc8KbXF4= -k8s.io/client-go v0.33.1/go.mod h1:JAsUrl1ArO7uRVFWfcj6kOomSlCv+JpvIsp6usAGefA= -k8s.io/cloud-provider v0.33.1 h1:nOmby9fIKCBJr9fNKXpLK5IBbS1snX82+JIxfxGvhI8= -k8s.io/cloud-provider v0.33.1/go.mod h1:2lvWqPsvBOzbtGWjGfVDX/ttpvSeI9ZdB8d4TbYnt9s= -k8s.io/component-base v0.33.1 h1:EoJ0xA+wr77T+G8p6T3l4efT2oNwbqBVKR71E0tBIaI= -k8s.io/component-base v0.33.1/go.mod h1:guT/w/6piyPfTgq7gfvgetyXMIh10zuXA6cRRm3rDuY= -k8s.io/component-helpers v0.33.1 h1:DdQMww8jOr+sGhIrkz70Lp9Qerq/JzeZDBRd508DHDo= -k8s.io/component-helpers v0.33.1/go.mod h1:LQwxW5L3dH7341Unj+phndJu0Ic5UjxA//7FT8YVP5U= -k8s.io/controller-manager v0.33.1 h1:ZYTzGp2f9TVhHCvrgSQtc367yR+D3UditkHDHCZc2GU= -k8s.io/controller-manager v0.33.1/go.mod h1:p1yW7I5NFIuhXvSW9Wa/MdN3oIqXd2DRDgacb/hcUF0= -k8s.io/csi-translation-lib v0.33.1 h1:tRcu87MCjj7hE49GhtS4HZ1wiepOxS+gAayPENx9GHc= -k8s.io/csi-translation-lib v0.33.1/go.mod h1:IdPMbBZhBP+kU3H5afsezLY5kaS9mmg8cR8NLfUVdf0= -k8s.io/dynamic-resource-allocation v0.33.1 h1:xnEWV764LIsRQDTQ0tLFQMz1lY34Ep7D+/NNbrODfm4= -k8s.io/dynamic-resource-allocation v0.33.1/go.mod h1:AgBLCrIi+//A4VKljjJ7YPpJ+LeyDyTvUk7v8+Qf3pI= +k8s.io/api v0.34.1 h1:jC+153630BMdlFukegoEL8E/yT7aLyQkIVuwhmwDgJM= +k8s.io/api v0.34.1/go.mod h1:SB80FxFtXn5/gwzCoN6QCtPD7Vbu5w2n1S0J5gFfTYk= +k8s.io/apiextensions-apiserver v0.34.1 h1:NNPBva8FNAPt1iSVwIE0FsdrVriRXMsaWFMqJbII2CI= +k8s.io/apiextensions-apiserver v0.34.1/go.mod h1:hP9Rld3zF5Ay2Of3BeEpLAToP+l4s5UlxiHfqRaRcMc= +k8s.io/apimachinery v0.34.1 h1:dTlxFls/eikpJxmAC7MVE8oOeP1zryV7iRyIjB0gky4= +k8s.io/apimachinery v0.34.1/go.mod h1:/GwIlEcWuTX9zKIg2mbw0LRFIsXwrfoVxn+ef0X13lw= +k8s.io/apiserver v0.34.1 h1:U3JBGdgANK3dfFcyknWde1G6X1F4bg7PXuvlqt8lITA= +k8s.io/apiserver v0.34.1/go.mod h1:eOOc9nrVqlBI1AFCvVzsob0OxtPZUCPiUJL45JOTBG0= +k8s.io/cli-runtime v0.34.1 h1:btlgAgTrYd4sk8vJTRG6zVtqBKt9ZMDeQZo2PIzbL7M= +k8s.io/cli-runtime v0.34.1/go.mod h1:aVA65c+f0MZiMUPbseU/M9l1Wo2byeaGwUuQEQVVveE= +k8s.io/client-go v0.34.1 h1:ZUPJKgXsnKwVwmKKdPfw4tB58+7/Ik3CrjOEhsiZ7mY= +k8s.io/client-go v0.34.1/go.mod h1:kA8v0FP+tk6sZA0yKLRG67LWjqufAoSHA2xVGKw9Of8= +k8s.io/cloud-provider v0.34.1 h1:FS+4C1vq9pIngd/5LR5Jha1sEbn+fo0HJitgZmUyBNc= +k8s.io/cloud-provider v0.34.1/go.mod h1:ghyQYfQIWZAXKNS+TEgEiQ8wPuhzIVt3wFO6rKqS/rQ= +k8s.io/component-base v0.34.1 h1:v7xFgG+ONhytZNFpIz5/kecwD+sUhVE6HU7qQUiRM4A= +k8s.io/component-base v0.34.1/go.mod h1:mknCpLlTSKHzAQJJnnHVKqjxR7gBeHRv0rPXA7gdtQ0= +k8s.io/component-helpers v0.34.1 h1:gWhH3CCdwAx5P3oJqZKb4Lg5FYZTWVbdWtOI8n9U4XY= +k8s.io/component-helpers v0.34.1/go.mod h1:4VgnUH7UA/shuBur+OWoQC0xfb69sy/93ss0ybZqm3c= +k8s.io/controller-manager v0.34.1 h1:c9Cmun/zF740kmdRQWPGga+4MglT5SlrwsCXDS/KtJI= +k8s.io/controller-manager v0.34.1/go.mod h1:fGiJDhi3OSzSAB4f40ZkJLAqMQSag9RM+7m5BRhBO3Q= +k8s.io/csi-translation-lib v0.34.1 h1:8+QMIWBwPGFsqWw9eAvimA2GaHXGgLLYT61I1NzDnXw= +k8s.io/csi-translation-lib v0.34.1/go.mod h1:QXytPJ1KzYQaiMgVm82ANG+RGAUf276m8l9gFT+R6Xg= +k8s.io/dynamic-resource-allocation v0.34.1 h1:pd9qhOeAFkn8eOO4BthAiGHQc8pu+N6TK/2Fj+jaPwU= +k8s.io/dynamic-resource-allocation v0.34.1/go.mod h1:Zlpqyh6EKhTVoQDe5BS31/8oMXGfG6c12ydj3ChXyuw= 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.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kms v0.33.1 h1:jJKrFhsbVofpyLF+G8k+drwOAF9CMQpxilHa5Uilb8Q= -k8s.io/kms v0.33.1/go.mod h1:C1I8mjFFBNzfUZXYt9FZVJ8MJl7ynFbGgZFbBzkBJ3E= -k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUyGcf03XZEP0ZIKgKj35LS4= -k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff/go.mod h1:5jIi+8yX4RIb8wk3XwBo5Pq2ccx4FP10ohkbSKCZoK8= -k8s.io/kube-scheduler v0.33.1 h1:0WfBGqrfy3HzqgIVxIRpq+iYQKMgh24vcmAlvDYRkzo= -k8s.io/kube-scheduler v0.33.1/go.mod h1:Gz6+HUJcGvIkRk1PRLVniVwYasVvNhjhTbZWPh2gJ+8= -k8s.io/kubectl v0.33.1 h1:OJUXa6FV5bap6iRy345ezEjU9dTLxqv1zFTVqmeHb6A= -k8s.io/kubectl v0.33.1/go.mod h1:Z07pGqXoP4NgITlPRrnmiM3qnoo1QrK1zjw85Aiz8J0= -k8s.io/kubelet v0.33.1 h1:x4LCw1/iZVWOKA4RoITnuB8gMHnw31HPB3S0EF0EexE= -k8s.io/kubelet v0.33.1/go.mod h1:8WpdC9M95VmsqIdGSQrajXooTfT5otEj8pGWOm+KKfQ= -k8s.io/kubernetes v1.33.1 h1:86+VVY/f11taZdpEZrNciLw1MIQhu6BFXf/OMFn5EUg= -k8s.io/kubernetes v1.33.1/go.mod h1:2nWuPk0seE4+6sd0x60wQ6rYEXcV7SoeMbU0YbFm/5k= -k8s.io/mount-utils v0.33.1 h1:hodPhfyoK+gG0SgnYwx1iPrlnpaESZiJ9GFzF5V/imE= -k8s.io/mount-utils v0.33.1/go.mod h1:1JR4rKymg8B8bCPo618hpSAdrpO6XLh0Acqok/xVwPE= -k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJJI8IUa1AmH/qa0= -k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +k8s.io/kms v0.34.1 h1:iCFOvewDPzWM9fMTfyIPO+4MeuZ0tcZbugxLNSHFG4w= +k8s.io/kms v0.34.1/go.mod h1:s1CFkLG7w9eaTYvctOxosx88fl4spqmixnNpys0JAtM= +k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b h1:MloQ9/bdJyIu9lb1PzujOPolHyvO06MXG5TUIj2mNAA= +k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b/go.mod h1:UZ2yyWbFTpuhSbFhv24aGNOdoRdJZgsIObGBUaYVsts= +k8s.io/kube-scheduler v0.34.1 h1:S5td6VZwC3lCqERXclerDXhJ26zYc6JroY0s03+PqJ8= +k8s.io/kube-scheduler v0.34.1/go.mod h1:UiOkod/w+HKoGut9mz9ie4s4KcI82vmLFdq1iIgsmRs= +k8s.io/kubectl v0.34.1 h1:1qP1oqT5Xc93K+H8J7ecpBjaz511gan89KO9Vbsh/OI= +k8s.io/kubectl v0.34.1/go.mod h1:JRYlhJpGPyk3dEmJ+BuBiOB9/dAvnrALJEiY/C5qa6A= +k8s.io/kubelet v0.34.1 h1:doAaTA9/Yfzbdq/u/LveZeONp96CwX9giW6b+oHn4m4= +k8s.io/kubelet v0.34.1/go.mod h1:PtV3Ese8iOM19gSooFoQT9iyRisbmJdAPuDImuccbbA= +k8s.io/kubernetes v1.34.1 h1:F3p8dtpv+i8zQoebZeK5zBqM1g9x1aIdnA5vthvcuUk= +k8s.io/kubernetes v1.34.1/go.mod h1:iu+FhII+Oc/1gGWLJcer6wpyih441aNFHl7Pvm8yPto= +k8s.io/mount-utils v0.34.1 h1:zMBEFav8Rxwm54S8srzy5FxAc4KQ3X4ZcjnqTCzHmZk= +k8s.io/mount-utils v0.34.1/go.mod h1:MIjjYlqJ0ziYQg0MO09kc9S96GIcMkhF/ay9MncF0GA= +k8s.io/utils v0.0.0-20250820121507-0af2bda4dd1d h1:wAhiDyZ4Tdtt7e46e9M5ZSAJ/MnPGPs+Ki1gHw4w1R0= +k8s.io/utils v0.0.0-20250820121507-0af2bda4dd1d/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= oras.land/oras-go/v2 v2.6.0 h1:X4ELRsiGkrbeox69+9tzTu492FMUu7zJQW6eJU+I2oc= oras.land/oras-go/v2 v2.6.0/go.mod h1:magiQDfG6H1O9APp+rOsvCPcW1GD2MM7vgnKY0Y+u1o= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= @@ -1086,16 +1086,15 @@ sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 h1:jpcvIRr3GLoUo sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 h1:gBQPwqORJ8d8/YNZWEjoZs7npUVDpVXUUOFfW6CgAqE= sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= -sigs.k8s.io/kustomize/api v0.19.0 h1:F+2HB2mU1MSiR9Hp1NEgoU2q9ItNOaBJl0I4Dlus5SQ= -sigs.k8s.io/kustomize/api v0.19.0/go.mod h1:/BbwnivGVcBh1r+8m3tH1VNxJmHSk1PzP5fkP6lbL1o= -sigs.k8s.io/kustomize/kyaml v0.19.0 h1:RFge5qsO1uHhwJsu3ipV7RNolC7Uozc0jUBC/61XSlA= -sigs.k8s.io/kustomize/kyaml v0.19.0/go.mod h1:FeKD5jEOH+FbZPpqUghBP8mrLjJ3+zD3/rf9NNu1cwY= -sigs.k8s.io/randfill v0.0.0-20250304075658-069ef1bbf016/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= +sigs.k8s.io/kustomize/api v0.20.1 h1:iWP1Ydh3/lmldBnH/S5RXgT98vWYMaTUL1ADcr+Sv7I= +sigs.k8s.io/kustomize/api v0.20.1/go.mod h1:t6hUFxO+Ph0VxIk1sKp1WS0dOjbPCtLJ4p8aADLwqjM= +sigs.k8s.io/kustomize/kyaml v0.20.1 h1:PCMnA2mrVbRP3NIB6v9kYCAc38uvFLVs8j/CD567A78= +sigs.k8s.io/kustomize/kyaml v0.20.1/go.mod h1:0EmkQHRUsJxY8Ug9Niig1pUMSCGHxQ5RklbpV/Ri6po= sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= sigs.k8s.io/sig-storage-lib-external-provisioner/v9 v9.1.0-rc.0 h1:0aLQSafwBXlXTPiA9wJK5wEDsgYUh5uJlKHpBw9dwCk= sigs.k8s.io/sig-storage-lib-external-provisioner/v9 v9.1.0-rc.0/go.mod h1:MMl64GlAImSAd7mOvJZ8SOkKORuvV/lsjhtgLPDlGjQ= -sigs.k8s.io/structured-merge-diff/v4 v4.6.0 h1:IUA9nvMmnKWcj5jl84xn+T5MnlZKThmUW1TdblaLVAc= -sigs.k8s.io/structured-merge-diff/v4 v4.6.0/go.mod h1:dDy58f92j70zLsuZVuUX5Wp9vtxXpaZnkPGWeqDfCps= -sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= -sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= +sigs.k8s.io/structured-merge-diff/v6 v6.3.0 h1:jTijUJbW353oVOd9oTlifJqOGEkUw2jB/fXCbTiQEco= +sigs.k8s.io/structured-merge-diff/v6 v6.3.0/go.mod h1:M3W8sfWvn2HhQDIbGWj3S099YozAsymCo/wrT5ohRUE= +sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= +sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= diff --git a/pkg/util/mock_kubeclient.go b/pkg/util/mock_kubeclient.go index 34dbcb4fad..40de1e48ab 100644 --- a/pkg/util/mock_kubeclient.go +++ b/pkg/util/mock_kubeclient.go @@ -5,9 +5,10 @@ import ( "context" "fmt" "io" - "k8s.io/client-go/kubernetes/typed/resource/v1beta2" "net/http" + "k8s.io/client-go/kubernetes/typed/resource/v1beta2" + api "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" @@ -50,7 +51,6 @@ import ( v1beta22 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1beta2" v1beta31 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1beta3" v112 "k8s.io/client-go/kubernetes/typed/networking/v1" - v1alpha15 "k8s.io/client-go/kubernetes/typed/networking/v1alpha1" v1beta112 "k8s.io/client-go/kubernetes/typed/networking/v1beta1" v113 "k8s.io/client-go/kubernetes/typed/node/v1" v1alpha16 "k8s.io/client-go/kubernetes/typed/node/v1alpha1" @@ -60,6 +60,7 @@ import ( v115 "k8s.io/client-go/kubernetes/typed/rbac/v1" v1alpha17 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1" v1beta115 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1" + resourev1 "k8s.io/client-go/kubernetes/typed/resource/v1" "k8s.io/client-go/kubernetes/typed/resource/v1alpha3" "k8s.io/client-go/kubernetes/typed/resource/v1beta1" v116 "k8s.io/client-go/kubernetes/typed/scheduling/v1" @@ -77,6 +78,11 @@ type MockKubeClient struct { CoreClient *MockCoreClient } +func (m MockKubeClient) ResourceV1() resourev1.ResourceV1Interface { + //TODO implement me + panic("implement me") +} + func (m MockKubeClient) ResourceV1beta2() v1beta2.ResourceV1beta2Interface { //TODO implement me return nil @@ -98,6 +104,11 @@ type MockKubeClientWithFailingRestClient struct { CoreClient *MockCoreClientWithFailingRestClient } +func (m MockKubeClientWithFailingRestClient) ResourceV1() resourev1.ResourceV1Interface { + //TODO implement me + panic("implement me") +} + func (m MockKubeClient) StoragemigrationV1alpha1() alpha1.StoragemigrationV1alpha1Interface { return nil } @@ -298,11 +309,6 @@ func (m MockKubeClientWithFailingRestClient) NetworkingV1() v112.NetworkingV1Int panic("implement me") } -func (m MockKubeClientWithFailingRestClient) NetworkingV1alpha1() v1alpha15.NetworkingV1alpha1Interface { - //TODO implement me - panic("implement me") -} - func (m MockKubeClientWithFailingRestClient) NetworkingV1beta1() v1beta112.NetworkingV1beta1Interface { //TODO implement me panic("implement me") @@ -777,10 +783,6 @@ func (m MockKubeClient) BatchV1beta1() v1beta15.BatchV1beta1Interface { return nil } -func (m MockKubeClient) NetworkingV1alpha1() v1alpha15.NetworkingV1alpha1Interface { - return nil -} - func (m MockKubeClient) AuthorizationV1beta1() v1beta14.AuthorizationV1beta1Interface { return nil } diff --git a/vendor/cel.dev/expr/.bazelversion b/vendor/cel.dev/expr/.bazelversion index 26bc914a3b..13c50892bd 100644 --- a/vendor/cel.dev/expr/.bazelversion +++ b/vendor/cel.dev/expr/.bazelversion @@ -1,2 +1,2 @@ -7.0.1 +7.3.2 # Keep this pinned version in parity with cel-go diff --git a/vendor/cel.dev/expr/MODULE.bazel b/vendor/cel.dev/expr/MODULE.bazel index 9794266f56..85ac9ff617 100644 --- a/vendor/cel.dev/expr/MODULE.bazel +++ b/vendor/cel.dev/expr/MODULE.bazel @@ -8,26 +8,38 @@ bazel_dep( ) bazel_dep( name = "gazelle", - version = "0.36.0", + version = "0.39.1", repo_name = "bazel_gazelle", ) bazel_dep( name = "googleapis", - version = "0.0.0-20240819-fe8ba054a", + version = "0.0.0-20241220-5e258e33.bcr.1", repo_name = "com_google_googleapis", ) +bazel_dep( + name = "googleapis-cc", + version = "1.0.0", +) +bazel_dep( + name = "googleapis-java", + version = "1.0.0", +) +bazel_dep( + name = "googleapis-go", + version = "1.0.0", +) bazel_dep( name = "protobuf", - version = "26.0", + version = "27.0", repo_name = "com_google_protobuf", ) bazel_dep( name = "rules_cc", - version = "0.0.9", + version = "0.0.17", ) bazel_dep( name = "rules_go", - version = "0.49.0", + version = "0.53.0", repo_name = "io_bazel_rules_go", ) bazel_dep( @@ -36,7 +48,7 @@ bazel_dep( ) bazel_dep( name = "rules_proto", - version = "6.0.0", + version = "7.0.2", ) bazel_dep( name = "rules_python", @@ -50,16 +62,8 @@ python.toolchain( python_version = "3.11", ) -switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules") -switched_rules.use_languages( - cc = True, - go = True, - java = True, -) -use_repo(switched_rules, "com_google_googleapis_imports") - go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") -go_sdk.download(version = "1.21.1") +go_sdk.download(version = "1.22.0") go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") go_deps.from_file(go_mod = "//:go.mod") diff --git a/vendor/cel.dev/expr/cloudbuild.yaml b/vendor/cel.dev/expr/cloudbuild.yaml index c40881f122..e3e533a04a 100644 --- a/vendor/cel.dev/expr/cloudbuild.yaml +++ b/vendor/cel.dev/expr/cloudbuild.yaml @@ -1,5 +1,5 @@ steps: -- name: 'gcr.io/cloud-builders/bazel:7.0.1' +- name: 'gcr.io/cloud-builders/bazel:7.3.2' entrypoint: bazel args: ['build', '...'] id: bazel-build diff --git a/vendor/cel.dev/expr/eval.pb.go b/vendor/cel.dev/expr/eval.pb.go index 8f651f9cc6..a7aae0900c 100644 --- a/vendor/cel.dev/expr/eval.pb.go +++ b/vendor/cel.dev/expr/eval.pb.go @@ -1,15 +1,15 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.5 +// protoc-gen-go v1.36.3 +// protoc v5.27.1 // source: cel/expr/eval.proto package expr import ( - status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" ) @@ -22,21 +22,18 @@ const ( ) type EvalState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Values []*ExprValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + Results []*EvalState_Result `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"` unknownFields protoimpl.UnknownFields - - Values []*ExprValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` - Results []*EvalState_Result `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EvalState) Reset() { *x = EvalState{} - if protoimpl.UnsafeEnabled { - mi := &file_cel_expr_eval_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cel_expr_eval_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EvalState) String() string { @@ -47,7 +44,7 @@ func (*EvalState) ProtoMessage() {} func (x *EvalState) ProtoReflect() protoreflect.Message { mi := &file_cel_expr_eval_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -77,25 +74,22 @@ func (x *EvalState) GetResults() []*EvalState_Result { } type ExprValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Kind: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Kind: // // *ExprValue_Value // *ExprValue_Error // *ExprValue_Unknown - Kind isExprValue_Kind `protobuf_oneof:"kind"` + Kind isExprValue_Kind `protobuf_oneof:"kind"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExprValue) Reset() { *x = ExprValue{} - if protoimpl.UnsafeEnabled { - mi := &file_cel_expr_eval_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cel_expr_eval_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExprValue) String() string { @@ -106,7 +100,7 @@ func (*ExprValue) ProtoMessage() {} func (x *ExprValue) ProtoReflect() protoreflect.Message { mi := &file_cel_expr_eval_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -121,30 +115,36 @@ func (*ExprValue) Descriptor() ([]byte, []int) { return file_cel_expr_eval_proto_rawDescGZIP(), []int{1} } -func (m *ExprValue) GetKind() isExprValue_Kind { - if m != nil { - return m.Kind +func (x *ExprValue) GetKind() isExprValue_Kind { + if x != nil { + return x.Kind } return nil } func (x *ExprValue) GetValue() *Value { - if x, ok := x.GetKind().(*ExprValue_Value); ok { - return x.Value + if x != nil { + if x, ok := x.Kind.(*ExprValue_Value); ok { + return x.Value + } } return nil } func (x *ExprValue) GetError() *ErrorSet { - if x, ok := x.GetKind().(*ExprValue_Error); ok { - return x.Error + if x != nil { + if x, ok := x.Kind.(*ExprValue_Error); ok { + return x.Error + } } return nil } func (x *ExprValue) GetUnknown() *UnknownSet { - if x, ok := x.GetKind().(*ExprValue_Unknown); ok { - return x.Unknown + if x != nil { + if x, ok := x.Kind.(*ExprValue_Unknown); ok { + return x.Unknown + } } return nil } @@ -172,20 +172,17 @@ func (*ExprValue_Error) isExprValue_Kind() {} func (*ExprValue_Unknown) isExprValue_Kind() {} type ErrorSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Errors []*Status `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` unknownFields protoimpl.UnknownFields - - Errors []*status.Status `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ErrorSet) Reset() { *x = ErrorSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cel_expr_eval_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cel_expr_eval_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ErrorSet) String() string { @@ -196,7 +193,7 @@ func (*ErrorSet) ProtoMessage() {} func (x *ErrorSet) ProtoReflect() protoreflect.Message { mi := &file_cel_expr_eval_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -211,28 +208,85 @@ func (*ErrorSet) Descriptor() ([]byte, []int) { return file_cel_expr_eval_proto_rawDescGZIP(), []int{2} } -func (x *ErrorSet) GetErrors() []*status.Status { +func (x *ErrorSet) GetErrors() []*Status { if x != nil { return x.Errors } return nil } -type UnknownSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type Status struct { + state protoimpl.MessageState `protogen:"open.v1"` + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} - Exprs []int64 `protobuf:"varint,1,rep,packed,name=exprs,proto3" json:"exprs,omitempty"` +func (x *Status) Reset() { + *x = Status{} + mi := &file_cel_expr_eval_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *UnknownSet) Reset() { - *x = UnknownSet{} - if protoimpl.UnsafeEnabled { - mi := &file_cel_expr_eval_proto_msgTypes[3] +func (x *Status) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Status) ProtoMessage() {} + +func (x *Status) ProtoReflect() protoreflect.Message { + mi := &file_cel_expr_eval_proto_msgTypes[3] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Status.ProtoReflect.Descriptor instead. +func (*Status) Descriptor() ([]byte, []int) { + return file_cel_expr_eval_proto_rawDescGZIP(), []int{3} +} + +func (x *Status) GetCode() int32 { + if x != nil { + return x.Code } + return 0 +} + +func (x *Status) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *Status) GetDetails() []*anypb.Any { + if x != nil { + return x.Details + } + return nil +} + +type UnknownSet struct { + state protoimpl.MessageState `protogen:"open.v1"` + Exprs []int64 `protobuf:"varint,1,rep,packed,name=exprs,proto3" json:"exprs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UnknownSet) Reset() { + *x = UnknownSet{} + mi := &file_cel_expr_eval_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnknownSet) String() string { @@ -242,8 +296,8 @@ func (x *UnknownSet) String() string { func (*UnknownSet) ProtoMessage() {} func (x *UnknownSet) ProtoReflect() protoreflect.Message { - mi := &file_cel_expr_eval_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_cel_expr_eval_proto_msgTypes[4] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -255,7 +309,7 @@ func (x *UnknownSet) ProtoReflect() protoreflect.Message { // Deprecated: Use UnknownSet.ProtoReflect.Descriptor instead. func (*UnknownSet) Descriptor() ([]byte, []int) { - return file_cel_expr_eval_proto_rawDescGZIP(), []int{3} + return file_cel_expr_eval_proto_rawDescGZIP(), []int{4} } func (x *UnknownSet) GetExprs() []int64 { @@ -266,21 +320,18 @@ func (x *UnknownSet) GetExprs() []int64 { } type EvalState_Result struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Expr int64 `protobuf:"varint,1,opt,name=expr,proto3" json:"expr,omitempty"` + Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Expr int64 `protobuf:"varint,1,opt,name=expr,proto3" json:"expr,omitempty"` - Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EvalState_Result) Reset() { *x = EvalState_Result{} - if protoimpl.UnsafeEnabled { - mi := &file_cel_expr_eval_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cel_expr_eval_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EvalState_Result) String() string { @@ -290,8 +341,8 @@ func (x *EvalState_Result) String() string { func (*EvalState_Result) ProtoMessage() {} func (x *EvalState_Result) ProtoReflect() protoreflect.Message { - mi := &file_cel_expr_eval_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_cel_expr_eval_proto_msgTypes[5] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -325,39 +376,45 @@ var File_cel_expr_eval_proto protoreflect.FileDescriptor var file_cel_expr_eval_proto_rawDesc = []byte{ 0x0a, 0x13, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x1a, - 0x14, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, - 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa2, - 0x01, 0x0a, 0x09, 0x45, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2b, 0x0a, 0x06, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, - 0x65, 0x6c, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x65, 0x6c, - 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x45, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, - 0x32, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x78, 0x70, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x65, 0x78, 0x70, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x22, 0x9a, 0x01, 0x0a, 0x09, 0x45, 0x78, 0x70, 0x72, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0f, 0x2e, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x63, 0x65, 0x6c, 0x2e, - 0x65, 0x78, 0x70, 0x72, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x78, - 0x70, 0x72, 0x2e, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52, - 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, - 0x22, 0x36, 0x0a, 0x08, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x2a, 0x0a, 0x06, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0x22, 0x0a, 0x0a, 0x55, 0x6e, 0x6b, 0x6e, - 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x70, 0x72, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x65, 0x78, 0x70, 0x72, 0x73, 0x42, 0x2c, 0x0a, 0x0c, - 0x64, 0x65, 0x76, 0x2e, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x42, 0x09, 0x45, 0x76, - 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0c, 0x63, 0x65, 0x6c, 0x2e, 0x64, - 0x65, 0x76, 0x2f, 0x65, 0x78, 0x70, 0x72, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x63, 0x65, 0x6c, 0x2f, + 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xa2, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2b, + 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, + 0x2e, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, + 0x65, 0x6c, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x45, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x73, 0x1a, 0x32, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x65, + 0x78, 0x70, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x65, 0x78, 0x70, 0x72, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x9a, 0x01, 0x0a, 0x09, 0x45, 0x78, 0x70, 0x72, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2a, 0x0a, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x63, 0x65, + 0x6c, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x48, + 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, + 0x6f, 0x77, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x65, 0x6c, 0x2e, + 0x65, 0x78, 0x70, 0x72, 0x2e, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x74, 0x48, + 0x00, 0x52, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, + 0x6e, 0x64, 0x22, 0x34, 0x0a, 0x08, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x28, + 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, + 0x2e, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0x66, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x22, 0x22, 0x0a, 0x0a, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x65, 0x78, 0x70, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x65, + 0x78, 0x70, 0x72, 0x73, 0x42, 0x2c, 0x0a, 0x0c, 0x64, 0x65, 0x76, 0x2e, 0x63, 0x65, 0x6c, 0x2e, + 0x65, 0x78, 0x70, 0x72, 0x42, 0x09, 0x45, 0x76, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x0c, 0x63, 0x65, 0x6c, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x65, 0x78, 0x70, 0x72, 0xf8, + 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -372,28 +429,30 @@ func file_cel_expr_eval_proto_rawDescGZIP() []byte { return file_cel_expr_eval_proto_rawDescData } -var file_cel_expr_eval_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_cel_expr_eval_proto_goTypes = []interface{}{ +var file_cel_expr_eval_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_cel_expr_eval_proto_goTypes = []any{ (*EvalState)(nil), // 0: cel.expr.EvalState (*ExprValue)(nil), // 1: cel.expr.ExprValue (*ErrorSet)(nil), // 2: cel.expr.ErrorSet - (*UnknownSet)(nil), // 3: cel.expr.UnknownSet - (*EvalState_Result)(nil), // 4: cel.expr.EvalState.Result - (*Value)(nil), // 5: cel.expr.Value - (*status.Status)(nil), // 6: google.rpc.Status + (*Status)(nil), // 3: cel.expr.Status + (*UnknownSet)(nil), // 4: cel.expr.UnknownSet + (*EvalState_Result)(nil), // 5: cel.expr.EvalState.Result + (*Value)(nil), // 6: cel.expr.Value + (*anypb.Any)(nil), // 7: google.protobuf.Any } var file_cel_expr_eval_proto_depIdxs = []int32{ 1, // 0: cel.expr.EvalState.values:type_name -> cel.expr.ExprValue - 4, // 1: cel.expr.EvalState.results:type_name -> cel.expr.EvalState.Result - 5, // 2: cel.expr.ExprValue.value:type_name -> cel.expr.Value + 5, // 1: cel.expr.EvalState.results:type_name -> cel.expr.EvalState.Result + 6, // 2: cel.expr.ExprValue.value:type_name -> cel.expr.Value 2, // 3: cel.expr.ExprValue.error:type_name -> cel.expr.ErrorSet - 3, // 4: cel.expr.ExprValue.unknown:type_name -> cel.expr.UnknownSet - 6, // 5: cel.expr.ErrorSet.errors:type_name -> google.rpc.Status - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 4, // 4: cel.expr.ExprValue.unknown:type_name -> cel.expr.UnknownSet + 3, // 5: cel.expr.ErrorSet.errors:type_name -> cel.expr.Status + 7, // 6: cel.expr.Status.details:type_name -> google.protobuf.Any + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_cel_expr_eval_proto_init() } @@ -402,69 +461,7 @@ func file_cel_expr_eval_proto_init() { return } file_cel_expr_value_proto_init() - if !protoimpl.UnsafeEnabled { - file_cel_expr_eval_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EvalState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cel_expr_eval_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExprValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cel_expr_eval_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrorSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cel_expr_eval_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnknownSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cel_expr_eval_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EvalState_Result); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cel_expr_eval_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_cel_expr_eval_proto_msgTypes[1].OneofWrappers = []any{ (*ExprValue_Value)(nil), (*ExprValue_Error)(nil), (*ExprValue_Unknown)(nil), @@ -475,7 +472,7 @@ func file_cel_expr_eval_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_cel_expr_eval_proto_rawDesc, NumEnums: 0, - NumMessages: 5, + NumMessages: 6, NumExtensions: 0, NumServices: 0, }, diff --git a/vendor/github.com/cyphar/filepath-securejoin/.golangci.yml b/vendor/github.com/cyphar/filepath-securejoin/.golangci.yml new file mode 100644 index 0000000000..e965034ed3 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/.golangci.yml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: MPL-2.0 + +# Copyright (C) 2025 Aleksa Sarai +# Copyright (C) 2025 SUSE LLC +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + +version: "2" + +linters: + enable: + - asasalint + - asciicheck + - containedctx + - contextcheck + - errcheck + - errorlint + - exhaustive + - forcetypeassert + - godot + - goprintffuncname + - govet + - importas + - ineffassign + - makezero + - misspell + - musttag + - nilerr + - nilnesserr + - nilnil + - noctx + - prealloc + - revive + - staticcheck + - testifylint + - unconvert + - unparam + - unused + - usetesting + settings: + govet: + enable: + - nilness + testifylint: + enable-all: true + +formatters: + enable: + - gofumpt + - goimports + settings: + goimports: + local-prefixes: + - github.com/cyphar/filepath-securejoin diff --git a/vendor/github.com/cyphar/filepath-securejoin/CHANGELOG.md b/vendor/github.com/cyphar/filepath-securejoin/CHANGELOG.md index ca0e3c62c7..3faee0bc55 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/CHANGELOG.md +++ b/vendor/github.com/cyphar/filepath-securejoin/CHANGELOG.md @@ -4,7 +4,152 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [Unreleased] ## +## [Unreleased 0.5.z] ## + +## [0.5.1] - 2025-10-31 ## + +> Spooky scary skeletons send shivers down your spine! + +### Changed ### +- `openat2` can return `-EAGAIN` if it detects a possible attack in certain + scenarios (namely if there was a rename or mount while walking a path with a + `..` component). While this is necessary to avoid a denial-of-service in the + kernel, it does require retry loops in userspace. + + In previous versions, `pathrs-lite` would retry `openat2` 32 times before + returning an error, but we've received user reports that this limit can be + hit on systems with very heavy load. In some synthetic benchmarks (testing + the worst-case of an attacker doing renames in a tight loop on every core of + a 16-core machine) we managed to get a ~3% failure rate in runc. We have + improved this situation in two ways: + + * We have now increased this limit to 128, which should be good enough for + most use-cases without becoming a denial-of-service vector (the number of + syscalls called by the `O_PATH` resolver in a typical case is within the + same ballpark). The same benchmarks show a failure rate of ~0.12% which + (while not zero) is probably sufficient for most users. + + * In addition, we now return a `unix.EAGAIN` error that is bubbled up and can + be detected by callers. This means that callers with stricter requirements + to avoid spurious errors can choose to do their own infinite `EAGAIN` retry + loop (though we would strongly recommend users use time-based deadlines in + such retry loops to avoid potentially unbounded denials-of-service). + +## [0.5.0] - 2025-09-26 ## + +> Let the past die. Kill it if you have to. + +> **NOTE**: With this release, some parts of +> `github.com/cyphar/filepath-securejoin` are now licensed under the Mozilla +> Public License (version 2). Please see [COPYING.md][] as well as the the +> license header in each file for more details. + +[COPYING.md]: ./COPYING.md + +### Breaking ### +- The new API introduced in the [0.3.0][] release has been moved to a new + subpackage called `pathrs-lite`. This was primarily done to better indicate + the split between the new and old APIs, as well as indicate to users the + purpose of this subpackage (it is a less complete version of [libpathrs][]). + + We have added some wrappers to the top-level package to ease the transition, + but those are deprecated and will be removed in the next minor release of + filepath-securejoin. Users should update their import paths. + + This new subpackage has also been relicensed under the Mozilla Public License + (version 2), please see [COPYING.md][] for more details. + +### Added ### +- Most of the key bits the safe `procfs` API have now been exported and are + available in `github.com/cyphar/filepath-securejoin/pathrs-lite/procfs`. At + the moment this primarily consists of a new `procfs.Handle` API: + + * `OpenProcRoot` returns a new handle to `/proc`, endeavouring to make it + safe if possible (`subset=pid` to protect against mistaken write attacks + and leaks, as well as using `fsopen(2)` to avoid racing mount attacks). + + `OpenUnsafeProcRoot` returns a handle without attempting to create one + with `subset=pid`, which makes it more dangerous to leak. Most users + should use `OpenProcRoot` (even if you need to use `ProcRoot` as the base + of an operation, as filepath-securejoin will internally open a handle when + necessary). + + * The `(*procfs.Handle).Open*` family of methods lets you get a safe + `O_PATH` handle to subpaths within `/proc` for certain subpaths. + + For `OpenThreadSelf`, the returned `ProcThreadSelfCloser` needs to be + called after you completely finish using the handle (this is necessary + because Go is multi-threaded and `ProcThreadSelf` references + `/proc/thread-self` which may disappear if we do not + `runtime.LockOSThread` -- `ProcThreadSelfCloser` is currently equivalent + to `runtime.UnlockOSThread`). + + Note that you cannot open any `procfs` symlinks (most notably magic-links) + using this API. At the moment, filepath-securejoin does not support this + feature (but [libpathrs][] does). + + * `ProcSelfFdReadlink` lets you get the in-kernel path representation of a + file descriptor (think `readlink("/proc/self/fd/...")`), except that we + verify that there aren't any tricky overmounts that could fool the + process. + + Please be aware that the returned string is simply a snapshot at that + particular moment, and an attacker could move the file being pointed to. + In addition, complex namespace configurations could result in non-sensical + or confusing paths to be returned. The value received from this function + should only be used as secondary verification of some security property, + not as proof that a particular handle has a particular path. + + The procfs handle used internally by the API is the same as the rest of + `filepath-securejoin` (for privileged programs this is usually a private + in-process `procfs` instance created with `fsopen(2)`). + + As before, this is intended as a stop-gap before users migrate to + [libpathrs][], which provides a far more extensive safe `procfs` API and is + generally more robust. + +- Previously, the hardened procfs implementation (used internally within + `Reopen` and `Open(at)InRoot`) only protected against overmount attacks on + systems with `openat2(2)` (Linux 5.6) or systems with `fsopen(2)` or + `open_tree(2)` (Linux 5.2) and programs with privileges to use them (with + some caveats about locked mounts that probably affect very few users). For + other users, an attacker with the ability to create malicious mounts (on most + systems, a sysadmin) could trick you into operating on files you didn't + expect. This attack only really makes sense in the context of container + runtime implementations. + + This was considered a reasonable trade-off, as the long-term intention was to + get all users to just switch to [libpathrs][] if they wanted to use the safe + `procfs` API (which had more extensive protections, and is what these new + protections in `filepath-securejoin` are based on). However, as the API + is now being exported it seems unwise to advertise the API as "safe" if we do + not protect against known attacks. + + The procfs API is now more protected against attackers on systems lacking the + aforementioned protections. However, the most comprehensive of these + protections effectively rely on [`statx(STATX_MNT_ID)`][statx.2] (Linux 5.8). + On older kernel versions, there is no effective protection (there is some + minimal protection against non-`procfs` filesystem components but a + sufficiently clever attacker can work around those). In addition, + `STATX_MNT_ID` is vulnerable to mount ID reuse attacks by sufficiently + motivated and privileged attackers -- this problem is mitigated with + `STATX_MNT_ID_UNIQUE` (Linux 6.8) but that raises the minimum kernel version + for more protection. + + The fact that these protections are quite limited despite needing a fair bit + of extra code to handle was one of the primary reasons we did not initially + implement this in `filepath-securejoin` ([libpathrs][] supports all of this, + of course). + +### Fixed ### +- RHEL 8 kernels have backports of `fsopen(2)` but in some testing we've found + that it has very bad (and very difficult to debug) performance issues, and so + we will explicitly refuse to use `fsopen(2)` if the running kernel version is + pre-5.2 and will instead fallback to `open("/proc")`. + +[CVE-2024-21626]: https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv +[libpathrs]: https://github.com/cyphar/libpathrs +[statx.2]: https://www.man7.org/linux/man-pages/man2/statx.2.html ## [0.4.1] - 2025-01-28 ## @@ -173,7 +318,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). safe to start migrating to as we have extensive tests ensuring they behave correctly and are safe against various races and other attacks. -[libpathrs]: https://github.com/openSUSE/libpathrs +[libpathrs]: https://github.com/cyphar/libpathrs [open.2]: https://www.man7.org/linux/man-pages/man2/open.2.html ## [0.2.5] - 2024-05-03 ## @@ -238,7 +383,9 @@ This is our first release of `github.com/cyphar/filepath-securejoin`, containing a full implementation with a coverage of 93.5% (the only missing cases are the error cases, which are hard to mocktest at the moment). -[Unreleased]: https://github.com/cyphar/filepath-securejoin/compare/v0.4.1...HEAD +[Unreleased 0.5.z]: https://github.com/cyphar/filepath-securejoin/compare/v0.5.1...release-0.5 +[0.5.1]: https://github.com/cyphar/filepath-securejoin/compare/v0.5.0...v0.5.1 +[0.5.0]: https://github.com/cyphar/filepath-securejoin/compare/v0.4.1...v0.5.0 [0.4.1]: https://github.com/cyphar/filepath-securejoin/compare/v0.4.0...v0.4.1 [0.4.0]: https://github.com/cyphar/filepath-securejoin/compare/v0.3.6...v0.4.0 [0.3.6]: https://github.com/cyphar/filepath-securejoin/compare/v0.3.5...v0.3.6 diff --git a/vendor/github.com/cyphar/filepath-securejoin/COPYING.md b/vendor/github.com/cyphar/filepath-securejoin/COPYING.md new file mode 100644 index 0000000000..520e822b18 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/COPYING.md @@ -0,0 +1,447 @@ +## COPYING ## + +`SPDX-License-Identifier: BSD-3-Clause AND MPL-2.0` + +This project is made up of code licensed under different licenses. Which code +you use will have an impact on whether only one or both licenses apply to your +usage of this library. + +Note that **each file** in this project individually has a code comment at the +start describing the license of that particular file -- this is the most +accurate license information of this project; in case there is any conflict +between this document and the comment at the start of a file, the comment shall +take precedence. The only purpose of this document is to work around [a known +technical limitation of pkg.go.dev's license checking tool when dealing with +non-trivial project licenses][go75067]. + +[go75067]: https://go.dev/issue/75067 + +### `BSD-3-Clause` ### + +At time of writing, the following files and directories are licensed under the +BSD-3-Clause license: + + * `doc.go` + * `join*.go` + * `vfs.go` + * `internal/consts/*.go` + * `pathrs-lite/internal/gocompat/*.go` + * `pathrs-lite/internal/kernelversion/*.go` + +The text of the BSD-3-Clause license used by this project is the following (the +text is also available from the [`LICENSE.BSD`](./LICENSE.BSD) file): + +``` +Copyright (C) 2014-2015 Docker Inc & Go Authors. All rights reserved. +Copyright (C) 2017-2024 SUSE LLC. 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 Google Inc. 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 +OWNER 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. +``` + +### `MPL-2.0` ### + +All other files (unless otherwise marked) are licensed under the Mozilla Public +License (version 2.0). + +The text of the Mozilla Public License (version 2.0) is the following (the text +is also available from the [`LICENSE.MPL-2.0`](./LICENSE.MPL-2.0) file): + +``` +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at https://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. +``` diff --git a/vendor/github.com/cyphar/filepath-securejoin/LICENSE b/vendor/github.com/cyphar/filepath-securejoin/LICENSE.BSD similarity index 100% rename from vendor/github.com/cyphar/filepath-securejoin/LICENSE rename to vendor/github.com/cyphar/filepath-securejoin/LICENSE.BSD diff --git a/vendor/github.com/cyphar/filepath-securejoin/LICENSE.MPL-2.0 b/vendor/github.com/cyphar/filepath-securejoin/LICENSE.MPL-2.0 new file mode 100644 index 0000000000..d0a1fa1482 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/LICENSE.MPL-2.0 @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at https://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/vendor/github.com/cyphar/filepath-securejoin/README.md b/vendor/github.com/cyphar/filepath-securejoin/README.md index eaeb53fcd0..6673abfc84 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/README.md +++ b/vendor/github.com/cyphar/filepath-securejoin/README.md @@ -67,7 +67,8 @@ func SecureJoin(root, unsafePath string) (string, error) { [libpathrs]: https://github.com/openSUSE/libpathrs [go#20126]: https://github.com/golang/go/issues/20126 -### New API ### +### New API ### +[#new-api]: #new-api While we recommend users switch to [libpathrs][libpathrs] as soon as it has a stable release, some methods implemented by libpathrs have been ported to this @@ -165,5 +166,19 @@ after `MkdirAll`). ### License ### -The license of this project is the same as Go, which is a BSD 3-clause license -available in the `LICENSE` file. +`SPDX-License-Identifier: BSD-3-Clause AND MPL-2.0` + +Some of the code in this project is derived from Go, and is licensed under a +BSD 3-clause license (available in `LICENSE.BSD`). Other files (many of which +are derived from [libpathrs][libpathrs]) are licensed under the Mozilla Public +License version 2.0 (available in `LICENSE.MPL-2.0`). If you are using the +["New API" described above][#new-api], you are probably using code from files +released under this license. + +Every source file in this project has a copyright header describing its +license. Please check the license headers of each file to see what license +applies to it. + +See [COPYING.md](./COPYING.md) for some more details. + +[umoci]: https://github.com/opencontainers/umoci diff --git a/vendor/github.com/cyphar/filepath-securejoin/VERSION b/vendor/github.com/cyphar/filepath-securejoin/VERSION index 267577d47e..4b9fcbec10 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/VERSION +++ b/vendor/github.com/cyphar/filepath-securejoin/VERSION @@ -1 +1 @@ -0.4.1 +0.5.1 diff --git a/vendor/github.com/cyphar/filepath-securejoin/codecov.yml b/vendor/github.com/cyphar/filepath-securejoin/codecov.yml new file mode 100644 index 0000000000..ff284dbfaf --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/codecov.yml @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: MPL-2.0 + +# Copyright (C) 2025 Aleksa Sarai +# Copyright (C) 2025 SUSE LLC +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + +comment: + layout: "condensed_header, reach, diff, components, condensed_files, condensed_footer" + require_changes: true + branches: + - main + +coverage: + range: 60..100 + status: + project: + default: + target: 85% + threshold: 0% + patch: + default: + target: auto + informational: true + +github_checks: + annotations: false diff --git a/vendor/github.com/cyphar/filepath-securejoin/deprecated_linux.go b/vendor/github.com/cyphar/filepath-securejoin/deprecated_linux.go new file mode 100644 index 0000000000..3e427b1640 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/deprecated_linux.go @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +package securejoin + +import ( + "github.com/cyphar/filepath-securejoin/pathrs-lite" +) + +var ( + // MkdirAll is a wrapper around [pathrs.MkdirAll]. + // + // Deprecated: You should use [pathrs.MkdirAll] directly instead. This + // wrapper will be removed in filepath-securejoin v0.6. + MkdirAll = pathrs.MkdirAll + + // MkdirAllHandle is a wrapper around [pathrs.MkdirAllHandle]. + // + // Deprecated: You should use [pathrs.MkdirAllHandle] directly instead. + // This wrapper will be removed in filepath-securejoin v0.6. + MkdirAllHandle = pathrs.MkdirAllHandle + + // OpenInRoot is a wrapper around [pathrs.OpenInRoot]. + // + // Deprecated: You should use [pathrs.OpenInRoot] directly instead. This + // wrapper will be removed in filepath-securejoin v0.6. + OpenInRoot = pathrs.OpenInRoot + + // OpenatInRoot is a wrapper around [pathrs.OpenatInRoot]. + // + // Deprecated: You should use [pathrs.OpenatInRoot] directly instead. This + // wrapper will be removed in filepath-securejoin v0.6. + OpenatInRoot = pathrs.OpenatInRoot + + // Reopen is a wrapper around [pathrs.Reopen]. + // + // Deprecated: You should use [pathrs.Reopen] directly instead. This + // wrapper will be removed in filepath-securejoin v0.6. + Reopen = pathrs.Reopen +) diff --git a/vendor/github.com/cyphar/filepath-securejoin/doc.go b/vendor/github.com/cyphar/filepath-securejoin/doc.go index 1ec7d065ef..1438fc9c09 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/doc.go +++ b/vendor/github.com/cyphar/filepath-securejoin/doc.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Copyright (C) 2014-2015 Docker Inc & Go Authors. All rights reserved. // Copyright (C) 2017-2024 SUSE LLC. All rights reserved. // Use of this source code is governed by a BSD-style @@ -14,14 +16,13 @@ // **not** safe against race conditions where an attacker changes the // filesystem after (or during) the [SecureJoin] operation. // -// The new API is made up of [OpenInRoot] and [MkdirAll] (and derived -// functions). These are safe against racing attackers and have several other -// protections that are not provided by the legacy API. There are many more -// operations that most programs expect to be able to do safely, but we do not -// provide explicit support for them because we want to encourage users to -// switch to [libpathrs](https://github.com/openSUSE/libpathrs) which is a -// cross-language next-generation library that is entirely designed around -// operating on paths safely. +// The new API is available in the [pathrs-lite] subpackage, and provide +// protections against racing attackers as well as several other key +// protections against attacks often seen by container runtimes. As the name +// suggests, [pathrs-lite] is a stripped down (pure Go) reimplementation of +// [libpathrs]. The main APIs provided are [OpenInRoot], [MkdirAll], and +// [procfs.Handle] -- other APIs are not planned to be ported. The long-term +// goal is for users to migrate to [libpathrs] which is more fully-featured. // // securejoin has been used by several container runtimes (Docker, runc, // Kubernetes, etc) for quite a few years as a de-facto standard for operating @@ -31,9 +32,16 @@ // API as soon as possible (or even better, switch to libpathrs). // // This project was initially intended to be included in the Go standard -// library, but [it was rejected](https://go.dev/issue/20126). There is now a -// [new Go proposal](https://go.dev/issue/67002) for a safe path resolution API -// that shares some of the goals of filepath-securejoin. However, that design -// is intended to work like `openat2(RESOLVE_BENEATH)` which does not fit the -// usecase of container runtimes and most system tools. +// library, but it was rejected (see https://go.dev/issue/20126). Much later, +// [os.Root] was added to the Go stdlib that shares some of the goals of +// filepath-securejoin. However, its design is intended to work like +// openat2(RESOLVE_BENEATH) which does not fit the usecase of container +// runtimes and most system tools. +// +// [pathrs-lite]: https://pkg.go.dev/github.com/cyphar/filepath-securejoin/pathrs-lite +// [libpathrs]: https://github.com/openSUSE/libpathrs +// [OpenInRoot]: https://pkg.go.dev/github.com/cyphar/filepath-securejoin/pathrs-lite#OpenInRoot +// [MkdirAll]: https://pkg.go.dev/github.com/cyphar/filepath-securejoin/pathrs-lite#MkdirAll +// [procfs.Handle]: https://pkg.go.dev/github.com/cyphar/filepath-securejoin/pathrs-lite/procfs#Handle +// [os.Root]: https:///pkg.go.dev/os#Root package securejoin diff --git a/vendor/github.com/cyphar/filepath-securejoin/gocompat_generics_go121.go b/vendor/github.com/cyphar/filepath-securejoin/gocompat_generics_go121.go deleted file mode 100644 index ddd6fa9a41..0000000000 --- a/vendor/github.com/cyphar/filepath-securejoin/gocompat_generics_go121.go +++ /dev/null @@ -1,32 +0,0 @@ -//go:build linux && go1.21 - -// Copyright (C) 2024 SUSE LLC. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package securejoin - -import ( - "slices" - "sync" -) - -func slices_DeleteFunc[S ~[]E, E any](slice S, delFn func(E) bool) S { - return slices.DeleteFunc(slice, delFn) -} - -func slices_Contains[S ~[]E, E comparable](slice S, val E) bool { - return slices.Contains(slice, val) -} - -func slices_Clone[S ~[]E, E any](slice S) S { - return slices.Clone(slice) -} - -func sync_OnceValue[T any](f func() T) func() T { - return sync.OnceValue(f) -} - -func sync_OnceValues[T1, T2 any](f func() (T1, T2)) func() (T1, T2) { - return sync.OnceValues(f) -} diff --git a/vendor/github.com/cyphar/filepath-securejoin/gocompat_generics_unsupported.go b/vendor/github.com/cyphar/filepath-securejoin/gocompat_generics_unsupported.go deleted file mode 100644 index f1e6fe7e71..0000000000 --- a/vendor/github.com/cyphar/filepath-securejoin/gocompat_generics_unsupported.go +++ /dev/null @@ -1,124 +0,0 @@ -//go:build linux && !go1.21 - -// Copyright (C) 2024 SUSE LLC. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package securejoin - -import ( - "sync" -) - -// These are very minimal implementations of functions that appear in Go 1.21's -// stdlib, included so that we can build on older Go versions. Most are -// borrowed directly from the stdlib, and a few are modified to be "obviously -// correct" without needing to copy too many other helpers. - -// clearSlice is equivalent to the builtin clear from Go 1.21. -// Copied from the Go 1.24 stdlib implementation. -func clearSlice[S ~[]E, E any](slice S) { - var zero E - for i := range slice { - slice[i] = zero - } -} - -// Copied from the Go 1.24 stdlib implementation. -func slices_IndexFunc[S ~[]E, E any](s S, f func(E) bool) int { - for i := range s { - if f(s[i]) { - return i - } - } - return -1 -} - -// Copied from the Go 1.24 stdlib implementation. -func slices_DeleteFunc[S ~[]E, E any](s S, del func(E) bool) S { - i := slices_IndexFunc(s, del) - if i == -1 { - return s - } - // Don't start copying elements until we find one to delete. - for j := i + 1; j < len(s); j++ { - if v := s[j]; !del(v) { - s[i] = v - i++ - } - } - clearSlice(s[i:]) // zero/nil out the obsolete elements, for GC - return s[:i] -} - -// Similar to the stdlib slices.Contains, except that we don't have -// slices.Index so we need to use slices.IndexFunc for this non-Func helper. -func slices_Contains[S ~[]E, E comparable](s S, v E) bool { - return slices_IndexFunc(s, func(e E) bool { return e == v }) >= 0 -} - -// Copied from the Go 1.24 stdlib implementation. -func slices_Clone[S ~[]E, E any](s S) S { - // Preserve nil in case it matters. - if s == nil { - return nil - } - return append(S([]E{}), s...) -} - -// Copied from the Go 1.24 stdlib implementation. -func sync_OnceValue[T any](f func() T) func() T { - var ( - once sync.Once - valid bool - p any - result T - ) - g := func() { - defer func() { - p = recover() - if !valid { - panic(p) - } - }() - result = f() - f = nil - valid = true - } - return func() T { - once.Do(g) - if !valid { - panic(p) - } - return result - } -} - -// Copied from the Go 1.24 stdlib implementation. -func sync_OnceValues[T1, T2 any](f func() (T1, T2)) func() (T1, T2) { - var ( - once sync.Once - valid bool - p any - r1 T1 - r2 T2 - ) - g := func() { - defer func() { - p = recover() - if !valid { - panic(p) - } - }() - r1, r2 = f() - f = nil - valid = true - } - return func() (T1, T2) { - once.Do(g) - if !valid { - panic(p) - } - return r1, r2 - } -} diff --git a/vendor/github.com/cyphar/filepath-securejoin/internal/consts/consts.go b/vendor/github.com/cyphar/filepath-securejoin/internal/consts/consts.go new file mode 100644 index 0000000000..c69c4da91e --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/internal/consts/consts.go @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: BSD-3-Clause + +// Copyright (C) 2014-2015 Docker Inc & Go Authors. All rights reserved. +// Copyright (C) 2017-2025 SUSE LLC. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package consts contains the definitions of internal constants used +// throughout filepath-securejoin. +package consts + +// MaxSymlinkLimit is the maximum number of symlinks that can be encountered +// during a single lookup before returning -ELOOP. At time of writing, Linux +// has an internal limit of 40. +const MaxSymlinkLimit = 255 diff --git a/vendor/github.com/cyphar/filepath-securejoin/join.go b/vendor/github.com/cyphar/filepath-securejoin/join.go index e6634d4778..199c1d8392 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/join.go +++ b/vendor/github.com/cyphar/filepath-securejoin/join.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Copyright (C) 2014-2015 Docker Inc & Go Authors. All rights reserved. // Copyright (C) 2017-2025 SUSE LLC. All rights reserved. // Use of this source code is governed by a BSD-style @@ -11,9 +13,9 @@ import ( "path/filepath" "strings" "syscall" -) -const maxSymlinkLimit = 255 + "github.com/cyphar/filepath-securejoin/internal/consts" +) // IsNotExist tells you if err is an error that implies that either the path // accessed does not exist (or path components don't exist). This is @@ -49,12 +51,13 @@ func hasDotDot(path string) bool { return strings.Contains("/"+path+"/", "/../") } -// SecureJoinVFS joins the two given path components (similar to [filepath.Join]) except -// that the returned path is guaranteed to be scoped inside the provided root -// path (when evaluated). Any symbolic links in the path are evaluated with the -// given root treated as the root of the filesystem, similar to a chroot. The -// filesystem state is evaluated through the given [VFS] interface (if nil, the -// standard [os].* family of functions are used). +// SecureJoinVFS joins the two given path components (similar to +// [filepath.Join]) except that the returned path is guaranteed to be scoped +// inside the provided root path (when evaluated). Any symbolic links in the +// path are evaluated with the given root treated as the root of the +// filesystem, similar to a chroot. The filesystem state is evaluated through +// the given [VFS] interface (if nil, the standard [os].* family of functions +// are used). // // Note that the guarantees provided by this function only apply if the path // components in the returned string are not modified (in other words are not @@ -78,7 +81,7 @@ func hasDotDot(path string) bool { // fully resolved using [filepath.EvalSymlinks] or otherwise constructed to // avoid containing symlink components. Of course, the root also *must not* be // attacker-controlled. -func SecureJoinVFS(root, unsafePath string, vfs VFS) (string, error) { +func SecureJoinVFS(root, unsafePath string, vfs VFS) (string, error) { //nolint:revive // name is part of public API // The root path must not contain ".." components, otherwise when we join // the subpath we will end up with a weird path. We could work around this // in other ways but users shouldn't be giving us non-lexical root paths in @@ -138,7 +141,7 @@ func SecureJoinVFS(root, unsafePath string, vfs VFS) (string, error) { // It's a symlink, so get its contents and expand it by prepending it // to the yet-unparsed path. linksWalked++ - if linksWalked > maxSymlinkLimit { + if linksWalked > consts.MaxSymlinkLimit { return "", &os.PathError{Op: "SecureJoin", Path: root + string(filepath.Separator) + unsafePath, Err: syscall.ELOOP} } diff --git a/vendor/github.com/cyphar/filepath-securejoin/openat2_linux.go b/vendor/github.com/cyphar/filepath-securejoin/openat2_linux.go deleted file mode 100644 index f7a13e69ce..0000000000 --- a/vendor/github.com/cyphar/filepath-securejoin/openat2_linux.go +++ /dev/null @@ -1,127 +0,0 @@ -//go:build linux - -// Copyright (C) 2024 SUSE LLC. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package securejoin - -import ( - "errors" - "fmt" - "os" - "path/filepath" - "strings" - - "golang.org/x/sys/unix" -) - -var hasOpenat2 = sync_OnceValue(func() bool { - fd, err := unix.Openat2(unix.AT_FDCWD, ".", &unix.OpenHow{ - Flags: unix.O_PATH | unix.O_CLOEXEC, - Resolve: unix.RESOLVE_NO_SYMLINKS | unix.RESOLVE_IN_ROOT, - }) - if err != nil { - return false - } - _ = unix.Close(fd) - return true -}) - -func scopedLookupShouldRetry(how *unix.OpenHow, err error) bool { - // RESOLVE_IN_ROOT (and RESOLVE_BENEATH) can return -EAGAIN if we resolve - // ".." while a mount or rename occurs anywhere on the system. This could - // happen spuriously, or as the result of an attacker trying to mess with - // us during lookup. - // - // In addition, scoped lookups have a "safety check" at the end of - // complete_walk which will return -EXDEV if the final path is not in the - // root. - return how.Resolve&(unix.RESOLVE_IN_ROOT|unix.RESOLVE_BENEATH) != 0 && - (errors.Is(err, unix.EAGAIN) || errors.Is(err, unix.EXDEV)) -} - -const scopedLookupMaxRetries = 10 - -func openat2File(dir *os.File, path string, how *unix.OpenHow) (*os.File, error) { - fullPath := dir.Name() + "/" + path - // Make sure we always set O_CLOEXEC. - how.Flags |= unix.O_CLOEXEC - var tries int - for tries < scopedLookupMaxRetries { - fd, err := unix.Openat2(int(dir.Fd()), path, how) - if err != nil { - if scopedLookupShouldRetry(how, err) { - // We retry a couple of times to avoid the spurious errors, and - // if we are being attacked then returning -EAGAIN is the best - // we can do. - tries++ - continue - } - return nil, &os.PathError{Op: "openat2", Path: fullPath, Err: err} - } - // If we are using RESOLVE_IN_ROOT, the name we generated may be wrong. - // NOTE: The procRoot code MUST NOT use RESOLVE_IN_ROOT, otherwise - // you'll get infinite recursion here. - if how.Resolve&unix.RESOLVE_IN_ROOT == unix.RESOLVE_IN_ROOT { - if actualPath, err := rawProcSelfFdReadlink(fd); err == nil { - fullPath = actualPath - } - } - return os.NewFile(uintptr(fd), fullPath), nil - } - return nil, &os.PathError{Op: "openat2", Path: fullPath, Err: errPossibleAttack} -} - -func lookupOpenat2(root *os.File, unsafePath string, partial bool) (*os.File, string, error) { - if !partial { - file, err := openat2File(root, unsafePath, &unix.OpenHow{ - Flags: unix.O_PATH | unix.O_CLOEXEC, - Resolve: unix.RESOLVE_IN_ROOT | unix.RESOLVE_NO_MAGICLINKS, - }) - return file, "", err - } - return partialLookupOpenat2(root, unsafePath) -} - -// partialLookupOpenat2 is an alternative implementation of -// partialLookupInRoot, using openat2(RESOLVE_IN_ROOT) to more safely get a -// handle to the deepest existing child of the requested path within the root. -func partialLookupOpenat2(root *os.File, unsafePath string) (*os.File, string, error) { - // TODO: Implement this as a git-bisect-like binary search. - - unsafePath = filepath.ToSlash(unsafePath) // noop - endIdx := len(unsafePath) - var lastError error - for endIdx > 0 { - subpath := unsafePath[:endIdx] - - handle, err := openat2File(root, subpath, &unix.OpenHow{ - Flags: unix.O_PATH | unix.O_CLOEXEC, - Resolve: unix.RESOLVE_IN_ROOT | unix.RESOLVE_NO_MAGICLINKS, - }) - if err == nil { - // Jump over the slash if we have a non-"" remainingPath. - if endIdx < len(unsafePath) { - endIdx += 1 - } - // We found a subpath! - return handle, unsafePath[endIdx:], lastError - } - if errors.Is(err, unix.ENOENT) || errors.Is(err, unix.ENOTDIR) { - // That path doesn't exist, let's try the next directory up. - endIdx = strings.LastIndexByte(subpath, '/') - lastError = err - continue - } - return nil, "", fmt.Errorf("open subpath: %w", err) - } - // If we couldn't open anything, the whole subpath is missing. Return a - // copy of the root fd so that the caller doesn't close this one by - // accident. - rootClone, err := dupFile(root) - if err != nil { - return nil, "", err - } - return rootClone, unsafePath, lastError -} diff --git a/vendor/github.com/cyphar/filepath-securejoin/openat_linux.go b/vendor/github.com/cyphar/filepath-securejoin/openat_linux.go deleted file mode 100644 index 949fb5f2d8..0000000000 --- a/vendor/github.com/cyphar/filepath-securejoin/openat_linux.go +++ /dev/null @@ -1,59 +0,0 @@ -//go:build linux - -// Copyright (C) 2024 SUSE LLC. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package securejoin - -import ( - "os" - "path/filepath" - - "golang.org/x/sys/unix" -) - -func dupFile(f *os.File) (*os.File, error) { - fd, err := unix.FcntlInt(f.Fd(), unix.F_DUPFD_CLOEXEC, 0) - if err != nil { - return nil, os.NewSyscallError("fcntl(F_DUPFD_CLOEXEC)", err) - } - return os.NewFile(uintptr(fd), f.Name()), nil -} - -func openatFile(dir *os.File, path string, flags int, mode int) (*os.File, error) { - // Make sure we always set O_CLOEXEC. - flags |= unix.O_CLOEXEC - fd, err := unix.Openat(int(dir.Fd()), path, flags, uint32(mode)) - if err != nil { - return nil, &os.PathError{Op: "openat", Path: dir.Name() + "/" + path, Err: err} - } - // All of the paths we use with openatFile(2) are guaranteed to be - // lexically safe, so we can use path.Join here. - fullPath := filepath.Join(dir.Name(), path) - return os.NewFile(uintptr(fd), fullPath), nil -} - -func fstatatFile(dir *os.File, path string, flags int) (unix.Stat_t, error) { - var stat unix.Stat_t - if err := unix.Fstatat(int(dir.Fd()), path, &stat, flags); err != nil { - return stat, &os.PathError{Op: "fstatat", Path: dir.Name() + "/" + path, Err: err} - } - return stat, nil -} - -func readlinkatFile(dir *os.File, path string) (string, error) { - size := 4096 - for { - linkBuf := make([]byte, size) - n, err := unix.Readlinkat(int(dir.Fd()), path, linkBuf) - if err != nil { - return "", &os.PathError{Op: "readlinkat", Path: dir.Name() + "/" + path, Err: err} - } - if n != size { - return string(linkBuf[:n]), nil - } - // Possible truncation, resize the buffer. - size *= 2 - } -} diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/README.md b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/README.md new file mode 100644 index 0000000000..1be727e75b --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/README.md @@ -0,0 +1,33 @@ +## `pathrs-lite` ## + +`github.com/cyphar/filepath-securejoin/pathrs-lite` provides a minimal **pure +Go** implementation of the core bits of [libpathrs][]. This is not intended to +be a complete replacement for libpathrs, instead it is mainly intended to be +useful as a transition tool for existing Go projects. + +The long-term plan for `pathrs-lite` is to provide a build tag that will cause +all `pathrs-lite` operations to call into libpathrs directly, thus removing +code duplication for projects that wish to make use of libpathrs (and providing +the ability for software packagers to opt-in to libpathrs support without +needing to patch upstream). + +[libpathrs]: https://github.com/cyphar/libpathrs + +### License ### + +Most of this subpackage is licensed under the Mozilla Public License (version +2.0). For more information, see the top-level [COPYING.md][] and +[LICENSE.MPL-2.0][] files, as well as the individual license headers for each +file. + +``` +Copyright (C) 2024-2025 Aleksa Sarai +Copyright (C) 2024-2025 SUSE LLC + +This Source Code Form is subject to the terms of the Mozilla Public +License, v. 2.0. If a copy of the MPL was not distributed with this +file, You can obtain one at https://mozilla.org/MPL/2.0/. +``` + +[COPYING.md]: ../COPYING.md +[LICENSE.MPL-2.0]: ../LICENSE.MPL-2.0 diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/doc.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/doc.go new file mode 100644 index 0000000000..d3d7451750 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/doc.go @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +// Package pathrs (pathrs-lite) is a less complete pure Go implementation of +// some of the APIs provided by [libpathrs]. +package pathrs diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/assert/assert.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/assert/assert.go new file mode 100644 index 0000000000..595dfbf1ac --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/assert/assert.go @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: MPL-2.0 + +// Copyright (C) 2025 Aleksa Sarai +// Copyright (C) 2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +// Package assert provides some basic assertion helpers for Go. +package assert + +import ( + "fmt" +) + +// Assert panics if the predicate is false with the provided argument. +func Assert(predicate bool, msg any) { + if !predicate { + panic(msg) + } +} + +// Assertf panics if the predicate is false and formats the message using the +// same formatting as [fmt.Printf]. +// +// [fmt.Printf]: https://pkg.go.dev/fmt#Printf +func Assertf(predicate bool, fmtMsg string, args ...any) { + Assert(predicate, fmt.Sprintf(fmtMsg, args...)) +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/errors_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/errors_linux.go new file mode 100644 index 0000000000..d0b200f4f9 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/errors_linux.go @@ -0,0 +1,41 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +// Package internal contains unexported common code for filepath-securejoin. +package internal + +import ( + "errors" + + "golang.org/x/sys/unix" +) + +type xdevErrorish struct { + description string +} + +func (err xdevErrorish) Error() string { return err.description } +func (err xdevErrorish) Is(target error) bool { return target == unix.EXDEV } + +var ( + // ErrPossibleAttack indicates that some attack was detected. + ErrPossibleAttack error = xdevErrorish{"possible attack detected"} + + // ErrPossibleBreakout indicates that during an operation we ended up in a + // state that could be a breakout but we detected it. + ErrPossibleBreakout error = xdevErrorish{"possible breakout detected"} + + // ErrInvalidDirectory indicates an unlinked directory. + ErrInvalidDirectory = errors.New("wandered into deleted directory") + + // ErrDeletedInode indicates an unlinked file (non-directory). + ErrDeletedInode = errors.New("cannot verify path of deleted inode") +) diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/at_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/at_linux.go new file mode 100644 index 0000000000..0910549130 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/at_linux.go @@ -0,0 +1,148 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +package fd + +import ( + "fmt" + "os" + "path/filepath" + "runtime" + + "golang.org/x/sys/unix" + + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat" +) + +// prepareAtWith returns -EBADF (an invalid fd) if dir is nil, otherwise using +// the dir.Fd(). We use -EBADF because in filepath-securejoin we generally +// don't want to allow relative-to-cwd paths. The returned path is an +// *informational* string that describes a reasonable pathname for the given +// *at(2) arguments. You must not use the full path for any actual filesystem +// operations. +func prepareAt(dir Fd, path string) (dirFd int, unsafeUnmaskedPath string) { + dirFd, dirPath := -int(unix.EBADF), "." + if dir != nil { + dirFd, dirPath = int(dir.Fd()), dir.Name() + } + if !filepath.IsAbs(path) { + // only prepend the dirfd path for relative paths + path = dirPath + "/" + path + } + // NOTE: If path is "." or "", the returned path won't be filepath.Clean, + // but that's okay since this path is either used for errors (in which case + // a trailing "/" or "/." is important information) or will be + // filepath.Clean'd later (in the case of fd.Openat). + return dirFd, path +} + +// Openat is an [Fd]-based wrapper around unix.Openat. +func Openat(dir Fd, path string, flags int, mode int) (*os.File, error) { //nolint:unparam // wrapper func + dirFd, fullPath := prepareAt(dir, path) + // Make sure we always set O_CLOEXEC. + flags |= unix.O_CLOEXEC + fd, err := unix.Openat(dirFd, path, flags, uint32(mode)) + if err != nil { + return nil, &os.PathError{Op: "openat", Path: fullPath, Err: err} + } + runtime.KeepAlive(dir) + // openat is only used with lexically-safe paths so we can use + // filepath.Clean here, and also the path itself is not going to be used + // for actual path operations. + fullPath = filepath.Clean(fullPath) + return os.NewFile(uintptr(fd), fullPath), nil +} + +// Fstatat is an [Fd]-based wrapper around unix.Fstatat. +func Fstatat(dir Fd, path string, flags int) (unix.Stat_t, error) { + dirFd, fullPath := prepareAt(dir, path) + var stat unix.Stat_t + if err := unix.Fstatat(dirFd, path, &stat, flags); err != nil { + return stat, &os.PathError{Op: "fstatat", Path: fullPath, Err: err} + } + runtime.KeepAlive(dir) + return stat, nil +} + +// Faccessat is an [Fd]-based wrapper around unix.Faccessat. +func Faccessat(dir Fd, path string, mode uint32, flags int) error { + dirFd, fullPath := prepareAt(dir, path) + err := unix.Faccessat(dirFd, path, mode, flags) + if err != nil { + err = &os.PathError{Op: "faccessat", Path: fullPath, Err: err} + } + runtime.KeepAlive(dir) + return err +} + +// Readlinkat is an [Fd]-based wrapper around unix.Readlinkat. +func Readlinkat(dir Fd, path string) (string, error) { + dirFd, fullPath := prepareAt(dir, path) + size := 4096 + for { + linkBuf := make([]byte, size) + n, err := unix.Readlinkat(dirFd, path, linkBuf) + if err != nil { + return "", &os.PathError{Op: "readlinkat", Path: fullPath, Err: err} + } + runtime.KeepAlive(dir) + if n != size { + return string(linkBuf[:n]), nil + } + // Possible truncation, resize the buffer. + size *= 2 + } +} + +const ( + // STATX_MNT_ID_UNIQUE is provided in golang.org/x/sys@v0.20.0, but in order to + // avoid bumping the requirement for a single constant we can just define it + // ourselves. + _STATX_MNT_ID_UNIQUE = 0x4000 //nolint:revive // unix.* name + + // We don't care which mount ID we get. The kernel will give us the unique + // one if it is supported. If the kernel doesn't support + // STATX_MNT_ID_UNIQUE, the bit is ignored and the returned request mask + // will only contain STATX_MNT_ID (if supported). + wantStatxMntMask = _STATX_MNT_ID_UNIQUE | unix.STATX_MNT_ID +) + +var hasStatxMountID = gocompat.SyncOnceValue(func() bool { + var stx unix.Statx_t + err := unix.Statx(-int(unix.EBADF), "/", 0, wantStatxMntMask, &stx) + return err == nil && stx.Mask&wantStatxMntMask != 0 +}) + +// GetMountID gets the mount identifier associated with the fd and path +// combination. It is effectively a wrapper around fetching +// STATX_MNT_ID{,_UNIQUE} with unix.Statx, but with a fallback to 0 if the +// kernel doesn't support the feature. +func GetMountID(dir Fd, path string) (uint64, error) { + // If we don't have statx(STATX_MNT_ID*) support, we can't do anything. + if !hasStatxMountID() { + return 0, nil + } + + dirFd, fullPath := prepareAt(dir, path) + + var stx unix.Statx_t + err := unix.Statx(dirFd, path, unix.AT_EMPTY_PATH|unix.AT_SYMLINK_NOFOLLOW, wantStatxMntMask, &stx) + if stx.Mask&wantStatxMntMask == 0 { + // It's not a kernel limitation, for some reason we couldn't get a + // mount ID. Assume it's some kind of attack. + err = fmt.Errorf("could not get mount id: %w", err) + } + if err != nil { + return 0, &os.PathError{Op: "statx(STATX_MNT_ID_...)", Path: fullPath, Err: err} + } + runtime.KeepAlive(dir) + return stx.Mnt_id, nil +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/fd.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/fd.go new file mode 100644 index 0000000000..d2206a386f --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/fd.go @@ -0,0 +1,55 @@ +// SPDX-License-Identifier: MPL-2.0 + +// Copyright (C) 2025 Aleksa Sarai +// Copyright (C) 2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +// Package fd provides a drop-in interface-based replacement of [*os.File] that +// allows for things like noop-Close wrappers to be used. +// +// [*os.File]: https://pkg.go.dev/os#File +package fd + +import ( + "io" + "os" +) + +// Fd is an interface that mirrors most of the API of [*os.File], allowing you +// to create wrappers that can be used in place of [*os.File]. +// +// [*os.File]: https://pkg.go.dev/os#File +type Fd interface { + io.Closer + Name() string + Fd() uintptr +} + +// Compile-time interface checks. +var ( + _ Fd = (*os.File)(nil) + _ Fd = noClose{} +) + +type noClose struct{ inner Fd } + +func (f noClose) Name() string { return f.inner.Name() } +func (f noClose) Fd() uintptr { return f.inner.Fd() } + +func (f noClose) Close() error { return nil } + +// NopCloser returns an [*os.File]-like object where the [Close] method is now +// a no-op. +// +// Note that for [*os.File] and similar objects, the Go garbage collector will +// still call [Close] on the underlying file unless you use +// [runtime.SetFinalizer] to disable this behaviour. This is up to the caller +// to do (if necessary). +// +// [*os.File]: https://pkg.go.dev/os#File +// [Close]: https://pkg.go.dev/io#Closer +// [runtime.SetFinalizer]: https://pkg.go.dev/runtime#SetFinalizer +func NopCloser(f Fd) Fd { return noClose{inner: f} } diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/fd_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/fd_linux.go new file mode 100644 index 0000000000..e1ec3c0b8e --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/fd_linux.go @@ -0,0 +1,78 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +package fd + +import ( + "fmt" + "os" + "runtime" + + "golang.org/x/sys/unix" + + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal" +) + +// DupWithName creates a new file descriptor referencing the same underlying +// file, but with the provided name instead of fd.Name(). +func DupWithName(fd Fd, name string) (*os.File, error) { + fd2, err := unix.FcntlInt(fd.Fd(), unix.F_DUPFD_CLOEXEC, 0) + if err != nil { + return nil, os.NewSyscallError("fcntl(F_DUPFD_CLOEXEC)", err) + } + runtime.KeepAlive(fd) + return os.NewFile(uintptr(fd2), name), nil +} + +// Dup creates a new file description referencing the same underlying file. +func Dup(fd Fd) (*os.File, error) { + return DupWithName(fd, fd.Name()) +} + +// Fstat is an [Fd]-based wrapper around unix.Fstat. +func Fstat(fd Fd) (unix.Stat_t, error) { + var stat unix.Stat_t + if err := unix.Fstat(int(fd.Fd()), &stat); err != nil { + return stat, &os.PathError{Op: "fstat", Path: fd.Name(), Err: err} + } + runtime.KeepAlive(fd) + return stat, nil +} + +// Fstatfs is an [Fd]-based wrapper around unix.Fstatfs. +func Fstatfs(fd Fd) (unix.Statfs_t, error) { + var statfs unix.Statfs_t + if err := unix.Fstatfs(int(fd.Fd()), &statfs); err != nil { + return statfs, &os.PathError{Op: "fstatfs", Path: fd.Name(), Err: err} + } + runtime.KeepAlive(fd) + return statfs, nil +} + +// IsDeadInode detects whether the file has been unlinked from a filesystem and +// is thus a "dead inode" from the kernel's perspective. +func IsDeadInode(file Fd) error { + // If the nlink of a file drops to 0, there is an attacker deleting + // directories during our walk, which could result in weird /proc values. + // It's better to error out in this case. + stat, err := Fstat(file) + if err != nil { + return fmt.Errorf("check for dead inode: %w", err) + } + if stat.Nlink == 0 { + err := internal.ErrDeletedInode + if stat.Mode&unix.S_IFMT == unix.S_IFDIR { + err = internal.ErrInvalidDirectory + } + return fmt.Errorf("%w %q", err, file.Name()) + } + return nil +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/mount_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/mount_linux.go new file mode 100644 index 0000000000..77549c7a99 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/mount_linux.go @@ -0,0 +1,54 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +package fd + +import ( + "os" + "runtime" + + "golang.org/x/sys/unix" +) + +// Fsopen is an [Fd]-based wrapper around unix.Fsopen. +func Fsopen(fsName string, flags int) (*os.File, error) { + // Make sure we always set O_CLOEXEC. + flags |= unix.FSOPEN_CLOEXEC + fd, err := unix.Fsopen(fsName, flags) + if err != nil { + return nil, os.NewSyscallError("fsopen "+fsName, err) + } + return os.NewFile(uintptr(fd), "fscontext:"+fsName), nil +} + +// Fsmount is an [Fd]-based wrapper around unix.Fsmount. +func Fsmount(ctx Fd, flags, mountAttrs int) (*os.File, error) { + // Make sure we always set O_CLOEXEC. + flags |= unix.FSMOUNT_CLOEXEC + fd, err := unix.Fsmount(int(ctx.Fd()), flags, mountAttrs) + if err != nil { + return nil, os.NewSyscallError("fsmount "+ctx.Name(), err) + } + return os.NewFile(uintptr(fd), "fsmount:"+ctx.Name()), nil +} + +// OpenTree is an [Fd]-based wrapper around unix.OpenTree. +func OpenTree(dir Fd, path string, flags uint) (*os.File, error) { + dirFd, fullPath := prepareAt(dir, path) + // Make sure we always set O_CLOEXEC. + flags |= unix.OPEN_TREE_CLOEXEC + fd, err := unix.OpenTree(dirFd, path, flags) + if err != nil { + return nil, &os.PathError{Op: "open_tree", Path: fullPath, Err: err} + } + runtime.KeepAlive(dir) + return os.NewFile(uintptr(fd), fullPath), nil +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/openat2_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/openat2_linux.go new file mode 100644 index 0000000000..3e937fe3c1 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd/openat2_linux.go @@ -0,0 +1,62 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +package fd + +import ( + "errors" + "os" + "runtime" + + "golang.org/x/sys/unix" +) + +func scopedLookupShouldRetry(how *unix.OpenHow, err error) bool { + // RESOLVE_IN_ROOT (and RESOLVE_BENEATH) can return -EAGAIN if we resolve + // ".." while a mount or rename occurs anywhere on the system. This could + // happen spuriously, or as the result of an attacker trying to mess with + // us during lookup. + // + // In addition, scoped lookups have a "safety check" at the end of + // complete_walk which will return -EXDEV if the final path is not in the + // root. + return how.Resolve&(unix.RESOLVE_IN_ROOT|unix.RESOLVE_BENEATH) != 0 && + (errors.Is(err, unix.EAGAIN) || errors.Is(err, unix.EXDEV)) +} + +// This is a fairly arbitrary limit we have just to avoid an attacker being +// able to make us spin in an infinite retry loop -- callers can choose to +// retry on EAGAIN if they prefer. +const scopedLookupMaxRetries = 128 + +// Openat2 is an [Fd]-based wrapper around unix.Openat2, but with some retry +// logic in case of EAGAIN errors. +func Openat2(dir Fd, path string, how *unix.OpenHow) (*os.File, error) { + dirFd, fullPath := prepareAt(dir, path) + // Make sure we always set O_CLOEXEC. + how.Flags |= unix.O_CLOEXEC + var tries int + for { + fd, err := unix.Openat2(dirFd, path, how) + if err != nil { + if scopedLookupShouldRetry(how, err) && tries < scopedLookupMaxRetries { + // We retry a couple of times to avoid the spurious errors, and + // if we are being attacked then returning -EAGAIN is the best + // we can do. + tries++ + continue + } + return nil, &os.PathError{Op: "openat2", Path: fullPath, Err: err} + } + runtime.KeepAlive(dir) + return os.NewFile(uintptr(fd), fullPath), nil + } +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/README.md b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/README.md new file mode 100644 index 0000000000..5dcb6ae007 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/README.md @@ -0,0 +1,10 @@ +## gocompat ## + +This directory contains backports of stdlib functions from later Go versions so +the filepath-securejoin can continue to be used by projects that are stuck with +Go 1.18 support. Note that often filepath-securejoin is added in security +patches for old releases, so avoiding the need to bump Go compiler requirements +is a huge plus to downstreams. + +The source code is licensed under the same license as the Go stdlib. See the +source files for the precise license information. diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/doc.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/doc.go new file mode 100644 index 0000000000..4b1803f580 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/doc.go @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: BSD-3-Clause +//go:build linux && go1.20 + +// Copyright (C) 2025 SUSE LLC. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package gocompat includes compatibility shims (backported from future Go +// stdlib versions) to permit filepath-securejoin to be used with older Go +// versions (often filepath-securejoin is added in security patches for old +// releases, so avoiding the need to bump Go compiler requirements is a huge +// plus to downstreams). +package gocompat diff --git a/vendor/github.com/cyphar/filepath-securejoin/gocompat_errors_go120.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_errors_go120.go similarity index 69% rename from vendor/github.com/cyphar/filepath-securejoin/gocompat_errors_go120.go rename to vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_errors_go120.go index 42452bbf9b..4a114bd3da 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/gocompat_errors_go120.go +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_errors_go120.go @@ -1,18 +1,19 @@ +// SPDX-License-Identifier: BSD-3-Clause //go:build linux && go1.20 // Copyright (C) 2024 SUSE LLC. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package securejoin +package gocompat import ( "fmt" ) -// wrapBaseError is a helper that is equivalent to fmt.Errorf("%w: %w"), except +// WrapBaseError is a helper that is equivalent to fmt.Errorf("%w: %w"), except // that on pre-1.20 Go versions only errors.Is() works properly (errors.Unwrap) // is only guaranteed to give you baseErr. -func wrapBaseError(baseErr, extraErr error) error { +func WrapBaseError(baseErr, extraErr error) error { return fmt.Errorf("%w: %w", extraErr, baseErr) } diff --git a/vendor/github.com/cyphar/filepath-securejoin/gocompat_errors_unsupported.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_errors_unsupported.go similarity index 80% rename from vendor/github.com/cyphar/filepath-securejoin/gocompat_errors_unsupported.go rename to vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_errors_unsupported.go index e7adca3fd1..3061016a6a 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/gocompat_errors_unsupported.go +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_errors_unsupported.go @@ -1,10 +1,12 @@ +// SPDX-License-Identifier: BSD-3-Clause + //go:build linux && !go1.20 // Copyright (C) 2024 SUSE LLC. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package securejoin +package gocompat import ( "fmt" @@ -27,10 +29,10 @@ func (err wrappedError) Error() string { return fmt.Sprintf("%v: %v", err.isError, err.inner) } -// wrapBaseError is a helper that is equivalent to fmt.Errorf("%w: %w"), except +// WrapBaseError is a helper that is equivalent to fmt.Errorf("%w: %w"), except // that on pre-1.20 Go versions only errors.Is() works properly (errors.Unwrap) // is only guaranteed to give you baseErr. -func wrapBaseError(baseErr, extraErr error) error { +func WrapBaseError(baseErr, extraErr error) error { return wrappedError{ inner: baseErr, isError: extraErr, diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_generics_go121.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_generics_go121.go new file mode 100644 index 0000000000..d4a938186e --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_generics_go121.go @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: BSD-3-Clause + +//go:build linux && go1.21 + +// Copyright (C) 2024-2025 SUSE LLC. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package gocompat + +import ( + "cmp" + "slices" + "sync" +) + +// SlicesDeleteFunc is equivalent to Go 1.21's slices.DeleteFunc. +func SlicesDeleteFunc[S ~[]E, E any](slice S, delFn func(E) bool) S { + return slices.DeleteFunc(slice, delFn) +} + +// SlicesContains is equivalent to Go 1.21's slices.Contains. +func SlicesContains[S ~[]E, E comparable](slice S, val E) bool { + return slices.Contains(slice, val) +} + +// SlicesClone is equivalent to Go 1.21's slices.Clone. +func SlicesClone[S ~[]E, E any](slice S) S { + return slices.Clone(slice) +} + +// SyncOnceValue is equivalent to Go 1.21's sync.OnceValue. +func SyncOnceValue[T any](f func() T) func() T { + return sync.OnceValue(f) +} + +// SyncOnceValues is equivalent to Go 1.21's sync.OnceValues. +func SyncOnceValues[T1, T2 any](f func() (T1, T2)) func() (T1, T2) { + return sync.OnceValues(f) +} + +// CmpOrdered is equivalent to Go 1.21's cmp.Ordered generic type definition. +type CmpOrdered = cmp.Ordered + +// CmpCompare is equivalent to Go 1.21's cmp.Compare. +func CmpCompare[T CmpOrdered](x, y T) int { + return cmp.Compare(x, y) +} + +// Max2 is equivalent to Go 1.21's max builtin (but only for two parameters). +func Max2[T CmpOrdered](x, y T) T { + return max(x, y) +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_generics_unsupported.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_generics_unsupported.go new file mode 100644 index 0000000000..0ea6218aa6 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat/gocompat_generics_unsupported.go @@ -0,0 +1,187 @@ +// SPDX-License-Identifier: BSD-3-Clause + +//go:build linux && !go1.21 + +// Copyright (C) 2021, 2022 The Go Authors. All rights reserved. +// Copyright (C) 2024-2025 SUSE LLC. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE.BSD file. + +package gocompat + +import ( + "sync" +) + +// These are very minimal implementations of functions that appear in Go 1.21's +// stdlib, included so that we can build on older Go versions. Most are +// borrowed directly from the stdlib, and a few are modified to be "obviously +// correct" without needing to copy too many other helpers. + +// clearSlice is equivalent to Go 1.21's builtin clear. +// Copied from the Go 1.24 stdlib implementation. +func clearSlice[S ~[]E, E any](slice S) { + var zero E + for i := range slice { + slice[i] = zero + } +} + +// slicesIndexFunc is equivalent to Go 1.21's slices.IndexFunc. +// Copied from the Go 1.24 stdlib implementation. +func slicesIndexFunc[S ~[]E, E any](s S, f func(E) bool) int { + for i := range s { + if f(s[i]) { + return i + } + } + return -1 +} + +// SlicesDeleteFunc is equivalent to Go 1.21's slices.DeleteFunc. +// Copied from the Go 1.24 stdlib implementation. +func SlicesDeleteFunc[S ~[]E, E any](s S, del func(E) bool) S { + i := slicesIndexFunc(s, del) + if i == -1 { + return s + } + // Don't start copying elements until we find one to delete. + for j := i + 1; j < len(s); j++ { + if v := s[j]; !del(v) { + s[i] = v + i++ + } + } + clearSlice(s[i:]) // zero/nil out the obsolete elements, for GC + return s[:i] +} + +// SlicesContains is equivalent to Go 1.21's slices.Contains. +// Similar to the stdlib slices.Contains, except that we don't have +// slices.Index so we need to use slices.IndexFunc for this non-Func helper. +func SlicesContains[S ~[]E, E comparable](s S, v E) bool { + return slicesIndexFunc(s, func(e E) bool { return e == v }) >= 0 +} + +// SlicesClone is equivalent to Go 1.21's slices.Clone. +// Copied from the Go 1.24 stdlib implementation. +func SlicesClone[S ~[]E, E any](s S) S { + // Preserve nil in case it matters. + if s == nil { + return nil + } + return append(S([]E{}), s...) +} + +// SyncOnceValue is equivalent to Go 1.21's sync.OnceValue. +// Copied from the Go 1.25 stdlib implementation. +func SyncOnceValue[T any](f func() T) func() T { + // Use a struct so that there's a single heap allocation. + d := struct { + f func() T + once sync.Once + valid bool + p any + result T + }{ + f: f, + } + return func() T { + d.once.Do(func() { + defer func() { + d.f = nil + d.p = recover() + if !d.valid { + panic(d.p) + } + }() + d.result = d.f() + d.valid = true + }) + if !d.valid { + panic(d.p) + } + return d.result + } +} + +// SyncOnceValues is equivalent to Go 1.21's sync.OnceValues. +// Copied from the Go 1.25 stdlib implementation. +func SyncOnceValues[T1, T2 any](f func() (T1, T2)) func() (T1, T2) { + // Use a struct so that there's a single heap allocation. + d := struct { + f func() (T1, T2) + once sync.Once + valid bool + p any + r1 T1 + r2 T2 + }{ + f: f, + } + return func() (T1, T2) { + d.once.Do(func() { + defer func() { + d.f = nil + d.p = recover() + if !d.valid { + panic(d.p) + } + }() + d.r1, d.r2 = d.f() + d.valid = true + }) + if !d.valid { + panic(d.p) + } + return d.r1, d.r2 + } +} + +// CmpOrdered is equivalent to Go 1.21's cmp.Ordered generic type definition. +// Copied from the Go 1.25 stdlib implementation. +type CmpOrdered interface { + ~int | ~int8 | ~int16 | ~int32 | ~int64 | + ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | + ~float32 | ~float64 | + ~string +} + +// isNaN reports whether x is a NaN without requiring the math package. +// This will always return false if T is not floating-point. +// Copied from the Go 1.25 stdlib implementation. +func isNaN[T CmpOrdered](x T) bool { + return x != x +} + +// CmpCompare is equivalent to Go 1.21's cmp.Compare. +// Copied from the Go 1.25 stdlib implementation. +func CmpCompare[T CmpOrdered](x, y T) int { + xNaN := isNaN(x) + yNaN := isNaN(y) + if xNaN { + if yNaN { + return 0 + } + return -1 + } + if yNaN { + return +1 + } + if x < y { + return -1 + } + if x > y { + return +1 + } + return 0 +} + +// Max2 is equivalent to Go 1.21's max builtin for two parameters. +func Max2[T CmpOrdered](x, y T) T { + m := x + if y > m { + m = y + } + return m +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/kernelversion/kernel_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/kernelversion/kernel_linux.go new file mode 100644 index 0000000000..cb6de41861 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/kernelversion/kernel_linux.go @@ -0,0 +1,123 @@ +// SPDX-License-Identifier: BSD-3-Clause + +// Copyright (C) 2022 The Go Authors. All rights reserved. +// Copyright (C) 2025 SUSE LLC. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE.BSD file. + +// The parsing logic is very loosely based on the Go stdlib's +// src/internal/syscall/unix/kernel_version_linux.go but with an API that looks +// a bit like runc's libcontainer/system/kernelversion. +// +// TODO(cyphar): This API has been copied around to a lot of different projects +// (Docker, containerd, runc, and now filepath-securejoin) -- maybe we should +// put it in a separate project? + +// Package kernelversion provides a simple mechanism for checking whether the +// running kernel is at least as new as some baseline kernel version. This is +// often useful when checking for features that would be too complicated to +// test support for (or in cases where we know that some kernel features in +// backport-heavy kernels are broken and need to be avoided). +package kernelversion + +import ( + "bytes" + "errors" + "fmt" + "strconv" + "strings" + + "golang.org/x/sys/unix" + + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat" +) + +// KernelVersion is a numeric representation of the key numerical elements of a +// kernel version (for instance, "4.1.2-default-1" would be represented as +// KernelVersion{4, 1, 2}). +type KernelVersion []uint64 + +func (kver KernelVersion) String() string { + var str strings.Builder + for idx, elem := range kver { + if idx != 0 { + _, _ = str.WriteRune('.') + } + _, _ = str.WriteString(strconv.FormatUint(elem, 10)) + } + return str.String() +} + +var errInvalidKernelVersion = errors.New("invalid kernel version") + +// parseKernelVersion parses a string and creates a KernelVersion based on it. +func parseKernelVersion(kverStr string) (KernelVersion, error) { + kver := make(KernelVersion, 1, 3) + for idx, ch := range kverStr { + if '0' <= ch && ch <= '9' { + v := &kver[len(kver)-1] + *v = (*v * 10) + uint64(ch-'0') + } else { + if idx == 0 || kverStr[idx-1] < '0' || '9' < kverStr[idx-1] { + // "." must be preceded by a digit while in version section + return nil, fmt.Errorf("%w %q: kernel version has dot(s) followed by non-digit in version section", errInvalidKernelVersion, kverStr) + } + if ch != '.' { + break + } + kver = append(kver, 0) + } + } + if len(kver) < 2 { + return nil, fmt.Errorf("%w %q: kernel versions must contain at least two components", errInvalidKernelVersion, kverStr) + } + return kver, nil +} + +// getKernelVersion gets the current kernel version. +var getKernelVersion = gocompat.SyncOnceValues(func() (KernelVersion, error) { + var uts unix.Utsname + if err := unix.Uname(&uts); err != nil { + return nil, err + } + // Remove the \x00 from the release. + release := uts.Release[:] + return parseKernelVersion(string(release[:bytes.IndexByte(release, 0)])) +}) + +// GreaterEqualThan returns true if the the host kernel version is greater than +// or equal to the provided [KernelVersion]. When doing this comparison, any +// non-numerical suffixes of the host kernel version are ignored. +// +// If the number of components provided is not equal to the number of numerical +// components of the host kernel version, any missing components are treated as +// 0. This means that GreaterEqualThan(KernelVersion{4}) will be treated the +// same as GreaterEqualThan(KernelVersion{4, 0, 0, ..., 0, 0}), and that if the +// host kernel version is "4" then GreaterEqualThan(KernelVersion{4, 1}) will +// return false (because the host version will be treated as "4.0"). +func GreaterEqualThan(wantKver KernelVersion) (bool, error) { + hostKver, err := getKernelVersion() + if err != nil { + return false, err + } + + // Pad out the kernel version lengths to match one another. + cmpLen := gocompat.Max2(len(hostKver), len(wantKver)) + hostKver = append(hostKver, make(KernelVersion, cmpLen-len(hostKver))...) + wantKver = append(wantKver, make(KernelVersion, cmpLen-len(wantKver))...) + + for i := 0; i < cmpLen; i++ { + switch gocompat.CmpCompare(hostKver[i], wantKver[i]) { + case -1: + // host < want + return false, nil + case +1: + // host > want + return true, nil + case 0: + continue + } + } + // equal version values + return true, nil +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/doc.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/doc.go new file mode 100644 index 0000000000..4635714f62 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/doc.go @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: MPL-2.0 + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +// Package linux returns information about what features are supported on the +// running kernel. +package linux diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/mount_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/mount_linux.go new file mode 100644 index 0000000000..b29905bff6 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/mount_linux.go @@ -0,0 +1,47 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +package linux + +import ( + "golang.org/x/sys/unix" + + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/kernelversion" +) + +// HasNewMountAPI returns whether the new fsopen(2) mount API is supported on +// the running kernel. +var HasNewMountAPI = gocompat.SyncOnceValue(func() bool { + // All of the pieces of the new mount API we use (fsopen, fsconfig, + // fsmount, open_tree) were added together in Linux 5.2[1,2], so we can + // just check for one of the syscalls and the others should also be + // available. + // + // Just try to use open_tree(2) to open a file without OPEN_TREE_CLONE. + // This is equivalent to openat(2), but tells us if open_tree is + // available (and thus all of the other basic new mount API syscalls). + // open_tree(2) is most light-weight syscall to test here. + // + // [1]: merge commit 400913252d09 + // [2]: + fd, err := unix.OpenTree(-int(unix.EBADF), "/", unix.OPEN_TREE_CLOEXEC) + if err != nil { + return false + } + _ = unix.Close(fd) + + // RHEL 8 has a backport of fsopen(2) that appears to have some very + // difficult to debug performance pathology. As such, it seems prudent to + // simply reject pre-5.2 kernels. + isNotBackport, _ := kernelversion.GreaterEqualThan(kernelversion.KernelVersion{5, 2}) + return isNotBackport +}) diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/openat2_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/openat2_linux.go new file mode 100644 index 0000000000..399609dc36 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux/openat2_linux.go @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +package linux + +import ( + "golang.org/x/sys/unix" + + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat" +) + +// HasOpenat2 returns whether openat2(2) is supported on the running kernel. +var HasOpenat2 = gocompat.SyncOnceValue(func() bool { + fd, err := unix.Openat2(unix.AT_FDCWD, ".", &unix.OpenHow{ + Flags: unix.O_PATH | unix.O_CLOEXEC, + Resolve: unix.RESOLVE_NO_SYMLINKS | unix.RESOLVE_IN_ROOT, + }) + if err != nil { + return false + } + _ = unix.Close(fd) + return true +}) diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs/procfs_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs/procfs_linux.go new file mode 100644 index 0000000000..21e0a62e8e --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs/procfs_linux.go @@ -0,0 +1,544 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +// Package procfs provides a safe API for operating on /proc on Linux. Note +// that this is the *internal* procfs API, mainy needed due to Go's +// restrictions on cyclic dependencies and its incredibly minimal visibility +// system without making a separate internal/ package. +package procfs + +import ( + "errors" + "fmt" + "io" + "os" + "runtime" + "strconv" + + "golang.org/x/sys/unix" + + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/assert" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux" +) + +// The kernel guarantees that the root inode of a procfs mount has an +// f_type of PROC_SUPER_MAGIC and st_ino of PROC_ROOT_INO. +const ( + procSuperMagic = 0x9fa0 // PROC_SUPER_MAGIC + procRootIno = 1 // PROC_ROOT_INO +) + +// verifyProcHandle checks that the handle is from a procfs filesystem. +// Contrast this to [verifyProcRoot], which also verifies that the handle is +// the root of a procfs mount. +func verifyProcHandle(procHandle fd.Fd) error { + if statfs, err := fd.Fstatfs(procHandle); err != nil { + return err + } else if statfs.Type != procSuperMagic { + return fmt.Errorf("%w: incorrect procfs root filesystem type 0x%x", errUnsafeProcfs, statfs.Type) + } + return nil +} + +// verifyProcRoot verifies that the handle is the root of a procfs filesystem. +// Contrast this to [verifyProcHandle], which only verifies if the handle is +// some file on procfs (regardless of what file it is). +func verifyProcRoot(procRoot fd.Fd) error { + if err := verifyProcHandle(procRoot); err != nil { + return err + } + if stat, err := fd.Fstat(procRoot); err != nil { + return err + } else if stat.Ino != procRootIno { + return fmt.Errorf("%w: incorrect procfs root inode number %d", errUnsafeProcfs, stat.Ino) + } + return nil +} + +type procfsFeatures struct { + // hasSubsetPid was added in Linux 5.8, along with hidepid=ptraceable (and + // string-based hidepid= values). Before this patchset, it was not really + // safe to try to modify procfs superblock flags because the superblock was + // shared -- so if this feature is not available, **you should not set any + // superblock flags**. + // + // 6814ef2d992a ("proc: add option to mount only a pids subset") + // fa10fed30f25 ("proc: allow to mount many instances of proc in one pid namespace") + // 24a71ce5c47f ("proc: instantiate only pids that we can ptrace on 'hidepid=4' mount option") + // 1c6c4d112e81 ("proc: use human-readable values for hidepid") + // 9ff7258575d5 ("Merge branch 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace") + hasSubsetPid bool +} + +var getProcfsFeatures = gocompat.SyncOnceValue(func() procfsFeatures { + if !linux.HasNewMountAPI() { + return procfsFeatures{} + } + procfsCtx, err := fd.Fsopen("proc", unix.FSOPEN_CLOEXEC) + if err != nil { + return procfsFeatures{} + } + defer procfsCtx.Close() //nolint:errcheck // close failures aren't critical here + + return procfsFeatures{ + hasSubsetPid: unix.FsconfigSetString(int(procfsCtx.Fd()), "subset", "pid") == nil, + } +}) + +func newPrivateProcMount(subset bool) (_ *Handle, Err error) { + procfsCtx, err := fd.Fsopen("proc", unix.FSOPEN_CLOEXEC) + if err != nil { + return nil, err + } + defer procfsCtx.Close() //nolint:errcheck // close failures aren't critical here + + if subset && getProcfsFeatures().hasSubsetPid { + // Try to configure hidepid=ptraceable,subset=pid if possible, but + // ignore errors. + _ = unix.FsconfigSetString(int(procfsCtx.Fd()), "hidepid", "ptraceable") + _ = unix.FsconfigSetString(int(procfsCtx.Fd()), "subset", "pid") + } + + // Get an actual handle. + if err := unix.FsconfigCreate(int(procfsCtx.Fd())); err != nil { + return nil, os.NewSyscallError("fsconfig create procfs", err) + } + // TODO: Output any information from the fscontext log to debug logs. + procRoot, err := fd.Fsmount(procfsCtx, unix.FSMOUNT_CLOEXEC, unix.MS_NODEV|unix.MS_NOEXEC|unix.MS_NOSUID) + if err != nil { + return nil, err + } + defer func() { + if Err != nil { + _ = procRoot.Close() + } + }() + return newHandle(procRoot) +} + +func clonePrivateProcMount() (_ *Handle, Err error) { + // Try to make a clone without using AT_RECURSIVE if we can. If this works, + // we can be sure there are no over-mounts and so if the root is valid then + // we're golden. Otherwise, we have to deal with over-mounts. + procRoot, err := fd.OpenTree(nil, "/proc", unix.OPEN_TREE_CLONE) + if err != nil || hookForcePrivateProcRootOpenTreeAtRecursive(procRoot) { + procRoot, err = fd.OpenTree(nil, "/proc", unix.OPEN_TREE_CLONE|unix.AT_RECURSIVE) + } + if err != nil { + return nil, fmt.Errorf("creating a detached procfs clone: %w", err) + } + defer func() { + if Err != nil { + _ = procRoot.Close() + } + }() + return newHandle(procRoot) +} + +func privateProcRoot(subset bool) (*Handle, error) { + if !linux.HasNewMountAPI() || hookForceGetProcRootUnsafe() { + return nil, fmt.Errorf("new mount api: %w", unix.ENOTSUP) + } + // Try to create a new procfs mount from scratch if we can. This ensures we + // can get a procfs mount even if /proc is fake (for whatever reason). + procRoot, err := newPrivateProcMount(subset) + if err != nil || hookForcePrivateProcRootOpenTree(procRoot) { + // Try to clone /proc then... + procRoot, err = clonePrivateProcMount() + } + return procRoot, err +} + +func unsafeHostProcRoot() (_ *Handle, Err error) { + procRoot, err := os.OpenFile("/proc", unix.O_PATH|unix.O_NOFOLLOW|unix.O_DIRECTORY|unix.O_CLOEXEC, 0) + if err != nil { + return nil, err + } + defer func() { + if Err != nil { + _ = procRoot.Close() + } + }() + return newHandle(procRoot) +} + +// Handle is a wrapper around an *os.File handle to "/proc", which can be used +// to do further procfs-related operations in a safe way. +type Handle struct { + Inner fd.Fd + // Does this handle have subset=pid set? + isSubset bool +} + +func newHandle(procRoot fd.Fd) (*Handle, error) { + if err := verifyProcRoot(procRoot); err != nil { + // This is only used in methods that + _ = procRoot.Close() + return nil, err + } + proc := &Handle{Inner: procRoot} + // With subset=pid we can be sure that /proc/uptime will not exist. + if err := fd.Faccessat(proc.Inner, "uptime", unix.F_OK, unix.AT_SYMLINK_NOFOLLOW); err != nil { + proc.isSubset = errors.Is(err, os.ErrNotExist) + } + return proc, nil +} + +// Close closes the underlying file for the Handle. +func (proc *Handle) Close() error { return proc.Inner.Close() } + +var getCachedProcRoot = gocompat.SyncOnceValue(func() *Handle { + procRoot, err := getProcRoot(true) + if err != nil { + return nil // just don't cache if we see an error + } + if !procRoot.isSubset { + return nil // we only cache verified subset=pid handles + } + + // Disarm (*Handle).Close() to stop someone from accidentally closing + // the global handle. + procRoot.Inner = fd.NopCloser(procRoot.Inner) + return procRoot +}) + +// OpenProcRoot tries to open a "safer" handle to "/proc". +func OpenProcRoot() (*Handle, error) { + if proc := getCachedProcRoot(); proc != nil { + return proc, nil + } + return getProcRoot(true) +} + +// OpenUnsafeProcRoot opens a handle to "/proc" without any overmounts or +// masked paths (but also without "subset=pid"). +func OpenUnsafeProcRoot() (*Handle, error) { return getProcRoot(false) } + +func getProcRoot(subset bool) (*Handle, error) { + proc, err := privateProcRoot(subset) + if err != nil { + // Fall back to using a /proc handle if making a private mount failed. + // If we have openat2, at least we can avoid some kinds of over-mount + // attacks, but without openat2 there's not much we can do. + proc, err = unsafeHostProcRoot() + } + return proc, err +} + +var hasProcThreadSelf = gocompat.SyncOnceValue(func() bool { + return unix.Access("/proc/thread-self/", unix.F_OK) == nil +}) + +var errUnsafeProcfs = errors.New("unsafe procfs detected") + +// lookup is a very minimal wrapper around [procfsLookupInRoot] which is +// intended to be called from the external API. +func (proc *Handle) lookup(subpath string) (*os.File, error) { + handle, err := procfsLookupInRoot(proc.Inner, subpath) + if err != nil { + return nil, err + } + return handle, nil +} + +// procfsBase is an enum indicating the prefix of a subpath in operations +// involving [Handle]s. +type procfsBase string + +const ( + // ProcRoot refers to the root of the procfs (i.e., "/proc/"). + ProcRoot procfsBase = "/proc" + // ProcSelf refers to the current process' subdirectory (i.e., + // "/proc/self/"). + ProcSelf procfsBase = "/proc/self" + // ProcThreadSelf refers to the current thread's subdirectory (i.e., + // "/proc/thread-self/"). In multi-threaded programs (i.e., all Go + // programs) where one thread has a different CLONE_FS, it is possible for + // "/proc/self" to point the wrong thread and so "/proc/thread-self" may be + // necessary. Note that on pre-3.17 kernels, "/proc/thread-self" doesn't + // exist and so a fallback will be used in that case. + ProcThreadSelf procfsBase = "/proc/thread-self" + // TODO: Switch to an interface setup so we can have a more type-safe + // version of ProcPid and remove the need to worry about invalid string + // values. +) + +// prefix returns a prefix that can be used with the given [Handle]. +func (base procfsBase) prefix(proc *Handle) (string, error) { + switch base { + case ProcRoot: + return ".", nil + case ProcSelf: + return "self", nil + case ProcThreadSelf: + threadSelf := "thread-self" + if !hasProcThreadSelf() || hookForceProcSelfTask() { + // Pre-3.17 kernels don't have /proc/thread-self, so do it + // manually. + threadSelf = "self/task/" + strconv.Itoa(unix.Gettid()) + if err := fd.Faccessat(proc.Inner, threadSelf, unix.F_OK, unix.AT_SYMLINK_NOFOLLOW); err != nil || hookForceProcSelf() { + // In this case, we running in a pid namespace that doesn't + // match the /proc mount we have. This can happen inside runc. + // + // Unfortunately, there is no nice way to get the correct TID + // to use here because of the age of the kernel, so we have to + // just use /proc/self and hope that it works. + threadSelf = "self" + } + } + return threadSelf, nil + } + return "", fmt.Errorf("invalid procfs base %q", base) +} + +// ProcThreadSelfCloser is a callback that needs to be called when you are done +// operating on an [os.File] fetched using [ProcThreadSelf]. +// +// [os.File]: https://pkg.go.dev/os#File +type ProcThreadSelfCloser func() + +// open is the core lookup operation for [Handle]. It returns a handle to +// "/proc//". If the returned [ProcThreadSelfCloser] is non-nil, +// you should call it after you are done interacting with the returned handle. +// +// In general you should use prefer to use the other helpers, as they remove +// the need to interact with [procfsBase] and do not return a nil +// [ProcThreadSelfCloser] for [procfsBase] values other than [ProcThreadSelf] +// where it is necessary. +func (proc *Handle) open(base procfsBase, subpath string) (_ *os.File, closer ProcThreadSelfCloser, Err error) { + prefix, err := base.prefix(proc) + if err != nil { + return nil, nil, err + } + subpath = prefix + "/" + subpath + + switch base { + case ProcRoot: + file, err := proc.lookup(subpath) + if errors.Is(err, os.ErrNotExist) { + // The Handle handle in use might be a subset=pid one, which will + // result in spurious errors. In this case, just open a temporary + // unmasked procfs handle for this operation. + proc, err2 := OpenUnsafeProcRoot() // !subset=pid + if err2 != nil { + return nil, nil, err + } + defer proc.Close() //nolint:errcheck // close failures aren't critical here + + file, err = proc.lookup(subpath) + } + return file, nil, err + + case ProcSelf: + file, err := proc.lookup(subpath) + return file, nil, err + + case ProcThreadSelf: + // We need to lock our thread until the caller is done with the handle + // because between getting the handle and using it we could get + // interrupted by the Go runtime and hit the case where the underlying + // thread is swapped out and the original thread is killed, resulting + // in pull-your-hair-out-hard-to-debug issues in the caller. + runtime.LockOSThread() + defer func() { + if Err != nil { + runtime.UnlockOSThread() + closer = nil + } + }() + + file, err := proc.lookup(subpath) + return file, runtime.UnlockOSThread, err + } + // should never be reached + return nil, nil, fmt.Errorf("[internal error] invalid procfs base %q", base) +} + +// OpenThreadSelf returns a handle to "/proc/thread-self/" (or an +// equivalent handle on older kernels where "/proc/thread-self" doesn't exist). +// Once finished with the handle, you must call the returned closer function +// (runtime.UnlockOSThread). You must not pass the returned *os.File to other +// Go threads or use the handle after calling the closer. +func (proc *Handle) OpenThreadSelf(subpath string) (_ *os.File, _ ProcThreadSelfCloser, Err error) { + return proc.open(ProcThreadSelf, subpath) +} + +// OpenSelf returns a handle to /proc/self/. +func (proc *Handle) OpenSelf(subpath string) (*os.File, error) { + file, closer, err := proc.open(ProcSelf, subpath) + assert.Assert(closer == nil, "closer for ProcSelf must be nil") + return file, err +} + +// OpenRoot returns a handle to /proc/. +func (proc *Handle) OpenRoot(subpath string) (*os.File, error) { + file, closer, err := proc.open(ProcRoot, subpath) + assert.Assert(closer == nil, "closer for ProcRoot must be nil") + return file, err +} + +// OpenPid returns a handle to /proc/$pid/ (pid can be a pid or tid). +// This is mainly intended for usage when operating on other processes. +func (proc *Handle) OpenPid(pid int, subpath string) (*os.File, error) { + return proc.OpenRoot(strconv.Itoa(pid) + "/" + subpath) +} + +// checkSubpathOvermount checks if the dirfd and path combination is on the +// same mount as the given root. +func checkSubpathOvermount(root, dir fd.Fd, path string) error { + // Get the mntID of our procfs handle. + expectedMountID, err := fd.GetMountID(root, "") + if err != nil { + return fmt.Errorf("get root mount id: %w", err) + } + // Get the mntID of the target magic-link. + gotMountID, err := fd.GetMountID(dir, path) + if err != nil { + return fmt.Errorf("get subpath mount id: %w", err) + } + // As long as the directory mount is alive, even with wrapping mount IDs, + // we would expect to see a different mount ID here. (Of course, if we're + // using unsafeHostProcRoot() then an attaker could change this after we + // did this check.) + if expectedMountID != gotMountID { + return fmt.Errorf("%w: subpath %s/%s has an overmount obscuring the real path (mount ids do not match %d != %d)", + errUnsafeProcfs, dir.Name(), path, expectedMountID, gotMountID) + } + return nil +} + +// Readlink performs a readlink operation on "/proc//" in a way +// that should be free from race attacks. This is most commonly used to get the +// real path of a file by looking at "/proc/self/fd/$n", with the same safety +// protections as [Open] (as well as some additional checks against +// overmounts). +func (proc *Handle) Readlink(base procfsBase, subpath string) (string, error) { + link, closer, err := proc.open(base, subpath) + if closer != nil { + defer closer() + } + if err != nil { + return "", fmt.Errorf("get safe %s/%s handle: %w", base, subpath, err) + } + defer link.Close() //nolint:errcheck // close failures aren't critical here + + // Try to detect if there is a mount on top of the magic-link. This should + // be safe in general (a mount on top of the path afterwards would not + // affect the handle itself) and will definitely be safe if we are using + // privateProcRoot() (at least since Linux 5.12[1], when anonymous mount + // namespaces were completely isolated from external mounts including mount + // propagation events). + // + // [1]: Linux commit ee2e3f50629f ("mount: fix mounting of detached mounts + // onto targets that reside on shared mounts"). + if err := checkSubpathOvermount(proc.Inner, link, ""); err != nil { + return "", fmt.Errorf("check safety of %s/%s magiclink: %w", base, subpath, err) + } + + // readlinkat implies AT_EMPTY_PATH since Linux 2.6.39. See Linux commit + // 65cfc6722361 ("readlinkat(), fchownat() and fstatat() with empty + // relative pathnames"). + return fd.Readlinkat(link, "") +} + +// ProcSelfFdReadlink gets the real path of the given file by looking at +// readlink(/proc/thread-self/fd/$n). +// +// This is just a wrapper around [Handle.Readlink]. +func ProcSelfFdReadlink(fd fd.Fd) (string, error) { + procRoot, err := OpenProcRoot() // subset=pid + if err != nil { + return "", err + } + defer procRoot.Close() //nolint:errcheck // close failures aren't critical here + + fdPath := "fd/" + strconv.Itoa(int(fd.Fd())) + return procRoot.Readlink(ProcThreadSelf, fdPath) +} + +// CheckProcSelfFdPath returns whether the given file handle matches the +// expected path. (This is inherently racy.) +func CheckProcSelfFdPath(path string, file fd.Fd) error { + if err := fd.IsDeadInode(file); err != nil { + return err + } + actualPath, err := ProcSelfFdReadlink(file) + if err != nil { + return fmt.Errorf("get path of handle: %w", err) + } + if actualPath != path { + return fmt.Errorf("%w: handle path %q doesn't match expected path %q", internal.ErrPossibleBreakout, actualPath, path) + } + return nil +} + +// ReopenFd takes an existing file descriptor and "re-opens" it through +// /proc/thread-self/fd/. This allows for O_PATH file descriptors to be +// upgraded to regular file descriptors, as well as changing the open mode of a +// regular file descriptor. Some filesystems have unique handling of open(2) +// which make this incredibly useful (such as /dev/ptmx). +func ReopenFd(handle fd.Fd, flags int) (*os.File, error) { + procRoot, err := OpenProcRoot() // subset=pid + if err != nil { + return nil, err + } + defer procRoot.Close() //nolint:errcheck // close failures aren't critical here + + // We can't operate on /proc/thread-self/fd/$n directly when doing a + // re-open, so we need to open /proc/thread-self/fd and then open a single + // final component. + procFdDir, closer, err := procRoot.OpenThreadSelf("fd/") + if err != nil { + return nil, fmt.Errorf("get safe /proc/thread-self/fd handle: %w", err) + } + defer procFdDir.Close() //nolint:errcheck // close failures aren't critical here + defer closer() + + // Try to detect if there is a mount on top of the magic-link we are about + // to open. If we are using unsafeHostProcRoot(), this could change after + // we check it (and there's nothing we can do about that) but for + // privateProcRoot() this should be guaranteed to be safe (at least since + // Linux 5.12[1], when anonymous mount namespaces were completely isolated + // from external mounts including mount propagation events). + // + // [1]: Linux commit ee2e3f50629f ("mount: fix mounting of detached mounts + // onto targets that reside on shared mounts"). + fdStr := strconv.Itoa(int(handle.Fd())) + if err := checkSubpathOvermount(procRoot.Inner, procFdDir, fdStr); err != nil { + return nil, fmt.Errorf("check safety of /proc/thread-self/fd/%s magiclink: %w", fdStr, err) + } + + flags |= unix.O_CLOEXEC + // Rather than just wrapping fd.Openat, open-code it so we can copy + // handle.Name(). + reopenFd, err := unix.Openat(int(procFdDir.Fd()), fdStr, flags, 0) + if err != nil { + return nil, fmt.Errorf("reopen fd %d: %w", handle.Fd(), err) + } + return os.NewFile(uintptr(reopenFd), handle.Name()), nil +} + +// Test hooks used in the procfs tests to verify that the fallback logic works. +// See testing_mocks_linux_test.go and procfs_linux_test.go for more details. +var ( + hookForcePrivateProcRootOpenTree = hookDummyFile + hookForcePrivateProcRootOpenTreeAtRecursive = hookDummyFile + hookForceGetProcRootUnsafe = hookDummy + + hookForceProcSelfTask = hookDummy + hookForceProcSelf = hookDummy +) + +func hookDummy() bool { return false } +func hookDummyFile(_ io.Closer) bool { return false } diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs/procfs_lookup_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs/procfs_lookup_linux.go new file mode 100644 index 0000000000..1ad1f18eee --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs/procfs_lookup_linux.go @@ -0,0 +1,222 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +// This code is adapted to be a minimal version of the libpathrs proc resolver +// . +// As we only need O_PATH|O_NOFOLLOW support, this is not too much to port. + +package procfs + +import ( + "fmt" + "os" + "path" + "path/filepath" + "strings" + + "golang.org/x/sys/unix" + + "github.com/cyphar/filepath-securejoin/internal/consts" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux" +) + +// procfsLookupInRoot is a stripped down version of completeLookupInRoot, +// entirely designed to support the very small set of features necessary to +// make procfs handling work. Unlike completeLookupInRoot, we always have +// O_PATH|O_NOFOLLOW behaviour for trailing symlinks. +// +// The main restrictions are: +// +// - ".." is not supported (as it requires either os.Root-style replays, +// which is more bug-prone; or procfs verification, which is not possible +// due to re-entrancy issues). +// - Absolute symlinks for the same reason (and all absolute symlinks in +// procfs are magic-links, which we want to skip anyway). +// - If statx is supported (checkSymlinkOvermount), any mount-point crossings +// (which is the main attack of concern against /proc). +// - Partial lookups are not supported, so the symlink stack is not needed. +// - Trailing slash special handling is not necessary in most cases (if we +// operating on procfs, it's usually with programmer-controlled strings +// that will then be re-opened), so we skip it since whatever re-opens it +// can deal with it. It's a creature comfort anyway. +// +// If the system supports openat2(), this is implemented using equivalent flags +// (RESOLVE_BENEATH | RESOLVE_NO_XDEV | RESOLVE_NO_MAGICLINKS). +func procfsLookupInRoot(procRoot fd.Fd, unsafePath string) (Handle *os.File, _ error) { + unsafePath = filepath.ToSlash(unsafePath) // noop + + // Make sure that an empty unsafe path still returns something sane, even + // with openat2 (which doesn't have AT_EMPTY_PATH semantics yet). + if unsafePath == "" { + unsafePath = "." + } + + // This is already checked by getProcRoot, but make sure here since the + // core security of this lookup is based on this assumption. + if err := verifyProcRoot(procRoot); err != nil { + return nil, err + } + + if linux.HasOpenat2() { + // We prefer being able to use RESOLVE_NO_XDEV if we can, to be + // absolutely sure we are operating on a clean /proc handle that + // doesn't have any cheeky overmounts that could trick us (including + // symlink mounts on top of /proc/thread-self). RESOLVE_BENEATH isn't + // strictly needed, but just use it since we have it. + // + // NOTE: /proc/self is technically a magic-link (the contents of the + // symlink are generated dynamically), but it doesn't use + // nd_jump_link() so RESOLVE_NO_MAGICLINKS allows it. + // + // TODO: It would be nice to have RESOLVE_NO_DOTDOT, purely for + // self-consistency with the backup O_PATH resolver. + handle, err := fd.Openat2(procRoot, unsafePath, &unix.OpenHow{ + Flags: unix.O_PATH | unix.O_NOFOLLOW | unix.O_CLOEXEC, + Resolve: unix.RESOLVE_BENEATH | unix.RESOLVE_NO_XDEV | unix.RESOLVE_NO_MAGICLINKS, + }) + if err != nil { + // TODO: Once we bump the minimum Go version to 1.20, we can use + // multiple %w verbs for this wrapping. For now we need to use a + // compatibility shim for older Go versions. + // err = fmt.Errorf("%w: %w", errUnsafeProcfs, err) + return nil, gocompat.WrapBaseError(err, errUnsafeProcfs) + } + return handle, nil + } + + // To mirror openat2(RESOLVE_BENEATH), we need to return an error if the + // path is absolute. + if path.IsAbs(unsafePath) { + return nil, fmt.Errorf("%w: cannot resolve absolute paths in procfs resolver", internal.ErrPossibleBreakout) + } + + currentDir, err := fd.Dup(procRoot) + if err != nil { + return nil, fmt.Errorf("clone root fd: %w", err) + } + defer func() { + // If a handle is not returned, close the internal handle. + if Handle == nil { + _ = currentDir.Close() + } + }() + + var ( + linksWalked int + currentPath string + remainingPath = unsafePath + ) + for remainingPath != "" { + // Get the next path component. + var part string + if i := strings.IndexByte(remainingPath, '/'); i == -1 { + part, remainingPath = remainingPath, "" + } else { + part, remainingPath = remainingPath[:i], remainingPath[i+1:] + } + if part == "" { + // no-op component, but treat it the same as "." + part = "." + } + if part == ".." { + // not permitted + return nil, fmt.Errorf("%w: cannot walk into '..' in procfs resolver", internal.ErrPossibleBreakout) + } + + // Apply the component lexically to the path we are building. + // currentPath does not contain any symlinks, and we are lexically + // dealing with a single component, so it's okay to do a filepath.Clean + // here. (Not to mention that ".." isn't allowed.) + nextPath := path.Join("/", currentPath, part) + // If we logically hit the root, just clone the root rather than + // opening the part and doing all of the other checks. + if nextPath == "/" { + // Jump to root. + rootClone, err := fd.Dup(procRoot) + if err != nil { + return nil, fmt.Errorf("clone root fd: %w", err) + } + _ = currentDir.Close() + currentDir = rootClone + currentPath = nextPath + continue + } + + // Try to open the next component. + nextDir, err := fd.Openat(currentDir, part, unix.O_PATH|unix.O_NOFOLLOW|unix.O_CLOEXEC, 0) + if err != nil { + return nil, err + } + + // Make sure we are still on procfs and haven't crossed mounts. + if err := verifyProcHandle(nextDir); err != nil { + _ = nextDir.Close() + return nil, fmt.Errorf("check %q component is on procfs: %w", part, err) + } + if err := checkSubpathOvermount(procRoot, nextDir, ""); err != nil { + _ = nextDir.Close() + return nil, fmt.Errorf("check %q component is not overmounted: %w", part, err) + } + + // We are emulating O_PATH|O_NOFOLLOW, so we only need to traverse into + // trailing symlinks if we are not the final component. Otherwise we + // can just return the currentDir. + if remainingPath != "" { + st, err := nextDir.Stat() + if err != nil { + _ = nextDir.Close() + return nil, fmt.Errorf("stat component %q: %w", part, err) + } + + if st.Mode()&os.ModeType == os.ModeSymlink { + // readlinkat implies AT_EMPTY_PATH since Linux 2.6.39. See + // Linux commit 65cfc6722361 ("readlinkat(), fchownat() and + // fstatat() with empty relative pathnames"). + linkDest, err := fd.Readlinkat(nextDir, "") + // We don't need the handle anymore. + _ = nextDir.Close() + if err != nil { + return nil, err + } + + linksWalked++ + if linksWalked > consts.MaxSymlinkLimit { + return nil, &os.PathError{Op: "securejoin.procfsLookupInRoot", Path: "/proc/" + unsafePath, Err: unix.ELOOP} + } + + // Update our logical remaining path. + remainingPath = linkDest + "/" + remainingPath + // Absolute symlinks are probably magiclinks, we reject them. + if path.IsAbs(linkDest) { + return nil, fmt.Errorf("%w: cannot jump to / in procfs resolver -- possible magiclink", internal.ErrPossibleBreakout) + } + continue + } + } + + // Walk into the next component. + _ = currentDir.Close() + currentDir = nextDir + currentPath = nextPath + } + + // One final sanity-check. + if err := verifyProcHandle(currentDir); err != nil { + return nil, fmt.Errorf("check final handle is on procfs: %w", err) + } + if err := checkSubpathOvermount(procRoot, currentDir, ""); err != nil { + return nil, fmt.Errorf("check final handle is not overmounted: %w", err) + } + return currentDir, nil +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/lookup_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/lookup_linux.go similarity index 86% rename from vendor/github.com/cyphar/filepath-securejoin/lookup_linux.go rename to vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/lookup_linux.go index be81e498d7..f47504e663 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/lookup_linux.go +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/lookup_linux.go @@ -1,10 +1,15 @@ +// SPDX-License-Identifier: MPL-2.0 + //go:build linux -// Copyright (C) 2024 SUSE LLC. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. -package securejoin +package pathrs import ( "errors" @@ -15,6 +20,12 @@ import ( "strings" "golang.org/x/sys/unix" + + "github.com/cyphar/filepath-securejoin/internal/consts" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs" ) type symlinkStackEntry struct { @@ -112,12 +123,12 @@ func (s *symlinkStack) push(dir *os.File, remainingPath, linkTarget string) erro return nil } // Split the link target and clean up any "" parts. - linkTargetParts := slices_DeleteFunc( + linkTargetParts := gocompat.SlicesDeleteFunc( strings.Split(linkTarget, "/"), func(part string) bool { return part == "" || part == "." }) // Copy the directory so the caller doesn't close our copy. - dirCopy, err := dupFile(dir) + dirCopy, err := fd.Dup(dir) if err != nil { return err } @@ -159,11 +170,11 @@ func (s *symlinkStack) PopTopSymlink() (*os.File, string, bool) { // within the provided root (a-la RESOLVE_IN_ROOT) and opens the final existing // component of the requested path, returning a file handle to the final // existing component and a string containing the remaining path components. -func partialLookupInRoot(root *os.File, unsafePath string) (*os.File, string, error) { +func partialLookupInRoot(root fd.Fd, unsafePath string) (*os.File, string, error) { return lookupInRoot(root, unsafePath, true) } -func completeLookupInRoot(root *os.File, unsafePath string) (*os.File, error) { +func completeLookupInRoot(root fd.Fd, unsafePath string) (*os.File, error) { handle, remainingPath, err := lookupInRoot(root, unsafePath, false) if remainingPath != "" && err == nil { // should never happen @@ -174,7 +185,7 @@ func completeLookupInRoot(root *os.File, unsafePath string) (*os.File, error) { return handle, err } -func lookupInRoot(root *os.File, unsafePath string, partial bool) (Handle *os.File, _ string, _ error) { +func lookupInRoot(root fd.Fd, unsafePath string, partial bool) (Handle *os.File, _ string, _ error) { unsafePath = filepath.ToSlash(unsafePath) // noop // This is very similar to SecureJoin, except that we operate on the @@ -182,20 +193,20 @@ func lookupInRoot(root *os.File, unsafePath string, partial bool) (Handle *os.Fi // managed open, along with the remaining path components not opened. // Try to use openat2 if possible. - if hasOpenat2() { + if linux.HasOpenat2() { return lookupOpenat2(root, unsafePath, partial) } // Get the "actual" root path from /proc/self/fd. This is necessary if the // root is some magic-link like /proc/$pid/root, in which case we want to - // make sure when we do checkProcSelfFdPath that we are using the correct - // root path. - logicalRootPath, err := procSelfFdReadlink(root) + // make sure when we do procfs.CheckProcSelfFdPath that we are using the + // correct root path. + logicalRootPath, err := procfs.ProcSelfFdReadlink(root) if err != nil { return nil, "", fmt.Errorf("get real root path: %w", err) } - currentDir, err := dupFile(root) + currentDir, err := fd.Dup(root) if err != nil { return nil, "", fmt.Errorf("clone root fd: %w", err) } @@ -260,7 +271,7 @@ func lookupInRoot(root *os.File, unsafePath string, partial bool) (Handle *os.Fi return nil, "", fmt.Errorf("walking into root with part %q failed: %w", part, err) } // Jump to root. - rootClone, err := dupFile(root) + rootClone, err := fd.Dup(root) if err != nil { return nil, "", fmt.Errorf("clone root fd: %w", err) } @@ -271,21 +282,21 @@ func lookupInRoot(root *os.File, unsafePath string, partial bool) (Handle *os.Fi } // Try to open the next component. - nextDir, err := openatFile(currentDir, part, unix.O_PATH|unix.O_NOFOLLOW|unix.O_CLOEXEC, 0) - switch { - case err == nil: + nextDir, err := fd.Openat(currentDir, part, unix.O_PATH|unix.O_NOFOLLOW|unix.O_CLOEXEC, 0) + switch err { + case nil: st, err := nextDir.Stat() if err != nil { _ = nextDir.Close() return nil, "", fmt.Errorf("stat component %q: %w", part, err) } - switch st.Mode() & os.ModeType { + switch st.Mode() & os.ModeType { //nolint:exhaustive // just a glorified if statement case os.ModeSymlink: // readlinkat implies AT_EMPTY_PATH since Linux 2.6.39. See // Linux commit 65cfc6722361 ("readlinkat(), fchownat() and // fstatat() with empty relative pathnames"). - linkDest, err := readlinkatFile(nextDir, "") + linkDest, err := fd.Readlinkat(nextDir, "") // We don't need the handle anymore. _ = nextDir.Close() if err != nil { @@ -293,7 +304,7 @@ func lookupInRoot(root *os.File, unsafePath string, partial bool) (Handle *os.Fi } linksWalked++ - if linksWalked > maxSymlinkLimit { + if linksWalked > consts.MaxSymlinkLimit { return nil, "", &os.PathError{Op: "securejoin.lookupInRoot", Path: logicalRootPath + "/" + unsafePath, Err: unix.ELOOP} } @@ -307,7 +318,7 @@ func lookupInRoot(root *os.File, unsafePath string, partial bool) (Handle *os.Fi // Absolute symlinks reset any work we've already done. if path.IsAbs(linkDest) { // Jump to root. - rootClone, err := dupFile(root) + rootClone, err := fd.Dup(root) if err != nil { return nil, "", fmt.Errorf("clone root fd: %w", err) } @@ -335,12 +346,12 @@ func lookupInRoot(root *os.File, unsafePath string, partial bool) (Handle *os.Fi // rename or mount on the system. if part == ".." { // Make sure the root hasn't moved. - if err := checkProcSelfFdPath(logicalRootPath, root); err != nil { + if err := procfs.CheckProcSelfFdPath(logicalRootPath, root); err != nil { return nil, "", fmt.Errorf("root path moved during lookup: %w", err) } // Make sure the path is what we expect. fullPath := logicalRootPath + nextPath - if err := checkProcSelfFdPath(fullPath, currentDir); err != nil { + if err := procfs.CheckProcSelfFdPath(fullPath, currentDir); err != nil { return nil, "", fmt.Errorf("walking into %q had unexpected result: %w", part, err) } } @@ -371,7 +382,7 @@ func lookupInRoot(root *os.File, unsafePath string, partial bool) (Handle *os.Fi // context of openat2, a trailing slash and a trailing "/." are completely // equivalent. if strings.HasSuffix(unsafePath, "/") { - nextDir, err := openatFile(currentDir, ".", unix.O_PATH|unix.O_NOFOLLOW|unix.O_CLOEXEC, 0) + nextDir, err := fd.Openat(currentDir, ".", unix.O_PATH|unix.O_NOFOLLOW|unix.O_CLOEXEC, 0) if err != nil { if !partial { _ = currentDir.Close() diff --git a/vendor/github.com/cyphar/filepath-securejoin/mkdir_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/mkdir_linux.go similarity index 86% rename from vendor/github.com/cyphar/filepath-securejoin/mkdir_linux.go rename to vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/mkdir_linux.go index a17ae3b038..f3c62b0dac 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/mkdir_linux.go +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/mkdir_linux.go @@ -1,10 +1,15 @@ +// SPDX-License-Identifier: MPL-2.0 + //go:build linux -// Copyright (C) 2024 SUSE LLC. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. -package securejoin +package pathrs import ( "errors" @@ -14,13 +19,14 @@ import ( "strings" "golang.org/x/sys/unix" -) -var ( - errInvalidMode = errors.New("invalid permission mode") - errPossibleAttack = errors.New("possible attack detected") + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/gocompat" + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/linux" ) +var errInvalidMode = errors.New("invalid permission mode") + // modePermExt is like os.ModePerm except that it also includes the set[ug]id // and sticky bits. const modePermExt = os.ModePerm | os.ModeSetuid | os.ModeSetgid | os.ModeSticky @@ -66,6 +72,8 @@ func toUnixMode(mode os.FileMode) (uint32, error) { // a brand new lookup of unsafePath (such as with [SecureJoin] or openat2) after // doing [MkdirAll]. If you intend to open the directory after creating it, you // should use MkdirAllHandle. +// +// [SecureJoin]: https://pkg.go.dev/github.com/cyphar/filepath-securejoin#SecureJoin func MkdirAllHandle(root *os.File, unsafePath string, mode os.FileMode) (_ *os.File, Err error) { unixMode, err := toUnixMode(mode) if err != nil { @@ -102,7 +110,7 @@ func MkdirAllHandle(root *os.File, unsafePath string, mode os.FileMode) (_ *os.F // // This is mostly a quality-of-life check, because mkdir will simply fail // later if the attacker deletes the tree after this check. - if err := isDeadInode(currentDir); err != nil { + if err := fd.IsDeadInode(currentDir); err != nil { return nil, fmt.Errorf("finding existing subpath of %q: %w", unsafePath, err) } @@ -113,13 +121,13 @@ func MkdirAllHandle(root *os.File, unsafePath string, mode os.FileMode) (_ *os.F return nil, fmt.Errorf("cannot create subdirectories in %q: %w", currentDir.Name(), unix.ENOTDIR) } else if err != nil { return nil, fmt.Errorf("re-opening handle to %q: %w", currentDir.Name(), err) - } else { + } else { //nolint:revive // indent-error-flow lint doesn't make sense here _ = currentDir.Close() currentDir = reopenDir } remainingParts := strings.Split(remainingPath, string(filepath.Separator)) - if slices_Contains(remainingParts, "..") { + if gocompat.SlicesContains(remainingParts, "..") { // The path contained ".." components after the end of the "real" // components. We could try to safely resolve ".." here but that would // add a bunch of extra logic for something that it's not clear even @@ -150,12 +158,12 @@ func MkdirAllHandle(root *os.File, unsafePath string, mode os.FileMode) (_ *os.F if err := unix.Mkdirat(int(currentDir.Fd()), part, unixMode); err != nil && !errors.Is(err, unix.EEXIST) { err = &os.PathError{Op: "mkdirat", Path: currentDir.Name() + "/" + part, Err: err} // Make the error a bit nicer if the directory is dead. - if deadErr := isDeadInode(currentDir); deadErr != nil { + if deadErr := fd.IsDeadInode(currentDir); deadErr != nil { // TODO: Once we bump the minimum Go version to 1.20, we can use // multiple %w verbs for this wrapping. For now we need to use a // compatibility shim for older Go versions. - //err = fmt.Errorf("%w (%w)", err, deadErr) - err = wrapBaseError(err, deadErr) + // err = fmt.Errorf("%w (%w)", err, deadErr) + err = gocompat.WrapBaseError(err, deadErr) } return nil, err } @@ -163,13 +171,13 @@ func MkdirAllHandle(root *os.File, unsafePath string, mode os.FileMode) (_ *os.F // Get a handle to the next component. O_DIRECTORY means we don't need // to use O_PATH. var nextDir *os.File - if hasOpenat2() { - nextDir, err = openat2File(currentDir, part, &unix.OpenHow{ + if linux.HasOpenat2() { + nextDir, err = openat2(currentDir, part, &unix.OpenHow{ Flags: unix.O_NOFOLLOW | unix.O_DIRECTORY | unix.O_CLOEXEC, Resolve: unix.RESOLVE_BENEATH | unix.RESOLVE_NO_SYMLINKS | unix.RESOLVE_NO_XDEV, }) } else { - nextDir, err = openatFile(currentDir, part, unix.O_NOFOLLOW|unix.O_DIRECTORY|unix.O_CLOEXEC, 0) + nextDir, err = fd.Openat(currentDir, part, unix.O_NOFOLLOW|unix.O_DIRECTORY|unix.O_CLOEXEC, 0) } if err != nil { return nil, err @@ -220,12 +228,14 @@ func MkdirAllHandle(root *os.File, unsafePath string, mode os.FileMode) (_ *os.F // If you plan to open the directory after you have created it or want to use // an open directory handle as the root, you should use [MkdirAllHandle] instead. // This function is a wrapper around [MkdirAllHandle]. +// +// [SecureJoin]: https://pkg.go.dev/github.com/cyphar/filepath-securejoin#SecureJoin func MkdirAll(root, unsafePath string, mode os.FileMode) error { rootDir, err := os.OpenFile(root, unix.O_PATH|unix.O_DIRECTORY|unix.O_CLOEXEC, 0) if err != nil { return err } - defer rootDir.Close() + defer rootDir.Close() //nolint:errcheck // close failures aren't critical here f, err := MkdirAllHandle(rootDir, unsafePath, mode) if err != nil { diff --git a/vendor/github.com/cyphar/filepath-securejoin/open_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/open_linux.go similarity index 56% rename from vendor/github.com/cyphar/filepath-securejoin/open_linux.go rename to vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/open_linux.go index 230be73f0e..7492d8cfa0 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/open_linux.go +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/open_linux.go @@ -1,17 +1,22 @@ +// SPDX-License-Identifier: MPL-2.0 + //go:build linux -// Copyright (C) 2024 SUSE LLC. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. -package securejoin +package pathrs import ( - "fmt" "os" - "strconv" "golang.org/x/sys/unix" + + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs" ) // OpenatInRoot is equivalent to [OpenInRoot], except that the root is provided @@ -40,12 +45,14 @@ func OpenatInRoot(root *os.File, unsafePath string) (*os.File, error) { // disconnected TTY that could cause a DoS, or some other issue). In order to // use the returned handle, you can "upgrade" it to a proper handle using // [Reopen]. +// +// [SecureJoin]: https://pkg.go.dev/github.com/cyphar/filepath-securejoin#SecureJoin func OpenInRoot(root, unsafePath string) (*os.File, error) { rootDir, err := os.OpenFile(root, unix.O_PATH|unix.O_DIRECTORY|unix.O_CLOEXEC, 0) if err != nil { return nil, err } - defer rootDir.Close() + defer rootDir.Close() //nolint:errcheck // close failures aren't critical here return OpenatInRoot(rootDir, unsafePath) } @@ -63,41 +70,5 @@ func OpenInRoot(root, unsafePath string) (*os.File, error) { // // [CVE-2019-19921]: https://github.com/advisories/GHSA-fh74-hm69-rqjw func Reopen(handle *os.File, flags int) (*os.File, error) { - procRoot, err := getProcRoot() - if err != nil { - return nil, err - } - - // We can't operate on /proc/thread-self/fd/$n directly when doing a - // re-open, so we need to open /proc/thread-self/fd and then open a single - // final component. - procFdDir, closer, err := procThreadSelf(procRoot, "fd/") - if err != nil { - return nil, fmt.Errorf("get safe /proc/thread-self/fd handle: %w", err) - } - defer procFdDir.Close() - defer closer() - - // Try to detect if there is a mount on top of the magic-link we are about - // to open. If we are using unsafeHostProcRoot(), this could change after - // we check it (and there's nothing we can do about that) but for - // privateProcRoot() this should be guaranteed to be safe (at least since - // Linux 5.12[1], when anonymous mount namespaces were completely isolated - // from external mounts including mount propagation events). - // - // [1]: Linux commit ee2e3f50629f ("mount: fix mounting of detached mounts - // onto targets that reside on shared mounts"). - fdStr := strconv.Itoa(int(handle.Fd())) - if err := checkSymlinkOvermount(procRoot, procFdDir, fdStr); err != nil { - return nil, fmt.Errorf("check safety of /proc/thread-self/fd/%s magiclink: %w", fdStr, err) - } - - flags |= unix.O_CLOEXEC - // Rather than just wrapping openatFile, open-code it so we can copy - // handle.Name(). - reopenFd, err := unix.Openat(int(procFdDir.Fd()), fdStr, flags, 0) - if err != nil { - return nil, fmt.Errorf("reopen fd %d: %w", handle.Fd(), err) - } - return os.NewFile(uintptr(reopenFd), handle.Name()), nil + return procfs.ReopenFd(handle, flags) } diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/openat2_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/openat2_linux.go new file mode 100644 index 0000000000..937bc435f2 --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/openat2_linux.go @@ -0,0 +1,101 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +package pathrs + +import ( + "errors" + "fmt" + "os" + "path/filepath" + "strings" + + "golang.org/x/sys/unix" + + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/fd" + "github.com/cyphar/filepath-securejoin/pathrs-lite/procfs" +) + +func openat2(dir fd.Fd, path string, how *unix.OpenHow) (*os.File, error) { + file, err := fd.Openat2(dir, path, how) + if err != nil { + return nil, err + } + // If we are using RESOLVE_IN_ROOT, the name we generated may be wrong. + if how.Resolve&unix.RESOLVE_IN_ROOT == unix.RESOLVE_IN_ROOT { + if actualPath, err := procfs.ProcSelfFdReadlink(file); err == nil { + // TODO: Ideally we would not need to dup the fd, but you cannot + // easily just swap an *os.File with one from the same fd + // (the GC will close the old one, and you cannot clear the + // finaliser easily because it is associated with an internal + // field of *os.File not *os.File itself). + newFile, err := fd.DupWithName(file, actualPath) + if err != nil { + return nil, err + } + file = newFile + } + } + return file, nil +} + +func lookupOpenat2(root fd.Fd, unsafePath string, partial bool) (*os.File, string, error) { + if !partial { + file, err := openat2(root, unsafePath, &unix.OpenHow{ + Flags: unix.O_PATH | unix.O_CLOEXEC, + Resolve: unix.RESOLVE_IN_ROOT | unix.RESOLVE_NO_MAGICLINKS, + }) + return file, "", err + } + return partialLookupOpenat2(root, unsafePath) +} + +// partialLookupOpenat2 is an alternative implementation of +// partialLookupInRoot, using openat2(RESOLVE_IN_ROOT) to more safely get a +// handle to the deepest existing child of the requested path within the root. +func partialLookupOpenat2(root fd.Fd, unsafePath string) (*os.File, string, error) { + // TODO: Implement this as a git-bisect-like binary search. + + unsafePath = filepath.ToSlash(unsafePath) // noop + endIdx := len(unsafePath) + var lastError error + for endIdx > 0 { + subpath := unsafePath[:endIdx] + + handle, err := openat2(root, subpath, &unix.OpenHow{ + Flags: unix.O_PATH | unix.O_CLOEXEC, + Resolve: unix.RESOLVE_IN_ROOT | unix.RESOLVE_NO_MAGICLINKS, + }) + if err == nil { + // Jump over the slash if we have a non-"" remainingPath. + if endIdx < len(unsafePath) { + endIdx++ + } + // We found a subpath! + return handle, unsafePath[endIdx:], lastError + } + if errors.Is(err, unix.ENOENT) || errors.Is(err, unix.ENOTDIR) { + // That path doesn't exist, let's try the next directory up. + endIdx = strings.LastIndexByte(subpath, '/') + lastError = err + continue + } + return nil, "", fmt.Errorf("open subpath: %w", err) + } + // If we couldn't open anything, the whole subpath is missing. Return a + // copy of the root fd so that the caller doesn't close this one by + // accident. + rootClone, err := fd.Dup(root) + if err != nil { + return nil, "", err + } + return rootClone, unsafePath, lastError +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/procfs/procfs_linux.go b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/procfs/procfs_linux.go new file mode 100644 index 0000000000..ec187a414c --- /dev/null +++ b/vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/procfs/procfs_linux.go @@ -0,0 +1,157 @@ +// SPDX-License-Identifier: MPL-2.0 + +//go:build linux + +// Copyright (C) 2024-2025 Aleksa Sarai +// Copyright (C) 2024-2025 SUSE LLC +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +// Package procfs provides a safe API for operating on /proc on Linux. +package procfs + +import ( + "os" + + "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/procfs" +) + +// This package mostly just wraps internal/procfs APIs. This is necessary +// because we are forced to export some things from internal/procfs in order to +// avoid some dependency cycle issues, but we don't want users to see or use +// them. + +// ProcThreadSelfCloser is a callback that needs to be called when you are done +// operating on an [os.File] fetched using [Handle.OpenThreadSelf]. +// +// [os.File]: https://pkg.go.dev/os#File +type ProcThreadSelfCloser = procfs.ProcThreadSelfCloser + +// Handle is a wrapper around an *os.File handle to "/proc", which can be used +// to do further procfs-related operations in a safe way. +type Handle struct { + inner *procfs.Handle +} + +// Close close the resources associated with this [Handle]. Note that if this +// [Handle] was created with [OpenProcRoot], on some kernels the underlying +// procfs handle is cached and so this Close operation may be a no-op. However, +// you should always call Close on [Handle]s once you are done with them. +func (proc *Handle) Close() error { return proc.inner.Close() } + +// OpenProcRoot tries to open a "safer" handle to "/proc" (i.e., one with the +// "subset=pid" mount option applied, available from Linux 5.8). Unless you +// plan to do many [Handle.OpenRoot] operations, users should prefer to use +// this over [OpenUnsafeProcRoot] which is far more dangerous to keep open. +// +// If a safe handle cannot be opened, OpenProcRoot will fall back to opening a +// regular "/proc" handle. +// +// Note that using [Handle.OpenRoot] will still work with handles returned by +// this function. If a subpath cannot be operated on with a safe "/proc" +// handle, then [OpenUnsafeProcRoot] will be called internally and a temporary +// unsafe handle will be used. +func OpenProcRoot() (*Handle, error) { + proc, err := procfs.OpenProcRoot() + if err != nil { + return nil, err + } + return &Handle{inner: proc}, nil +} + +// OpenUnsafeProcRoot opens a handle to "/proc" without any overmounts or +// masked paths. You must be extremely careful to make sure this handle is +// never leaked to a container and that you program cannot be tricked into +// writing to arbitrary paths within it. +// +// This is not necessary if you just wish to use [Handle.OpenRoot], as handles +// returned by [OpenProcRoot] will fall back to using a *temporary* unsafe +// handle in that case. You should only really use this if you need to do many +// operations with [Handle.OpenRoot] and the performance overhead of making +// many procfs handles is an issue. If you do use OpenUnsafeProcRoot, you +// should make sure to close the handle as soon as possible to avoid +// known-fd-number attacks. +func OpenUnsafeProcRoot() (*Handle, error) { + proc, err := procfs.OpenUnsafeProcRoot() + if err != nil { + return nil, err + } + return &Handle{inner: proc}, nil +} + +// OpenThreadSelf returns a handle to "/proc/thread-self/" (or an +// equivalent handle on older kernels where "/proc/thread-self" doesn't exist). +// Once finished with the handle, you must call the returned closer function +// ([runtime.UnlockOSThread]). You must not pass the returned *os.File to other +// Go threads or use the handle after calling the closer. +// +// [runtime.UnlockOSThread]: https://pkg.go.dev/runtime#UnlockOSThread +func (proc *Handle) OpenThreadSelf(subpath string) (*os.File, ProcThreadSelfCloser, error) { + return proc.inner.OpenThreadSelf(subpath) +} + +// OpenSelf returns a handle to /proc/self/. +// +// Note that in Go programs with non-homogenous threads, this may result in +// spurious errors. If you are monkeying around with APIs that are +// thread-specific, you probably want to use [Handle.OpenThreadSelf] instead +// which will guarantee that the handle refers to the same thread as the caller +// is executing on. +func (proc *Handle) OpenSelf(subpath string) (*os.File, error) { + return proc.inner.OpenSelf(subpath) +} + +// OpenRoot returns a handle to /proc/. +// +// You should only use this when you need to operate on global procfs files +// (such as sysctls in /proc/sys). Unlike [Handle.OpenThreadSelf], +// [Handle.OpenSelf], and [Handle.OpenPid], the procfs handle used internally +// for this operation will never use "subset=pid", which makes it a more juicy +// target for [CVE-2024-21626]-style attacks (and doing something like opening +// a directory with OpenRoot effectively leaks [OpenUnsafeProcRoot] as long as +// the file descriptor is open). +// +// [CVE-2024-21626]: https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv +func (proc *Handle) OpenRoot(subpath string) (*os.File, error) { + return proc.inner.OpenRoot(subpath) +} + +// OpenPid returns a handle to /proc/$pid/ (pid can be a pid or tid). +// This is mainly intended for usage when operating on other processes. +// +// You should not use this for the current thread, as special handling is +// needed for /proc/thread-self (or /proc/self/task/) when dealing with +// goroutine scheduling -- use [Handle.OpenThreadSelf] instead. +// +// To refer to the current thread-group, you should use prefer +// [Handle.OpenSelf] to passing os.Getpid as the pid argument. +func (proc *Handle) OpenPid(pid int, subpath string) (*os.File, error) { + return proc.inner.OpenPid(pid, subpath) +} + +// ProcSelfFdReadlink gets the real path of the given file by looking at +// /proc/self/fd/ with [readlink]. It is effectively just shorthand for +// something along the lines of: +// +// proc, err := procfs.OpenProcRoot() +// if err != nil { +// return err +// } +// link, err := proc.OpenThreadSelf(fmt.Sprintf("fd/%d", f.Fd())) +// if err != nil { +// return err +// } +// defer link.Close() +// var buf [4096]byte +// n, err := unix.Readlinkat(int(link.Fd()), "", buf[:]) +// if err != nil { +// return err +// } +// pathname := buf[:n] +// +// [readlink]: https://pkg.go.dev/golang.org/x/sys/unix#Readlinkat +func ProcSelfFdReadlink(f *os.File) (string, error) { + return procfs.ProcSelfFdReadlink(f) +} diff --git a/vendor/github.com/cyphar/filepath-securejoin/procfs_linux.go b/vendor/github.com/cyphar/filepath-securejoin/procfs_linux.go deleted file mode 100644 index 809a579cbd..0000000000 --- a/vendor/github.com/cyphar/filepath-securejoin/procfs_linux.go +++ /dev/null @@ -1,452 +0,0 @@ -//go:build linux - -// Copyright (C) 2024 SUSE LLC. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package securejoin - -import ( - "errors" - "fmt" - "os" - "runtime" - "strconv" - - "golang.org/x/sys/unix" -) - -func fstat(f *os.File) (unix.Stat_t, error) { - var stat unix.Stat_t - if err := unix.Fstat(int(f.Fd()), &stat); err != nil { - return stat, &os.PathError{Op: "fstat", Path: f.Name(), Err: err} - } - return stat, nil -} - -func fstatfs(f *os.File) (unix.Statfs_t, error) { - var statfs unix.Statfs_t - if err := unix.Fstatfs(int(f.Fd()), &statfs); err != nil { - return statfs, &os.PathError{Op: "fstatfs", Path: f.Name(), Err: err} - } - return statfs, nil -} - -// The kernel guarantees that the root inode of a procfs mount has an -// f_type of PROC_SUPER_MAGIC and st_ino of PROC_ROOT_INO. -const ( - procSuperMagic = 0x9fa0 // PROC_SUPER_MAGIC - procRootIno = 1 // PROC_ROOT_INO -) - -func verifyProcRoot(procRoot *os.File) error { - if statfs, err := fstatfs(procRoot); err != nil { - return err - } else if statfs.Type != procSuperMagic { - return fmt.Errorf("%w: incorrect procfs root filesystem type 0x%x", errUnsafeProcfs, statfs.Type) - } - if stat, err := fstat(procRoot); err != nil { - return err - } else if stat.Ino != procRootIno { - return fmt.Errorf("%w: incorrect procfs root inode number %d", errUnsafeProcfs, stat.Ino) - } - return nil -} - -var hasNewMountApi = sync_OnceValue(func() bool { - // All of the pieces of the new mount API we use (fsopen, fsconfig, - // fsmount, open_tree) were added together in Linux 5.1[1,2], so we can - // just check for one of the syscalls and the others should also be - // available. - // - // Just try to use open_tree(2) to open a file without OPEN_TREE_CLONE. - // This is equivalent to openat(2), but tells us if open_tree is - // available (and thus all of the other basic new mount API syscalls). - // open_tree(2) is most light-weight syscall to test here. - // - // [1]: merge commit 400913252d09 - // [2]: - fd, err := unix.OpenTree(-int(unix.EBADF), "/", unix.OPEN_TREE_CLOEXEC) - if err != nil { - return false - } - _ = unix.Close(fd) - return true -}) - -func fsopen(fsName string, flags int) (*os.File, error) { - // Make sure we always set O_CLOEXEC. - flags |= unix.FSOPEN_CLOEXEC - fd, err := unix.Fsopen(fsName, flags) - if err != nil { - return nil, os.NewSyscallError("fsopen "+fsName, err) - } - return os.NewFile(uintptr(fd), "fscontext:"+fsName), nil -} - -func fsmount(ctx *os.File, flags, mountAttrs int) (*os.File, error) { - // Make sure we always set O_CLOEXEC. - flags |= unix.FSMOUNT_CLOEXEC - fd, err := unix.Fsmount(int(ctx.Fd()), flags, mountAttrs) - if err != nil { - return nil, os.NewSyscallError("fsmount "+ctx.Name(), err) - } - return os.NewFile(uintptr(fd), "fsmount:"+ctx.Name()), nil -} - -func newPrivateProcMount() (*os.File, error) { - procfsCtx, err := fsopen("proc", unix.FSOPEN_CLOEXEC) - if err != nil { - return nil, err - } - defer procfsCtx.Close() - - // Try to configure hidepid=ptraceable,subset=pid if possible, but ignore errors. - _ = unix.FsconfigSetString(int(procfsCtx.Fd()), "hidepid", "ptraceable") - _ = unix.FsconfigSetString(int(procfsCtx.Fd()), "subset", "pid") - - // Get an actual handle. - if err := unix.FsconfigCreate(int(procfsCtx.Fd())); err != nil { - return nil, os.NewSyscallError("fsconfig create procfs", err) - } - return fsmount(procfsCtx, unix.FSMOUNT_CLOEXEC, unix.MS_RDONLY|unix.MS_NODEV|unix.MS_NOEXEC|unix.MS_NOSUID) -} - -func openTree(dir *os.File, path string, flags uint) (*os.File, error) { - dirFd := -int(unix.EBADF) - dirName := "." - if dir != nil { - dirFd = int(dir.Fd()) - dirName = dir.Name() - } - // Make sure we always set O_CLOEXEC. - flags |= unix.OPEN_TREE_CLOEXEC - fd, err := unix.OpenTree(dirFd, path, flags) - if err != nil { - return nil, &os.PathError{Op: "open_tree", Path: path, Err: err} - } - return os.NewFile(uintptr(fd), dirName+"/"+path), nil -} - -func clonePrivateProcMount() (_ *os.File, Err error) { - // Try to make a clone without using AT_RECURSIVE if we can. If this works, - // we can be sure there are no over-mounts and so if the root is valid then - // we're golden. Otherwise, we have to deal with over-mounts. - procfsHandle, err := openTree(nil, "/proc", unix.OPEN_TREE_CLONE) - if err != nil || hookForcePrivateProcRootOpenTreeAtRecursive(procfsHandle) { - procfsHandle, err = openTree(nil, "/proc", unix.OPEN_TREE_CLONE|unix.AT_RECURSIVE) - } - if err != nil { - return nil, fmt.Errorf("creating a detached procfs clone: %w", err) - } - defer func() { - if Err != nil { - _ = procfsHandle.Close() - } - }() - if err := verifyProcRoot(procfsHandle); err != nil { - return nil, err - } - return procfsHandle, nil -} - -func privateProcRoot() (*os.File, error) { - if !hasNewMountApi() || hookForceGetProcRootUnsafe() { - return nil, fmt.Errorf("new mount api: %w", unix.ENOTSUP) - } - // Try to create a new procfs mount from scratch if we can. This ensures we - // can get a procfs mount even if /proc is fake (for whatever reason). - procRoot, err := newPrivateProcMount() - if err != nil || hookForcePrivateProcRootOpenTree(procRoot) { - // Try to clone /proc then... - procRoot, err = clonePrivateProcMount() - } - return procRoot, err -} - -func unsafeHostProcRoot() (_ *os.File, Err error) { - procRoot, err := os.OpenFile("/proc", unix.O_PATH|unix.O_NOFOLLOW|unix.O_DIRECTORY|unix.O_CLOEXEC, 0) - if err != nil { - return nil, err - } - defer func() { - if Err != nil { - _ = procRoot.Close() - } - }() - if err := verifyProcRoot(procRoot); err != nil { - return nil, err - } - return procRoot, nil -} - -func doGetProcRoot() (*os.File, error) { - procRoot, err := privateProcRoot() - if err != nil { - // Fall back to using a /proc handle if making a private mount failed. - // If we have openat2, at least we can avoid some kinds of over-mount - // attacks, but without openat2 there's not much we can do. - procRoot, err = unsafeHostProcRoot() - } - return procRoot, err -} - -var getProcRoot = sync_OnceValues(func() (*os.File, error) { - return doGetProcRoot() -}) - -var hasProcThreadSelf = sync_OnceValue(func() bool { - return unix.Access("/proc/thread-self/", unix.F_OK) == nil -}) - -var errUnsafeProcfs = errors.New("unsafe procfs detected") - -type procThreadSelfCloser func() - -// procThreadSelf returns a handle to /proc/thread-self/ (or an -// equivalent handle on older kernels where /proc/thread-self doesn't exist). -// Once finished with the handle, you must call the returned closer function -// (runtime.UnlockOSThread). You must not pass the returned *os.File to other -// Go threads or use the handle after calling the closer. -// -// This is similar to ProcThreadSelf from runc, but with extra hardening -// applied and using *os.File. -func procThreadSelf(procRoot *os.File, subpath string) (_ *os.File, _ procThreadSelfCloser, Err error) { - // We need to lock our thread until the caller is done with the handle - // because between getting the handle and using it we could get interrupted - // by the Go runtime and hit the case where the underlying thread is - // swapped out and the original thread is killed, resulting in - // pull-your-hair-out-hard-to-debug issues in the caller. - runtime.LockOSThread() - defer func() { - if Err != nil { - runtime.UnlockOSThread() - } - }() - - // Figure out what prefix we want to use. - threadSelf := "thread-self/" - if !hasProcThreadSelf() || hookForceProcSelfTask() { - /// Pre-3.17 kernels don't have /proc/thread-self, so do it manually. - threadSelf = "self/task/" + strconv.Itoa(unix.Gettid()) + "/" - if _, err := fstatatFile(procRoot, threadSelf, unix.AT_SYMLINK_NOFOLLOW); err != nil || hookForceProcSelf() { - // In this case, we running in a pid namespace that doesn't match - // the /proc mount we have. This can happen inside runc. - // - // Unfortunately, there is no nice way to get the correct TID to - // use here because of the age of the kernel, so we have to just - // use /proc/self and hope that it works. - threadSelf = "self/" - } - } - - // Grab the handle. - var ( - handle *os.File - err error - ) - if hasOpenat2() { - // We prefer being able to use RESOLVE_NO_XDEV if we can, to be - // absolutely sure we are operating on a clean /proc handle that - // doesn't have any cheeky overmounts that could trick us (including - // symlink mounts on top of /proc/thread-self). RESOLVE_BENEATH isn't - // strictly needed, but just use it since we have it. - // - // NOTE: /proc/self is technically a magic-link (the contents of the - // symlink are generated dynamically), but it doesn't use - // nd_jump_link() so RESOLVE_NO_MAGICLINKS allows it. - // - // NOTE: We MUST NOT use RESOLVE_IN_ROOT here, as openat2File uses - // procSelfFdReadlink to clean up the returned f.Name() if we use - // RESOLVE_IN_ROOT (which would lead to an infinite recursion). - handle, err = openat2File(procRoot, threadSelf+subpath, &unix.OpenHow{ - Flags: unix.O_PATH | unix.O_NOFOLLOW | unix.O_CLOEXEC, - Resolve: unix.RESOLVE_BENEATH | unix.RESOLVE_NO_XDEV | unix.RESOLVE_NO_MAGICLINKS, - }) - if err != nil { - // TODO: Once we bump the minimum Go version to 1.20, we can use - // multiple %w verbs for this wrapping. For now we need to use a - // compatibility shim for older Go versions. - //err = fmt.Errorf("%w: %w", errUnsafeProcfs, err) - return nil, nil, wrapBaseError(err, errUnsafeProcfs) - } - } else { - handle, err = openatFile(procRoot, threadSelf+subpath, unix.O_PATH|unix.O_NOFOLLOW|unix.O_CLOEXEC, 0) - if err != nil { - // TODO: Once we bump the minimum Go version to 1.20, we can use - // multiple %w verbs for this wrapping. For now we need to use a - // compatibility shim for older Go versions. - //err = fmt.Errorf("%w: %w", errUnsafeProcfs, err) - return nil, nil, wrapBaseError(err, errUnsafeProcfs) - } - defer func() { - if Err != nil { - _ = handle.Close() - } - }() - // We can't detect bind-mounts of different parts of procfs on top of - // /proc (a-la RESOLVE_NO_XDEV), but we can at least be sure that we - // aren't on the wrong filesystem here. - if statfs, err := fstatfs(handle); err != nil { - return nil, nil, err - } else if statfs.Type != procSuperMagic { - return nil, nil, fmt.Errorf("%w: incorrect /proc/self/fd filesystem type 0x%x", errUnsafeProcfs, statfs.Type) - } - } - return handle, runtime.UnlockOSThread, nil -} - -// STATX_MNT_ID_UNIQUE is provided in golang.org/x/sys@v0.20.0, but in order to -// avoid bumping the requirement for a single constant we can just define it -// ourselves. -const STATX_MNT_ID_UNIQUE = 0x4000 - -var hasStatxMountId = sync_OnceValue(func() bool { - var ( - stx unix.Statx_t - // We don't care which mount ID we get. The kernel will give us the - // unique one if it is supported. - wantStxMask uint32 = STATX_MNT_ID_UNIQUE | unix.STATX_MNT_ID - ) - err := unix.Statx(-int(unix.EBADF), "/", 0, int(wantStxMask), &stx) - return err == nil && stx.Mask&wantStxMask != 0 -}) - -func getMountId(dir *os.File, path string) (uint64, error) { - // If we don't have statx(STATX_MNT_ID*) support, we can't do anything. - if !hasStatxMountId() { - return 0, nil - } - - var ( - stx unix.Statx_t - // We don't care which mount ID we get. The kernel will give us the - // unique one if it is supported. - wantStxMask uint32 = STATX_MNT_ID_UNIQUE | unix.STATX_MNT_ID - ) - - err := unix.Statx(int(dir.Fd()), path, unix.AT_EMPTY_PATH|unix.AT_SYMLINK_NOFOLLOW, int(wantStxMask), &stx) - if stx.Mask&wantStxMask == 0 { - // It's not a kernel limitation, for some reason we couldn't get a - // mount ID. Assume it's some kind of attack. - err = fmt.Errorf("%w: could not get mount id", errUnsafeProcfs) - } - if err != nil { - return 0, &os.PathError{Op: "statx(STATX_MNT_ID_...)", Path: dir.Name() + "/" + path, Err: err} - } - return stx.Mnt_id, nil -} - -func checkSymlinkOvermount(procRoot *os.File, dir *os.File, path string) error { - // Get the mntId of our procfs handle. - expectedMountId, err := getMountId(procRoot, "") - if err != nil { - return err - } - // Get the mntId of the target magic-link. - gotMountId, err := getMountId(dir, path) - if err != nil { - return err - } - // As long as the directory mount is alive, even with wrapping mount IDs, - // we would expect to see a different mount ID here. (Of course, if we're - // using unsafeHostProcRoot() then an attaker could change this after we - // did this check.) - if expectedMountId != gotMountId { - return fmt.Errorf("%w: symlink %s/%s has an overmount obscuring the real link (mount ids do not match %d != %d)", errUnsafeProcfs, dir.Name(), path, expectedMountId, gotMountId) - } - return nil -} - -func doRawProcSelfFdReadlink(procRoot *os.File, fd int) (string, error) { - fdPath := fmt.Sprintf("fd/%d", fd) - procFdLink, closer, err := procThreadSelf(procRoot, fdPath) - if err != nil { - return "", fmt.Errorf("get safe /proc/thread-self/%s handle: %w", fdPath, err) - } - defer procFdLink.Close() - defer closer() - - // Try to detect if there is a mount on top of the magic-link. Since we use the handle directly - // provide to the closure. If the closure uses the handle directly, this - // should be safe in general (a mount on top of the path afterwards would - // not affect the handle itself) and will definitely be safe if we are - // using privateProcRoot() (at least since Linux 5.12[1], when anonymous - // mount namespaces were completely isolated from external mounts including - // mount propagation events). - // - // [1]: Linux commit ee2e3f50629f ("mount: fix mounting of detached mounts - // onto targets that reside on shared mounts"). - if err := checkSymlinkOvermount(procRoot, procFdLink, ""); err != nil { - return "", fmt.Errorf("check safety of /proc/thread-self/fd/%d magiclink: %w", fd, err) - } - - // readlinkat implies AT_EMPTY_PATH since Linux 2.6.39. See Linux commit - // 65cfc6722361 ("readlinkat(), fchownat() and fstatat() with empty - // relative pathnames"). - return readlinkatFile(procFdLink, "") -} - -func rawProcSelfFdReadlink(fd int) (string, error) { - procRoot, err := getProcRoot() - if err != nil { - return "", err - } - return doRawProcSelfFdReadlink(procRoot, fd) -} - -func procSelfFdReadlink(f *os.File) (string, error) { - return rawProcSelfFdReadlink(int(f.Fd())) -} - -var ( - errPossibleBreakout = errors.New("possible breakout detected") - errInvalidDirectory = errors.New("wandered into deleted directory") - errDeletedInode = errors.New("cannot verify path of deleted inode") -) - -func isDeadInode(file *os.File) error { - // If the nlink of a file drops to 0, there is an attacker deleting - // directories during our walk, which could result in weird /proc values. - // It's better to error out in this case. - stat, err := fstat(file) - if err != nil { - return fmt.Errorf("check for dead inode: %w", err) - } - if stat.Nlink == 0 { - err := errDeletedInode - if stat.Mode&unix.S_IFMT == unix.S_IFDIR { - err = errInvalidDirectory - } - return fmt.Errorf("%w %q", err, file.Name()) - } - return nil -} - -func checkProcSelfFdPath(path string, file *os.File) error { - if err := isDeadInode(file); err != nil { - return err - } - actualPath, err := procSelfFdReadlink(file) - if err != nil { - return fmt.Errorf("get path of handle: %w", err) - } - if actualPath != path { - return fmt.Errorf("%w: handle path %q doesn't match expected path %q", errPossibleBreakout, actualPath, path) - } - return nil -} - -// Test hooks used in the procfs tests to verify that the fallback logic works. -// See testing_mocks_linux_test.go and procfs_linux_test.go for more details. -var ( - hookForcePrivateProcRootOpenTree = hookDummyFile - hookForcePrivateProcRootOpenTreeAtRecursive = hookDummyFile - hookForceGetProcRootUnsafe = hookDummy - - hookForceProcSelfTask = hookDummy - hookForceProcSelf = hookDummy -) - -func hookDummy() bool { return false } -func hookDummyFile(_ *os.File) bool { return false } diff --git a/vendor/github.com/cyphar/filepath-securejoin/vfs.go b/vendor/github.com/cyphar/filepath-securejoin/vfs.go index 36373f8c51..4d89a481ca 100644 --- a/vendor/github.com/cyphar/filepath-securejoin/vfs.go +++ b/vendor/github.com/cyphar/filepath-securejoin/vfs.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Copyright (C) 2017-2024 SUSE LLC. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/vendor/github.com/emicklei/go-restful/v3/CHANGES.md b/vendor/github.com/emicklei/go-restful/v3/CHANGES.md index 92b78048e2..6f24dfff56 100644 --- a/vendor/github.com/emicklei/go-restful/v3/CHANGES.md +++ b/vendor/github.com/emicklei/go-restful/v3/CHANGES.md @@ -1,5 +1,8 @@ # Change history of go-restful +## [v3.12.2] - 2025-02-21 + +- allow empty payloads in post,put,patch, issue #580 ( thanks @liggitt, Jordan Liggitt) ## [v3.12.1] - 2024-05-28 @@ -18,7 +21,7 @@ - fix by restoring custom JSON handler functions (Mike Beaumont #540) -## [v3.12.0] - 2023-08-19 +## [v3.11.0] - 2023-08-19 - restored behavior as <= v3.9.0 with option to change path strategy using TrimRightSlashEnabled. diff --git a/vendor/github.com/emicklei/go-restful/v3/README.md b/vendor/github.com/emicklei/go-restful/v3/README.md index 7234604e47..3fb40d1980 100644 --- a/vendor/github.com/emicklei/go-restful/v3/README.md +++ b/vendor/github.com/emicklei/go-restful/v3/README.md @@ -3,7 +3,7 @@ go-restful package for building REST-style Web Services using Google Go [![Go Report Card](https://goreportcard.com/badge/github.com/emicklei/go-restful)](https://goreportcard.com/report/github.com/emicklei/go-restful) -[![GoDoc](https://godoc.org/github.com/emicklei/go-restful?status.svg)](https://pkg.go.dev/github.com/emicklei/go-restful) +[![Go Reference](https://pkg.go.dev/badge/github.com/emicklei/go-restful.svg)](https://pkg.go.dev/github.com/emicklei/go-restful/v3) [![codecov](https://codecov.io/gh/emicklei/go-restful/branch/master/graph/badge.svg)](https://codecov.io/gh/emicklei/go-restful) - [Code examples use v3](https://github.com/emicklei/go-restful/tree/v3/examples) diff --git a/vendor/github.com/emicklei/go-restful/v3/jsr311.go b/vendor/github.com/emicklei/go-restful/v3/jsr311.go index a9b3faaa81..7f04bd9053 100644 --- a/vendor/github.com/emicklei/go-restful/v3/jsr311.go +++ b/vendor/github.com/emicklei/go-restful/v3/jsr311.go @@ -65,7 +65,7 @@ func (RouterJSR311) extractParams(pathExpr *pathExpression, matches []string) ma return params } -// http://jsr311.java.net/nonav/releases/1.1/spec/spec3.html#x3-360003.7.2 +// https://download.oracle.com/otndocs/jcp/jaxrs-1.1-mrel-eval-oth-JSpec/ func (r RouterJSR311) detectRoute(routes []Route, httpRequest *http.Request) (*Route, error) { candidates := make([]*Route, 0, 8) for i, each := range routes { @@ -126,9 +126,7 @@ func (r RouterJSR311) detectRoute(routes []Route, httpRequest *http.Request) (*R if trace { traceLogger.Printf("no Route found (from %d) that matches HTTP Content-Type: %s\n", len(previous), contentType) } - if httpRequest.ContentLength > 0 { - return nil, NewError(http.StatusUnsupportedMediaType, "415: Unsupported Media Type") - } + return nil, NewError(http.StatusUnsupportedMediaType, "415: Unsupported Media Type") } // accept @@ -151,20 +149,9 @@ func (r RouterJSR311) detectRoute(routes []Route, httpRequest *http.Request) (*R for _, candidate := range previous { available = append(available, candidate.Produces...) } - // if POST,PUT,PATCH without body - method, length := httpRequest.Method, httpRequest.Header.Get("Content-Length") - if (method == http.MethodPost || - method == http.MethodPut || - method == http.MethodPatch) && (length == "" || length == "0") { - return nil, NewError( - http.StatusUnsupportedMediaType, - fmt.Sprintf("415: Unsupported Media Type\n\nAvailable representations: %s", strings.Join(available, ", ")), - ) - } return nil, NewError( http.StatusNotAcceptable, - fmt.Sprintf("406: Not Acceptable\n\nAvailable representations: %s", strings.Join(available, ", ")), - ) + fmt.Sprintf("406: Not Acceptable\n\nAvailable representations: %s", strings.Join(available, ", "))) } // return r.bestMatchByMedia(outputMediaOk, contentType, accept), nil return candidates[0], nil diff --git a/vendor/github.com/emicklei/go-restful/v3/route.go b/vendor/github.com/emicklei/go-restful/v3/route.go index 306c44be77..a2056e2acb 100644 --- a/vendor/github.com/emicklei/go-restful/v3/route.go +++ b/vendor/github.com/emicklei/go-restful/v3/route.go @@ -111,6 +111,8 @@ func (r Route) matchesAccept(mimeTypesWithQuality string) bool { } // Return whether this Route can consume content with a type specified by mimeTypes (can be empty). +// If the route does not specify Consumes then return true (*/*). +// If no content type is set then return true for GET,HEAD,OPTIONS,DELETE and TRACE. func (r Route) matchesContentType(mimeTypes string) bool { if len(r.Consumes) == 0 { diff --git a/vendor/github.com/fsnotify/fsnotify/.cirrus.yml b/vendor/github.com/fsnotify/fsnotify/.cirrus.yml index f4e7dbf37b..7f257e99ac 100644 --- a/vendor/github.com/fsnotify/fsnotify/.cirrus.yml +++ b/vendor/github.com/fsnotify/fsnotify/.cirrus.yml @@ -1,7 +1,7 @@ freebsd_task: name: 'FreeBSD' freebsd_instance: - image_family: freebsd-14-1 + image_family: freebsd-14-2 install_script: - pkg update -f - pkg install -y go diff --git a/vendor/github.com/fsnotify/fsnotify/CHANGELOG.md b/vendor/github.com/fsnotify/fsnotify/CHANGELOG.md index fa854785d0..6468d2cf40 100644 --- a/vendor/github.com/fsnotify/fsnotify/CHANGELOG.md +++ b/vendor/github.com/fsnotify/fsnotify/CHANGELOG.md @@ -1,6 +1,39 @@ # Changelog -1.8.0 2023-10-31 +1.9.0 2024-04-04 +---------------- + +### Changes and fixes + +- all: make BufferedWatcher buffered again ([#657]) + +- inotify: fix race when adding/removing watches while a watched path is being + deleted ([#678], [#686]) + +- inotify: don't send empty event if a watched path is unmounted ([#655]) + +- inotify: don't register duplicate watches when watching both a symlink and its + target; previously that would get "half-added" and removing the second would + panic ([#679]) + +- kqueue: fix watching relative symlinks ([#681]) + +- kqueue: correctly mark pre-existing entries when watching a link to a dir on + kqueue ([#682]) + +- illumos: don't send error if changed file is deleted while processing the + event ([#678]) + + +[#657]: https://github.com/fsnotify/fsnotify/pull/657 +[#678]: https://github.com/fsnotify/fsnotify/pull/678 +[#686]: https://github.com/fsnotify/fsnotify/pull/686 +[#655]: https://github.com/fsnotify/fsnotify/pull/655 +[#681]: https://github.com/fsnotify/fsnotify/pull/681 +[#679]: https://github.com/fsnotify/fsnotify/pull/679 +[#682]: https://github.com/fsnotify/fsnotify/pull/682 + +1.8.0 2024-10-31 ---------------- ### Additions diff --git a/vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md b/vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md index e4ac2a2fff..4cc40fa597 100644 --- a/vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md +++ b/vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md @@ -77,6 +77,7 @@ End-of-line escapes with `\` are not supported. debug [yes/no] # Enable/disable FSNOTIFY_DEBUG (tests are run in parallel by default, so -parallel=1 is probably a good idea). + print [any strings] # Print text to stdout; for debugging. touch path mkdir [-p] dir diff --git a/vendor/github.com/fsnotify/fsnotify/README.md b/vendor/github.com/fsnotify/fsnotify/README.md index e480733d16..1f4eb583d5 100644 --- a/vendor/github.com/fsnotify/fsnotify/README.md +++ b/vendor/github.com/fsnotify/fsnotify/README.md @@ -15,7 +15,6 @@ Platform support: | ReadDirectoryChangesW | Windows | Supported | | FEN | illumos | Supported | | fanotify | Linux 5.9+ | [Not yet](https://github.com/fsnotify/fsnotify/issues/114) | -| AHAFS | AIX | [aix branch]; experimental due to lack of maintainer and test environment | | FSEvents | macOS | [Needs support in x/sys/unix][fsevents] | | USN Journals | Windows | [Needs support in x/sys/windows][usn] | | Polling | *All* | [Not yet](https://github.com/fsnotify/fsnotify/issues/9) | @@ -25,7 +24,6 @@ untested. [fsevents]: https://github.com/fsnotify/fsnotify/issues/11#issuecomment-1279133120 [usn]: https://github.com/fsnotify/fsnotify/issues/53#issuecomment-1279829847 -[aix branch]: https://github.com/fsnotify/fsnotify/issues/353#issuecomment-1284590129 Usage ----- diff --git a/vendor/github.com/fsnotify/fsnotify/backend_fen.go b/vendor/github.com/fsnotify/fsnotify/backend_fen.go index c349c326c7..57fc692848 100644 --- a/vendor/github.com/fsnotify/fsnotify/backend_fen.go +++ b/vendor/github.com/fsnotify/fsnotify/backend_fen.go @@ -9,6 +9,7 @@ package fsnotify import ( "errors" "fmt" + "io/fs" "os" "path/filepath" "sync" @@ -19,27 +20,25 @@ import ( ) type fen struct { + *shared Events chan Event Errors chan error mu sync.Mutex port *unix.EventPort - done chan struct{} // Channel for sending a "quit message" to the reader goroutine dirs map[string]Op // Explicitly watched directories watches map[string]Op // Explicitly watched non-directories } -func newBackend(ev chan Event, errs chan error) (backend, error) { - return newBufferedBackend(0, ev, errs) -} +var defaultBufferSize = 0 -func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error) { +func newBackend(ev chan Event, errs chan error) (backend, error) { w := &fen{ + shared: newShared(ev, errs), Events: ev, Errors: errs, dirs: make(map[string]Op), watches: make(map[string]Op), - done: make(chan struct{}), } var err error @@ -52,49 +51,10 @@ func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error return w, nil } -// sendEvent attempts to send an event to the user, returning true if the event -// was put in the channel successfully and false if the watcher has been closed. -func (w *fen) sendEvent(name string, op Op) (sent bool) { - select { - case <-w.done: - return false - case w.Events <- Event{Name: name, Op: op}: - return true - } -} - -// sendError attempts to send an error to the user, returning true if the error -// was put in the channel successfully and false if the watcher has been closed. -func (w *fen) sendError(err error) (sent bool) { - if err == nil { - return true - } - select { - case <-w.done: - return false - case w.Errors <- err: - return true - } -} - -func (w *fen) isClosed() bool { - select { - case <-w.done: - return true - default: - return false - } -} - func (w *fen) Close() error { - // Take the lock used by associateFile to prevent lingering events from - // being processed after the close - w.mu.Lock() - defer w.mu.Unlock() - if w.isClosed() { + if w.shared.close() { return nil } - close(w.done) return w.port.Close() } @@ -209,7 +169,7 @@ func (w *fen) readEvents() { return } // There was an error not caused by calling w.Close() - if !w.sendError(err) { + if !w.sendError(fmt.Errorf("port.Get: %w", err)) { return } } @@ -277,13 +237,13 @@ func (w *fen) handleEvent(event *unix.PortEvent) error { isWatched := watchedDir || watchedPath if events&unix.FILE_DELETE != 0 { - if !w.sendEvent(path, Remove) { + if !w.sendEvent(Event{Name: path, Op: Remove}) { return nil } reRegister = false } if events&unix.FILE_RENAME_FROM != 0 { - if !w.sendEvent(path, Rename) { + if !w.sendEvent(Event{Name: path, Op: Rename}) { return nil } // Don't keep watching the new file name @@ -297,7 +257,7 @@ func (w *fen) handleEvent(event *unix.PortEvent) error { // inotify reports a Remove event in this case, so we simulate this // here. - if !w.sendEvent(path, Remove) { + if !w.sendEvent(Event{Name: path, Op: Remove}) { return nil } // Don't keep watching the file that was removed @@ -331,7 +291,7 @@ func (w *fen) handleEvent(event *unix.PortEvent) error { // get here, the sudirectory is already gone. Clearly we were watching // this path but now it is gone. Let's tell the user that it was // removed. - if !w.sendEvent(path, Remove) { + if !w.sendEvent(Event{Name: path, Op: Remove}) { return nil } // Suppress extra write events on removed directories; they are not @@ -346,7 +306,7 @@ func (w *fen) handleEvent(event *unix.PortEvent) error { if err != nil { // The symlink still exists, but the target is gone. Report the // Remove similar to above. - if !w.sendEvent(path, Remove) { + if !w.sendEvent(Event{Name: path, Op: Remove}) { return nil } // Don't return the error @@ -359,7 +319,7 @@ func (w *fen) handleEvent(event *unix.PortEvent) error { return err } } else { - if !w.sendEvent(path, Write) { + if !w.sendEvent(Event{Name: path, Op: Write}) { return nil } } @@ -367,7 +327,7 @@ func (w *fen) handleEvent(event *unix.PortEvent) error { if events&unix.FILE_ATTRIB != 0 && stat != nil { // Only send Chmod if perms changed if stat.Mode().Perm() != fmode.Perm() { - if !w.sendEvent(path, Chmod) { + if !w.sendEvent(Event{Name: path, Op: Chmod}) { return nil } } @@ -376,17 +336,27 @@ func (w *fen) handleEvent(event *unix.PortEvent) error { if stat != nil { // If we get here, it means we've hit an event above that requires us to // continue watching the file or directory - return w.associateFile(path, stat, isWatched) + err := w.associateFile(path, stat, isWatched) + if errors.Is(err, fs.ErrNotExist) { + // Path may have been removed since the stat. + err = nil + } + return err } return nil } +// The directory was modified, so we must find unwatched entities and watch +// them. If something was removed from the directory, nothing will happen, as +// everything else should still be watched. func (w *fen) updateDirectory(path string) error { - // The directory was modified, so we must find unwatched entities and watch - // them. If something was removed from the directory, nothing will happen, - // as everything else should still be watched. files, err := os.ReadDir(path) if err != nil { + // Directory no longer exists: probably just deleted since we got the + // event. + if errors.Is(err, fs.ErrNotExist) { + return nil + } return err } @@ -401,10 +371,15 @@ func (w *fen) updateDirectory(path string) error { return err } err = w.associateFile(path, finfo, false) + if errors.Is(err, fs.ErrNotExist) { + // File may have disappeared between getting the dir listing and + // adding the port: that's okay to ignore. + continue + } if !w.sendError(err) { return nil } - if !w.sendEvent(path, Create) { + if !w.sendEvent(Event{Name: path, Op: Create}) { return nil } } @@ -430,7 +405,7 @@ func (w *fen) associateFile(path string, stat os.FileInfo, follow bool) error { // has fired but we haven't processed it yet. err := w.port.DissociatePath(path) if err != nil && !errors.Is(err, unix.ENOENT) { - return err + return fmt.Errorf("port.DissociatePath(%q): %w", path, err) } } @@ -446,14 +421,22 @@ func (w *fen) associateFile(path string, stat os.FileInfo, follow bool) error { if true { events |= unix.FILE_ATTRIB } - return w.port.AssociatePath(path, stat, events, stat.Mode()) + err := w.port.AssociatePath(path, stat, events, stat.Mode()) + if err != nil { + return fmt.Errorf("port.AssociatePath(%q): %w", path, err) + } + return nil } func (w *fen) dissociateFile(path string, stat os.FileInfo, unused bool) error { if !w.port.PathIsWatched(path) { return nil } - return w.port.DissociatePath(path) + err := w.port.DissociatePath(path) + if err != nil { + return fmt.Errorf("port.DissociatePath(%q): %w", path, err) + } + return nil } func (w *fen) WatchList() []string { diff --git a/vendor/github.com/fsnotify/fsnotify/backend_inotify.go b/vendor/github.com/fsnotify/fsnotify/backend_inotify.go index 36c311694c..a36cb89d73 100644 --- a/vendor/github.com/fsnotify/fsnotify/backend_inotify.go +++ b/vendor/github.com/fsnotify/fsnotify/backend_inotify.go @@ -19,6 +19,7 @@ import ( ) type inotify struct { + *shared Events chan Event Errors chan error @@ -27,8 +28,6 @@ type inotify struct { fd int inotifyFile *os.File watches *watches - done chan struct{} // Channel for sending a "quit message" to the reader goroutine - doneMu sync.Mutex doneResp chan struct{} // Channel to respond to Close // Store rename cookies in an array, with the index wrapping to 0. Almost @@ -52,7 +51,6 @@ type inotify struct { type ( watches struct { - mu sync.RWMutex wd map[uint32]*watch // wd → watch path map[string]uint32 // pathname → wd } @@ -75,34 +73,13 @@ func newWatches() *watches { } } -func (w *watches) len() int { - w.mu.RLock() - defer w.mu.RUnlock() - return len(w.wd) -} - -func (w *watches) add(ww *watch) { - w.mu.Lock() - defer w.mu.Unlock() - w.wd[ww.wd] = ww - w.path[ww.path] = ww.wd -} - -func (w *watches) remove(wd uint32) { - w.mu.Lock() - defer w.mu.Unlock() - watch := w.wd[wd] // Could have had Remove() called. See #616. - if watch == nil { - return - } - delete(w.path, watch.path) - delete(w.wd, wd) -} +func (w *watches) byPath(path string) *watch { return w.wd[w.path[path]] } +func (w *watches) byWd(wd uint32) *watch { return w.wd[wd] } +func (w *watches) len() int { return len(w.wd) } +func (w *watches) add(ww *watch) { w.wd[ww.wd] = ww; w.path[ww.path] = ww.wd } +func (w *watches) remove(watch *watch) { delete(w.path, watch.path); delete(w.wd, watch.wd) } func (w *watches) removePath(path string) ([]uint32, error) { - w.mu.Lock() - defer w.mu.Unlock() - path, recurse := recursivePath(path) wd, ok := w.path[path] if !ok { @@ -123,7 +100,7 @@ func (w *watches) removePath(path string) ([]uint32, error) { wds := make([]uint32, 0, 8) wds = append(wds, wd) for p, rwd := range w.path { - if filepath.HasPrefix(p, path) { + if strings.HasPrefix(p, path) { delete(w.path, p) delete(w.wd, rwd) wds = append(wds, rwd) @@ -132,22 +109,7 @@ func (w *watches) removePath(path string) ([]uint32, error) { return wds, nil } -func (w *watches) byPath(path string) *watch { - w.mu.RLock() - defer w.mu.RUnlock() - return w.wd[w.path[path]] -} - -func (w *watches) byWd(wd uint32) *watch { - w.mu.RLock() - defer w.mu.RUnlock() - return w.wd[wd] -} - func (w *watches) updatePath(path string, f func(*watch) (*watch, error)) error { - w.mu.Lock() - defer w.mu.Unlock() - var existing *watch wd, ok := w.path[path] if ok { @@ -170,11 +132,9 @@ func (w *watches) updatePath(path string, f func(*watch) (*watch, error)) error return nil } -func newBackend(ev chan Event, errs chan error) (backend, error) { - return newBufferedBackend(0, ev, errs) -} +var defaultBufferSize = 0 -func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error) { +func newBackend(ev chan Event, errs chan error) (backend, error) { // Need to set nonblocking mode for SetDeadline to work, otherwise blocking // I/O operations won't terminate on close. fd, errno := unix.InotifyInit1(unix.IN_CLOEXEC | unix.IN_NONBLOCK) @@ -183,12 +143,12 @@ func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error } w := &inotify{ + shared: newShared(ev, errs), Events: ev, Errors: errs, fd: fd, inotifyFile: os.NewFile(uintptr(fd), ""), watches: newWatches(), - done: make(chan struct{}), doneResp: make(chan struct{}), } @@ -196,46 +156,10 @@ func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error return w, nil } -// Returns true if the event was sent, or false if watcher is closed. -func (w *inotify) sendEvent(e Event) bool { - select { - case <-w.done: - return false - case w.Events <- e: - return true - } -} - -// Returns true if the error was sent, or false if watcher is closed. -func (w *inotify) sendError(err error) bool { - if err == nil { - return true - } - select { - case <-w.done: - return false - case w.Errors <- err: - return true - } -} - -func (w *inotify) isClosed() bool { - select { - case <-w.done: - return true - default: - return false - } -} - func (w *inotify) Close() error { - w.doneMu.Lock() - if w.isClosed() { - w.doneMu.Unlock() + if w.shared.close() { return nil } - close(w.done) - w.doneMu.Unlock() // Causes any blocking reads to return with an error, provided the file // still supports deadline operations. @@ -244,9 +168,7 @@ func (w *inotify) Close() error { return err } - // Wait for goroutine to close - <-w.doneResp - + <-w.doneResp // Wait for readEvents() to finish. return nil } @@ -266,6 +188,43 @@ func (w *inotify) AddWith(path string, opts ...addOpt) error { return fmt.Errorf("%w: %s", xErrUnsupported, with.op) } + add := func(path string, with withOpts, recurse bool) error { + var flags uint32 + if with.noFollow { + flags |= unix.IN_DONT_FOLLOW + } + if with.op.Has(Create) { + flags |= unix.IN_CREATE + } + if with.op.Has(Write) { + flags |= unix.IN_MODIFY + } + if with.op.Has(Remove) { + flags |= unix.IN_DELETE | unix.IN_DELETE_SELF + } + if with.op.Has(Rename) { + flags |= unix.IN_MOVED_TO | unix.IN_MOVED_FROM | unix.IN_MOVE_SELF + } + if with.op.Has(Chmod) { + flags |= unix.IN_ATTRIB + } + if with.op.Has(xUnportableOpen) { + flags |= unix.IN_OPEN + } + if with.op.Has(xUnportableRead) { + flags |= unix.IN_ACCESS + } + if with.op.Has(xUnportableCloseWrite) { + flags |= unix.IN_CLOSE_WRITE + } + if with.op.Has(xUnportableCloseRead) { + flags |= unix.IN_CLOSE_NOWRITE + } + return w.register(path, flags, recurse) + } + + w.mu.Lock() + defer w.mu.Unlock() path, recurse := recursivePath(path) if recurse { return filepath.WalkDir(path, func(root string, d fs.DirEntry, err error) error { @@ -289,46 +248,11 @@ func (w *inotify) AddWith(path string, opts ...addOpt) error { w.sendEvent(Event{Name: root, Op: Create}) } - return w.add(root, with, true) + return add(root, with, true) }) } - return w.add(path, with, false) -} - -func (w *inotify) add(path string, with withOpts, recurse bool) error { - var flags uint32 - if with.noFollow { - flags |= unix.IN_DONT_FOLLOW - } - if with.op.Has(Create) { - flags |= unix.IN_CREATE - } - if with.op.Has(Write) { - flags |= unix.IN_MODIFY - } - if with.op.Has(Remove) { - flags |= unix.IN_DELETE | unix.IN_DELETE_SELF - } - if with.op.Has(Rename) { - flags |= unix.IN_MOVED_TO | unix.IN_MOVED_FROM | unix.IN_MOVE_SELF - } - if with.op.Has(Chmod) { - flags |= unix.IN_ATTRIB - } - if with.op.Has(xUnportableOpen) { - flags |= unix.IN_OPEN - } - if with.op.Has(xUnportableRead) { - flags |= unix.IN_ACCESS - } - if with.op.Has(xUnportableCloseWrite) { - flags |= unix.IN_CLOSE_WRITE - } - if with.op.Has(xUnportableCloseRead) { - flags |= unix.IN_CLOSE_NOWRITE - } - return w.register(path, flags, recurse) + return add(path, with, false) } func (w *inotify) register(path string, flags uint32, recurse bool) error { @@ -342,6 +266,10 @@ func (w *inotify) register(path string, flags uint32, recurse bool) error { return nil, err } + if e, ok := w.watches.wd[uint32(wd)]; ok { + return e, nil + } + if existing == nil { return &watch{ wd: uint32(wd), @@ -365,6 +293,9 @@ func (w *inotify) Remove(name string) error { fmt.Fprintf(os.Stderr, "FSNOTIFY_DEBUG: %s Remove(%q)\n", time.Now().Format("15:04:05.000000000"), name) } + + w.mu.Lock() + defer w.mu.Unlock() return w.remove(filepath.Clean(name)) } @@ -399,13 +330,12 @@ func (w *inotify) WatchList() []string { return nil } + w.mu.Lock() + defer w.mu.Unlock() entries := make([]string, 0, w.watches.len()) - w.watches.mu.RLock() for pathname := range w.watches.path { entries = append(entries, pathname) } - w.watches.mu.RUnlock() - return entries } @@ -418,21 +348,17 @@ func (w *inotify) readEvents() { close(w.Events) }() - var ( - buf [unix.SizeofInotifyEvent * 4096]byte // Buffer for a maximum of 4096 raw events - errno error // Syscall errno - ) + var buf [unix.SizeofInotifyEvent * 4096]byte // Buffer for a maximum of 4096 raw events for { - // See if we have been closed. if w.isClosed() { return } n, err := w.inotifyFile.Read(buf[:]) - switch { - case errors.Unwrap(err) == os.ErrClosed: - return - case err != nil: + if err != nil { + if errors.Is(err, os.ErrClosed) { + return + } if !w.sendError(err) { return } @@ -440,13 +366,9 @@ func (w *inotify) readEvents() { } if n < unix.SizeofInotifyEvent { - var err error + err := errors.New("notify: short read in readEvents()") // Read was too short. if n == 0 { err = io.EOF // If EOF is received. This should really never happen. - } else if n < 0 { - err = errno // If an error occurred while reading. - } else { - err = errors.New("notify: short read in readEvents()") // Read was too short. } if !w.sendError(err) { return @@ -454,132 +376,135 @@ func (w *inotify) readEvents() { continue } - // We don't know how many events we just read into the buffer - // While the offset points to at least one whole event... + // We don't know how many events we just read into the buffer While the + // offset points to at least one whole event. var offset uint32 for offset <= uint32(n-unix.SizeofInotifyEvent) { - var ( - // Point "raw" to the event in the buffer - raw = (*unix.InotifyEvent)(unsafe.Pointer(&buf[offset])) - mask = uint32(raw.Mask) - nameLen = uint32(raw.Len) - // Move to the next event in the buffer - next = func() { offset += unix.SizeofInotifyEvent + nameLen } - ) - - if mask&unix.IN_Q_OVERFLOW != 0 { + // Point to the event in the buffer. + inEvent := (*unix.InotifyEvent)(unsafe.Pointer(&buf[offset])) + + if inEvent.Mask&unix.IN_Q_OVERFLOW != 0 { if !w.sendError(ErrEventOverflow) { return } } - /// If the event happened to the watched directory or the watched - /// file, the kernel doesn't append the filename to the event, but - /// we would like to always fill the the "Name" field with a valid - /// filename. We retrieve the path of the watch from the "paths" - /// map. - watch := w.watches.byWd(uint32(raw.Wd)) - /// Can be nil if Remove() was called in another goroutine for this - /// path inbetween reading the events from the kernel and reading - /// the internal state. Not much we can do about it, so just skip. - /// See #616. - if watch == nil { - next() - continue + ev, ok := w.handleEvent(inEvent, &buf, offset) + if !ok { + return } - - name := watch.path - if nameLen > 0 { - /// Point "bytes" at the first byte of the filename - bytes := (*[unix.PathMax]byte)(unsafe.Pointer(&buf[offset+unix.SizeofInotifyEvent]))[:nameLen:nameLen] - /// The filename is padded with NULL bytes. TrimRight() gets rid of those. - name += "/" + strings.TrimRight(string(bytes[0:nameLen]), "\000") + if !w.sendEvent(ev) { + return } - if debug { - internal.Debug(name, raw.Mask, raw.Cookie) - } + // Move to the next event in the buffer + offset += unix.SizeofInotifyEvent + inEvent.Len + } + } +} - if mask&unix.IN_IGNORED != 0 { //&& event.Op != 0 - next() - continue - } +func (w *inotify) handleEvent(inEvent *unix.InotifyEvent, buf *[65536]byte, offset uint32) (Event, bool) { + w.mu.Lock() + defer w.mu.Unlock() - // inotify will automatically remove the watch on deletes; just need - // to clean our state here. - if mask&unix.IN_DELETE_SELF == unix.IN_DELETE_SELF { - w.watches.remove(watch.wd) - } + /// If the event happened to the watched directory or the watched file, the + /// kernel doesn't append the filename to the event, but we would like to + /// always fill the the "Name" field with a valid filename. We retrieve the + /// path of the watch from the "paths" map. + /// + /// Can be nil if Remove() was called in another goroutine for this path + /// inbetween reading the events from the kernel and reading the internal + /// state. Not much we can do about it, so just skip. See #616. + watch := w.watches.byWd(uint32(inEvent.Wd)) + if watch == nil { + return Event{}, true + } - // We can't really update the state when a watched path is moved; - // only IN_MOVE_SELF is sent and not IN_MOVED_{FROM,TO}. So remove - // the watch. - if mask&unix.IN_MOVE_SELF == unix.IN_MOVE_SELF { - if watch.recurse { - next() // Do nothing - continue - } + var ( + name = watch.path + nameLen = uint32(inEvent.Len) + ) + if nameLen > 0 { + /// Point "bytes" at the first byte of the filename + bb := *buf + bytes := (*[unix.PathMax]byte)(unsafe.Pointer(&bb[offset+unix.SizeofInotifyEvent]))[:nameLen:nameLen] + /// The filename is padded with NULL bytes. TrimRight() gets rid of those. + name += "/" + strings.TrimRight(string(bytes[0:nameLen]), "\x00") + } - err := w.remove(watch.path) - if err != nil && !errors.Is(err, ErrNonExistentWatch) { - if !w.sendError(err) { - return - } - } + if debug { + internal.Debug(name, inEvent.Mask, inEvent.Cookie) + } + + if inEvent.Mask&unix.IN_IGNORED != 0 || inEvent.Mask&unix.IN_UNMOUNT != 0 { + w.watches.remove(watch) + return Event{}, true + } + + // inotify will automatically remove the watch on deletes; just need + // to clean our state here. + if inEvent.Mask&unix.IN_DELETE_SELF == unix.IN_DELETE_SELF { + w.watches.remove(watch) + } + + // We can't really update the state when a watched path is moved; only + // IN_MOVE_SELF is sent and not IN_MOVED_{FROM,TO}. So remove the watch. + if inEvent.Mask&unix.IN_MOVE_SELF == unix.IN_MOVE_SELF { + if watch.recurse { // Do nothing + return Event{}, true + } + + err := w.remove(watch.path) + if err != nil && !errors.Is(err, ErrNonExistentWatch) { + if !w.sendError(err) { + return Event{}, false } + } + } - /// Skip if we're watching both this path and the parent; the parent - /// will already send a delete so no need to do it twice. - if mask&unix.IN_DELETE_SELF != 0 { - if _, ok := w.watches.path[filepath.Dir(watch.path)]; ok { - next() - continue - } + /// Skip if we're watching both this path and the parent; the parent will + /// already send a delete so no need to do it twice. + if inEvent.Mask&unix.IN_DELETE_SELF != 0 { + _, ok := w.watches.path[filepath.Dir(watch.path)] + if ok { + return Event{}, true + } + } + + ev := w.newEvent(name, inEvent.Mask, inEvent.Cookie) + // Need to update watch path for recurse. + if watch.recurse { + isDir := inEvent.Mask&unix.IN_ISDIR == unix.IN_ISDIR + /// New directory created: set up watch on it. + if isDir && ev.Has(Create) { + err := w.register(ev.Name, watch.flags, true) + if !w.sendError(err) { + return Event{}, false } - ev := w.newEvent(name, mask, raw.Cookie) - // Need to update watch path for recurse. - if watch.recurse { - isDir := mask&unix.IN_ISDIR == unix.IN_ISDIR - /// New directory created: set up watch on it. - if isDir && ev.Has(Create) { - err := w.register(ev.Name, watch.flags, true) - if !w.sendError(err) { - return + // This was a directory rename, so we need to update all the + // children. + // + // TODO: this is of course pretty slow; we should use a better data + // structure for storing all of this, e.g. store children in the + // watch. I have some code for this in my kqueue refactor we can use + // in the future. For now I'm okay with this as it's not publicly + // available. Correctness first, performance second. + if ev.renamedFrom != "" { + for k, ww := range w.watches.wd { + if k == watch.wd || ww.path == ev.Name { + continue } - - // This was a directory rename, so we need to update all - // the children. - // - // TODO: this is of course pretty slow; we should use a - // better data structure for storing all of this, e.g. store - // children in the watch. I have some code for this in my - // kqueue refactor we can use in the future. For now I'm - // okay with this as it's not publicly available. - // Correctness first, performance second. - if ev.renamedFrom != "" { - w.watches.mu.Lock() - for k, ww := range w.watches.wd { - if k == watch.wd || ww.path == ev.Name { - continue - } - if strings.HasPrefix(ww.path, ev.renamedFrom) { - ww.path = strings.Replace(ww.path, ev.renamedFrom, ev.Name, 1) - w.watches.wd[k] = ww - } - } - w.watches.mu.Unlock() + if strings.HasPrefix(ww.path, ev.renamedFrom) { + ww.path = strings.Replace(ww.path, ev.renamedFrom, ev.Name, 1) + w.watches.wd[k] = ww } } } - - /// Send the events that are not ignored on the events channel - if !w.sendEvent(ev) { - return - } - next() } } + + return ev, true } func (w *inotify) isRecursive(path string) bool { @@ -650,8 +575,8 @@ func (w *inotify) xSupports(op Op) bool { } func (w *inotify) state() { - w.watches.mu.Lock() - defer w.watches.mu.Unlock() + w.mu.Lock() + defer w.mu.Unlock() for wd, ww := range w.watches.wd { fmt.Fprintf(os.Stderr, "%4d: recurse=%t %q\n", wd, ww.recurse, ww.path) } diff --git a/vendor/github.com/fsnotify/fsnotify/backend_kqueue.go b/vendor/github.com/fsnotify/fsnotify/backend_kqueue.go index d8de5ab76f..340aeec061 100644 --- a/vendor/github.com/fsnotify/fsnotify/backend_kqueue.go +++ b/vendor/github.com/fsnotify/fsnotify/backend_kqueue.go @@ -16,14 +16,13 @@ import ( ) type kqueue struct { + *shared Events chan Event Errors chan error kq int // File descriptor (as returned by the kqueue() syscall). closepipe [2]int // Pipe used for closing kq. watches *watches - done chan struct{} - doneMu sync.Mutex } type ( @@ -132,14 +131,18 @@ func (w *watches) byPath(path string) (watch, bool) { return info, ok } -func (w *watches) updateDirFlags(path string, flags uint32) { +func (w *watches) updateDirFlags(path string, flags uint32) bool { w.mu.Lock() defer w.mu.Unlock() - fd := w.path[path] + fd, ok := w.path[path] + if !ok { // Already deleted: don't re-set it here. + return false + } info := w.wd[fd] info.dirFlags = flags w.wd[fd] = info + return true } func (w *watches) remove(fd int, path string) bool { @@ -179,22 +182,20 @@ func (w *watches) seenBefore(path string) bool { return ok } -func newBackend(ev chan Event, errs chan error) (backend, error) { - return newBufferedBackend(0, ev, errs) -} +var defaultBufferSize = 0 -func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error) { +func newBackend(ev chan Event, errs chan error) (backend, error) { kq, closepipe, err := newKqueue() if err != nil { return nil, err } w := &kqueue{ + shared: newShared(ev, errs), Events: ev, Errors: errs, kq: kq, closepipe: closepipe, - done: make(chan struct{}), watches: newWatches(), } @@ -210,7 +211,7 @@ func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error // all. func newKqueue() (kq int, closepipe [2]int, err error) { kq, err = unix.Kqueue() - if kq == -1 { + if err != nil { return kq, closepipe, err } @@ -239,54 +240,17 @@ func newKqueue() (kq int, closepipe [2]int, err error) { return kq, closepipe, nil } -// Returns true if the event was sent, or false if watcher is closed. -func (w *kqueue) sendEvent(e Event) bool { - select { - case <-w.done: - return false - case w.Events <- e: - return true - } -} - -// Returns true if the error was sent, or false if watcher is closed. -func (w *kqueue) sendError(err error) bool { - if err == nil { - return true - } - select { - case <-w.done: - return false - case w.Errors <- err: - return true - } -} - -func (w *kqueue) isClosed() bool { - select { - case <-w.done: - return true - default: - return false - } -} - func (w *kqueue) Close() error { - w.doneMu.Lock() - if w.isClosed() { - w.doneMu.Unlock() + if w.shared.close() { return nil } - close(w.done) - w.doneMu.Unlock() pathsToRemove := w.watches.listPaths(false) for _, name := range pathsToRemove { w.Remove(name) } - // Send "quit" message to the reader goroutine. - unix.Close(w.closepipe[1]) + unix.Close(w.closepipe[1]) // Send "quit" message to readEvents return nil } @@ -303,7 +267,7 @@ func (w *kqueue) AddWith(name string, opts ...addOpt) error { return fmt.Errorf("%w: %s", xErrUnsupported, with.op) } - _, err := w.addWatch(name, noteAllEvents) + _, err := w.addWatch(name, noteAllEvents, false) if err != nil { return err } @@ -366,7 +330,7 @@ const noteAllEvents = unix.NOTE_DELETE | unix.NOTE_WRITE | unix.NOTE_ATTRIB | un // described in kevent(2). // // Returns the real path to the file which was added, with symlinks resolved. -func (w *kqueue) addWatch(name string, flags uint32) (string, error) { +func (w *kqueue) addWatch(name string, flags uint32, listDir bool) (string, error) { if w.isClosed() { return "", ErrClosed } @@ -385,15 +349,15 @@ func (w *kqueue) addWatch(name string, flags uint32) (string, error) { return "", nil } - // Follow symlinks. - if fi.Mode()&os.ModeSymlink == os.ModeSymlink { + // Follow symlinks, but only for paths added with Add(), and not paths + // we're adding from internalWatch from a listdir. + if !listDir && fi.Mode()&os.ModeSymlink == os.ModeSymlink { link, err := os.Readlink(name) if err != nil { - // Return nil because Linux can add unresolvable symlinks to the - // watch list without problems, so maintain consistency with - // that. There will be no file events for broken symlinks. - // TODO: more specific check; returns os.PathError; ENOENT? - return "", nil + return "", err + } + if !filepath.IsAbs(link) { + link = filepath.Join(filepath.Dir(name), link) } _, alreadyWatching = w.watches.byPath(link) @@ -408,7 +372,7 @@ func (w *kqueue) addWatch(name string, flags uint32) (string, error) { name = link fi, err = os.Lstat(name) if err != nil { - return "", nil + return "", err } } @@ -422,7 +386,6 @@ func (w *kqueue) addWatch(name string, flags uint32) (string, error) { if errors.Is(err, unix.EINTR) { continue } - return "", err } @@ -444,10 +407,16 @@ func (w *kqueue) addWatch(name string, flags uint32) (string, error) { if info.isDir { watchDir := (flags&unix.NOTE_WRITE) == unix.NOTE_WRITE && (!alreadyWatching || (info.dirFlags&unix.NOTE_WRITE) != unix.NOTE_WRITE) - w.watches.updateDirFlags(name, flags) + if !w.watches.updateDirFlags(name, flags) { + return "", nil + } if watchDir { - if err := w.watchDirectoryFiles(name); err != nil { + d := name + if info.linkName != "" { + d = info.linkName + } + if err := w.watchDirectoryFiles(d); err != nil { return "", err } } @@ -644,19 +613,22 @@ func (w *kqueue) dirChange(dir string) error { if errors.Is(err, os.ErrNotExist) { return nil } - return fmt.Errorf("fsnotify.dirChange: %w", err) + return fmt.Errorf("fsnotify.dirChange %q: %w", dir, err) } for _, f := range files { fi, err := f.Info() if err != nil { + if errors.Is(err, os.ErrNotExist) { + return nil + } return fmt.Errorf("fsnotify.dirChange: %w", err) } err = w.sendCreateIfNew(filepath.Join(dir, fi.Name()), fi) if err != nil { // Don't need to send an error if this file isn't readable. - if errors.Is(err, unix.EACCES) || errors.Is(err, unix.EPERM) { + if errors.Is(err, unix.EACCES) || errors.Is(err, unix.EPERM) || errors.Is(err, os.ErrNotExist) { return nil } return fmt.Errorf("fsnotify.dirChange: %w", err) @@ -688,11 +660,11 @@ func (w *kqueue) internalWatch(name string, fi os.FileInfo) (string, error) { // mimic Linux providing delete events for subdirectories, but preserve // the flags used if currently watching subdirectory info, _ := w.watches.byPath(name) - return w.addWatch(name, info.dirFlags|unix.NOTE_DELETE|unix.NOTE_RENAME) + return w.addWatch(name, info.dirFlags|unix.NOTE_DELETE|unix.NOTE_RENAME, true) } - // watch file to mimic Linux inotify - return w.addWatch(name, noteAllEvents) + // Watch file to mimic Linux inotify. + return w.addWatch(name, noteAllEvents, true) } // Register events with the queue. @@ -722,9 +694,9 @@ func (w *kqueue) read(events []unix.Kevent_t) ([]unix.Kevent_t, error) { } func (w *kqueue) xSupports(op Op) bool { - if runtime.GOOS == "freebsd" { - //return true // Supports everything. - } + //if runtime.GOOS == "freebsd" { + // return true // Supports everything. + //} if op.Has(xUnportableOpen) || op.Has(xUnportableRead) || op.Has(xUnportableCloseWrite) || op.Has(xUnportableCloseRead) { return false diff --git a/vendor/github.com/fsnotify/fsnotify/backend_other.go b/vendor/github.com/fsnotify/fsnotify/backend_other.go index 5eb5dbc66f..b8c0ad7226 100644 --- a/vendor/github.com/fsnotify/fsnotify/backend_other.go +++ b/vendor/github.com/fsnotify/fsnotify/backend_other.go @@ -9,12 +9,11 @@ type other struct { Errors chan error } +var defaultBufferSize = 0 + func newBackend(ev chan Event, errs chan error) (backend, error) { return nil, errors.New("fsnotify not supported on the current platform") } -func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error) { - return newBackend(ev, errs) -} func (w *other) Close() error { return nil } func (w *other) WatchList() []string { return nil } func (w *other) Add(name string) error { return nil } diff --git a/vendor/github.com/fsnotify/fsnotify/backend_windows.go b/vendor/github.com/fsnotify/fsnotify/backend_windows.go index c54a630838..3433642d64 100644 --- a/vendor/github.com/fsnotify/fsnotify/backend_windows.go +++ b/vendor/github.com/fsnotify/fsnotify/backend_windows.go @@ -28,18 +28,16 @@ type readDirChangesW struct { port windows.Handle // Handle to completion port input chan *input // Inputs to the reader are sent on this channel - quit chan chan<- error + done chan chan<- error mu sync.Mutex // Protects access to watches, closed watches watchMap // Map of watches (key: i-number) closed bool // Set to true when Close() is first called } -func newBackend(ev chan Event, errs chan error) (backend, error) { - return newBufferedBackend(50, ev, errs) -} +var defaultBufferSize = 50 -func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error) { +func newBackend(ev chan Event, errs chan error) (backend, error) { port, err := windows.CreateIoCompletionPort(windows.InvalidHandle, 0, 0, 0) if err != nil { return nil, os.NewSyscallError("CreateIoCompletionPort", err) @@ -50,7 +48,7 @@ func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error port: port, watches: make(watchMap), input: make(chan *input, 1), - quit: make(chan chan<- error, 1), + done: make(chan chan<- error, 1), } go w.readEvents() return w, nil @@ -70,8 +68,8 @@ func (w *readDirChangesW) sendEvent(name, renamedFrom string, mask uint64) bool event := w.newEvent(name, uint32(mask)) event.renamedFrom = renamedFrom select { - case ch := <-w.quit: - w.quit <- ch + case ch := <-w.done: + w.done <- ch case w.Events <- event: } return true @@ -83,10 +81,10 @@ func (w *readDirChangesW) sendError(err error) bool { return true } select { + case <-w.done: + return false case w.Errors <- err: return true - case <-w.quit: - return false } } @@ -99,9 +97,9 @@ func (w *readDirChangesW) Close() error { w.closed = true w.mu.Unlock() - // Send "quit" message to the reader goroutine + // Send "done" message to the reader goroutine ch := make(chan error) - w.quit <- ch + w.done <- ch if err := w.wakeupReader(); err != nil { return err } @@ -495,7 +493,7 @@ func (w *readDirChangesW) readEvents() { watch := (*watch)(unsafe.Pointer(ov)) if watch == nil { select { - case ch := <-w.quit: + case ch := <-w.done: w.mu.Lock() var indexes []indexMap for _, index := range w.watches { diff --git a/vendor/github.com/fsnotify/fsnotify/fsnotify.go b/vendor/github.com/fsnotify/fsnotify/fsnotify.go index 0760efe916..f64be4bf98 100644 --- a/vendor/github.com/fsnotify/fsnotify/fsnotify.go +++ b/vendor/github.com/fsnotify/fsnotify/fsnotify.go @@ -244,12 +244,13 @@ var ( // ErrUnsupported is returned by AddWith() when WithOps() specified an // Unportable event that's not supported on this platform. + //lint:ignore ST1012 not relevant xErrUnsupported = errors.New("fsnotify: not supported with this backend") ) // NewWatcher creates a new Watcher. func NewWatcher() (*Watcher, error) { - ev, errs := make(chan Event), make(chan error) + ev, errs := make(chan Event, defaultBufferSize), make(chan error) b, err := newBackend(ev, errs) if err != nil { return nil, err @@ -266,8 +267,8 @@ func NewWatcher() (*Watcher, error) { // cases, and whenever possible you will be better off increasing the kernel // buffers instead of adding a large userspace buffer. func NewBufferedWatcher(sz uint) (*Watcher, error) { - ev, errs := make(chan Event), make(chan error) - b, err := newBufferedBackend(sz, ev, errs) + ev, errs := make(chan Event, sz), make(chan error) + b, err := newBackend(ev, errs) if err != nil { return nil, err } @@ -337,7 +338,8 @@ func (w *Watcher) Close() error { return w.b.Close() } // WatchList returns all paths explicitly added with [Watcher.Add] (and are not // yet removed). // -// Returns nil if [Watcher.Close] was called. +// The order is undefined, and may differ per call. Returns nil if +// [Watcher.Close] was called. func (w *Watcher) WatchList() []string { return w.b.WatchList() } // Supports reports if all the listed operations are supported by this platform. diff --git a/vendor/github.com/fsnotify/fsnotify/internal/darwin.go b/vendor/github.com/fsnotify/fsnotify/internal/darwin.go index b0eab10090..0b01bc182a 100644 --- a/vendor/github.com/fsnotify/fsnotify/internal/darwin.go +++ b/vendor/github.com/fsnotify/fsnotify/internal/darwin.go @@ -9,14 +9,14 @@ import ( ) var ( - SyscallEACCES = syscall.EACCES - UnixEACCES = unix.EACCES + ErrSyscallEACCES = syscall.EACCES + ErrUnixEACCES = unix.EACCES ) var maxfiles uint64 -// Go 1.19 will do this automatically: https://go-review.googlesource.com/c/go/+/393354/ func SetRlimit() { + // Go 1.19 will do this automatically: https://go-review.googlesource.com/c/go/+/393354/ var l syscall.Rlimit err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &l) if err == nil && l.Cur != l.Max { diff --git a/vendor/github.com/fsnotify/fsnotify/internal/freebsd.go b/vendor/github.com/fsnotify/fsnotify/internal/freebsd.go index 547df1df84..5ac8b50797 100644 --- a/vendor/github.com/fsnotify/fsnotify/internal/freebsd.go +++ b/vendor/github.com/fsnotify/fsnotify/internal/freebsd.go @@ -9,8 +9,8 @@ import ( ) var ( - SyscallEACCES = syscall.EACCES - UnixEACCES = unix.EACCES + ErrSyscallEACCES = syscall.EACCES + ErrUnixEACCES = unix.EACCES ) var maxfiles uint64 diff --git a/vendor/github.com/fsnotify/fsnotify/internal/unix.go b/vendor/github.com/fsnotify/fsnotify/internal/unix.go index 30976ce973..b251fb8038 100644 --- a/vendor/github.com/fsnotify/fsnotify/internal/unix.go +++ b/vendor/github.com/fsnotify/fsnotify/internal/unix.go @@ -1,4 +1,4 @@ -//go:build !windows && !darwin && !freebsd +//go:build !windows && !darwin && !freebsd && !plan9 package internal @@ -9,8 +9,8 @@ import ( ) var ( - SyscallEACCES = syscall.EACCES - UnixEACCES = unix.EACCES + ErrSyscallEACCES = syscall.EACCES + ErrUnixEACCES = unix.EACCES ) var maxfiles uint64 diff --git a/vendor/github.com/fsnotify/fsnotify/internal/windows.go b/vendor/github.com/fsnotify/fsnotify/internal/windows.go index a72c649549..896bc2e5a2 100644 --- a/vendor/github.com/fsnotify/fsnotify/internal/windows.go +++ b/vendor/github.com/fsnotify/fsnotify/internal/windows.go @@ -10,8 +10,8 @@ import ( // Just a dummy. var ( - SyscallEACCES = errors.New("dummy") - UnixEACCES = errors.New("dummy") + ErrSyscallEACCES = errors.New("dummy") + ErrUnixEACCES = errors.New("dummy") ) func SetRlimit() {} diff --git a/vendor/github.com/fsnotify/fsnotify/shared.go b/vendor/github.com/fsnotify/fsnotify/shared.go new file mode 100644 index 0000000000..3ee9b58f1d --- /dev/null +++ b/vendor/github.com/fsnotify/fsnotify/shared.go @@ -0,0 +1,64 @@ +package fsnotify + +import "sync" + +type shared struct { + Events chan Event + Errors chan error + done chan struct{} + mu sync.Mutex +} + +func newShared(ev chan Event, errs chan error) *shared { + return &shared{ + Events: ev, + Errors: errs, + done: make(chan struct{}), + } +} + +// Returns true if the event was sent, or false if watcher is closed. +func (w *shared) sendEvent(e Event) bool { + if e.Op == 0 { + return true + } + select { + case <-w.done: + return false + case w.Events <- e: + return true + } +} + +// Returns true if the error was sent, or false if watcher is closed. +func (w *shared) sendError(err error) bool { + if err == nil { + return true + } + select { + case <-w.done: + return false + case w.Errors <- err: + return true + } +} + +func (w *shared) isClosed() bool { + select { + case <-w.done: + return true + default: + return false + } +} + +// Mark as closed; returns true if it was already closed. +func (w *shared) close() bool { + w.mu.Lock() + defer w.mu.Unlock() + if w.isClosed() { + return true + } + close(w.done) + return false +} diff --git a/vendor/github.com/fsnotify/fsnotify/staticcheck.conf b/vendor/github.com/fsnotify/fsnotify/staticcheck.conf new file mode 100644 index 0000000000..8fa7351f0c --- /dev/null +++ b/vendor/github.com/fsnotify/fsnotify/staticcheck.conf @@ -0,0 +1,3 @@ +checks = ['all', + '-U1000', # Don't complain about unused functions. +] diff --git a/vendor/github.com/fxamacker/cbor/v2/README.md b/vendor/github.com/fxamacker/cbor/v2/README.md index af0a79507e..d072b81c73 100644 --- a/vendor/github.com/fxamacker/cbor/v2/README.md +++ b/vendor/github.com/fxamacker/cbor/v2/README.md @@ -1,30 +1,31 @@ -# CBOR Codec in Go - - +

CBOR Codec Go logo

[fxamacker/cbor](https://github.com/fxamacker/cbor) is a library for encoding and decoding [CBOR](https://www.rfc-editor.org/info/std94) and [CBOR Sequences](https://www.rfc-editor.org/rfc/rfc8742.html). CBOR is a [trusted alternative](https://www.rfc-editor.org/rfc/rfc8949.html#name-comparison-of-other-binary-) to JSON, MessagePack, Protocol Buffers, etc.  CBOR is an Internet Standard defined by [IETF STD 94 (RFC 8949)](https://www.rfc-editor.org/info/std94) and is designed to be relevant for decades. -`fxamacker/cbor` is used in projects by Arm Ltd., Cisco, EdgeX Foundry, Flow Foundation, Fraunhofer‑AISEC, Kubernetes, Let's Encrypt (ISRG), Linux Foundation, Microsoft, Mozilla, Oasis Protocol, Tailscale, Teleport, [etc](https://github.com/fxamacker/cbor#who-uses-fxamackercbor). +`fxamacker/cbor` is used in projects by Arm Ltd., EdgeX Foundry, Flow Foundation, Fraunhofer‑AISEC, IBM, Kubernetes[*](https://github.com/search?q=org%3Akubernetes%20fxamacker%2Fcbor&type=code), Let's Encrypt, Linux Foundation, Microsoft, Oasis Protocol, Red Hat[*](https://github.com/search?q=org%3Aopenshift+fxamacker%2Fcbor&type=code), Tailscale[*](https://github.com/search?q=org%3Atailscale+fxamacker%2Fcbor&type=code), Veraison[*](https://github.com/search?q=org%3Averaison+fxamacker%2Fcbor&type=code), [etc](https://github.com/fxamacker/cbor#who-uses-fxamackercbor). -See [Quick Start](#quick-start) and [Releases](https://github.com/fxamacker/cbor/releases/). 🆕 `UnmarshalFirst` and `DiagnoseFirst` can decode CBOR Sequences. `cbor.MarshalToBuffer()` and `UserBufferEncMode` accepts user-specified buffer. +See [Quick Start](#quick-start) and [Releases](https://github.com/fxamacker/cbor/releases/). 🆕 `UnmarshalFirst` and `DiagnoseFirst` can decode CBOR Sequences. `MarshalToBuffer` and `UserBufferEncMode` accepts user-specified buffer. ## fxamacker/cbor [![](https://github.com/fxamacker/cbor/workflows/ci/badge.svg)](https://github.com/fxamacker/cbor/actions?query=workflow%3Aci) -[![](https://github.com/fxamacker/cbor/workflows/cover%20%E2%89%A596%25/badge.svg)](https://github.com/fxamacker/cbor/actions?query=workflow%3A%22cover+%E2%89%A596%25%22) +[![](https://github.com/fxamacker/cbor/workflows/cover%20%E2%89%A597%25/badge.svg)](https://github.com/fxamacker/cbor/actions?query=workflow%3A%22cover+%E2%89%A597%25%22) [![CodeQL](https://github.com/fxamacker/cbor/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/fxamacker/cbor/actions/workflows/codeql-analysis.yml) [![](https://img.shields.io/badge/fuzzing-passing-44c010)](#fuzzing-and-code-coverage) [![Go Report Card](https://goreportcard.com/badge/github.com/fxamacker/cbor)](https://goreportcard.com/report/github.com/fxamacker/cbor) +[![](https://img.shields.io/ossf-scorecard/github.com/fxamacker/cbor?label=openssf%20scorecard)](https://github.com/fxamacker/cbor#fuzzing-and-code-coverage) `fxamacker/cbor` is a CBOR codec in full conformance with [IETF STD 94 (RFC 8949)](https://www.rfc-editor.org/info/std94). It also supports CBOR Sequences ([RFC 8742](https://www.rfc-editor.org/rfc/rfc8742.html)) and Extended Diagnostic Notation ([Appendix G of RFC 8610](https://www.rfc-editor.org/rfc/rfc8610.html#appendix-G)). Features include full support for CBOR tags, [Core Deterministic Encoding](https://www.rfc-editor.org/rfc/rfc8949.html#name-core-deterministic-encoding), duplicate map key detection, etc. +API is mostly same as `encoding/json`, plus interfaces that simplify concurrency and CBOR options. + Design balances trade-offs between security, speed, concurrency, encoded data size, usability, etc. -
Highlights

+

🔎  Highlights

__🚀  Speed__ @@ -38,7 +39,7 @@ Codec passed multiple confidential security assessments in 2022. No vulnerabili __🗜️  Data Size__ -Struct tags (`toarray`, `keyasint`, `omitempty`) automatically reduce size of encoded structs. Encoding optionally shrinks float64→32→16 when values fit. +Struct tag options (`toarray`, `keyasint`, `omitempty`, `omitzero`) and field tag "-" automatically reduce size of encoded structs. Encoding optionally shrinks float64→32→16 when values fit. __:jigsaw:  Usability__ @@ -58,164 +59,205 @@ Features include CBOR [extension points](https://www.rfc-editor.org/rfc/rfc8949. `fxamacker/cbor` has configurable limits, etc. that defend against malicious CBOR data. -By contrast, `encoding/gob` is [not designed to be hardened against adversarial inputs](https://pkg.go.dev/encoding/gob#hdr-Security). - -

Example decoding with encoding/gob 💥 fatal error (out of memory)

- -```Go -// Example of encoding/gob having "fatal error: runtime: out of memory" -// while decoding 181 bytes. -package main -import ( - "bytes" - "encoding/gob" - "encoding/hex" - "fmt" -) - -// Example data is from https://github.com/golang/go/issues/24446 -// (shortened to 181 bytes). -const data = "4dffb503010102303001ff30000109010130010800010130010800010130" + - "01ffb80001014a01ffb60001014b01ff860001013001ff860001013001ff" + - "860001013001ff860001013001ffb80000001eff850401010e3030303030" + - "30303030303030303001ff3000010c0104000016ffb70201010830303030" + - "3030303001ff3000010c000030ffb6040405fcff00303030303030303030" + - "303030303030303030303030303030303030303030303030303030303030" + - "30" - -type X struct { - J *X - K map[string]int -} - -func main() { - raw, _ := hex.DecodeString(data) - decoder := gob.NewDecoder(bytes.NewReader(raw)) - - var x X - decoder.Decode(&x) // fatal error: runtime: out of memory - fmt.Println("Decoding finished.") -} -``` - -


- -
- -`fxamacker/cbor` is fast at rejecting malformed CBOR data. E.g. attempts to -decode 10 bytes of malicious CBOR data to `[]byte` (with default settings): - -| Codec | Speed (ns/op) | Memory | Allocs | -| :---- | ------------: | -----: | -----: | -| fxamacker/cbor 2.5.0 | 44 ± 5% | 32 B/op | 2 allocs/op | -| ugorji/go 1.2.11 | 5353261 ± 4% | 67111321 B/op | 13 allocs/op | - -
Benchmark details

- -Latest comparison used: -- Input: `[]byte{0x9B, 0x00, 0x00, 0x42, 0xFA, 0x42, 0xFA, 0x42, 0xFA, 0x42}` -- go1.19.10, linux/amd64, i5-13600K (disabled all e-cores, DDR4 @2933) -- go test -bench=. -benchmem -count=20 - -#### Prior comparisons - -| Codec | Speed (ns/op) | Memory | Allocs | -| :---- | ------------: | -----: | -----: | -| fxamacker/cbor 2.5.0-beta2 | 44.33 ± 2% | 32 B/op | 2 allocs/op | -| fxamacker/cbor 0.1.0 - 2.4.0 | ~44.68 ± 6% | 32 B/op | 2 allocs/op | -| ugorji/go 1.2.10 | 5524792.50 ± 3% | 67110491 B/op | 12 allocs/op | -| ugorji/go 1.1.0 - 1.2.6 | 💥 runtime: | out of memory: | cannot allocate | - -- Input: `[]byte{0x9B, 0x00, 0x00, 0x42, 0xFA, 0x42, 0xFA, 0x42, 0xFA, 0x42}` -- go1.19.6, linux/amd64, i5-13600K (DDR4) -- go test -bench=. -benchmem -count=20 - -


- -
- -### Smaller Encodings with Struct Tags - -Struct tags (`toarray`, `keyasint`, `omitempty`) reduce encoded size of structs. - -
Example encoding 3-level nested Go struct to 1 byte CBOR

- -https://go.dev/play/p/YxwvfPdFQG2 - -```Go -// Example encoding nested struct (with omitempty tag) -// - encoding/json: 18 byte JSON -// - fxamacker/cbor: 1 byte CBOR -package main - -import ( - "encoding/hex" - "encoding/json" - "fmt" - - "github.com/fxamacker/cbor/v2" -) - -type GrandChild struct { - Quux int `json:",omitempty"` -} - -type Child struct { - Baz int `json:",omitempty"` - Qux GrandChild `json:",omitempty"` -} - -type Parent struct { - Foo Child `json:",omitempty"` - Bar int `json:",omitempty"` -} - -func cb() { - results, _ := cbor.Marshal(Parent{}) - fmt.Println("hex(CBOR): " + hex.EncodeToString(results)) - - text, _ := cbor.Diagnose(results) // Diagnostic Notation - fmt.Println("DN: " + text) -} - -func js() { - results, _ := json.Marshal(Parent{}) - fmt.Println("hex(JSON): " + hex.EncodeToString(results)) - - text := string(results) // JSON - fmt.Println("JSON: " + text) -} - -func main() { - cb() - fmt.Println("-------------") - js() -} -``` - -Output (DN is Diagnostic Notation): -``` -hex(CBOR): a0 -DN: {} -------------- -hex(JSON): 7b22466f6f223a7b22517578223a7b7d7d7d -JSON: {"Foo":{"Qux":{}}} -``` - -


- -
- -Example using different struct tags together: +Notably, `fxamacker/cbor` is fast at rejecting malformed CBOR data. + +> [!NOTE] +> Benchmarks rejecting 10 bytes of malicious CBOR data decoding to `[]byte`: +> +> | Codec | Speed (ns/op) | Memory | Allocs | +> | :---- | ------------: | -----: | -----: | +> | fxamacker/cbor 2.7.0 | 47 ± 7% | 32 B/op | 2 allocs/op | +> | ugorji/go 1.2.12 | 5878187 ± 3% | 67111556 B/op | 13 allocs/op | +> +> Faster hardware (overclocked DDR4 or DDR5) can reduce speed difference. +> +>
🔎  Benchmark details

+> +> Latest comparison for decoding CBOR data to Go `[]byte`: +> - Input: `[]byte{0x9B, 0x00, 0x00, 0x42, 0xFA, 0x42, 0xFA, 0x42, 0xFA, 0x42}` +> - go1.22.7, linux/amd64, i5-13600K (DDR4-2933, disabled e-cores) +> - go test -bench=. -benchmem -count=20 +> +> #### Prior comparisons +> +> | Codec | Speed (ns/op) | Memory | Allocs | +> | :---- | ------------: | -----: | -----: | +> | fxamacker/cbor 2.5.0-beta2 | 44.33 ± 2% | 32 B/op | 2 allocs/op | +> | fxamacker/cbor 0.1.0 - 2.4.0 | ~44.68 ± 6% | 32 B/op | 2 allocs/op | +> | ugorji/go 1.2.10 | 5524792.50 ± 3% | 67110491 B/op | 12 allocs/op | +> | ugorji/go 1.1.0 - 1.2.6 | 💥 runtime: | out of memory: | cannot allocate | +> +> - Input: `[]byte{0x9B, 0x00, 0x00, 0x42, 0xFA, 0x42, 0xFA, 0x42, 0xFA, 0x42}` +> - go1.19.6, linux/amd64, i5-13600K (DDR4) +> - go test -bench=. -benchmem -count=20 +> +>

+ +In contrast, some codecs can crash or use excessive resources while decoding bad data. + +> [!WARNING] +> Go's `encoding/gob` is [not designed to be hardened against adversarial inputs](https://pkg.go.dev/encoding/gob#hdr-Security). +> +>
🔎  gob fatal error (out of memory) 💥 decoding 181 bytes

+> +> ```Go +> // Example of encoding/gob having "fatal error: runtime: out of memory" +> // while decoding 181 bytes (all Go versions as of Dec. 8, 2024). +> package main +> import ( +> "bytes" +> "encoding/gob" +> "encoding/hex" +> "fmt" +> ) +> +> // Example data is from https://github.com/golang/go/issues/24446 +> // (shortened to 181 bytes). +> const data = "4dffb503010102303001ff30000109010130010800010130010800010130" + +> "01ffb80001014a01ffb60001014b01ff860001013001ff860001013001ff" + +> "860001013001ff860001013001ffb80000001eff850401010e3030303030" + +> "30303030303030303001ff3000010c0104000016ffb70201010830303030" + +> "3030303001ff3000010c000030ffb6040405fcff00303030303030303030" + +> "303030303030303030303030303030303030303030303030303030303030" + +> "30" +> +> type X struct { +> J *X +> K map[string]int +> } +> +> func main() { +> raw, _ := hex.DecodeString(data) +> decoder := gob.NewDecoder(bytes.NewReader(raw)) +> +> var x X +> decoder.Decode(&x) // fatal error: runtime: out of memory +> fmt.Println("Decoding finished.") +> } +> ``` +> +> +>

+ +### Smaller Encodings with Struct Tag Options + +Struct tags automatically reduce encoded size of structs and improve speed. + +We can write less code by using struct tag options: +- `toarray`: encode without field names (decode back to original struct) +- `keyasint`: encode field names as integers (decode back to original struct) +- `omitempty`: omit empty field when encoding +- `omitzero`: omit zero-value field when encoding + +As a special case, struct field tag "-" omits the field. + +NOTE: When a struct uses `toarray`, the encoder will ignore `omitempty` and `omitzero` to prevent position of encoded array elements from changing. This allows decoder to match encoded elements to their Go struct field. ![alt text](https://github.com/fxamacker/images/raw/master/cbor/v2.3.0/cbor_struct_tags_api.svg?sanitize=1 "CBOR API and Go Struct Tags") -API is mostly same as `encoding/json`, plus interfaces that simplify concurrency for CBOR options. +> [!NOTE] +> `fxamacker/cbor` can encode a 3-level nested Go struct to 1 byte! +> - `encoding/json`: 18 bytes of JSON +> - `fxamacker/cbor`: 1 byte of CBOR +> +>
🔎  Encoding 3-level nested Go struct with omitempty

+> +> https://go.dev/play/p/YxwvfPdFQG2 +> +> ```Go +> // Example encoding nested struct (with omitempty tag) +> // - encoding/json: 18 byte JSON +> // - fxamacker/cbor: 1 byte CBOR +> +> package main +> +> import ( +> "encoding/hex" +> "encoding/json" +> "fmt" +> +> "github.com/fxamacker/cbor/v2" +> ) +> +> type GrandChild struct { +> Quux int `json:",omitempty"` +> } +> +> type Child struct { +> Baz int `json:",omitempty"` +> Qux GrandChild `json:",omitempty"` +> } +> +> type Parent struct { +> Foo Child `json:",omitempty"` +> Bar int `json:",omitempty"` +> } +> +> func cb() { +> results, _ := cbor.Marshal(Parent{}) +> fmt.Println("hex(CBOR): " + hex.EncodeToString(results)) +> +> text, _ := cbor.Diagnose(results) // Diagnostic Notation +> fmt.Println("DN: " + text) +> } +> +> func js() { +> results, _ := json.Marshal(Parent{}) +> fmt.Println("hex(JSON): " + hex.EncodeToString(results)) +> +> text := string(results) // JSON +> fmt.Println("JSON: " + text) +> } +> +> func main() { +> cb() +> fmt.Println("-------------") +> js() +> } +> ``` +> +> Output (DN is Diagnostic Notation): +> ``` +> hex(CBOR): a0 +> DN: {} +> ------------- +> hex(JSON): 7b22466f6f223a7b22517578223a7b7d7d7d +> JSON: {"Foo":{"Qux":{}}} +> ``` +> +>

+ ## Quick Start __Install__: `go get github.com/fxamacker/cbor/v2` and `import "github.com/fxamacker/cbor/v2"`. +> [!TIP] +> +> Tinygo users can try beta/experimental branch [feature/cbor-tinygo-beta](https://github.com/fxamacker/cbor/tree/feature/cbor-tinygo-beta). +> +>
🔎  More about tinygo feature branch +> +> ### Tinygo +> +> Branch [feature/cbor-tinygo-beta](https://github.com/fxamacker/cbor/tree/feature/cbor-tinygo-beta) is based on fxamacker/cbor v2.7.0 and it can be compiled using tinygo v0.33 (also compiles with golang/go). +> +> It passes unit tests (with both go1.22 and tinygo v0.33) and is considered beta/experimental for tinygo. +> +> :warning: The `feature/cbor-tinygo-beta` branch does not get fuzz tested yet. +> +> Changes in this feature branch only affect tinygo compiled software. Summary of changes: +> - default `DecOptions.MaxNestedLevels` is reduced to 16 (was 32). User can specify higher limit but 24+ crashes tests when compiled with tinygo v0.33. +> - disabled decoding CBOR tag data to Go interface because tinygo v0.33 is missing needed feature. +> - encoding error message can be different when encoding function type. +> +> Related tinygo issues: +> - https://github.com/tinygo-org/tinygo/issues/4277 +> - https://github.com/tinygo-org/tinygo/issues/4458 +> +>
+ + ### Key Points This library can encode and decode CBOR (RFC 8949) and CBOR Sequences (RFC 8742). @@ -252,16 +294,17 @@ rest, err = cbor.UnmarshalFirst(b, &v) // decode []byte b to v // DiagnoseFirst translates first CBOR data item to text and returns remaining bytes. text, rest, err = cbor.DiagnoseFirst(b) // decode []byte b to Diagnostic Notation text -// NOTE: Unmarshal returns ExtraneousDataError if there are remaining bytes, -// but new funcs UnmarshalFirst and DiagnoseFirst do not. +// NOTE: Unmarshal() returns ExtraneousDataError if there are remaining bytes, but +// UnmarshalFirst() and DiagnoseFirst() allow trailing bytes. ``` -__IMPORTANT__: 👉 CBOR settings allow trade-offs between speed, security, encoding size, etc. - -- Different CBOR libraries may use different default settings. -- CBOR-based formats or protocols usually require specific settings. - -For example, WebAuthn uses "CTAP2 Canonical CBOR" which is available as a preset. +> [!IMPORTANT] +> CBOR settings allow trade-offs between speed, security, encoding size, etc. +> +> - Different CBOR libraries may use different default settings. +> - CBOR-based formats or protocols usually require specific settings. +> +> For example, WebAuthn uses "CTAP2 Canonical CBOR" which is available as a preset. ### Presets @@ -312,9 +355,63 @@ err = em.MarshalToBuffer(v, &buf) // encode v to provided buf ### Struct Tags -Struct tags (`toarray`, `keyasint`, `omitempty`) reduce encoded size of structs. +Struct tag options (`toarray`, `keyasint`, `omitempty`, `omitzero`) reduce encoded size of structs. + +As a special case, struct field tag "-" omits the field. + +
🔎  Example encoding with struct field tag "-"

+ +https://go.dev/play/p/aWEIFxd7InX + +```Go +// https://github.com/fxamacker/cbor/issues/652 +package main + +import ( + "encoding/json" + "fmt" + + "github.com/fxamacker/cbor/v2" +) + +// The `cbor:"-"` tag omits the Type field when encoding to CBOR. +type Entity struct { + _ struct{} `cbor:",toarray"` + ID uint64 `json:"id"` + Type string `cbor:"-" json:"typeOf"` + Name string `json:"name"` +} + +func main() { + entity := Entity{ + ID: 1, + Type: "int64", + Name: "Identifier", + } + + c, _ := cbor.Marshal(entity) + diag, _ := cbor.Diagnose(c) + fmt.Printf("CBOR in hex: %x\n", c) + fmt.Printf("CBOR in edn: %s\n", diag) + + j, _ := json.Marshal(entity) + fmt.Printf("JSON: %s\n", string(j)) + + fmt.Printf("JSON encoding is %d bytes\n", len(j)) + fmt.Printf("CBOR encoding is %d bytes\n", len(c)) + + // Output: + // CBOR in hex: 82016a4964656e746966696572 + // CBOR in edn: [1, "Identifier"] + // JSON: {"id":1,"typeOf":"int64","name":"Identifier"} + // JSON encoding is 45 bytes + // CBOR encoding is 13 bytes +} +``` + +

-
Example encoding 3-level nested Go struct to 1 byte CBOR

+

🔎  Example encoding 3-level nested Go struct to 1 byte CBOR

https://go.dev/play/p/YxwvfPdFQG2 @@ -382,13 +479,13 @@ JSON: {"Foo":{"Qux":{}}}

-
Example using several struct tags

+

🔎  Example using struct tag options

![alt text](https://github.com/fxamacker/images/raw/master/cbor/v2.3.0/cbor_struct_tags_api.svg?sanitize=1 "CBOR API and Go Struct Tags")

-Struct tags simplify use of CBOR-based protocols that require CBOR arrays or maps with integer keys. +Struct tag options simplify use of CBOR-based protocols that require CBOR arrays or maps with integer keys. ### CBOR Tags @@ -404,7 +501,7 @@ em, err := opts.EncModeWithSharedTags(ts) // mutable shared CBOR tags `TagSet` and modes using it are safe for concurrent use. Equivalent API is available for `DecMode`. -
Example using TagSet and TagOptions

+

🔎  Example using TagSet and TagOptions

```go // Use signedCWT struct defined in "Decoding CWT" example. @@ -430,16 +527,149 @@ if err := dm.Unmarshal(data, &v); err != nil { em, _ := cbor.EncOptions{}.EncModeWithTags(tags) // Marshal signedCWT with tag number. -if data, err := cbor.Marshal(v); err != nil { +if data, err := em.Marshal(v); err != nil { return err } ```

+👉 `fxamacker/cbor` allows user apps to use almost any current or future CBOR tag number by implementing `cbor.Marshaler` and `cbor.Unmarshaler` interfaces. + +Basically, `MarshalCBOR` and `UnmarshalCBOR` functions can be implemented by user apps and those functions will automatically be called by this CBOR codec's `Marshal`, `Unmarshal`, etc. + +The following [example](https://github.com/fxamacker/cbor/blob/master/example_embedded_json_tag_for_cbor_test.go) shows how to encode and decode a tagged CBOR data item with tag number 262. The tag content is a JSON object "embedded" as a CBOR byte string (major type 2). + +
🔎  Example using Embedded JSON Tag for CBOR (tag 262) + +```go +// https://github.com/fxamacker/cbor/issues/657 + +package cbor_test + +// NOTE: RFC 8949 does not mention tag number 262. IANA assigned +// CBOR tag number 262 as "Embedded JSON Object" specified by the +// document Embedded JSON Tag for CBOR: +// +// "Tag 262 can be applied to a byte string (major type 2) to indicate +// that the byte string is a JSON Object. The length of the byte string +// indicates the content." +// +// For more info, see Embedded JSON Tag for CBOR at: +// https://github.com/toravir/CBOR-Tag-Specs/blob/master/embeddedJSON.md + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/fxamacker/cbor/v2" +) + +// cborTagNumForEmbeddedJSON is the CBOR tag number 262. +const cborTagNumForEmbeddedJSON = 262 + +// EmbeddedJSON represents a Go value to be encoded as a tagged CBOR data item +// with tag number 262 and the tag content is a JSON object "embedded" as a +// CBOR byte string (major type 2). +type EmbeddedJSON struct { + any +} + +func NewEmbeddedJSON(val any) EmbeddedJSON { + return EmbeddedJSON{val} +} + +// MarshalCBOR encodes EmbeddedJSON to a tagged CBOR data item with the +// tag number 262 and the tag content is a JSON object that is +// "embedded" as a CBOR byte string. +func (v EmbeddedJSON) MarshalCBOR() ([]byte, error) { + // Encode v to JSON object. + data, err := json.Marshal(v) + if err != nil { + return nil, err + } + + // Create cbor.Tag representing a tagged CBOR data item. + tag := cbor.Tag{ + Number: cborTagNumForEmbeddedJSON, + Content: data, + } + + // Marshal to a tagged CBOR data item. + return cbor.Marshal(tag) +} + +// UnmarshalCBOR decodes a tagged CBOR data item to EmbeddedJSON. +// The byte slice provided to this function must contain a single +// tagged CBOR data item with the tag number 262 and tag content +// must be a JSON object "embedded" as a CBOR byte string. +func (v *EmbeddedJSON) UnmarshalCBOR(b []byte) error { + // Unmarshal tagged CBOR data item. + var tag cbor.Tag + if err := cbor.Unmarshal(b, &tag); err != nil { + return err + } + + // Check tag number. + if tag.Number != cborTagNumForEmbeddedJSON { + return fmt.Errorf("got tag number %d, expect tag number %d", tag.Number, cborTagNumForEmbeddedJSON) + } + + // Check tag content. + jsonData, isByteString := tag.Content.([]byte) + if !isByteString { + return fmt.Errorf("got tag content type %T, expect tag content []byte", tag.Content) + } + + // Unmarshal JSON object. + return json.Unmarshal(jsonData, v) +} + +// MarshalJSON encodes EmbeddedJSON to a JSON object. +func (v EmbeddedJSON) MarshalJSON() ([]byte, error) { + return json.Marshal(v.any) +} + +// UnmarshalJSON decodes a JSON object. +func (v *EmbeddedJSON) UnmarshalJSON(b []byte) error { + dec := json.NewDecoder(bytes.NewReader(b)) + dec.UseNumber() + return dec.Decode(&v.any) +} + +func Example_embeddedJSONTagForCBOR() { + value := NewEmbeddedJSON(map[string]any{ + "name": "gopher", + "id": json.Number("42"), + }) + + data, err := cbor.Marshal(value) + if err != nil { + panic(err) + } + + fmt.Printf("cbor: %x\n", data) + + var v EmbeddedJSON + err = cbor.Unmarshal(data, &v) + if err != nil { + panic(err) + } + + fmt.Printf("%+v\n", v.any) + for k, v := range v.any.(map[string]any) { + fmt.Printf(" %s: %v (%T)\n", k, v, v) + } +} +``` + +
+ + ### Functions and Interfaces -
Functions and interfaces at a glance

+

🔎  Functions and interfaces at a glance

Common functions with same API as `encoding/json`: - `Marshal`, `Unmarshal` @@ -453,7 +683,7 @@ because RFC 8949 treats CBOR data item with remaining bytes as malformed. Other useful functions: - `Diagnose`, `DiagnoseFirst` produce human-readable [Extended Diagnostic Notation](https://www.rfc-editor.org/rfc/rfc8610.html#appendix-G) from CBOR data. - `UnmarshalFirst` decodes first CBOR data item and return any remaining bytes. -- `Wellformed` returns true if the the CBOR data item is well-formed. +- `Wellformed` returns true if the CBOR data item is well-formed. Interfaces identical or comparable to Go `encoding` packages include: `Marshaler`, `Unmarshaler`, `BinaryMarshaler`, and `BinaryUnmarshaler`. @@ -472,15 +702,28 @@ Default limits may need to be increased for systems handling very large data (e. ## Status -v2.7.0 (June 23, 2024) adds features and improvements that help large projects (e.g. Kubernetes) use CBOR as an alternative to JSON and Protocol Buffers. Other improvements include speedups, improved memory use, bug fixes, new serialization options, etc. It passed fuzz tests (5+ billion executions) and is production quality. +[v2.9.0](https://github.com/fxamacker/cbor/releases/tag/v2.9.0) (Jul 13, 2025) improved interoperability/transcoding between CBOR & JSON, refactored tests, and improved docs. +- Add opt-in support for `encoding.TextMarshaler` and `encoding.TextUnmarshaler` to encode and decode from CBOR text string. +- Add opt-in support for `json.Marshaler` and `json.Unmarshaler` via user-provided transcoding function. +- Update docs for TimeMode, Tag, RawTag, and add example for Embedded JSON Tag for CBOR. + +v2.9.0 passed fuzz tests and is production quality. + +The minimum version of Go required to build: +- v2.8.0 and newer releases require go 1.20+. +- v2.7.1 and older releases require go 1.17+. For more details, see [release notes](https://github.com/fxamacker/cbor/releases). -### Prior Release +### Prior Releases + +[v2.8.0](https://github.com/fxamacker/cbor/releases/tag/v2.8.0) (March 30, 2025) is a small release primarily to add `omitzero` option to struct field tags and fix bugs. It passed fuzz tests (billions of executions) and is production quality. + +[v2.7.0](https://github.com/fxamacker/cbor/releases/tag/v2.7.0) (June 23, 2024) adds features and improvements that help large projects (e.g. Kubernetes) use CBOR as an alternative to JSON and Protocol Buffers. Other improvements include speedups, improved memory use, bug fixes, new serialization options, etc. It passed fuzz tests (5+ billion executions) and is production quality. [v2.6.0](https://github.com/fxamacker/cbor/releases/tag/v2.6.0) (February 2024) adds important new features, optimizations, and bug fixes. It is especially useful to systems that need to convert data between CBOR and JSON. New options and optimizations improve handling of bignum, integers, maps, and strings. -v2.5.0 was released on Sunday, August 13, 2023 with new features and important bug fixes. It is fuzz tested and production quality after extended beta [v2.5.0-beta](https://github.com/fxamacker/cbor/releases/tag/v2.5.0-beta) (Dec 2022) -> [v2.5.0](https://github.com/fxamacker/cbor/releases/tag/v2.5.0) (Aug 2023). +[v2.5.0](https://github.com/fxamacker/cbor/releases/tag/v2.5.0) was released on Sunday, August 13, 2023 with new features and important bug fixes. It is fuzz tested and production quality after extended beta [v2.5.0-beta](https://github.com/fxamacker/cbor/releases/tag/v2.5.0-beta) (Dec 2022) -> [v2.5.0](https://github.com/fxamacker/cbor/releases/tag/v2.5.0) (Aug 2023). __IMPORTANT__: 👉 Before upgrading from v2.4 or older release, please read the notable changes highlighted in the release notes. v2.5.0 is a large release with bug fixes to error handling for extraneous data in `Unmarshal`, etc. that should be reviewed before upgrading. @@ -489,7 +732,7 @@ See [v2.5.0 release notes](https://github.com/fxamacker/cbor/releases/tag/v2.5.0 See ["Version and API Changes"](https://github.com/fxamacker/cbor#versions-and-api-changes) section for more info about version numbering, etc. +## [1.35.0/0.57.0/0.11.0] 2025-03-05 + +This release is the last to support [Go 1.22]. +The next release will require at least [Go 1.23]. + +### Added + +- Add `ValueFromAttribute` and `KeyValueFromAttribute` in `go.opentelemetry.io/otel/log`. (#6180) +- Add `EventName` and `SetEventName` to `Record` in `go.opentelemetry.io/otel/log`. (#6187) +- Add `EventName` to `RecordFactory` in `go.opentelemetry.io/otel/log/logtest`. (#6187) +- `AssertRecordEqual` in `go.opentelemetry.io/otel/log/logtest` checks `Record.EventName`. (#6187) +- Add `EventName` and `SetEventName` to `Record` in `go.opentelemetry.io/otel/sdk/log`. (#6193) +- Add `EventName` to `RecordFactory` in `go.opentelemetry.io/otel/sdk/log/logtest`. (#6193) +- Emit `Record.EventName` field in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc`. (#6211) +- Emit `Record.EventName` field in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#6211) +- Emit `Record.EventName` field in `go.opentelemetry.io/otel/exporters/stdout/stdoutlog` (#6210) +- The `go.opentelemetry.io/otel/semconv/v1.28.0` package. + The package contains semantic conventions from the `v1.28.0` version of the OpenTelemetry Semantic Conventions. + See the [migration documentation](./semconv/v1.28.0/MIGRATION.md) for information on how to upgrade from `go.opentelemetry.io/otel/semconv/v1.27.0`(#6236) +- The `go.opentelemetry.io/otel/semconv/v1.30.0` package. + The package contains semantic conventions from the `v1.30.0` version of the OpenTelemetry Semantic Conventions. + See the [migration documentation](./semconv/v1.30.0/MIGRATION.md) for information on how to upgrade from `go.opentelemetry.io/otel/semconv/v1.28.0`(#6240) +- Document the pitfalls of using `Resource` as a comparable type. + `Resource.Equal` and `Resource.Equivalent` should be used instead. (#6272) +- Support [Go 1.24]. (#6304) +- Add `FilterProcessor` and `EnabledParameters` in `go.opentelemetry.io/otel/sdk/log`. + It replaces `go.opentelemetry.io/otel/sdk/log/internal/x.FilterProcessor`. + Compared to previous version it additionally gives the possibility to filter by resource and instrumentation scope. (#6317) + +### Changed + +- Update `github.com/prometheus/common` to `v0.62.0`, which changes the `NameValidationScheme` to `NoEscaping`. + This allows metrics names to keep original delimiters (e.g. `.`), rather than replacing with underscores. + This is controlled by the `Content-Type` header, or can be reverted by setting `NameValidationScheme` to `LegacyValidation` in `github.com/prometheus/common/model`. (#6198) + +### Fixes + +- Eliminate goroutine leak for the processor returned by `NewSimpleSpanProcessor` in `go.opentelemetry.io/otel/sdk/trace` when `Shutdown` is called and the passed `ctx` is canceled and `SpanExporter.Shutdown` has not returned. (#6368) +- Eliminate goroutine leak for the processor returned by `NewBatchSpanProcessor` in `go.opentelemetry.io/otel/sdk/trace` when `ForceFlush` is called and the passed `ctx` is canceled and `SpanExporter.Export` has not returned. (#6369) + ## [1.34.0/0.56.0/0.10.0] 2025-01-17 ### Changed @@ -3197,7 +3237,8 @@ It contains api and sdk for trace and meter. - CircleCI build CI manifest files. - CODEOWNERS file to track owners of this project. -[Unreleased]: https://github.com/open-telemetry/opentelemetry-go/compare/v1.34.0...HEAD +[Unreleased]: https://github.com/open-telemetry/opentelemetry-go/compare/v1.35.0...HEAD +[1.35.0/0.57.0/0.11.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.35.0 [1.34.0/0.56.0/0.10.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.34.0 [1.33.0/0.55.0/0.9.0/0.0.12]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.33.0 [1.32.0/0.54.0/0.8.0/0.0.11]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.32.0 @@ -3288,6 +3329,7 @@ It contains api and sdk for trace and meter. +[Go 1.24]: https://go.dev/doc/go1.24 [Go 1.23]: https://go.dev/doc/go1.23 [Go 1.22]: https://go.dev/doc/go1.22 [Go 1.21]: https://go.dev/doc/go1.21 diff --git a/vendor/go.opentelemetry.io/otel/CONTRIBUTING.md b/vendor/go.opentelemetry.io/otel/CONTRIBUTING.md index 22a2e9dbd4..7b8af585aa 100644 --- a/vendor/go.opentelemetry.io/otel/CONTRIBUTING.md +++ b/vendor/go.opentelemetry.io/otel/CONTRIBUTING.md @@ -181,6 +181,18 @@ patterns in the spec. For a deeper discussion, see [this](https://github.com/open-telemetry/opentelemetry-specification/issues/165). +## Tests + +Each functionality should be covered by tests. + +Performance-critical functionality should also be covered by benchmarks. + +- Pull requests adding a performance-critical functionality +should have `go test -bench` output in their description. +- Pull requests changing a performance-critical functionality +should have [`benchstat`](https://pkg.go.dev/golang.org/x/perf/cmd/benchstat) +output in their description. + ## Documentation Each (non-internal, non-test) package must be documented using diff --git a/vendor/go.opentelemetry.io/otel/Makefile b/vendor/go.opentelemetry.io/otel/Makefile index a7f6d8cc68..226410d742 100644 --- a/vendor/go.opentelemetry.io/otel/Makefile +++ b/vendor/go.opentelemetry.io/otel/Makefile @@ -11,6 +11,10 @@ ALL_COVERAGE_MOD_DIRS := $(shell find . -type f -name 'go.mod' -exec dirname {} GO = go TIMEOUT = 60 +# User to run as in docker images. +DOCKER_USER=$(shell id -u):$(shell id -g) +DEPENDENCIES_DOCKERFILE=./dependencies.Dockerfile + .DEFAULT_GOAL := precommit .PHONY: precommit ci @@ -81,20 +85,20 @@ PIP := $(PYTOOLS)/pip WORKDIR := /workdir # The python image to use for the virtual environment. -PYTHONIMAGE := python:3.11.3-slim-bullseye +PYTHONIMAGE := $(shell awk '$$4=="python" {print $$2}' $(DEPENDENCIES_DOCKERFILE)) # Run the python image with the current directory mounted. -DOCKERPY := docker run --rm -v "$(CURDIR):$(WORKDIR)" -w $(WORKDIR) $(PYTHONIMAGE) +DOCKERPY := docker run --rm -u $(DOCKER_USER) -v "$(CURDIR):$(WORKDIR)" -w $(WORKDIR) $(PYTHONIMAGE) # Create a virtual environment for Python tools. $(PYTOOLS): # The `--upgrade` flag is needed to ensure that the virtual environment is # created with the latest pip version. - @$(DOCKERPY) bash -c "python3 -m venv $(VENVDIR) && $(PIP) install --upgrade pip" + @$(DOCKERPY) bash -c "python3 -m venv $(VENVDIR) && $(PIP) install --upgrade --cache-dir=$(WORKDIR)/.cache/pip pip" # Install python packages into the virtual environment. $(PYTOOLS)/%: $(PYTOOLS) - @$(DOCKERPY) $(PIP) install -r requirements.txt + @$(DOCKERPY) $(PIP) install --cache-dir=$(WORKDIR)/.cache/pip -r requirements.txt CODESPELL = $(PYTOOLS)/codespell $(CODESPELL): PACKAGE=codespell @@ -119,7 +123,7 @@ vanity-import-fix: $(PORTO) # Generate go.work file for local development. .PHONY: go-work go-work: $(CROSSLINK) - $(CROSSLINK) work --root=$(shell pwd) + $(CROSSLINK) work --root=$(shell pwd) --go=1.22.7 # Build @@ -265,13 +269,30 @@ check-clean-work-tree: exit 1; \ fi +# The weaver docker image to use for semconv-generate. +WEAVER_IMAGE := $(shell awk '$$4=="weaver" {print $$2}' $(DEPENDENCIES_DOCKERFILE)) + SEMCONVPKG ?= "semconv/" .PHONY: semconv-generate -semconv-generate: $(SEMCONVGEN) $(SEMCONVKIT) +semconv-generate: $(SEMCONVKIT) [ "$(TAG)" ] || ( echo "TAG unset: missing opentelemetry semantic-conventions tag"; exit 1 ) - [ "$(OTEL_SEMCONV_REPO)" ] || ( echo "OTEL_SEMCONV_REPO unset: missing path to opentelemetry semantic-conventions repo"; exit 1 ) - $(SEMCONVGEN) -i "$(OTEL_SEMCONV_REPO)/model/." --only=attribute_group -p conventionType=trace -f attribute_group.go -z "$(SEMCONVPKG)/capitalizations.txt" -t "$(SEMCONVPKG)/template.j2" -s "$(TAG)" - $(SEMCONVGEN) -i "$(OTEL_SEMCONV_REPO)/model/." --only=metric -f metric.go -t "$(SEMCONVPKG)/metric_template.j2" -s "$(TAG)" + # Ensure the target directory for source code is available. + mkdir -p $(PWD)/$(SEMCONVPKG)/${TAG} + # Note: We mount a home directory for downloading/storing the semconv repository. + # Weaver will automatically clean the cache when finished, but the directories will remain. + mkdir -p ~/.weaver + docker run --rm \ + -u $(DOCKER_USER) \ + --env HOME=/tmp/weaver \ + --mount 'type=bind,source=$(PWD)/semconv,target=/home/weaver/templates/registry/go,readonly' \ + --mount 'type=bind,source=$(PWD)/semconv/${TAG},target=/home/weaver/target' \ + --mount 'type=bind,source=$(HOME)/.weaver,target=/tmp/weaver/.weaver' \ + $(WEAVER_IMAGE) registry generate \ + --registry=https://github.com/open-telemetry/semantic-conventions/archive/refs/tags/$(TAG).zip[model] \ + --templates=/home/weaver/templates \ + --param tag=$(TAG) \ + go \ + /home/weaver/target $(SEMCONVKIT) -output "$(SEMCONVPKG)/$(TAG)" -tag "$(TAG)" .PHONY: gorelease diff --git a/vendor/go.opentelemetry.io/otel/README.md b/vendor/go.opentelemetry.io/otel/README.md index d9a1920762..8421cd7e59 100644 --- a/vendor/go.opentelemetry.io/otel/README.md +++ b/vendor/go.opentelemetry.io/otel/README.md @@ -4,6 +4,8 @@ [![codecov.io](https://codecov.io/gh/open-telemetry/opentelemetry-go/coverage.svg?branch=main)](https://app.codecov.io/gh/open-telemetry/opentelemetry-go?branch=main) [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel)](https://pkg.go.dev/go.opentelemetry.io/otel) [![Go Report Card](https://goreportcard.com/badge/go.opentelemetry.io/otel)](https://goreportcard.com/report/go.opentelemetry.io/otel) +[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/open-telemetry/opentelemetry-go/badge)](https://scorecard.dev/viewer/?uri=github.com/open-telemetry/opentelemetry-go) +[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/9996/badge)](https://www.bestpractices.dev/projects/9996) [![Slack](https://img.shields.io/badge/slack-@cncf/otel--go-brightgreen.svg?logo=slack)](https://cloud-native.slack.com/archives/C01NPAXACKT) OpenTelemetry-Go is the [Go](https://golang.org/) implementation of [OpenTelemetry](https://opentelemetry.io/). @@ -49,18 +51,25 @@ Currently, this project supports the following environments. | OS | Go Version | Architecture | |----------|------------|--------------| +| Ubuntu | 1.24 | amd64 | | Ubuntu | 1.23 | amd64 | | Ubuntu | 1.22 | amd64 | +| Ubuntu | 1.24 | 386 | | Ubuntu | 1.23 | 386 | | Ubuntu | 1.22 | 386 | -| Linux | 1.23 | arm64 | -| Linux | 1.22 | arm64 | +| Ubuntu | 1.24 | arm64 | +| Ubuntu | 1.23 | arm64 | +| Ubuntu | 1.22 | arm64 | +| macOS 13 | 1.24 | amd64 | | macOS 13 | 1.23 | amd64 | | macOS 13 | 1.22 | amd64 | +| macOS | 1.24 | arm64 | | macOS | 1.23 | arm64 | | macOS | 1.22 | arm64 | +| Windows | 1.24 | amd64 | | Windows | 1.23 | amd64 | | Windows | 1.22 | amd64 | +| Windows | 1.24 | 386 | | Windows | 1.23 | 386 | | Windows | 1.22 | 386 | diff --git a/vendor/go.opentelemetry.io/otel/RELEASING.md b/vendor/go.opentelemetry.io/otel/RELEASING.md index 4ebef4f9dd..1e13ae54f7 100644 --- a/vendor/go.opentelemetry.io/otel/RELEASING.md +++ b/vendor/go.opentelemetry.io/otel/RELEASING.md @@ -5,17 +5,14 @@ New versions of the [OpenTelemetry Semantic Conventions] mean new versions of the `semconv` package need to be generated. The `semconv-generate` make target is used for this. -1. Checkout a local copy of the [OpenTelemetry Semantic Conventions] to the desired release tag. -2. Pull the latest `otel/semconvgen` image: `docker pull otel/semconvgen:latest` -3. Run the `make semconv-generate ...` target from this repository. +1. Set the `TAG` environment variable to the semantic convention tag you want to generate. +2. Run the `make semconv-generate ...` target from this repository. For example, ```sh -export TAG="v1.21.0" # Change to the release version you are generating. -export OTEL_SEMCONV_REPO="/absolute/path/to/opentelemetry/semantic-conventions" -docker pull otel/semconvgen:latest -make semconv-generate # Uses the exported TAG and OTEL_SEMCONV_REPO. +export TAG="v1.30.0" # Change to the release version you are generating. +make semconv-generate # Uses the exported TAG. ``` This should create a new sub-package of [`semconv`](./semconv). diff --git a/vendor/go.opentelemetry.io/otel/dependencies.Dockerfile b/vendor/go.opentelemetry.io/otel/dependencies.Dockerfile new file mode 100644 index 0000000000..e4c4a753c8 --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/dependencies.Dockerfile @@ -0,0 +1,3 @@ +# This is a renovate-friendly source of Docker images. +FROM python:3.13.2-slim-bullseye@sha256:31b581c8218e1f3c58672481b3b7dba8e898852866b408c6a984c22832523935 AS python +FROM otel/weaver:v0.13.2@sha256:ae7346b992e477f629ea327e0979e8a416a97f7956ab1f7e95ac1f44edf1a893 AS weaver diff --git a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/client.go b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/client.go index 2171bee3c8..8409b5f8f9 100644 --- a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/client.go +++ b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/client.go @@ -294,7 +294,7 @@ func (c *client) MarshalLog() interface{} { Type string Endpoint string }{ - Type: "otlphttpgrpc", + Type: "otlptracegrpc", Endpoint: c.endpoint, } } diff --git a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/version.go b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/version.go index 8ea156a098..f156ee6672 100644 --- a/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/version.go +++ b/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/version.go @@ -5,5 +5,5 @@ package otlptrace // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace" // Version is the current release version of the OpenTelemetry OTLP trace exporter in use. func Version() string { - return "1.33.0" + return "1.34.0" } diff --git a/vendor/go.opentelemetry.io/otel/renovate.json b/vendor/go.opentelemetry.io/otel/renovate.json index 4f80c898a1..a6fa353f95 100644 --- a/vendor/go.opentelemetry.io/otel/renovate.json +++ b/vendor/go.opentelemetry.io/otel/renovate.json @@ -1,7 +1,7 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:recommended" + "config:best-practices" ], "ignorePaths": [], "labels": ["Skip Changelog", "dependencies"], @@ -14,6 +14,10 @@ "matchDepTypes": ["indirect"], "enabled": true }, + { + "matchPackageNames": ["go.opentelemetry.io/build-tools/**"], + "groupName": "build-tools" + }, { "matchPackageNames": ["google.golang.org/genproto/googleapis/**"], "groupName": "googleapis" diff --git a/vendor/go.opentelemetry.io/otel/requirements.txt b/vendor/go.opentelemetry.io/otel/requirements.txt index ab09daf9d5..1bb55fb1cc 100644 --- a/vendor/go.opentelemetry.io/otel/requirements.txt +++ b/vendor/go.opentelemetry.io/otel/requirements.txt @@ -1 +1 @@ -codespell==2.3.0 +codespell==2.4.1 diff --git a/vendor/go.opentelemetry.io/otel/trace/auto.go b/vendor/go.opentelemetry.io/otel/trace/auto.go new file mode 100644 index 0000000000..7e2910025a --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/auto.go @@ -0,0 +1,661 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package trace // import "go.opentelemetry.io/otel/trace" + +import ( + "context" + "encoding/json" + "fmt" + "math" + "os" + "reflect" + "runtime" + "strconv" + "strings" + "sync" + "sync/atomic" + "time" + "unicode/utf8" + + "go.opentelemetry.io/otel/attribute" + "go.opentelemetry.io/otel/codes" + semconv "go.opentelemetry.io/otel/semconv/v1.26.0" + "go.opentelemetry.io/otel/trace/embedded" + "go.opentelemetry.io/otel/trace/internal/telemetry" +) + +// newAutoTracerProvider returns an auto-instrumentable [trace.TracerProvider]. +// If an [go.opentelemetry.io/auto.Instrumentation] is configured to instrument +// the process using the returned TracerProvider, all of the telemetry it +// produces will be processed and handled by that Instrumentation. By default, +// if no Instrumentation instruments the TracerProvider it will not generate +// any trace telemetry. +func newAutoTracerProvider() TracerProvider { return tracerProviderInstance } + +var tracerProviderInstance = new(autoTracerProvider) + +type autoTracerProvider struct{ embedded.TracerProvider } + +var _ TracerProvider = autoTracerProvider{} + +func (p autoTracerProvider) Tracer(name string, opts ...TracerOption) Tracer { + cfg := NewTracerConfig(opts...) + return autoTracer{ + name: name, + version: cfg.InstrumentationVersion(), + schemaURL: cfg.SchemaURL(), + } +} + +type autoTracer struct { + embedded.Tracer + + name, schemaURL, version string +} + +var _ Tracer = autoTracer{} + +func (t autoTracer) Start(ctx context.Context, name string, opts ...SpanStartOption) (context.Context, Span) { + var psc SpanContext + sampled := true + span := new(autoSpan) + + // Ask eBPF for sampling decision and span context info. + t.start(ctx, span, &psc, &sampled, &span.spanContext) + + span.sampled.Store(sampled) + + ctx = ContextWithSpan(ctx, span) + + if sampled { + // Only build traces if sampled. + cfg := NewSpanStartConfig(opts...) + span.traces, span.span = t.traces(name, cfg, span.spanContext, psc) + } + + return ctx, span +} + +// Expected to be implemented in eBPF. +// +//go:noinline +func (t *autoTracer) start( + ctx context.Context, + spanPtr *autoSpan, + psc *SpanContext, + sampled *bool, + sc *SpanContext, +) { + start(ctx, spanPtr, psc, sampled, sc) +} + +// start is used for testing. +var start = func(context.Context, *autoSpan, *SpanContext, *bool, *SpanContext) {} + +func (t autoTracer) traces(name string, cfg SpanConfig, sc, psc SpanContext) (*telemetry.Traces, *telemetry.Span) { + span := &telemetry.Span{ + TraceID: telemetry.TraceID(sc.TraceID()), + SpanID: telemetry.SpanID(sc.SpanID()), + Flags: uint32(sc.TraceFlags()), + TraceState: sc.TraceState().String(), + ParentSpanID: telemetry.SpanID(psc.SpanID()), + Name: name, + Kind: spanKind(cfg.SpanKind()), + } + + span.Attrs, span.DroppedAttrs = convCappedAttrs(maxSpan.Attrs, cfg.Attributes()) + + links := cfg.Links() + if limit := maxSpan.Links; limit == 0 { + n := int64(len(links)) + if n > 0 { + span.DroppedLinks = uint32(min(n, math.MaxUint32)) // nolint: gosec // Bounds checked. + } + } else { + if limit > 0 { + n := int64(max(len(links)-limit, 0)) + span.DroppedLinks = uint32(min(n, math.MaxUint32)) // nolint: gosec // Bounds checked. + links = links[n:] + } + span.Links = convLinks(links) + } + + if t := cfg.Timestamp(); !t.IsZero() { + span.StartTime = cfg.Timestamp() + } else { + span.StartTime = time.Now() + } + + return &telemetry.Traces{ + ResourceSpans: []*telemetry.ResourceSpans{ + { + ScopeSpans: []*telemetry.ScopeSpans{ + { + Scope: &telemetry.Scope{ + Name: t.name, + Version: t.version, + }, + Spans: []*telemetry.Span{span}, + SchemaURL: t.schemaURL, + }, + }, + }, + }, + }, span +} + +func spanKind(kind SpanKind) telemetry.SpanKind { + switch kind { + case SpanKindInternal: + return telemetry.SpanKindInternal + case SpanKindServer: + return telemetry.SpanKindServer + case SpanKindClient: + return telemetry.SpanKindClient + case SpanKindProducer: + return telemetry.SpanKindProducer + case SpanKindConsumer: + return telemetry.SpanKindConsumer + } + return telemetry.SpanKind(0) // undefined. +} + +type autoSpan struct { + embedded.Span + + spanContext SpanContext + sampled atomic.Bool + + mu sync.Mutex + traces *telemetry.Traces + span *telemetry.Span +} + +func (s *autoSpan) SpanContext() SpanContext { + if s == nil { + return SpanContext{} + } + // s.spanContext is immutable, do not acquire lock s.mu. + return s.spanContext +} + +func (s *autoSpan) IsRecording() bool { + if s == nil { + return false + } + + return s.sampled.Load() +} + +func (s *autoSpan) SetStatus(c codes.Code, msg string) { + if s == nil || !s.sampled.Load() { + return + } + + s.mu.Lock() + defer s.mu.Unlock() + + if s.span.Status == nil { + s.span.Status = new(telemetry.Status) + } + + s.span.Status.Message = msg + + switch c { + case codes.Unset: + s.span.Status.Code = telemetry.StatusCodeUnset + case codes.Error: + s.span.Status.Code = telemetry.StatusCodeError + case codes.Ok: + s.span.Status.Code = telemetry.StatusCodeOK + } +} + +func (s *autoSpan) SetAttributes(attrs ...attribute.KeyValue) { + if s == nil || !s.sampled.Load() { + return + } + + s.mu.Lock() + defer s.mu.Unlock() + + limit := maxSpan.Attrs + if limit == 0 { + // No attributes allowed. + n := int64(len(attrs)) + if n > 0 { + s.span.DroppedAttrs += uint32(min(n, math.MaxUint32)) // nolint: gosec // Bounds checked. + } + return + } + + m := make(map[string]int) + for i, a := range s.span.Attrs { + m[a.Key] = i + } + + for _, a := range attrs { + val := convAttrValue(a.Value) + if val.Empty() { + s.span.DroppedAttrs++ + continue + } + + if idx, ok := m[string(a.Key)]; ok { + s.span.Attrs[idx] = telemetry.Attr{ + Key: string(a.Key), + Value: val, + } + } else if limit < 0 || len(s.span.Attrs) < limit { + s.span.Attrs = append(s.span.Attrs, telemetry.Attr{ + Key: string(a.Key), + Value: val, + }) + m[string(a.Key)] = len(s.span.Attrs) - 1 + } else { + s.span.DroppedAttrs++ + } + } +} + +// convCappedAttrs converts up to limit attrs into a []telemetry.Attr. The +// number of dropped attributes is also returned. +func convCappedAttrs(limit int, attrs []attribute.KeyValue) ([]telemetry.Attr, uint32) { + n := len(attrs) + if limit == 0 { + var out uint32 + if n > 0 { + out = uint32(min(int64(n), math.MaxUint32)) // nolint: gosec // Bounds checked. + } + return nil, out + } + + if limit < 0 { + // Unlimited. + return convAttrs(attrs), 0 + } + + if n < 0 { + n = 0 + } + + limit = min(n, limit) + return convAttrs(attrs[:limit]), uint32(n - limit) // nolint: gosec // Bounds checked. +} + +func convAttrs(attrs []attribute.KeyValue) []telemetry.Attr { + if len(attrs) == 0 { + // Avoid allocations if not necessary. + return nil + } + + out := make([]telemetry.Attr, 0, len(attrs)) + for _, attr := range attrs { + key := string(attr.Key) + val := convAttrValue(attr.Value) + if val.Empty() { + continue + } + out = append(out, telemetry.Attr{Key: key, Value: val}) + } + return out +} + +func convAttrValue(value attribute.Value) telemetry.Value { + switch value.Type() { + case attribute.BOOL: + return telemetry.BoolValue(value.AsBool()) + case attribute.INT64: + return telemetry.Int64Value(value.AsInt64()) + case attribute.FLOAT64: + return telemetry.Float64Value(value.AsFloat64()) + case attribute.STRING: + v := truncate(maxSpan.AttrValueLen, value.AsString()) + return telemetry.StringValue(v) + case attribute.BOOLSLICE: + slice := value.AsBoolSlice() + out := make([]telemetry.Value, 0, len(slice)) + for _, v := range slice { + out = append(out, telemetry.BoolValue(v)) + } + return telemetry.SliceValue(out...) + case attribute.INT64SLICE: + slice := value.AsInt64Slice() + out := make([]telemetry.Value, 0, len(slice)) + for _, v := range slice { + out = append(out, telemetry.Int64Value(v)) + } + return telemetry.SliceValue(out...) + case attribute.FLOAT64SLICE: + slice := value.AsFloat64Slice() + out := make([]telemetry.Value, 0, len(slice)) + for _, v := range slice { + out = append(out, telemetry.Float64Value(v)) + } + return telemetry.SliceValue(out...) + case attribute.STRINGSLICE: + slice := value.AsStringSlice() + out := make([]telemetry.Value, 0, len(slice)) + for _, v := range slice { + v = truncate(maxSpan.AttrValueLen, v) + out = append(out, telemetry.StringValue(v)) + } + return telemetry.SliceValue(out...) + } + return telemetry.Value{} +} + +// truncate returns a truncated version of s such that it contains less than +// the limit number of characters. Truncation is applied by returning the limit +// number of valid characters contained in s. +// +// If limit is negative, it returns the original string. +// +// UTF-8 is supported. When truncating, all invalid characters are dropped +// before applying truncation. +// +// If s already contains less than the limit number of bytes, it is returned +// unchanged. No invalid characters are removed. +func truncate(limit int, s string) string { + // This prioritize performance in the following order based on the most + // common expected use-cases. + // + // - Short values less than the default limit (128). + // - Strings with valid encodings that exceed the limit. + // - No limit. + // - Strings with invalid encodings that exceed the limit. + if limit < 0 || len(s) <= limit { + return s + } + + // Optimistically, assume all valid UTF-8. + var b strings.Builder + count := 0 + for i, c := range s { + if c != utf8.RuneError { + count++ + if count > limit { + return s[:i] + } + continue + } + + _, size := utf8.DecodeRuneInString(s[i:]) + if size == 1 { + // Invalid encoding. + b.Grow(len(s) - 1) + _, _ = b.WriteString(s[:i]) + s = s[i:] + break + } + } + + // Fast-path, no invalid input. + if b.Cap() == 0 { + return s + } + + // Truncate while validating UTF-8. + for i := 0; i < len(s) && count < limit; { + c := s[i] + if c < utf8.RuneSelf { + // Optimization for single byte runes (common case). + _ = b.WriteByte(c) + i++ + count++ + continue + } + + _, size := utf8.DecodeRuneInString(s[i:]) + if size == 1 { + // We checked for all 1-byte runes above, this is a RuneError. + i++ + continue + } + + _, _ = b.WriteString(s[i : i+size]) + i += size + count++ + } + + return b.String() +} + +func (s *autoSpan) End(opts ...SpanEndOption) { + if s == nil || !s.sampled.Swap(false) { + return + } + + // s.end exists so the lock (s.mu) is not held while s.ended is called. + s.ended(s.end(opts)) +} + +func (s *autoSpan) end(opts []SpanEndOption) []byte { + s.mu.Lock() + defer s.mu.Unlock() + + cfg := NewSpanEndConfig(opts...) + if t := cfg.Timestamp(); !t.IsZero() { + s.span.EndTime = cfg.Timestamp() + } else { + s.span.EndTime = time.Now() + } + + b, _ := json.Marshal(s.traces) // TODO: do not ignore this error. + return b +} + +// Expected to be implemented in eBPF. +// +//go:noinline +func (*autoSpan) ended(buf []byte) { ended(buf) } + +// ended is used for testing. +var ended = func([]byte) {} + +func (s *autoSpan) RecordError(err error, opts ...EventOption) { + if s == nil || err == nil || !s.sampled.Load() { + return + } + + cfg := NewEventConfig(opts...) + + attrs := cfg.Attributes() + attrs = append(attrs, + semconv.ExceptionType(typeStr(err)), + semconv.ExceptionMessage(err.Error()), + ) + if cfg.StackTrace() { + buf := make([]byte, 2048) + n := runtime.Stack(buf, false) + attrs = append(attrs, semconv.ExceptionStacktrace(string(buf[0:n]))) + } + + s.mu.Lock() + defer s.mu.Unlock() + + s.addEvent(semconv.ExceptionEventName, cfg.Timestamp(), attrs) +} + +func typeStr(i any) string { + t := reflect.TypeOf(i) + if t.PkgPath() == "" && t.Name() == "" { + // Likely a builtin type. + return t.String() + } + return fmt.Sprintf("%s.%s", t.PkgPath(), t.Name()) +} + +func (s *autoSpan) AddEvent(name string, opts ...EventOption) { + if s == nil || !s.sampled.Load() { + return + } + + cfg := NewEventConfig(opts...) + + s.mu.Lock() + defer s.mu.Unlock() + + s.addEvent(name, cfg.Timestamp(), cfg.Attributes()) +} + +// addEvent adds an event with name and attrs at tStamp to the span. The span +// lock (s.mu) needs to be held by the caller. +func (s *autoSpan) addEvent(name string, tStamp time.Time, attrs []attribute.KeyValue) { + limit := maxSpan.Events + + if limit == 0 { + s.span.DroppedEvents++ + return + } + + if limit > 0 && len(s.span.Events) == limit { + // Drop head while avoiding allocation of more capacity. + copy(s.span.Events[:limit-1], s.span.Events[1:]) + s.span.Events = s.span.Events[:limit-1] + s.span.DroppedEvents++ + } + + e := &telemetry.SpanEvent{Time: tStamp, Name: name} + e.Attrs, e.DroppedAttrs = convCappedAttrs(maxSpan.EventAttrs, attrs) + + s.span.Events = append(s.span.Events, e) +} + +func (s *autoSpan) AddLink(link Link) { + if s == nil || !s.sampled.Load() { + return + } + + l := maxSpan.Links + + s.mu.Lock() + defer s.mu.Unlock() + + if l == 0 { + s.span.DroppedLinks++ + return + } + + if l > 0 && len(s.span.Links) == l { + // Drop head while avoiding allocation of more capacity. + copy(s.span.Links[:l-1], s.span.Links[1:]) + s.span.Links = s.span.Links[:l-1] + s.span.DroppedLinks++ + } + + s.span.Links = append(s.span.Links, convLink(link)) +} + +func convLinks(links []Link) []*telemetry.SpanLink { + out := make([]*telemetry.SpanLink, 0, len(links)) + for _, link := range links { + out = append(out, convLink(link)) + } + return out +} + +func convLink(link Link) *telemetry.SpanLink { + l := &telemetry.SpanLink{ + TraceID: telemetry.TraceID(link.SpanContext.TraceID()), + SpanID: telemetry.SpanID(link.SpanContext.SpanID()), + TraceState: link.SpanContext.TraceState().String(), + Flags: uint32(link.SpanContext.TraceFlags()), + } + l.Attrs, l.DroppedAttrs = convCappedAttrs(maxSpan.LinkAttrs, link.Attributes) + + return l +} + +func (s *autoSpan) SetName(name string) { + if s == nil || !s.sampled.Load() { + return + } + + s.mu.Lock() + defer s.mu.Unlock() + + s.span.Name = name +} + +func (*autoSpan) TracerProvider() TracerProvider { return newAutoTracerProvider() } + +// maxSpan are the span limits resolved during startup. +var maxSpan = newSpanLimits() + +type spanLimits struct { + // Attrs is the number of allowed attributes for a span. + // + // This is resolved from the environment variable value for the + // OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT key if it exists. Otherwise, the + // environment variable value for OTEL_ATTRIBUTE_COUNT_LIMIT, or 128 if + // that is not set, is used. + Attrs int + // AttrValueLen is the maximum attribute value length allowed for a span. + // + // This is resolved from the environment variable value for the + // OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT key if it exists. Otherwise, the + // environment variable value for OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT, or -1 + // if that is not set, is used. + AttrValueLen int + // Events is the number of allowed events for a span. + // + // This is resolved from the environment variable value for the + // OTEL_SPAN_EVENT_COUNT_LIMIT key, or 128 is used if that is not set. + Events int + // EventAttrs is the number of allowed attributes for a span event. + // + // The is resolved from the environment variable value for the + // OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT key, or 128 is used if that is not set. + EventAttrs int + // Links is the number of allowed Links for a span. + // + // This is resolved from the environment variable value for the + // OTEL_SPAN_LINK_COUNT_LIMIT, or 128 is used if that is not set. + Links int + // LinkAttrs is the number of allowed attributes for a span link. + // + // This is resolved from the environment variable value for the + // OTEL_LINK_ATTRIBUTE_COUNT_LIMIT, or 128 is used if that is not set. + LinkAttrs int +} + +func newSpanLimits() spanLimits { + return spanLimits{ + Attrs: firstEnv( + 128, + "OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT", + "OTEL_ATTRIBUTE_COUNT_LIMIT", + ), + AttrValueLen: firstEnv( + -1, // Unlimited. + "OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT", + "OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT", + ), + Events: firstEnv(128, "OTEL_SPAN_EVENT_COUNT_LIMIT"), + EventAttrs: firstEnv(128, "OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT"), + Links: firstEnv(128, "OTEL_SPAN_LINK_COUNT_LIMIT"), + LinkAttrs: firstEnv(128, "OTEL_LINK_ATTRIBUTE_COUNT_LIMIT"), + } +} + +// firstEnv returns the parsed integer value of the first matching environment +// variable from keys. The defaultVal is returned if the value is not an +// integer or no match is found. +func firstEnv(defaultVal int, keys ...string) int { + for _, key := range keys { + strV := os.Getenv(key) + if strV == "" { + continue + } + + v, err := strconv.Atoi(strV) + if err == nil { + return v + } + // Ignore invalid environment variable. + } + + return defaultVal +} diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/attr.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/attr.go new file mode 100644 index 0000000000..f663547b4e --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/attr.go @@ -0,0 +1,58 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry" + +// Attr is a key-value pair. +type Attr struct { + Key string `json:"key,omitempty"` + Value Value `json:"value,omitempty"` +} + +// String returns an Attr for a string value. +func String(key, value string) Attr { + return Attr{key, StringValue(value)} +} + +// Int64 returns an Attr for an int64 value. +func Int64(key string, value int64) Attr { + return Attr{key, Int64Value(value)} +} + +// Int returns an Attr for an int value. +func Int(key string, value int) Attr { + return Int64(key, int64(value)) +} + +// Float64 returns an Attr for a float64 value. +func Float64(key string, value float64) Attr { + return Attr{key, Float64Value(value)} +} + +// Bool returns an Attr for a bool value. +func Bool(key string, value bool) Attr { + return Attr{key, BoolValue(value)} +} + +// Bytes returns an Attr for a []byte value. +// The passed slice must not be changed after it is passed. +func Bytes(key string, value []byte) Attr { + return Attr{key, BytesValue(value)} +} + +// Slice returns an Attr for a []Value value. +// The passed slice must not be changed after it is passed. +func Slice(key string, value ...Value) Attr { + return Attr{key, SliceValue(value...)} +} + +// Map returns an Attr for a map value. +// The passed slice must not be changed after it is passed. +func Map(key string, value ...Attr) Attr { + return Attr{key, MapValue(value...)} +} + +// Equal returns if a is equal to b. +func (a Attr) Equal(b Attr) bool { + return a.Key == b.Key && a.Value.Equal(b.Value) +} diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/doc.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/doc.go new file mode 100644 index 0000000000..5debe90bbb --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/doc.go @@ -0,0 +1,8 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +/* +Package telemetry provides a lightweight representations of OpenTelemetry +telemetry that is compatible with the OTLP JSON protobuf encoding. +*/ +package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry" diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/id.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/id.go new file mode 100644 index 0000000000..7b1ae3c4ea --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/id.go @@ -0,0 +1,103 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry" + +import ( + "encoding/hex" + "errors" + "fmt" +) + +const ( + traceIDSize = 16 + spanIDSize = 8 +) + +// TraceID is a custom data type that is used for all trace IDs. +type TraceID [traceIDSize]byte + +// String returns the hex string representation form of a TraceID. +func (tid TraceID) String() string { + return hex.EncodeToString(tid[:]) +} + +// IsEmpty returns false if id contains at least one non-zero byte. +func (tid TraceID) IsEmpty() bool { + return tid == [traceIDSize]byte{} +} + +// MarshalJSON converts the trace ID into a hex string enclosed in quotes. +func (tid TraceID) MarshalJSON() ([]byte, error) { + if tid.IsEmpty() { + return []byte(`""`), nil + } + return marshalJSON(tid[:]) +} + +// UnmarshalJSON inflates the trace ID from hex string, possibly enclosed in +// quotes. +func (tid *TraceID) UnmarshalJSON(data []byte) error { + *tid = [traceIDSize]byte{} + return unmarshalJSON(tid[:], data) +} + +// SpanID is a custom data type that is used for all span IDs. +type SpanID [spanIDSize]byte + +// String returns the hex string representation form of a SpanID. +func (sid SpanID) String() string { + return hex.EncodeToString(sid[:]) +} + +// IsEmpty returns true if the span ID contains at least one non-zero byte. +func (sid SpanID) IsEmpty() bool { + return sid == [spanIDSize]byte{} +} + +// MarshalJSON converts span ID into a hex string enclosed in quotes. +func (sid SpanID) MarshalJSON() ([]byte, error) { + if sid.IsEmpty() { + return []byte(`""`), nil + } + return marshalJSON(sid[:]) +} + +// UnmarshalJSON decodes span ID from hex string, possibly enclosed in quotes. +func (sid *SpanID) UnmarshalJSON(data []byte) error { + *sid = [spanIDSize]byte{} + return unmarshalJSON(sid[:], data) +} + +// marshalJSON converts id into a hex string enclosed in quotes. +func marshalJSON(id []byte) ([]byte, error) { + // Plus 2 quote chars at the start and end. + hexLen := hex.EncodedLen(len(id)) + 2 + + b := make([]byte, hexLen) + hex.Encode(b[1:hexLen-1], id) + b[0], b[hexLen-1] = '"', '"' + + return b, nil +} + +// unmarshalJSON inflates trace id from hex string, possibly enclosed in quotes. +func unmarshalJSON(dst []byte, src []byte) error { + if l := len(src); l >= 2 && src[0] == '"' && src[l-1] == '"' { + src = src[1 : l-1] + } + nLen := len(src) + if nLen == 0 { + return nil + } + + if len(dst) != hex.DecodedLen(nLen) { + return errors.New("invalid length for ID") + } + + _, err := hex.Decode(dst, src) + if err != nil { + return fmt.Errorf("cannot unmarshal ID from string '%s': %w", string(src), err) + } + return nil +} diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/number.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/number.go new file mode 100644 index 0000000000..f5e3a8cec9 --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/number.go @@ -0,0 +1,67 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry" + +import ( + "encoding/json" + "strconv" +) + +// protoInt64 represents the protobuf encoding of integers which can be either +// strings or integers. +type protoInt64 int64 + +// Int64 returns the protoInt64 as an int64. +func (i *protoInt64) Int64() int64 { return int64(*i) } + +// UnmarshalJSON decodes both strings and integers. +func (i *protoInt64) UnmarshalJSON(data []byte) error { + if data[0] == '"' { + var str string + if err := json.Unmarshal(data, &str); err != nil { + return err + } + parsedInt, err := strconv.ParseInt(str, 10, 64) + if err != nil { + return err + } + *i = protoInt64(parsedInt) + } else { + var parsedInt int64 + if err := json.Unmarshal(data, &parsedInt); err != nil { + return err + } + *i = protoInt64(parsedInt) + } + return nil +} + +// protoUint64 represents the protobuf encoding of integers which can be either +// strings or integers. +type protoUint64 uint64 + +// Int64 returns the protoUint64 as a uint64. +func (i *protoUint64) Uint64() uint64 { return uint64(*i) } + +// UnmarshalJSON decodes both strings and integers. +func (i *protoUint64) UnmarshalJSON(data []byte) error { + if data[0] == '"' { + var str string + if err := json.Unmarshal(data, &str); err != nil { + return err + } + parsedUint, err := strconv.ParseUint(str, 10, 64) + if err != nil { + return err + } + *i = protoUint64(parsedUint) + } else { + var parsedUint uint64 + if err := json.Unmarshal(data, &parsedUint); err != nil { + return err + } + *i = protoUint64(parsedUint) + } + return nil +} diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/resource.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/resource.go new file mode 100644 index 0000000000..1798a702d4 --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/resource.go @@ -0,0 +1,66 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry" + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// Resource information. +type Resource struct { + // Attrs are the set of attributes that describe the resource. Attribute + // keys MUST be unique (it is not allowed to have more than one attribute + // with the same key). + Attrs []Attr `json:"attributes,omitempty"` + // DroppedAttrs is the number of dropped attributes. If the value + // is 0, then no attributes were dropped. + DroppedAttrs uint32 `json:"droppedAttributesCount,omitempty"` +} + +// UnmarshalJSON decodes the OTLP formatted JSON contained in data into r. +func (r *Resource) UnmarshalJSON(data []byte) error { + decoder := json.NewDecoder(bytes.NewReader(data)) + + t, err := decoder.Token() + if err != nil { + return err + } + if t != json.Delim('{') { + return errors.New("invalid Resource type") + } + + for decoder.More() { + keyIface, err := decoder.Token() + if err != nil { + if errors.Is(err, io.EOF) { + // Empty. + return nil + } + return err + } + + key, ok := keyIface.(string) + if !ok { + return fmt.Errorf("invalid Resource field: %#v", keyIface) + } + + switch key { + case "attributes": + err = decoder.Decode(&r.Attrs) + case "droppedAttributesCount", "dropped_attributes_count": + err = decoder.Decode(&r.DroppedAttrs) + default: + // Skip unknown. + } + + if err != nil { + return err + } + } + return nil +} diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/scope.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/scope.go new file mode 100644 index 0000000000..c2b4c635b7 --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/scope.go @@ -0,0 +1,67 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry" + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// Scope is the identifying values of the instrumentation scope. +type Scope struct { + Name string `json:"name,omitempty"` + Version string `json:"version,omitempty"` + Attrs []Attr `json:"attributes,omitempty"` + DroppedAttrs uint32 `json:"droppedAttributesCount,omitempty"` +} + +// UnmarshalJSON decodes the OTLP formatted JSON contained in data into r. +func (s *Scope) UnmarshalJSON(data []byte) error { + decoder := json.NewDecoder(bytes.NewReader(data)) + + t, err := decoder.Token() + if err != nil { + return err + } + if t != json.Delim('{') { + return errors.New("invalid Scope type") + } + + for decoder.More() { + keyIface, err := decoder.Token() + if err != nil { + if errors.Is(err, io.EOF) { + // Empty. + return nil + } + return err + } + + key, ok := keyIface.(string) + if !ok { + return fmt.Errorf("invalid Scope field: %#v", keyIface) + } + + switch key { + case "name": + err = decoder.Decode(&s.Name) + case "version": + err = decoder.Decode(&s.Version) + case "attributes": + err = decoder.Decode(&s.Attrs) + case "droppedAttributesCount", "dropped_attributes_count": + err = decoder.Decode(&s.DroppedAttrs) + default: + // Skip unknown. + } + + if err != nil { + return err + } + } + return nil +} diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/span.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/span.go new file mode 100644 index 0000000000..3c5e1cdb1b --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/span.go @@ -0,0 +1,460 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry" + +import ( + "bytes" + "encoding/hex" + "encoding/json" + "errors" + "fmt" + "io" + "math" + "time" +) + +// A Span represents a single operation performed by a single component of the +// system. +type Span struct { + // A unique identifier for a trace. All spans from the same trace share + // the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes OR + // of length other than 16 bytes is considered invalid (empty string in OTLP/JSON + // is zero-length and thus is also invalid). + // + // This field is required. + TraceID TraceID `json:"traceId,omitempty"` + // A unique identifier for a span within a trace, assigned when the span + // is created. The ID is an 8-byte array. An ID with all zeroes OR of length + // other than 8 bytes is considered invalid (empty string in OTLP/JSON + // is zero-length and thus is also invalid). + // + // This field is required. + SpanID SpanID `json:"spanId,omitempty"` + // trace_state conveys information about request position in multiple distributed tracing graphs. + // It is a trace_state in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header + // See also https://github.com/w3c/distributed-tracing for more details about this field. + TraceState string `json:"traceState,omitempty"` + // The `span_id` of this span's parent span. If this is a root span, then this + // field must be empty. The ID is an 8-byte array. + ParentSpanID SpanID `json:"parentSpanId,omitempty"` + // Flags, a bit field. + // + // Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace + // Context specification. To read the 8-bit W3C trace flag, use + // `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`. + // + // See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions. + // + // Bits 8 and 9 represent the 3 states of whether a span's parent + // is remote. The states are (unknown, is not remote, is remote). + // To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`. + // To read whether the span is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`. + // + // When creating span messages, if the message is logically forwarded from another source + // with an equivalent flags fields (i.e., usually another OTLP span message), the field SHOULD + // be copied as-is. If creating from a source that does not have an equivalent flags field + // (such as a runtime representation of an OpenTelemetry span), the high 22 bits MUST + // be set to zero. + // Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero. + // + // [Optional]. + Flags uint32 `json:"flags,omitempty"` + // A description of the span's operation. + // + // For example, the name can be a qualified method name or a file name + // and a line number where the operation is called. A best practice is to use + // the same display name at the same call point in an application. + // This makes it easier to correlate spans in different traces. + // + // This field is semantically required to be set to non-empty string. + // Empty value is equivalent to an unknown span name. + // + // This field is required. + Name string `json:"name"` + // Distinguishes between spans generated in a particular context. For example, + // two spans with the same name may be distinguished using `CLIENT` (caller) + // and `SERVER` (callee) to identify queueing latency associated with the span. + Kind SpanKind `json:"kind,omitempty"` + // start_time_unix_nano is the start time of the span. On the client side, this is the time + // kept by the local machine where the span execution starts. On the server side, this + // is the time when the server's application handler starts running. + // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. + // + // This field is semantically required and it is expected that end_time >= start_time. + StartTime time.Time `json:"startTimeUnixNano,omitempty"` + // end_time_unix_nano is the end time of the span. On the client side, this is the time + // kept by the local machine where the span execution ends. On the server side, this + // is the time when the server application handler stops running. + // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. + // + // This field is semantically required and it is expected that end_time >= start_time. + EndTime time.Time `json:"endTimeUnixNano,omitempty"` + // attributes is a collection of key/value pairs. Note, global attributes + // like server name can be set using the resource API. Examples of attributes: + // + // "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" + // "/http/server_latency": 300 + // "example.com/myattribute": true + // "example.com/score": 10.239 + // + // The OpenTelemetry API specification further restricts the allowed value types: + // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute + // Attribute keys MUST be unique (it is not allowed to have more than one + // attribute with the same key). + Attrs []Attr `json:"attributes,omitempty"` + // dropped_attributes_count is the number of attributes that were discarded. Attributes + // can be discarded because their keys are too long or because there are too many + // attributes. If this value is 0, then no attributes were dropped. + DroppedAttrs uint32 `json:"droppedAttributesCount,omitempty"` + // events is a collection of Event items. + Events []*SpanEvent `json:"events,omitempty"` + // dropped_events_count is the number of dropped events. If the value is 0, then no + // events were dropped. + DroppedEvents uint32 `json:"droppedEventsCount,omitempty"` + // links is a collection of Links, which are references from this span to a span + // in the same or different trace. + Links []*SpanLink `json:"links,omitempty"` + // dropped_links_count is the number of dropped links after the maximum size was + // enforced. If this value is 0, then no links were dropped. + DroppedLinks uint32 `json:"droppedLinksCount,omitempty"` + // An optional final status for this span. Semantically when Status isn't set, it means + // span's status code is unset, i.e. assume STATUS_CODE_UNSET (code = 0). + Status *Status `json:"status,omitempty"` +} + +// MarshalJSON encodes s into OTLP formatted JSON. +func (s Span) MarshalJSON() ([]byte, error) { + startT := s.StartTime.UnixNano() + if s.StartTime.IsZero() || startT < 0 { + startT = 0 + } + + endT := s.EndTime.UnixNano() + if s.EndTime.IsZero() || endT < 0 { + endT = 0 + } + + // Override non-empty default SpanID marshal and omitempty. + var parentSpanId string + if !s.ParentSpanID.IsEmpty() { + b := make([]byte, hex.EncodedLen(spanIDSize)) + hex.Encode(b, s.ParentSpanID[:]) + parentSpanId = string(b) + } + + type Alias Span + return json.Marshal(struct { + Alias + ParentSpanID string `json:"parentSpanId,omitempty"` + StartTime uint64 `json:"startTimeUnixNano,omitempty"` + EndTime uint64 `json:"endTimeUnixNano,omitempty"` + }{ + Alias: Alias(s), + ParentSpanID: parentSpanId, + StartTime: uint64(startT), // nolint:gosec // >0 checked above. + EndTime: uint64(endT), // nolint:gosec // >0 checked above. + }) +} + +// UnmarshalJSON decodes the OTLP formatted JSON contained in data into s. +func (s *Span) UnmarshalJSON(data []byte) error { + decoder := json.NewDecoder(bytes.NewReader(data)) + + t, err := decoder.Token() + if err != nil { + return err + } + if t != json.Delim('{') { + return errors.New("invalid Span type") + } + + for decoder.More() { + keyIface, err := decoder.Token() + if err != nil { + if errors.Is(err, io.EOF) { + // Empty. + return nil + } + return err + } + + key, ok := keyIface.(string) + if !ok { + return fmt.Errorf("invalid Span field: %#v", keyIface) + } + + switch key { + case "traceId", "trace_id": + err = decoder.Decode(&s.TraceID) + case "spanId", "span_id": + err = decoder.Decode(&s.SpanID) + case "traceState", "trace_state": + err = decoder.Decode(&s.TraceState) + case "parentSpanId", "parent_span_id": + err = decoder.Decode(&s.ParentSpanID) + case "flags": + err = decoder.Decode(&s.Flags) + case "name": + err = decoder.Decode(&s.Name) + case "kind": + err = decoder.Decode(&s.Kind) + case "startTimeUnixNano", "start_time_unix_nano": + var val protoUint64 + err = decoder.Decode(&val) + v := int64(min(val.Uint64(), math.MaxInt64)) // nolint: gosec // Overflow checked. + s.StartTime = time.Unix(0, v) + case "endTimeUnixNano", "end_time_unix_nano": + var val protoUint64 + err = decoder.Decode(&val) + v := int64(min(val.Uint64(), math.MaxInt64)) // nolint: gosec // Overflow checked. + s.EndTime = time.Unix(0, v) + case "attributes": + err = decoder.Decode(&s.Attrs) + case "droppedAttributesCount", "dropped_attributes_count": + err = decoder.Decode(&s.DroppedAttrs) + case "events": + err = decoder.Decode(&s.Events) + case "droppedEventsCount", "dropped_events_count": + err = decoder.Decode(&s.DroppedEvents) + case "links": + err = decoder.Decode(&s.Links) + case "droppedLinksCount", "dropped_links_count": + err = decoder.Decode(&s.DroppedLinks) + case "status": + err = decoder.Decode(&s.Status) + default: + // Skip unknown. + } + + if err != nil { + return err + } + } + return nil +} + +// SpanFlags represents constants used to interpret the +// Span.flags field, which is protobuf 'fixed32' type and is to +// be used as bit-fields. Each non-zero value defined in this enum is +// a bit-mask. To extract the bit-field, for example, use an +// expression like: +// +// (span.flags & SPAN_FLAGS_TRACE_FLAGS_MASK) +// +// See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions. +// +// Note that Span flags were introduced in version 1.1 of the +// OpenTelemetry protocol. Older Span producers do not set this +// field, consequently consumers should not rely on the absence of a +// particular flag bit to indicate the presence of a particular feature. +type SpanFlags int32 + +const ( + // Bits 0-7 are used for trace flags. + SpanFlagsTraceFlagsMask SpanFlags = 255 + // Bits 8 and 9 are used to indicate that the parent span or link span is remote. + // Bit 8 (`HAS_IS_REMOTE`) indicates whether the value is known. + // Bit 9 (`IS_REMOTE`) indicates whether the span or link is remote. + SpanFlagsContextHasIsRemoteMask SpanFlags = 256 + // SpanFlagsContextHasIsRemoteMask indicates the Span is remote. + SpanFlagsContextIsRemoteMask SpanFlags = 512 +) + +// SpanKind is the type of span. Can be used to specify additional relationships between spans +// in addition to a parent/child relationship. +type SpanKind int32 + +const ( + // Indicates that the span represents an internal operation within an application, + // as opposed to an operation happening at the boundaries. Default value. + SpanKindInternal SpanKind = 1 + // Indicates that the span covers server-side handling of an RPC or other + // remote network request. + SpanKindServer SpanKind = 2 + // Indicates that the span describes a request to some remote service. + SpanKindClient SpanKind = 3 + // Indicates that the span describes a producer sending a message to a broker. + // Unlike CLIENT and SERVER, there is often no direct critical path latency relationship + // between producer and consumer spans. A PRODUCER span ends when the message was accepted + // by the broker while the logical processing of the message might span a much longer time. + SpanKindProducer SpanKind = 4 + // Indicates that the span describes consumer receiving a message from a broker. + // Like the PRODUCER kind, there is often no direct critical path latency relationship + // between producer and consumer spans. + SpanKindConsumer SpanKind = 5 +) + +// Event is a time-stamped annotation of the span, consisting of user-supplied +// text description and key-value pairs. +type SpanEvent struct { + // time_unix_nano is the time the event occurred. + Time time.Time `json:"timeUnixNano,omitempty"` + // name of the event. + // This field is semantically required to be set to non-empty string. + Name string `json:"name,omitempty"` + // attributes is a collection of attribute key/value pairs on the event. + // Attribute keys MUST be unique (it is not allowed to have more than one + // attribute with the same key). + Attrs []Attr `json:"attributes,omitempty"` + // dropped_attributes_count is the number of dropped attributes. If the value is 0, + // then no attributes were dropped. + DroppedAttrs uint32 `json:"droppedAttributesCount,omitempty"` +} + +// MarshalJSON encodes e into OTLP formatted JSON. +func (e SpanEvent) MarshalJSON() ([]byte, error) { + t := e.Time.UnixNano() + if e.Time.IsZero() || t < 0 { + t = 0 + } + + type Alias SpanEvent + return json.Marshal(struct { + Alias + Time uint64 `json:"timeUnixNano,omitempty"` + }{ + Alias: Alias(e), + Time: uint64(t), // nolint: gosec // >0 checked above + }) +} + +// UnmarshalJSON decodes the OTLP formatted JSON contained in data into se. +func (se *SpanEvent) UnmarshalJSON(data []byte) error { + decoder := json.NewDecoder(bytes.NewReader(data)) + + t, err := decoder.Token() + if err != nil { + return err + } + if t != json.Delim('{') { + return errors.New("invalid SpanEvent type") + } + + for decoder.More() { + keyIface, err := decoder.Token() + if err != nil { + if errors.Is(err, io.EOF) { + // Empty. + return nil + } + return err + } + + key, ok := keyIface.(string) + if !ok { + return fmt.Errorf("invalid SpanEvent field: %#v", keyIface) + } + + switch key { + case "timeUnixNano", "time_unix_nano": + var val protoUint64 + err = decoder.Decode(&val) + v := int64(min(val.Uint64(), math.MaxInt64)) // nolint: gosec // Overflow checked. + se.Time = time.Unix(0, v) + case "name": + err = decoder.Decode(&se.Name) + case "attributes": + err = decoder.Decode(&se.Attrs) + case "droppedAttributesCount", "dropped_attributes_count": + err = decoder.Decode(&se.DroppedAttrs) + default: + // Skip unknown. + } + + if err != nil { + return err + } + } + return nil +} + +// A pointer from the current span to another span in the same trace or in a +// different trace. For example, this can be used in batching operations, +// where a single batch handler processes multiple requests from different +// traces or when the handler receives a request from a different project. +type SpanLink struct { + // A unique identifier of a trace that this linked span is part of. The ID is a + // 16-byte array. + TraceID TraceID `json:"traceId,omitempty"` + // A unique identifier for the linked span. The ID is an 8-byte array. + SpanID SpanID `json:"spanId,omitempty"` + // The trace_state associated with the link. + TraceState string `json:"traceState,omitempty"` + // attributes is a collection of attribute key/value pairs on the link. + // Attribute keys MUST be unique (it is not allowed to have more than one + // attribute with the same key). + Attrs []Attr `json:"attributes,omitempty"` + // dropped_attributes_count is the number of dropped attributes. If the value is 0, + // then no attributes were dropped. + DroppedAttrs uint32 `json:"droppedAttributesCount,omitempty"` + // Flags, a bit field. + // + // Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace + // Context specification. To read the 8-bit W3C trace flag, use + // `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`. + // + // See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions. + // + // Bits 8 and 9 represent the 3 states of whether the link is remote. + // The states are (unknown, is not remote, is remote). + // To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`. + // To read whether the link is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`. + // + // Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero. + // When creating new spans, bits 10-31 (most-significant 22-bits) MUST be zero. + // + // [Optional]. + Flags uint32 `json:"flags,omitempty"` +} + +// UnmarshalJSON decodes the OTLP formatted JSON contained in data into sl. +func (sl *SpanLink) UnmarshalJSON(data []byte) error { + decoder := json.NewDecoder(bytes.NewReader(data)) + + t, err := decoder.Token() + if err != nil { + return err + } + if t != json.Delim('{') { + return errors.New("invalid SpanLink type") + } + + for decoder.More() { + keyIface, err := decoder.Token() + if err != nil { + if errors.Is(err, io.EOF) { + // Empty. + return nil + } + return err + } + + key, ok := keyIface.(string) + if !ok { + return fmt.Errorf("invalid SpanLink field: %#v", keyIface) + } + + switch key { + case "traceId", "trace_id": + err = decoder.Decode(&sl.TraceID) + case "spanId", "span_id": + err = decoder.Decode(&sl.SpanID) + case "traceState", "trace_state": + err = decoder.Decode(&sl.TraceState) + case "attributes": + err = decoder.Decode(&sl.Attrs) + case "droppedAttributesCount", "dropped_attributes_count": + err = decoder.Decode(&sl.DroppedAttrs) + case "flags": + err = decoder.Decode(&sl.Flags) + default: + // Skip unknown. + } + + if err != nil { + return err + } + } + return nil +} diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/status.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/status.go new file mode 100644 index 0000000000..1d013a8fa8 --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/status.go @@ -0,0 +1,40 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry" + +// For the semantics of status codes see +// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status +type StatusCode int32 + +const ( + // The default status. + StatusCodeUnset StatusCode = 0 + // The Span has been validated by an Application developer or Operator to + // have completed successfully. + StatusCodeOK StatusCode = 1 + // The Span contains an error. + StatusCodeError StatusCode = 2 +) + +var statusCodeStrings = []string{ + "Unset", + "OK", + "Error", +} + +func (s StatusCode) String() string { + if s >= 0 && int(s) < len(statusCodeStrings) { + return statusCodeStrings[s] + } + return "" +} + +// The Status type defines a logical error model that is suitable for different +// programming environments, including REST APIs and RPC APIs. +type Status struct { + // A developer-facing human readable error message. + Message string `json:"message,omitempty"` + // The status code. + Code StatusCode `json:"code,omitempty"` +} diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/traces.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/traces.go new file mode 100644 index 0000000000..b039407081 --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/traces.go @@ -0,0 +1,189 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry" + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// Traces represents the traces data that can be stored in a persistent storage, +// OR can be embedded by other protocols that transfer OTLP traces data but do +// not implement the OTLP protocol. +// +// The main difference between this message and collector protocol is that +// in this message there will not be any "control" or "metadata" specific to +// OTLP protocol. +// +// When new fields are added into this message, the OTLP request MUST be updated +// as well. +type Traces struct { + // An array of ResourceSpans. + // For data coming from a single resource this array will typically contain + // one element. Intermediary nodes that receive data from multiple origins + // typically batch the data before forwarding further and in that case this + // array will contain multiple elements. + ResourceSpans []*ResourceSpans `json:"resourceSpans,omitempty"` +} + +// UnmarshalJSON decodes the OTLP formatted JSON contained in data into td. +func (td *Traces) UnmarshalJSON(data []byte) error { + decoder := json.NewDecoder(bytes.NewReader(data)) + + t, err := decoder.Token() + if err != nil { + return err + } + if t != json.Delim('{') { + return errors.New("invalid TracesData type") + } + + for decoder.More() { + keyIface, err := decoder.Token() + if err != nil { + if errors.Is(err, io.EOF) { + // Empty. + return nil + } + return err + } + + key, ok := keyIface.(string) + if !ok { + return fmt.Errorf("invalid TracesData field: %#v", keyIface) + } + + switch key { + case "resourceSpans", "resource_spans": + err = decoder.Decode(&td.ResourceSpans) + default: + // Skip unknown. + } + + if err != nil { + return err + } + } + return nil +} + +// A collection of ScopeSpans from a Resource. +type ResourceSpans struct { + // The resource for the spans in this message. + // If this field is not set then no resource info is known. + Resource Resource `json:"resource"` + // A list of ScopeSpans that originate from a resource. + ScopeSpans []*ScopeSpans `json:"scopeSpans,omitempty"` + // This schema_url applies to the data in the "resource" field. It does not apply + // to the data in the "scope_spans" field which have their own schema_url field. + SchemaURL string `json:"schemaUrl,omitempty"` +} + +// UnmarshalJSON decodes the OTLP formatted JSON contained in data into rs. +func (rs *ResourceSpans) UnmarshalJSON(data []byte) error { + decoder := json.NewDecoder(bytes.NewReader(data)) + + t, err := decoder.Token() + if err != nil { + return err + } + if t != json.Delim('{') { + return errors.New("invalid ResourceSpans type") + } + + for decoder.More() { + keyIface, err := decoder.Token() + if err != nil { + if errors.Is(err, io.EOF) { + // Empty. + return nil + } + return err + } + + key, ok := keyIface.(string) + if !ok { + return fmt.Errorf("invalid ResourceSpans field: %#v", keyIface) + } + + switch key { + case "resource": + err = decoder.Decode(&rs.Resource) + case "scopeSpans", "scope_spans": + err = decoder.Decode(&rs.ScopeSpans) + case "schemaUrl", "schema_url": + err = decoder.Decode(&rs.SchemaURL) + default: + // Skip unknown. + } + + if err != nil { + return err + } + } + return nil +} + +// A collection of Spans produced by an InstrumentationScope. +type ScopeSpans struct { + // The instrumentation scope information for the spans in this message. + // Semantically when InstrumentationScope isn't set, it is equivalent with + // an empty instrumentation scope name (unknown). + Scope *Scope `json:"scope"` + // A list of Spans that originate from an instrumentation scope. + Spans []*Span `json:"spans,omitempty"` + // The Schema URL, if known. This is the identifier of the Schema that the span data + // is recorded in. To learn more about Schema URL see + // https://opentelemetry.io/docs/specs/otel/schemas/#schema-url + // This schema_url applies to all spans and span events in the "spans" field. + SchemaURL string `json:"schemaUrl,omitempty"` +} + +// UnmarshalJSON decodes the OTLP formatted JSON contained in data into ss. +func (ss *ScopeSpans) UnmarshalJSON(data []byte) error { + decoder := json.NewDecoder(bytes.NewReader(data)) + + t, err := decoder.Token() + if err != nil { + return err + } + if t != json.Delim('{') { + return errors.New("invalid ScopeSpans type") + } + + for decoder.More() { + keyIface, err := decoder.Token() + if err != nil { + if errors.Is(err, io.EOF) { + // Empty. + return nil + } + return err + } + + key, ok := keyIface.(string) + if !ok { + return fmt.Errorf("invalid ScopeSpans field: %#v", keyIface) + } + + switch key { + case "scope": + err = decoder.Decode(&ss.Scope) + case "spans": + err = decoder.Decode(&ss.Spans) + case "schemaUrl", "schema_url": + err = decoder.Decode(&ss.SchemaURL) + default: + // Skip unknown. + } + + if err != nil { + return err + } + } + return nil +} diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/value.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/value.go new file mode 100644 index 0000000000..7251492da0 --- /dev/null +++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/value.go @@ -0,0 +1,453 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry" + +import ( + "bytes" + "cmp" + "encoding/base64" + "encoding/json" + "errors" + "fmt" + "io" + "math" + "slices" + "strconv" + "unsafe" +) + +// A Value represents a structured value. +// A zero value is valid and represents an empty value. +type Value struct { + // Ensure forward compatibility by explicitly making this not comparable. + noCmp [0]func() //nolint: unused // This is indeed used. + + // num holds the value for Int64, Float64, and Bool. It holds the length + // for String, Bytes, Slice, Map. + num uint64 + // any holds either the KindBool, KindInt64, KindFloat64, stringptr, + // bytesptr, sliceptr, or mapptr. If KindBool, KindInt64, or KindFloat64 + // then the value of Value is in num as described above. Otherwise, it + // contains the value wrapped in the appropriate type. + any any +} + +type ( + // sliceptr represents a value in Value.any for KindString Values. + stringptr *byte + // bytesptr represents a value in Value.any for KindBytes Values. + bytesptr *byte + // sliceptr represents a value in Value.any for KindSlice Values. + sliceptr *Value + // mapptr represents a value in Value.any for KindMap Values. + mapptr *Attr +) + +// ValueKind is the kind of a [Value]. +type ValueKind int + +// ValueKind values. +const ( + ValueKindEmpty ValueKind = iota + ValueKindBool + ValueKindFloat64 + ValueKindInt64 + ValueKindString + ValueKindBytes + ValueKindSlice + ValueKindMap +) + +var valueKindStrings = []string{ + "Empty", + "Bool", + "Float64", + "Int64", + "String", + "Bytes", + "Slice", + "Map", +} + +func (k ValueKind) String() string { + if k >= 0 && int(k) < len(valueKindStrings) { + return valueKindStrings[k] + } + return "" +} + +// StringValue returns a new [Value] for a string. +func StringValue(v string) Value { + return Value{ + num: uint64(len(v)), + any: stringptr(unsafe.StringData(v)), + } +} + +// IntValue returns a [Value] for an int. +func IntValue(v int) Value { return Int64Value(int64(v)) } + +// Int64Value returns a [Value] for an int64. +func Int64Value(v int64) Value { + return Value{ + num: uint64(v), // nolint: gosec // Store raw bytes. + any: ValueKindInt64, + } +} + +// Float64Value returns a [Value] for a float64. +func Float64Value(v float64) Value { + return Value{num: math.Float64bits(v), any: ValueKindFloat64} +} + +// BoolValue returns a [Value] for a bool. +func BoolValue(v bool) Value { //nolint:revive // Not a control flag. + var n uint64 + if v { + n = 1 + } + return Value{num: n, any: ValueKindBool} +} + +// BytesValue returns a [Value] for a byte slice. The passed slice must not be +// changed after it is passed. +func BytesValue(v []byte) Value { + return Value{ + num: uint64(len(v)), + any: bytesptr(unsafe.SliceData(v)), + } +} + +// SliceValue returns a [Value] for a slice of [Value]. The passed slice must +// not be changed after it is passed. +func SliceValue(vs ...Value) Value { + return Value{ + num: uint64(len(vs)), + any: sliceptr(unsafe.SliceData(vs)), + } +} + +// MapValue returns a new [Value] for a slice of key-value pairs. The passed +// slice must not be changed after it is passed. +func MapValue(kvs ...Attr) Value { + return Value{ + num: uint64(len(kvs)), + any: mapptr(unsafe.SliceData(kvs)), + } +} + +// AsString returns the value held by v as a string. +func (v Value) AsString() string { + if sp, ok := v.any.(stringptr); ok { + return unsafe.String(sp, v.num) + } + // TODO: error handle + return "" +} + +// asString returns the value held by v as a string. It will panic if the Value +// is not KindString. +func (v Value) asString() string { + return unsafe.String(v.any.(stringptr), v.num) +} + +// AsInt64 returns the value held by v as an int64. +func (v Value) AsInt64() int64 { + if v.Kind() != ValueKindInt64 { + // TODO: error handle + return 0 + } + return v.asInt64() +} + +// asInt64 returns the value held by v as an int64. If v is not of KindInt64, +// this will return garbage. +func (v Value) asInt64() int64 { + // Assumes v.num was a valid int64 (overflow not checked). + return int64(v.num) // nolint: gosec +} + +// AsBool returns the value held by v as a bool. +func (v Value) AsBool() bool { + if v.Kind() != ValueKindBool { + // TODO: error handle + return false + } + return v.asBool() +} + +// asBool returns the value held by v as a bool. If v is not of KindBool, this +// will return garbage. +func (v Value) asBool() bool { return v.num == 1 } + +// AsFloat64 returns the value held by v as a float64. +func (v Value) AsFloat64() float64 { + if v.Kind() != ValueKindFloat64 { + // TODO: error handle + return 0 + } + return v.asFloat64() +} + +// asFloat64 returns the value held by v as a float64. If v is not of +// KindFloat64, this will return garbage. +func (v Value) asFloat64() float64 { return math.Float64frombits(v.num) } + +// AsBytes returns the value held by v as a []byte. +func (v Value) AsBytes() []byte { + if sp, ok := v.any.(bytesptr); ok { + return unsafe.Slice((*byte)(sp), v.num) + } + // TODO: error handle + return nil +} + +// asBytes returns the value held by v as a []byte. It will panic if the Value +// is not KindBytes. +func (v Value) asBytes() []byte { + return unsafe.Slice((*byte)(v.any.(bytesptr)), v.num) +} + +// AsSlice returns the value held by v as a []Value. +func (v Value) AsSlice() []Value { + if sp, ok := v.any.(sliceptr); ok { + return unsafe.Slice((*Value)(sp), v.num) + } + // TODO: error handle + return nil +} + +// asSlice returns the value held by v as a []Value. It will panic if the Value +// is not KindSlice. +func (v Value) asSlice() []Value { + return unsafe.Slice((*Value)(v.any.(sliceptr)), v.num) +} + +// AsMap returns the value held by v as a []Attr. +func (v Value) AsMap() []Attr { + if sp, ok := v.any.(mapptr); ok { + return unsafe.Slice((*Attr)(sp), v.num) + } + // TODO: error handle + return nil +} + +// asMap returns the value held by v as a []Attr. It will panic if the +// Value is not KindMap. +func (v Value) asMap() []Attr { + return unsafe.Slice((*Attr)(v.any.(mapptr)), v.num) +} + +// Kind returns the Kind of v. +func (v Value) Kind() ValueKind { + switch x := v.any.(type) { + case ValueKind: + return x + case stringptr: + return ValueKindString + case bytesptr: + return ValueKindBytes + case sliceptr: + return ValueKindSlice + case mapptr: + return ValueKindMap + default: + return ValueKindEmpty + } +} + +// Empty returns if v does not hold any value. +func (v Value) Empty() bool { return v.Kind() == ValueKindEmpty } + +// Equal returns if v is equal to w. +func (v Value) Equal(w Value) bool { + k1 := v.Kind() + k2 := w.Kind() + if k1 != k2 { + return false + } + switch k1 { + case ValueKindInt64, ValueKindBool: + return v.num == w.num + case ValueKindString: + return v.asString() == w.asString() + case ValueKindFloat64: + return v.asFloat64() == w.asFloat64() + case ValueKindSlice: + return slices.EqualFunc(v.asSlice(), w.asSlice(), Value.Equal) + case ValueKindMap: + sv := sortMap(v.asMap()) + sw := sortMap(w.asMap()) + return slices.EqualFunc(sv, sw, Attr.Equal) + case ValueKindBytes: + return bytes.Equal(v.asBytes(), w.asBytes()) + case ValueKindEmpty: + return true + default: + // TODO: error handle + return false + } +} + +func sortMap(m []Attr) []Attr { + sm := make([]Attr, len(m)) + copy(sm, m) + slices.SortFunc(sm, func(a, b Attr) int { + return cmp.Compare(a.Key, b.Key) + }) + + return sm +} + +// String returns Value's value as a string, formatted like [fmt.Sprint]. +// +// The returned string is meant for debugging; +// the string representation is not stable. +func (v Value) String() string { + switch v.Kind() { + case ValueKindString: + return v.asString() + case ValueKindInt64: + // Assumes v.num was a valid int64 (overflow not checked). + return strconv.FormatInt(int64(v.num), 10) // nolint: gosec + case ValueKindFloat64: + return strconv.FormatFloat(v.asFloat64(), 'g', -1, 64) + case ValueKindBool: + return strconv.FormatBool(v.asBool()) + case ValueKindBytes: + return fmt.Sprint(v.asBytes()) + case ValueKindMap: + return fmt.Sprint(v.asMap()) + case ValueKindSlice: + return fmt.Sprint(v.asSlice()) + case ValueKindEmpty: + return "" + default: + // Try to handle this as gracefully as possible. + // + // Don't panic here. The goal here is to have developers find this + // first if a slog.Kind is is not handled. It is + // preferable to have user's open issue asking why their attributes + // have a "unhandled: " prefix than say that their code is panicking. + return fmt.Sprintf("", v.Kind()) + } +} + +// MarshalJSON encodes v into OTLP formatted JSON. +func (v *Value) MarshalJSON() ([]byte, error) { + switch v.Kind() { + case ValueKindString: + return json.Marshal(struct { + Value string `json:"stringValue"` + }{v.asString()}) + case ValueKindInt64: + return json.Marshal(struct { + Value string `json:"intValue"` + }{strconv.FormatInt(int64(v.num), 10)}) // nolint: gosec // From raw bytes. + case ValueKindFloat64: + return json.Marshal(struct { + Value float64 `json:"doubleValue"` + }{v.asFloat64()}) + case ValueKindBool: + return json.Marshal(struct { + Value bool `json:"boolValue"` + }{v.asBool()}) + case ValueKindBytes: + return json.Marshal(struct { + Value []byte `json:"bytesValue"` + }{v.asBytes()}) + case ValueKindMap: + return json.Marshal(struct { + Value struct { + Values []Attr `json:"values"` + } `json:"kvlistValue"` + }{struct { + Values []Attr `json:"values"` + }{v.asMap()}}) + case ValueKindSlice: + return json.Marshal(struct { + Value struct { + Values []Value `json:"values"` + } `json:"arrayValue"` + }{struct { + Values []Value `json:"values"` + }{v.asSlice()}}) + case ValueKindEmpty: + return nil, nil + default: + return nil, fmt.Errorf("unknown Value kind: %s", v.Kind().String()) + } +} + +// UnmarshalJSON decodes the OTLP formatted JSON contained in data into v. +func (v *Value) UnmarshalJSON(data []byte) error { + decoder := json.NewDecoder(bytes.NewReader(data)) + + t, err := decoder.Token() + if err != nil { + return err + } + if t != json.Delim('{') { + return errors.New("invalid Value type") + } + + for decoder.More() { + keyIface, err := decoder.Token() + if err != nil { + if errors.Is(err, io.EOF) { + // Empty. + return nil + } + return err + } + + key, ok := keyIface.(string) + if !ok { + return fmt.Errorf("invalid Value key: %#v", keyIface) + } + + switch key { + case "stringValue", "string_value": + var val string + err = decoder.Decode(&val) + *v = StringValue(val) + case "boolValue", "bool_value": + var val bool + err = decoder.Decode(&val) + *v = BoolValue(val) + case "intValue", "int_value": + var val protoInt64 + err = decoder.Decode(&val) + *v = Int64Value(val.Int64()) + case "doubleValue", "double_value": + var val float64 + err = decoder.Decode(&val) + *v = Float64Value(val) + case "bytesValue", "bytes_value": + var val64 string + if err := decoder.Decode(&val64); err != nil { + return err + } + var val []byte + val, err = base64.StdEncoding.DecodeString(val64) + *v = BytesValue(val) + case "arrayValue", "array_value": + var val struct{ Values []Value } + err = decoder.Decode(&val) + *v = SliceValue(val.Values...) + case "kvlistValue", "kvlist_value": + var val struct{ Values []Attr } + err = decoder.Decode(&val) + *v = MapValue(val.Values...) + default: + // Skip unknown. + continue + } + // Use first valid. Ignore the rest. + return err + } + + // Only unknown fields. Return nil without unmarshaling any value. + return nil +} diff --git a/vendor/go.opentelemetry.io/otel/trace/noop.go b/vendor/go.opentelemetry.io/otel/trace/noop.go index ca20e9997a..c8b1ae5d67 100644 --- a/vendor/go.opentelemetry.io/otel/trace/noop.go +++ b/vendor/go.opentelemetry.io/otel/trace/noop.go @@ -82,4 +82,22 @@ func (noopSpan) AddLink(Link) {} func (noopSpan) SetName(string) {} // TracerProvider returns a no-op TracerProvider. -func (noopSpan) TracerProvider() TracerProvider { return noopTracerProvider{} } +func (s noopSpan) TracerProvider() TracerProvider { + return s.tracerProvider(autoInstEnabled) +} + +// autoInstEnabled defines if the auto-instrumentation SDK is enabled. +// +// The auto-instrumentation is expected to overwrite this value to true when it +// attaches to the process. +var autoInstEnabled = new(bool) + +// tracerProvider return a noopTracerProvider if autoEnabled is false, +// otherwise it will return a TracerProvider from the sdk package used in +// auto-instrumentation. +func (noopSpan) tracerProvider(autoEnabled *bool) TracerProvider { + if *autoEnabled { + return newAutoTracerProvider() + } + return noopTracerProvider{} +} diff --git a/vendor/go.opentelemetry.io/otel/version.go b/vendor/go.opentelemetry.io/otel/version.go index eb22002d82..d5fa71f674 100644 --- a/vendor/go.opentelemetry.io/otel/version.go +++ b/vendor/go.opentelemetry.io/otel/version.go @@ -5,5 +5,5 @@ package otel // import "go.opentelemetry.io/otel" // Version is the current release version of OpenTelemetry in use. func Version() string { - return "1.34.0" + return "1.35.0" } diff --git a/vendor/go.opentelemetry.io/otel/versions.yaml b/vendor/go.opentelemetry.io/otel/versions.yaml index ce4fe59b0e..2b4cb4b418 100644 --- a/vendor/go.opentelemetry.io/otel/versions.yaml +++ b/vendor/go.opentelemetry.io/otel/versions.yaml @@ -3,7 +3,7 @@ module-sets: stable-v1: - version: v1.34.0 + version: v1.35.0 modules: - go.opentelemetry.io/otel - go.opentelemetry.io/otel/bridge/opencensus @@ -23,11 +23,11 @@ module-sets: - go.opentelemetry.io/otel/sdk/metric - go.opentelemetry.io/otel/trace experimental-metrics: - version: v0.56.0 + version: v0.57.0 modules: - go.opentelemetry.io/otel/exporters/prometheus experimental-logs: - version: v0.10.0 + version: v0.11.0 modules: - go.opentelemetry.io/otel/log - go.opentelemetry.io/otel/sdk/log @@ -40,3 +40,4 @@ module-sets: - go.opentelemetry.io/otel/schema excluded-modules: - go.opentelemetry.io/otel/internal/tools + - go.opentelemetry.io/otel/trace/internal/telemetry/test diff --git a/vendor/go.yaml.in/yaml/v2/.travis.yml b/vendor/go.yaml.in/yaml/v2/.travis.yml new file mode 100644 index 0000000000..7348c50c0c --- /dev/null +++ b/vendor/go.yaml.in/yaml/v2/.travis.yml @@ -0,0 +1,17 @@ +language: go + +go: + - "1.4.x" + - "1.5.x" + - "1.6.x" + - "1.7.x" + - "1.8.x" + - "1.9.x" + - "1.10.x" + - "1.11.x" + - "1.12.x" + - "1.13.x" + - "1.14.x" + - "tip" + +go_import_path: gopkg.in/yaml.v2 diff --git a/vendor/sigs.k8s.io/structured-merge-diff/v4/LICENSE b/vendor/go.yaml.in/yaml/v2/LICENSE similarity index 100% rename from vendor/sigs.k8s.io/structured-merge-diff/v4/LICENSE rename to vendor/go.yaml.in/yaml/v2/LICENSE diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/LICENSE.libyaml b/vendor/go.yaml.in/yaml/v2/LICENSE.libyaml similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/LICENSE.libyaml rename to vendor/go.yaml.in/yaml/v2/LICENSE.libyaml diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/NOTICE b/vendor/go.yaml.in/yaml/v2/NOTICE similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/NOTICE rename to vendor/go.yaml.in/yaml/v2/NOTICE diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/README.md b/vendor/go.yaml.in/yaml/v2/README.md similarity index 76% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/README.md rename to vendor/go.yaml.in/yaml/v2/README.md index 53f4139dc3..c9388da425 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v2/README.md +++ b/vendor/go.yaml.in/yaml/v2/README.md @@ -1,13 +1,3 @@ -# go-yaml fork - -This package is a fork of the go-yaml library and is intended solely for consumption -by kubernetes projects. In this fork, we plan to support only critical changes required for -kubernetes, such as small bug fixes and regressions. Larger, general-purpose feature requests -should be made in the upstream go-yaml library, and we will reject such changes in this fork -unless we are pulling them from upstream. - -This fork is based on v2.4.0: https://github.com/go-yaml/yaml/releases/tag/v2.4.0 - # YAML support for the Go language Introduction @@ -30,18 +20,16 @@ supported since they're a poor design and are gone in YAML 1.2. Installation and usage ---------------------- -The import path for the package is *gopkg.in/yaml.v2*. +The import path for the package is *go.yaml.in/yaml/v2*. To install it, run: - go get gopkg.in/yaml.v2 + go get go.yaml.in/yaml/v2 API documentation ----------------- -If opened in a browser, the import path itself leads to the API documentation: - - * [https://gopkg.in/yaml.v2](https://gopkg.in/yaml.v2) +See: API stability ------------- @@ -65,7 +53,7 @@ import ( "fmt" "log" - "gopkg.in/yaml.v2" + "go.yaml.in/yaml/v2" ) var data = ` diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/apic.go b/vendor/go.yaml.in/yaml/v2/apic.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/apic.go rename to vendor/go.yaml.in/yaml/v2/apic.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/decode.go b/vendor/go.yaml.in/yaml/v2/decode.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/decode.go rename to vendor/go.yaml.in/yaml/v2/decode.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/emitterc.go b/vendor/go.yaml.in/yaml/v2/emitterc.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/emitterc.go rename to vendor/go.yaml.in/yaml/v2/emitterc.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/encode.go b/vendor/go.yaml.in/yaml/v2/encode.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/encode.go rename to vendor/go.yaml.in/yaml/v2/encode.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/parserc.go b/vendor/go.yaml.in/yaml/v2/parserc.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/parserc.go rename to vendor/go.yaml.in/yaml/v2/parserc.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/readerc.go b/vendor/go.yaml.in/yaml/v2/readerc.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/readerc.go rename to vendor/go.yaml.in/yaml/v2/readerc.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/resolve.go b/vendor/go.yaml.in/yaml/v2/resolve.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/resolve.go rename to vendor/go.yaml.in/yaml/v2/resolve.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/scannerc.go b/vendor/go.yaml.in/yaml/v2/scannerc.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/scannerc.go rename to vendor/go.yaml.in/yaml/v2/scannerc.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/sorter.go b/vendor/go.yaml.in/yaml/v2/sorter.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/sorter.go rename to vendor/go.yaml.in/yaml/v2/sorter.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/writerc.go b/vendor/go.yaml.in/yaml/v2/writerc.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/writerc.go rename to vendor/go.yaml.in/yaml/v2/writerc.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/yaml.go b/vendor/go.yaml.in/yaml/v2/yaml.go similarity index 99% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/yaml.go rename to vendor/go.yaml.in/yaml/v2/yaml.go index 30813884c0..5248e1263c 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v2/yaml.go +++ b/vendor/go.yaml.in/yaml/v2/yaml.go @@ -2,7 +2,7 @@ // // Source code and other details for the project are available at GitHub: // -// https://github.com/go-yaml/yaml +// https://github.com/yaml/go-yaml // package yaml diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/yamlh.go b/vendor/go.yaml.in/yaml/v2/yamlh.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/yamlh.go rename to vendor/go.yaml.in/yaml/v2/yamlh.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v2/yamlprivateh.go b/vendor/go.yaml.in/yaml/v2/yamlprivateh.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v2/yamlprivateh.go rename to vendor/go.yaml.in/yaml/v2/yamlprivateh.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/LICENSE b/vendor/go.yaml.in/yaml/v3/LICENSE similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/LICENSE rename to vendor/go.yaml.in/yaml/v3/LICENSE diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/NOTICE b/vendor/go.yaml.in/yaml/v3/NOTICE similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/NOTICE rename to vendor/go.yaml.in/yaml/v3/NOTICE diff --git a/vendor/go.yaml.in/yaml/v3/README.md b/vendor/go.yaml.in/yaml/v3/README.md new file mode 100644 index 0000000000..15a85a6350 --- /dev/null +++ b/vendor/go.yaml.in/yaml/v3/README.md @@ -0,0 +1,171 @@ +go.yaml.in/yaml +=============== + +YAML Support for the Go Language + + +## Introduction + +The `yaml` package enables [Go](https://go.dev/) programs to comfortably encode +and decode [YAML](https://yaml.org/) values. + +It was originally developed within [Canonical](https://www.canonical.com) as +part of the [juju](https://juju.ubuntu.com) project, and is based on a pure Go +port of the well-known [libyaml](http://pyyaml.org/wiki/LibYAML) C library to +parse and generate YAML data quickly and reliably. + + +## Project Status + +This project started as a fork of the extremely popular [go-yaml]( +https://github.com/go-yaml/yaml/) +project, and is being maintained by the official [YAML organization]( +https://github.com/yaml/). + +The YAML team took over ongoing maintenance and development of the project after +discussion with go-yaml's author, @niemeyer, following his decision to +[label the project repository as "unmaintained"]( +https://github.com/go-yaml/yaml/blob/944c86a7d2/README.md) in April 2025. + +We have put together a team of dedicated maintainers including representatives +of go-yaml's most important downstream projects. + +We will strive to earn the trust of the various go-yaml forks to switch back to +this repository as their upstream. + +Please [contact us](https://cloud-native.slack.com/archives/C08PPAT8PS7) if you +would like to contribute or be involved. + + +## Compatibility + +The `yaml` package supports most of YAML 1.2, but preserves some behavior from +1.1 for backwards compatibility. + +Specifically, v3 of the `yaml` package: + +* Supports YAML 1.1 bools (`yes`/`no`, `on`/`off`) as long as they are being + decoded into a typed bool value. + Otherwise they behave as a string. + Booleans in YAML 1.2 are `true`/`false` only. +* Supports octals encoded and decoded as `0777` per YAML 1.1, rather than + `0o777` as specified in YAML 1.2, because most parsers still use the old + format. + Octals in the `0o777` format are supported though, so new files work. +* Does not support base-60 floats. + These are gone from YAML 1.2, and were actually never supported by this + package as it's clearly a poor choice. + + +## Installation and Usage + +The import path for the package is *go.yaml.in/yaml/v3*. + +To install it, run: + +```bash +go get go.yaml.in/yaml/v3 +``` + + +## API Documentation + +See: + + +## API Stability + +The package API for yaml v3 will remain stable as described in [gopkg.in]( +https://gopkg.in). + + +## Example + +```go +package main + +import ( + "fmt" + "log" + + "go.yaml.in/yaml/v3" +) + +var data = ` +a: Easy! +b: + c: 2 + d: [3, 4] +` + +// Note: struct fields must be public in order for unmarshal to +// correctly populate the data. +type T struct { + A string + B struct { + RenamedC int `yaml:"c"` + D []int `yaml:",flow"` + } +} + +func main() { + t := T{} + + err := yaml.Unmarshal([]byte(data), &t) + if err != nil { + log.Fatalf("error: %v", err) + } + fmt.Printf("--- t:\n%v\n\n", t) + + d, err := yaml.Marshal(&t) + if err != nil { + log.Fatalf("error: %v", err) + } + fmt.Printf("--- t dump:\n%s\n\n", string(d)) + + m := make(map[interface{}]interface{}) + + err = yaml.Unmarshal([]byte(data), &m) + if err != nil { + log.Fatalf("error: %v", err) + } + fmt.Printf("--- m:\n%v\n\n", m) + + d, err = yaml.Marshal(&m) + if err != nil { + log.Fatalf("error: %v", err) + } + fmt.Printf("--- m dump:\n%s\n\n", string(d)) +} +``` + +This example will generate the following output: + +``` +--- t: +{Easy! {2 [3 4]}} + +--- t dump: +a: Easy! +b: + c: 2 + d: [3, 4] + + +--- m: +map[a:Easy! b:map[c:2 d:[3 4]]] + +--- m dump: +a: Easy! +b: + c: 2 + d: + - 3 + - 4 +``` + + +## License + +The yaml package is licensed under the MIT and Apache License 2.0 licenses. +Please see the LICENSE file for details. diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/apic.go b/vendor/go.yaml.in/yaml/v3/apic.go similarity index 99% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/apic.go rename to vendor/go.yaml.in/yaml/v3/apic.go index ae7d049f18..05fd305da1 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v3/apic.go +++ b/vendor/go.yaml.in/yaml/v3/apic.go @@ -1,17 +1,17 @@ -// +// // Copyright (c) 2011-2019 Canonical Ltd // Copyright (c) 2006-2010 Kirill Simonov -// +// // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies // of the Software, and to permit persons to whom the Software is furnished to do // so, subject to the following conditions: -// +// // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. -// +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/decode.go b/vendor/go.yaml.in/yaml/v3/decode.go similarity index 97% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/decode.go rename to vendor/go.yaml.in/yaml/v3/decode.go index 0173b6982e..02e2b17bfe 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v3/decode.go +++ b/vendor/go.yaml.in/yaml/v3/decode.go @@ -832,10 +832,10 @@ func (d *decoder) mapping(n *Node, out reflect.Value) (good bool) { if d.unmarshal(n.Content[i], k) { if mergedFields != nil { ki := k.Interface() - if mergedFields[ki] { + if d.getPossiblyUnhashableKey(mergedFields, ki) { continue } - mergedFields[ki] = true + d.setPossiblyUnhashableKey(mergedFields, ki, true) } kkind := k.Kind() if kkind == reflect.Interface { @@ -956,6 +956,24 @@ func failWantMap() { failf("map merge requires map or sequence of maps as the value") } +func (d *decoder) setPossiblyUnhashableKey(m map[interface{}]bool, key interface{}, value bool) { + defer func() { + if err := recover(); err != nil { + failf("%v", err) + } + }() + m[key] = value +} + +func (d *decoder) getPossiblyUnhashableKey(m map[interface{}]bool, key interface{}) bool { + defer func() { + if err := recover(); err != nil { + failf("%v", err) + } + }() + return m[key] +} + func (d *decoder) merge(parent *Node, merge *Node, out reflect.Value) { mergedFields := d.mergedFields if mergedFields == nil { @@ -963,7 +981,7 @@ func (d *decoder) merge(parent *Node, merge *Node, out reflect.Value) { for i := 0; i < len(parent.Content); i += 2 { k := reflect.New(ifaceType).Elem() if d.unmarshal(parent.Content[i], k) { - d.mergedFields[k.Interface()] = true + d.setPossiblyUnhashableKey(d.mergedFields, k.Interface(), true) } } } diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/emitterc.go b/vendor/go.yaml.in/yaml/v3/emitterc.go similarity index 98% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/emitterc.go rename to vendor/go.yaml.in/yaml/v3/emitterc.go index 6ea0ae8c10..ab4e03ba72 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v3/emitterc.go +++ b/vendor/go.yaml.in/yaml/v3/emitterc.go @@ -162,10 +162,9 @@ func yaml_emitter_emit(emitter *yaml_emitter_t, event *yaml_event_t) bool { // Check if we need to accumulate more events before emitting. // // We accumulate extra -// - 1 event for DOCUMENT-START -// - 2 events for SEQUENCE-START -// - 3 events for MAPPING-START -// +// - 1 event for DOCUMENT-START +// - 2 events for SEQUENCE-START +// - 3 events for MAPPING-START func yaml_emitter_need_more_events(emitter *yaml_emitter_t) bool { if emitter.events_head == len(emitter.events) { return true @@ -485,6 +484,18 @@ func yaml_emitter_emit_document_start(emitter *yaml_emitter_t, event *yaml_event return yaml_emitter_set_emitter_error(emitter, "expected DOCUMENT-START or STREAM-END") } +// yaml_emitter_increase_indent preserves the original signature and delegates to +// yaml_emitter_increase_indent_compact without compact-sequence indentation +func yaml_emitter_increase_indent(emitter *yaml_emitter_t, flow, indentless bool) bool { + return yaml_emitter_increase_indent_compact(emitter, flow, indentless, false) +} + +// yaml_emitter_process_line_comment preserves the original signature and delegates to +// yaml_emitter_process_line_comment_linebreak passing false for linebreak +func yaml_emitter_process_line_comment(emitter *yaml_emitter_t) bool { + return yaml_emitter_process_line_comment_linebreak(emitter, false) +} + // Expect the root node. func yaml_emitter_emit_document_content(emitter *yaml_emitter_t, event *yaml_event_t) bool { emitter.states = append(emitter.states, yaml_EMIT_DOCUMENT_END_STATE) diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/encode.go b/vendor/go.yaml.in/yaml/v3/encode.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/encode.go rename to vendor/go.yaml.in/yaml/v3/encode.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/parserc.go b/vendor/go.yaml.in/yaml/v3/parserc.go similarity index 93% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/parserc.go rename to vendor/go.yaml.in/yaml/v3/parserc.go index 268558a0d6..25fe823637 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v3/parserc.go +++ b/vendor/go.yaml.in/yaml/v3/parserc.go @@ -227,7 +227,8 @@ func yaml_parser_state_machine(parser *yaml_parser_t, event *yaml_event_t) bool // Parse the production: // stream ::= STREAM-START implicit_document? explicit_document* STREAM-END -// ************ +// +// ************ func yaml_parser_parse_stream_start(parser *yaml_parser_t, event *yaml_event_t) bool { token := peek_token(parser) if token == nil { @@ -249,9 +250,12 @@ func yaml_parser_parse_stream_start(parser *yaml_parser_t, event *yaml_event_t) // Parse the productions: // implicit_document ::= block_node DOCUMENT-END* -// * +// +// * +// // explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* -// ************************* +// +// ************************* func yaml_parser_parse_document_start(parser *yaml_parser_t, event *yaml_event_t, implicit bool) bool { token := peek_token(parser) @@ -356,8 +360,8 @@ func yaml_parser_parse_document_start(parser *yaml_parser_t, event *yaml_event_t // Parse the productions: // explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* -// *********** // +// *********** func yaml_parser_parse_document_content(parser *yaml_parser_t, event *yaml_event_t) bool { token := peek_token(parser) if token == nil { @@ -379,9 +383,10 @@ func yaml_parser_parse_document_content(parser *yaml_parser_t, event *yaml_event // Parse the productions: // implicit_document ::= block_node DOCUMENT-END* -// ************* -// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* // +// ************* +// +// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* func yaml_parser_parse_document_end(parser *yaml_parser_t, event *yaml_event_t) bool { token := peek_token(parser) if token == nil { @@ -428,30 +433,41 @@ func yaml_parser_set_event_comments(parser *yaml_parser_t, event *yaml_event_t) // Parse the productions: // block_node_or_indentless_sequence ::= -// ALIAS -// ***** -// | properties (block_content | indentless_block_sequence)? -// ********** * -// | block_content | indentless_block_sequence -// * +// +// ALIAS +// ***** +// | properties (block_content | indentless_block_sequence)? +// ********** * +// | block_content | indentless_block_sequence +// * +// // block_node ::= ALIAS -// ***** -// | properties block_content? -// ********** * -// | block_content -// * +// +// ***** +// | properties block_content? +// ********** * +// | block_content +// * +// // flow_node ::= ALIAS -// ***** -// | properties flow_content? -// ********** * -// | flow_content -// * +// +// ***** +// | properties flow_content? +// ********** * +// | flow_content +// * +// // properties ::= TAG ANCHOR? | ANCHOR TAG? -// ************************* +// +// ************************* +// // block_content ::= block_collection | flow_collection | SCALAR -// ****** +// +// ****** +// // flow_content ::= flow_collection | SCALAR -// ****** +// +// ****** func yaml_parser_parse_node(parser *yaml_parser_t, event *yaml_event_t, block, indentless_sequence bool) bool { //defer trace("yaml_parser_parse_node", "block:", block, "indentless_sequence:", indentless_sequence)() @@ -682,8 +698,8 @@ func yaml_parser_parse_node(parser *yaml_parser_t, event *yaml_event_t, block, i // Parse the productions: // block_sequence ::= BLOCK-SEQUENCE-START (BLOCK-ENTRY block_node?)* BLOCK-END -// ******************** *********** * ********* // +// ******************** *********** * ********* func yaml_parser_parse_block_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { if first { token := peek_token(parser) @@ -740,7 +756,8 @@ func yaml_parser_parse_block_sequence_entry(parser *yaml_parser_t, event *yaml_e // Parse the productions: // indentless_sequence ::= (BLOCK-ENTRY block_node?)+ -// *********** * +// +// *********** * func yaml_parser_parse_indentless_sequence_entry(parser *yaml_parser_t, event *yaml_event_t) bool { token := peek_token(parser) if token == nil { @@ -805,14 +822,14 @@ func yaml_parser_split_stem_comment(parser *yaml_parser_t, stem_len int) { // Parse the productions: // block_mapping ::= BLOCK-MAPPING_START -// ******************* -// ((KEY block_node_or_indentless_sequence?)? -// *** * -// (VALUE block_node_or_indentless_sequence?)?)* // -// BLOCK-END -// ********* +// ******************* +// ((KEY block_node_or_indentless_sequence?)? +// *** * +// (VALUE block_node_or_indentless_sequence?)?)* // +// BLOCK-END +// ********* func yaml_parser_parse_block_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { if first { token := peek_token(parser) @@ -881,13 +898,11 @@ func yaml_parser_parse_block_mapping_key(parser *yaml_parser_t, event *yaml_even // Parse the productions: // block_mapping ::= BLOCK-MAPPING_START // -// ((KEY block_node_or_indentless_sequence?)? -// -// (VALUE block_node_or_indentless_sequence?)?)* -// ***** * -// BLOCK-END -// +// ((KEY block_node_or_indentless_sequence?)? // +// (VALUE block_node_or_indentless_sequence?)?)* +// ***** * +// BLOCK-END func yaml_parser_parse_block_mapping_value(parser *yaml_parser_t, event *yaml_event_t) bool { token := peek_token(parser) if token == nil { @@ -915,16 +930,18 @@ func yaml_parser_parse_block_mapping_value(parser *yaml_parser_t, event *yaml_ev // Parse the productions: // flow_sequence ::= FLOW-SEQUENCE-START -// ******************* -// (flow_sequence_entry FLOW-ENTRY)* -// * ********** -// flow_sequence_entry? -// * -// FLOW-SEQUENCE-END -// ***************** +// +// ******************* +// (flow_sequence_entry FLOW-ENTRY)* +// * ********** +// flow_sequence_entry? +// * +// FLOW-SEQUENCE-END +// ***************** +// // flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// * // +// * func yaml_parser_parse_flow_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { if first { token := peek_token(parser) @@ -987,11 +1004,10 @@ func yaml_parser_parse_flow_sequence_entry(parser *yaml_parser_t, event *yaml_ev return true } -// // Parse the productions: // flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// *** * // +// *** * func yaml_parser_parse_flow_sequence_entry_mapping_key(parser *yaml_parser_t, event *yaml_event_t) bool { token := peek_token(parser) if token == nil { @@ -1011,8 +1027,8 @@ func yaml_parser_parse_flow_sequence_entry_mapping_key(parser *yaml_parser_t, ev // Parse the productions: // flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// ***** * // +// ***** * func yaml_parser_parse_flow_sequence_entry_mapping_value(parser *yaml_parser_t, event *yaml_event_t) bool { token := peek_token(parser) if token == nil { @@ -1035,8 +1051,8 @@ func yaml_parser_parse_flow_sequence_entry_mapping_value(parser *yaml_parser_t, // Parse the productions: // flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// * // +// * func yaml_parser_parse_flow_sequence_entry_mapping_end(parser *yaml_parser_t, event *yaml_event_t) bool { token := peek_token(parser) if token == nil { @@ -1053,16 +1069,17 @@ func yaml_parser_parse_flow_sequence_entry_mapping_end(parser *yaml_parser_t, ev // Parse the productions: // flow_mapping ::= FLOW-MAPPING-START -// ****************** -// (flow_mapping_entry FLOW-ENTRY)* -// * ********** -// flow_mapping_entry? -// ****************** -// FLOW-MAPPING-END -// **************** -// flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// * *** * // +// ****************** +// (flow_mapping_entry FLOW-ENTRY)* +// * ********** +// flow_mapping_entry? +// ****************** +// FLOW-MAPPING-END +// **************** +// +// flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? +// - *** * func yaml_parser_parse_flow_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { if first { token := peek_token(parser) @@ -1128,8 +1145,7 @@ func yaml_parser_parse_flow_mapping_key(parser *yaml_parser_t, event *yaml_event // Parse the productions: // flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// * ***** * -// +// - ***** * func yaml_parser_parse_flow_mapping_value(parser *yaml_parser_t, event *yaml_event_t, empty bool) bool { token := peek_token(parser) if token == nil { diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/readerc.go b/vendor/go.yaml.in/yaml/v3/readerc.go similarity index 99% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/readerc.go rename to vendor/go.yaml.in/yaml/v3/readerc.go index b7de0a89c4..56af245366 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v3/readerc.go +++ b/vendor/go.yaml.in/yaml/v3/readerc.go @@ -1,17 +1,17 @@ -// +// // Copyright (c) 2011-2019 Canonical Ltd // Copyright (c) 2006-2010 Kirill Simonov -// +// // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies // of the Software, and to permit persons to whom the Software is furnished to do // so, subject to the following conditions: -// +// // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. -// +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/resolve.go b/vendor/go.yaml.in/yaml/v3/resolve.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/resolve.go rename to vendor/go.yaml.in/yaml/v3/resolve.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/scannerc.go b/vendor/go.yaml.in/yaml/v3/scannerc.go similarity index 99% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/scannerc.go rename to vendor/go.yaml.in/yaml/v3/scannerc.go index ca0070108f..30b1f08920 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v3/scannerc.go +++ b/vendor/go.yaml.in/yaml/v3/scannerc.go @@ -1614,11 +1614,11 @@ func yaml_parser_scan_to_next_token(parser *yaml_parser_t) bool { // Scan a YAML-DIRECTIVE or TAG-DIRECTIVE token. // // Scope: -// %YAML 1.1 # a comment \n -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// %TAG !yaml! tag:yaml.org,2002: \n -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // +// %YAML 1.1 # a comment \n +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// %TAG !yaml! tag:yaml.org,2002: \n +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool { // Eat '%'. start_mark := parser.mark @@ -1719,11 +1719,11 @@ func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool // Scan the directive name. // // Scope: -// %YAML 1.1 # a comment \n -// ^^^^ -// %TAG !yaml! tag:yaml.org,2002: \n -// ^^^ // +// %YAML 1.1 # a comment \n +// ^^^^ +// %TAG !yaml! tag:yaml.org,2002: \n +// ^^^ func yaml_parser_scan_directive_name(parser *yaml_parser_t, start_mark yaml_mark_t, name *[]byte) bool { // Consume the directive name. if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { @@ -1758,8 +1758,9 @@ func yaml_parser_scan_directive_name(parser *yaml_parser_t, start_mark yaml_mark // Scan the value of VERSION-DIRECTIVE. // // Scope: -// %YAML 1.1 # a comment \n -// ^^^^^^ +// +// %YAML 1.1 # a comment \n +// ^^^^^^ func yaml_parser_scan_version_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, major, minor *int8) bool { // Eat whitespaces. if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { @@ -1797,10 +1798,11 @@ const max_number_length = 2 // Scan the version number of VERSION-DIRECTIVE. // // Scope: -// %YAML 1.1 # a comment \n -// ^ -// %YAML 1.1 # a comment \n -// ^ +// +// %YAML 1.1 # a comment \n +// ^ +// %YAML 1.1 # a comment \n +// ^ func yaml_parser_scan_version_directive_number(parser *yaml_parser_t, start_mark yaml_mark_t, number *int8) bool { // Repeat while the next character is digit. @@ -1834,9 +1836,9 @@ func yaml_parser_scan_version_directive_number(parser *yaml_parser_t, start_mark // Scan the value of a TAG-DIRECTIVE token. // // Scope: -// %TAG !yaml! tag:yaml.org,2002: \n -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // +// %TAG !yaml! tag:yaml.org,2002: \n +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ func yaml_parser_scan_tag_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, handle, prefix *[]byte) bool { var handle_value, prefix_value []byte @@ -2847,7 +2849,7 @@ func yaml_parser_scan_line_comment(parser *yaml_parser_t, token_mark yaml_mark_t continue } if parser.buffer[parser.buffer_pos+peek] == '#' { - seen := parser.mark.index+peek + seen := parser.mark.index + peek for { if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { return false @@ -2876,7 +2878,7 @@ func yaml_parser_scan_line_comment(parser *yaml_parser_t, token_mark yaml_mark_t parser.comments = append(parser.comments, yaml_comment_t{ token_mark: token_mark, start_mark: start_mark, - line: text, + line: text, }) } return true @@ -2910,7 +2912,7 @@ func yaml_parser_scan_comments(parser *yaml_parser_t, scan_mark yaml_mark_t) boo // the foot is the line below it. var foot_line = -1 if scan_mark.line > 0 { - foot_line = parser.mark.line-parser.newlines+1 + foot_line = parser.mark.line - parser.newlines + 1 if parser.newlines == 0 && parser.mark.column > 1 { foot_line++ } @@ -2996,7 +2998,7 @@ func yaml_parser_scan_comments(parser *yaml_parser_t, scan_mark yaml_mark_t) boo recent_empty = false // Consume until after the consumed comment line. - seen := parser.mark.index+peek + seen := parser.mark.index + peek for { if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { return false diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/sorter.go b/vendor/go.yaml.in/yaml/v3/sorter.go similarity index 100% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/sorter.go rename to vendor/go.yaml.in/yaml/v3/sorter.go diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/writerc.go b/vendor/go.yaml.in/yaml/v3/writerc.go similarity index 99% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/writerc.go rename to vendor/go.yaml.in/yaml/v3/writerc.go index b8a116bf9a..266d0b092c 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v3/writerc.go +++ b/vendor/go.yaml.in/yaml/v3/writerc.go @@ -1,17 +1,17 @@ -// +// // Copyright (c) 2011-2019 Canonical Ltd // Copyright (c) 2006-2010 Kirill Simonov -// +// // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies // of the Software, and to permit persons to whom the Software is furnished to do // so, subject to the following conditions: -// +// // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. -// +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/yaml.go b/vendor/go.yaml.in/yaml/v3/yaml.go similarity index 91% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/yaml.go rename to vendor/go.yaml.in/yaml/v3/yaml.go index 8cec6da48d..0b101cd20d 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v3/yaml.go +++ b/vendor/go.yaml.in/yaml/v3/yaml.go @@ -17,8 +17,7 @@ // // Source code and other details for the project are available at GitHub: // -// https://github.com/go-yaml/yaml -// +// https://github.com/yaml/go-yaml package yaml import ( @@ -75,16 +74,15 @@ type Marshaler interface { // // For example: // -// type T struct { -// F int `yaml:"a,omitempty"` -// B int -// } -// var t T -// yaml.Unmarshal([]byte("a: 1\nb: 2"), &t) +// type T struct { +// F int `yaml:"a,omitempty"` +// B int +// } +// var t T +// yaml.Unmarshal([]byte("a: 1\nb: 2"), &t) // // See the documentation of Marshal for the format of tags and a list of // supported tag options. -// func Unmarshal(in []byte, out interface{}) (err error) { return unmarshal(in, out, false) } @@ -185,36 +183,35 @@ func unmarshal(in []byte, out interface{}, strict bool) (err error) { // // The field tag format accepted is: // -// `(...) yaml:"[][,[,]]" (...)` +// `(...) yaml:"[][,[,]]" (...)` // // The following flags are currently supported: // -// omitempty Only include the field if it's not set to the zero -// value for the type or to empty slices or maps. -// Zero valued structs will be omitted if all their public -// fields are zero, unless they implement an IsZero -// method (see the IsZeroer interface type), in which -// case the field will be excluded if IsZero returns true. +// omitempty Only include the field if it's not set to the zero +// value for the type or to empty slices or maps. +// Zero valued structs will be omitted if all their public +// fields are zero, unless they implement an IsZero +// method (see the IsZeroer interface type), in which +// case the field will be excluded if IsZero returns true. // -// flow Marshal using a flow style (useful for structs, -// sequences and maps). +// flow Marshal using a flow style (useful for structs, +// sequences and maps). // -// inline Inline the field, which must be a struct or a map, -// causing all of its fields or keys to be processed as if -// they were part of the outer struct. For maps, keys must -// not conflict with the yaml keys of other struct fields. +// inline Inline the field, which must be a struct or a map, +// causing all of its fields or keys to be processed as if +// they were part of the outer struct. For maps, keys must +// not conflict with the yaml keys of other struct fields. // // In addition, if the key is "-", the field is ignored. // // For example: // -// type T struct { -// F int `yaml:"a,omitempty"` -// B int -// } -// yaml.Marshal(&T{B: 2}) // Returns "b: 2\n" -// yaml.Marshal(&T{F: 1}} // Returns "a: 1\nb: 0\n" -// +// type T struct { +// F int `yaml:"a,omitempty"` +// B int +// } +// yaml.Marshal(&T{B: 2}) // Returns "b: 2\n" +// yaml.Marshal(&T{F: 1}} // Returns "a: 1\nb: 0\n" func Marshal(in interface{}) (out []byte, err error) { defer handleErr(&err) e := newEncoder() @@ -278,6 +275,16 @@ func (e *Encoder) SetIndent(spaces int) { e.encoder.indent = spaces } +// CompactSeqIndent makes it so that '- ' is considered part of the indentation. +func (e *Encoder) CompactSeqIndent() { + e.encoder.emitter.compact_sequence_indent = true +} + +// DefaultSeqIndent makes it so that '- ' is not considered part of the indentation. +func (e *Encoder) DefaultSeqIndent() { + e.encoder.emitter.compact_sequence_indent = false +} + // Close closes the encoder by writing any remaining data. // It does not write a stream terminating string "...". func (e *Encoder) Close() (err error) { @@ -358,22 +365,21 @@ const ( // // For example: // -// var person struct { -// Name string -// Address yaml.Node -// } -// err := yaml.Unmarshal(data, &person) -// -// Or by itself: +// var person struct { +// Name string +// Address yaml.Node +// } +// err := yaml.Unmarshal(data, &person) // -// var person Node -// err := yaml.Unmarshal(data, &person) +// Or by itself: // +// var person Node +// err := yaml.Unmarshal(data, &person) type Node struct { // Kind defines whether the node is a document, a mapping, a sequence, // a scalar value, or an alias to another node. The specific data type of // scalar nodes may be obtained via the ShortTag and LongTag methods. - Kind Kind + Kind Kind // Style allows customizing the apperance of the node in the tree. Style Style @@ -421,7 +427,6 @@ func (n *Node) IsZero() bool { n.HeadComment == "" && n.LineComment == "" && n.FootComment == "" && n.Line == 0 && n.Column == 0 } - // LongTag returns the long form of the tag that indicates the data type for // the node. If the Tag field isn't explicitly defined, one will be computed // based on the node properties. diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/yamlh.go b/vendor/go.yaml.in/yaml/v3/yamlh.go similarity index 99% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/yamlh.go rename to vendor/go.yaml.in/yaml/v3/yamlh.go index 40c74de497..f59aa40f64 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v3/yamlh.go +++ b/vendor/go.yaml.in/yaml/v3/yamlh.go @@ -438,7 +438,9 @@ type yaml_document_t struct { // The number of written bytes should be set to the size_read variable. // // [in,out] data A pointer to an application data specified by -// yaml_parser_set_input(). +// +// yaml_parser_set_input(). +// // [out] buffer The buffer to write the data from the source. // [in] size The size of the buffer. // [out] size_read The actual number of bytes read from the source. @@ -639,7 +641,6 @@ type yaml_parser_t struct { } type yaml_comment_t struct { - scan_mark yaml_mark_t // Position where scanning for comments started token_mark yaml_mark_t // Position after which tokens will be associated with this comment start_mark yaml_mark_t // Position of '#' comment mark @@ -659,13 +660,14 @@ type yaml_comment_t struct { // @a buffer to the output. // // @param[in,out] data A pointer to an application data specified by -// yaml_emitter_set_output(). +// +// yaml_emitter_set_output(). +// // @param[in] buffer The buffer with bytes to be written. // @param[in] size The size of the buffer. // // @returns On success, the handler should return @c 1. If the handler failed, // the returned value should be @c 0. -// type yaml_write_handler_t func(emitter *yaml_emitter_t, buffer []byte) error type yaml_emitter_state_t int diff --git a/vendor/sigs.k8s.io/yaml/goyaml.v3/yamlprivateh.go b/vendor/go.yaml.in/yaml/v3/yamlprivateh.go similarity index 97% rename from vendor/sigs.k8s.io/yaml/goyaml.v3/yamlprivateh.go rename to vendor/go.yaml.in/yaml/v3/yamlprivateh.go index e88f9c54ae..dea1ba9610 100644 --- a/vendor/sigs.k8s.io/yaml/goyaml.v3/yamlprivateh.go +++ b/vendor/go.yaml.in/yaml/v3/yamlprivateh.go @@ -1,17 +1,17 @@ -// +// // Copyright (c) 2011-2019 Canonical Ltd // Copyright (c) 2006-2010 Kirill Simonov -// +// // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies // of the Software, and to permit persons to whom the Software is furnished to do // so, subject to the following conditions: -// +// // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. -// +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -137,8 +137,8 @@ func is_crlf(b []byte, i int) bool { func is_breakz(b []byte, i int) bool { //return is_break(b, i) || is_z(b, i) return ( - // is_break: - b[i] == '\r' || // CR (#xD) + // is_break: + b[i] == '\r' || // CR (#xD) b[i] == '\n' || // LF (#xA) b[i] == 0xC2 && b[i+1] == 0x85 || // NEL (#x85) b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA8 || // LS (#x2028) @@ -151,8 +151,8 @@ func is_breakz(b []byte, i int) bool { func is_spacez(b []byte, i int) bool { //return is_space(b, i) || is_breakz(b, i) return ( - // is_space: - b[i] == ' ' || + // is_space: + b[i] == ' ' || // is_breakz: b[i] == '\r' || // CR (#xD) b[i] == '\n' || // LF (#xA) @@ -166,8 +166,8 @@ func is_spacez(b []byte, i int) bool { func is_blankz(b []byte, i int) bool { //return is_blank(b, i) || is_breakz(b, i) return ( - // is_blank: - b[i] == ' ' || b[i] == '\t' || + // is_blank: + b[i] == ' ' || b[i] == '\t' || // is_breakz: b[i] == '\r' || // CR (#xD) b[i] == '\n' || // LF (#xA) diff --git a/vendor/golang.org/x/net/http2/frame.go b/vendor/golang.org/x/net/http2/frame.go index 97bd8b06f7..db3264da8c 100644 --- a/vendor/golang.org/x/net/http2/frame.go +++ b/vendor/golang.org/x/net/http2/frame.go @@ -39,7 +39,7 @@ const ( FrameContinuation FrameType = 0x9 ) -var frameName = map[FrameType]string{ +var frameNames = [...]string{ FrameData: "DATA", FrameHeaders: "HEADERS", FramePriority: "PRIORITY", @@ -53,10 +53,10 @@ var frameName = map[FrameType]string{ } func (t FrameType) String() string { - if s, ok := frameName[t]; ok { - return s + if int(t) < len(frameNames) { + return frameNames[t] } - return fmt.Sprintf("UNKNOWN_FRAME_TYPE_%d", uint8(t)) + return fmt.Sprintf("UNKNOWN_FRAME_TYPE_%d", t) } // Flags is a bitmask of HTTP/2 flags. @@ -124,7 +124,7 @@ var flagName = map[FrameType]map[Flags]string{ // might be 0). type frameParser func(fc *frameCache, fh FrameHeader, countError func(string), payload []byte) (Frame, error) -var frameParsers = map[FrameType]frameParser{ +var frameParsers = [...]frameParser{ FrameData: parseDataFrame, FrameHeaders: parseHeadersFrame, FramePriority: parsePriorityFrame, @@ -138,8 +138,8 @@ var frameParsers = map[FrameType]frameParser{ } func typeFrameParser(t FrameType) frameParser { - if f := frameParsers[t]; f != nil { - return f + if int(t) < len(frameParsers) { + return frameParsers[t] } return parseUnknownFrame } @@ -509,7 +509,7 @@ func (fr *Framer) ReadFrame() (Frame, error) { } if fh.Length > fr.maxReadSize { if fh == invalidHTTP1LookingFrameHeader() { - return nil, fmt.Errorf("http2: failed reading the frame payload: %w, note that the frame header looked like an HTTP/1.1 header", err) + return nil, fmt.Errorf("http2: failed reading the frame payload: %w, note that the frame header looked like an HTTP/1.1 header", ErrFrameTooLarge) } return nil, ErrFrameTooLarge } diff --git a/vendor/golang.org/x/net/http2/http2.go b/vendor/golang.org/x/net/http2/http2.go index 6c18ea230b..ea5ae629fd 100644 --- a/vendor/golang.org/x/net/http2/http2.go +++ b/vendor/golang.org/x/net/http2/http2.go @@ -11,8 +11,6 @@ // requires Go 1.6 or later) // // See https://http2.github.io/ for more information on HTTP/2. -// -// See https://http2.golang.org/ for a test server running this code. package http2 // import "golang.org/x/net/http2" import ( diff --git a/vendor/golang.org/x/net/trace/events.go b/vendor/golang.org/x/net/trace/events.go index c646a6952e..3aaffdd1f7 100644 --- a/vendor/golang.org/x/net/trace/events.go +++ b/vendor/golang.org/x/net/trace/events.go @@ -508,7 +508,7 @@ const eventsHTML = ` {{$el.When}} {{$el.ElapsedTime}} - {{$el.Title}} + {{$el.Title}} {{if $.Expanded}} diff --git a/vendor/golang.org/x/oauth2/internal/doc.go b/vendor/golang.org/x/oauth2/internal/doc.go index 03265e888a..8c7c475f2d 100644 --- a/vendor/golang.org/x/oauth2/internal/doc.go +++ b/vendor/golang.org/x/oauth2/internal/doc.go @@ -2,5 +2,5 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Package internal contains support packages for oauth2 package. +// Package internal contains support packages for [golang.org/x/oauth2]. package internal diff --git a/vendor/golang.org/x/oauth2/internal/oauth2.go b/vendor/golang.org/x/oauth2/internal/oauth2.go index 14989beaf4..71ea6ad1f5 100644 --- a/vendor/golang.org/x/oauth2/internal/oauth2.go +++ b/vendor/golang.org/x/oauth2/internal/oauth2.go @@ -13,7 +13,7 @@ import ( ) // ParseKey converts the binary contents of a private key file -// to an *rsa.PrivateKey. It detects whether the private key is in a +// to an [*rsa.PrivateKey]. It detects whether the private key is in a // PEM container or not. If so, it extracts the private key // from PEM container before conversion. It only supports PEM // containers with no passphrase. diff --git a/vendor/golang.org/x/oauth2/internal/token.go b/vendor/golang.org/x/oauth2/internal/token.go index e83ddeef0f..8389f24629 100644 --- a/vendor/golang.org/x/oauth2/internal/token.go +++ b/vendor/golang.org/x/oauth2/internal/token.go @@ -10,7 +10,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "math" "mime" "net/http" @@ -26,9 +25,9 @@ import ( // the requests to access protected resources on the OAuth 2.0 // provider's backend. // -// This type is a mirror of oauth2.Token and exists to break +// This type is a mirror of [golang.org/x/oauth2.Token] and exists to break // an otherwise-circular dependency. Other internal packages -// should convert this Token into an oauth2.Token before use. +// should convert this Token into an [golang.org/x/oauth2.Token] before use. type Token struct { // AccessToken is the token that authorizes and authenticates // the requests. @@ -50,9 +49,16 @@ type Token struct { // mechanisms for that TokenSource will not be used. Expiry time.Time + // ExpiresIn is the OAuth2 wire format "expires_in" field, + // which specifies how many seconds later the token expires, + // relative to an unknown time base approximately around "now". + // It is the application's responsibility to populate + // `Expiry` from `ExpiresIn` when required. + ExpiresIn int64 `json:"expires_in,omitempty"` + // Raw optionally contains extra metadata from the server // when updating a token. - Raw interface{} + Raw any } // tokenJSON is the struct representing the HTTP response from OAuth2 @@ -99,14 +105,6 @@ func (e *expirationTime) UnmarshalJSON(b []byte) error { return nil } -// RegisterBrokenAuthHeaderProvider previously did something. It is now a no-op. -// -// Deprecated: this function no longer does anything. Caller code that -// wants to avoid potential extra HTTP requests made during -// auto-probing of the provider's auth style should set -// Endpoint.AuthStyle. -func RegisterBrokenAuthHeaderProvider(tokenURL string) {} - // AuthStyle is a copy of the golang.org/x/oauth2 package's AuthStyle type. type AuthStyle int @@ -143,6 +141,11 @@ func (lc *LazyAuthStyleCache) Get() *AuthStyleCache { return c } +type authStyleCacheKey struct { + url string + clientID string +} + // AuthStyleCache is the set of tokenURLs we've successfully used via // RetrieveToken and which style auth we ended up using. // It's called a cache, but it doesn't (yet?) shrink. It's expected that @@ -150,26 +153,26 @@ func (lc *LazyAuthStyleCache) Get() *AuthStyleCache { // small. type AuthStyleCache struct { mu sync.Mutex - m map[string]AuthStyle // keyed by tokenURL + m map[authStyleCacheKey]AuthStyle } // lookupAuthStyle reports which auth style we last used with tokenURL // when calling RetrieveToken and whether we have ever done so. -func (c *AuthStyleCache) lookupAuthStyle(tokenURL string) (style AuthStyle, ok bool) { +func (c *AuthStyleCache) lookupAuthStyle(tokenURL, clientID string) (style AuthStyle, ok bool) { c.mu.Lock() defer c.mu.Unlock() - style, ok = c.m[tokenURL] + style, ok = c.m[authStyleCacheKey{tokenURL, clientID}] return } // setAuthStyle adds an entry to authStyleCache, documented above. -func (c *AuthStyleCache) setAuthStyle(tokenURL string, v AuthStyle) { +func (c *AuthStyleCache) setAuthStyle(tokenURL, clientID string, v AuthStyle) { c.mu.Lock() defer c.mu.Unlock() if c.m == nil { - c.m = make(map[string]AuthStyle) + c.m = make(map[authStyleCacheKey]AuthStyle) } - c.m[tokenURL] = v + c.m[authStyleCacheKey{tokenURL, clientID}] = v } // newTokenRequest returns a new *http.Request to retrieve a new token @@ -210,9 +213,9 @@ func cloneURLValues(v url.Values) url.Values { } func RetrieveToken(ctx context.Context, clientID, clientSecret, tokenURL string, v url.Values, authStyle AuthStyle, styleCache *AuthStyleCache) (*Token, error) { - needsAuthStyleProbe := authStyle == 0 + needsAuthStyleProbe := authStyle == AuthStyleUnknown if needsAuthStyleProbe { - if style, ok := styleCache.lookupAuthStyle(tokenURL); ok { + if style, ok := styleCache.lookupAuthStyle(tokenURL, clientID); ok { authStyle = style needsAuthStyleProbe = false } else { @@ -242,7 +245,7 @@ func RetrieveToken(ctx context.Context, clientID, clientSecret, tokenURL string, token, err = doTokenRoundTrip(ctx, req) } if needsAuthStyleProbe && err == nil { - styleCache.setAuthStyle(tokenURL, authStyle) + styleCache.setAuthStyle(tokenURL, clientID, authStyle) } // Don't overwrite `RefreshToken` with an empty value // if this was a token refreshing request. @@ -257,7 +260,7 @@ func doTokenRoundTrip(ctx context.Context, req *http.Request) (*Token, error) { if err != nil { return nil, err } - body, err := ioutil.ReadAll(io.LimitReader(r.Body, 1<<20)) + body, err := io.ReadAll(io.LimitReader(r.Body, 1<<20)) r.Body.Close() if err != nil { return nil, fmt.Errorf("oauth2: cannot fetch token: %v", err) @@ -312,7 +315,8 @@ func doTokenRoundTrip(ctx context.Context, req *http.Request) (*Token, error) { TokenType: tj.TokenType, RefreshToken: tj.RefreshToken, Expiry: tj.expiry(), - Raw: make(map[string]interface{}), + ExpiresIn: int64(tj.ExpiresIn), + Raw: make(map[string]any), } json.Unmarshal(body, &token.Raw) // no error checks for optional fields } diff --git a/vendor/golang.org/x/oauth2/internal/transport.go b/vendor/golang.org/x/oauth2/internal/transport.go index b9db01ddfd..afc0aeb274 100644 --- a/vendor/golang.org/x/oauth2/internal/transport.go +++ b/vendor/golang.org/x/oauth2/internal/transport.go @@ -9,8 +9,8 @@ import ( "net/http" ) -// HTTPClient is the context key to use with golang.org/x/net/context's -// WithValue function to associate an *http.Client value with a context. +// HTTPClient is the context key to use with [context.WithValue] +// to associate an [*http.Client] value with a context. var HTTPClient ContextKey // ContextKey is just an empty struct. It exists so HTTPClient can be diff --git a/vendor/golang.org/x/oauth2/oauth2.go b/vendor/golang.org/x/oauth2/oauth2.go index eacdd7fd93..de34feb844 100644 --- a/vendor/golang.org/x/oauth2/oauth2.go +++ b/vendor/golang.org/x/oauth2/oauth2.go @@ -22,9 +22,9 @@ import ( ) // NoContext is the default context you should supply if not using -// your own context.Context (see https://golang.org/x/net/context). +// your own [context.Context]. // -// Deprecated: Use context.Background() or context.TODO() instead. +// Deprecated: Use [context.Background] or [context.TODO] instead. var NoContext = context.TODO() // RegisterBrokenAuthHeaderProvider previously did something. It is now a no-op. @@ -37,8 +37,8 @@ func RegisterBrokenAuthHeaderProvider(tokenURL string) {} // Config describes a typical 3-legged OAuth2 flow, with both the // client application information and the server's endpoint URLs. -// For the client credentials 2-legged OAuth2 flow, see the clientcredentials -// package (https://golang.org/x/oauth2/clientcredentials). +// For the client credentials 2-legged OAuth2 flow, see the +// [golang.org/x/oauth2/clientcredentials] package. type Config struct { // ClientID is the application's ID. ClientID string @@ -46,7 +46,7 @@ type Config struct { // ClientSecret is the application's secret. ClientSecret string - // Endpoint contains the resource server's token endpoint + // Endpoint contains the authorization server's token endpoint // URLs. These are constants specific to each server and are // often available via site-specific packages, such as // google.Endpoint or github.Endpoint. @@ -135,7 +135,7 @@ type setParam struct{ k, v string } func (p setParam) setValue(m url.Values) { m.Set(p.k, p.v) } -// SetAuthURLParam builds an AuthCodeOption which passes key/value parameters +// SetAuthURLParam builds an [AuthCodeOption] which passes key/value parameters // to a provider's authorization endpoint. func SetAuthURLParam(key, value string) AuthCodeOption { return setParam{key, value} @@ -148,8 +148,8 @@ func SetAuthURLParam(key, value string) AuthCodeOption { // request and callback. The authorization server includes this value when // redirecting the user agent back to the client. // -// Opts may include AccessTypeOnline or AccessTypeOffline, as well -// as ApprovalForce. +// Opts may include [AccessTypeOnline] or [AccessTypeOffline], as well +// as [ApprovalForce]. // // To protect against CSRF attacks, opts should include a PKCE challenge // (S256ChallengeOption). Not all servers support PKCE. An alternative is to @@ -194,7 +194,7 @@ func (c *Config) AuthCodeURL(state string, opts ...AuthCodeOption) string { // and when other authorization grant types are not available." // See https://tools.ietf.org/html/rfc6749#section-4.3 for more info. // -// The provided context optionally controls which HTTP client is used. See the HTTPClient variable. +// The provided context optionally controls which HTTP client is used. See the [HTTPClient] variable. func (c *Config) PasswordCredentialsToken(ctx context.Context, username, password string) (*Token, error) { v := url.Values{ "grant_type": {"password"}, @@ -212,10 +212,10 @@ func (c *Config) PasswordCredentialsToken(ctx context.Context, username, passwor // It is used after a resource provider redirects the user back // to the Redirect URI (the URL obtained from AuthCodeURL). // -// The provided context optionally controls which HTTP client is used. See the HTTPClient variable. +// The provided context optionally controls which HTTP client is used. See the [HTTPClient] variable. // -// The code will be in the *http.Request.FormValue("code"). Before -// calling Exchange, be sure to validate FormValue("state") if you are +// The code will be in the [http.Request.FormValue]("code"). Before +// calling Exchange, be sure to validate [http.Request.FormValue]("state") if you are // using it to protect against CSRF attacks. // // If using PKCE to protect against CSRF attacks, opts should include a @@ -242,10 +242,10 @@ func (c *Config) Client(ctx context.Context, t *Token) *http.Client { return NewClient(ctx, c.TokenSource(ctx, t)) } -// TokenSource returns a TokenSource that returns t until t expires, +// TokenSource returns a [TokenSource] that returns t until t expires, // automatically refreshing it as necessary using the provided context. // -// Most users will use Config.Client instead. +// Most users will use [Config.Client] instead. func (c *Config) TokenSource(ctx context.Context, t *Token) TokenSource { tkr := &tokenRefresher{ ctx: ctx, @@ -260,7 +260,7 @@ func (c *Config) TokenSource(ctx context.Context, t *Token) TokenSource { } } -// tokenRefresher is a TokenSource that makes "grant_type"=="refresh_token" +// tokenRefresher is a TokenSource that makes "grant_type=refresh_token" // HTTP requests to renew a token using a RefreshToken. type tokenRefresher struct { ctx context.Context // used to get HTTP requests @@ -305,8 +305,7 @@ type reuseTokenSource struct { } // Token returns the current token if it's still valid, else will -// refresh the current token (using r.Context for HTTP client -// information) and return the new one. +// refresh the current token and return the new one. func (s *reuseTokenSource) Token() (*Token, error) { s.mu.Lock() defer s.mu.Unlock() @@ -322,7 +321,7 @@ func (s *reuseTokenSource) Token() (*Token, error) { return t, nil } -// StaticTokenSource returns a TokenSource that always returns the same token. +// StaticTokenSource returns a [TokenSource] that always returns the same token. // Because the provided token t is never refreshed, StaticTokenSource is only // useful for tokens that never expire. func StaticTokenSource(t *Token) TokenSource { @@ -338,16 +337,16 @@ func (s staticTokenSource) Token() (*Token, error) { return s.t, nil } -// HTTPClient is the context key to use with golang.org/x/net/context's -// WithValue function to associate an *http.Client value with a context. +// HTTPClient is the context key to use with [context.WithValue] +// to associate a [*http.Client] value with a context. var HTTPClient internal.ContextKey -// NewClient creates an *http.Client from a Context and TokenSource. +// NewClient creates an [*http.Client] from a [context.Context] and [TokenSource]. // The returned client is not valid beyond the lifetime of the context. // -// Note that if a custom *http.Client is provided via the Context it +// Note that if a custom [*http.Client] is provided via the [context.Context] it // is used only for token acquisition and is not used to configure the -// *http.Client returned from NewClient. +// [*http.Client] returned from NewClient. // // As a special case, if src is nil, a non-OAuth2 client is returned // using the provided context. This exists to support related OAuth2 @@ -368,7 +367,7 @@ func NewClient(ctx context.Context, src TokenSource) *http.Client { } } -// ReuseTokenSource returns a TokenSource which repeatedly returns the +// ReuseTokenSource returns a [TokenSource] which repeatedly returns the // same token as long as it's valid, starting with t. // When its cached token is invalid, a new token is obtained from src. // @@ -376,10 +375,10 @@ func NewClient(ctx context.Context, src TokenSource) *http.Client { // (such as a file on disk) between runs of a program, rather than // obtaining new tokens unnecessarily. // -// The initial token t may be nil, in which case the TokenSource is +// The initial token t may be nil, in which case the [TokenSource] is // wrapped in a caching version if it isn't one already. This also // means it's always safe to wrap ReuseTokenSource around any other -// TokenSource without adverse effects. +// [TokenSource] without adverse effects. func ReuseTokenSource(t *Token, src TokenSource) TokenSource { // Don't wrap a reuseTokenSource in itself. That would work, // but cause an unnecessary number of mutex operations. @@ -397,8 +396,8 @@ func ReuseTokenSource(t *Token, src TokenSource) TokenSource { } } -// ReuseTokenSourceWithExpiry returns a TokenSource that acts in the same manner as the -// TokenSource returned by ReuseTokenSource, except the expiry buffer is +// ReuseTokenSourceWithExpiry returns a [TokenSource] that acts in the same manner as the +// [TokenSource] returned by [ReuseTokenSource], except the expiry buffer is // configurable. The expiration time of a token is calculated as // t.Expiry.Add(-earlyExpiry). func ReuseTokenSourceWithExpiry(t *Token, src TokenSource, earlyExpiry time.Duration) TokenSource { diff --git a/vendor/golang.org/x/oauth2/pkce.go b/vendor/golang.org/x/oauth2/pkce.go index 6a95da975c..cea8374d51 100644 --- a/vendor/golang.org/x/oauth2/pkce.go +++ b/vendor/golang.org/x/oauth2/pkce.go @@ -1,6 +1,7 @@ // Copyright 2023 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. + package oauth2 import ( @@ -20,9 +21,9 @@ const ( // This follows recommendations in RFC 7636. // // A fresh verifier should be generated for each authorization. -// S256ChallengeOption(verifier) should then be passed to Config.AuthCodeURL -// (or Config.DeviceAuth) and VerifierOption(verifier) to Config.Exchange -// (or Config.DeviceAccessToken). +// The resulting verifier should be passed to [Config.AuthCodeURL] or [Config.DeviceAuth] +// with [S256ChallengeOption], and to [Config.Exchange] or [Config.DeviceAccessToken] +// with [VerifierOption]. func GenerateVerifier() string { // "RECOMMENDED that the output of a suitable random number generator be // used to create a 32-octet sequence. The octet sequence is then @@ -36,22 +37,22 @@ func GenerateVerifier() string { return base64.RawURLEncoding.EncodeToString(data) } -// VerifierOption returns a PKCE code verifier AuthCodeOption. It should be -// passed to Config.Exchange or Config.DeviceAccessToken only. +// VerifierOption returns a PKCE code verifier [AuthCodeOption]. It should only be +// passed to [Config.Exchange] or [Config.DeviceAccessToken]. func VerifierOption(verifier string) AuthCodeOption { return setParam{k: codeVerifierKey, v: verifier} } // S256ChallengeFromVerifier returns a PKCE code challenge derived from verifier with method S256. // -// Prefer to use S256ChallengeOption where possible. +// Prefer to use [S256ChallengeOption] where possible. func S256ChallengeFromVerifier(verifier string) string { sha := sha256.Sum256([]byte(verifier)) return base64.RawURLEncoding.EncodeToString(sha[:]) } // S256ChallengeOption derives a PKCE code challenge derived from verifier with -// method S256. It should be passed to Config.AuthCodeURL or Config.DeviceAuth +// method S256. It should be passed to [Config.AuthCodeURL] or [Config.DeviceAuth] // only. func S256ChallengeOption(verifier string) AuthCodeOption { return challengeOption{ diff --git a/vendor/golang.org/x/oauth2/token.go b/vendor/golang.org/x/oauth2/token.go index 109997d77c..239ec32962 100644 --- a/vendor/golang.org/x/oauth2/token.go +++ b/vendor/golang.org/x/oauth2/token.go @@ -44,7 +44,7 @@ type Token struct { // Expiry is the optional expiration time of the access token. // - // If zero, TokenSource implementations will reuse the same + // If zero, [TokenSource] implementations will reuse the same // token forever and RefreshToken or equivalent // mechanisms for that TokenSource will not be used. Expiry time.Time `json:"expiry,omitempty"` @@ -58,7 +58,7 @@ type Token struct { // raw optionally contains extra metadata from the server // when updating a token. - raw interface{} + raw any // expiryDelta is used to calculate when a token is considered // expired, by subtracting from Expiry. If zero, defaultExpiryDelta @@ -86,16 +86,16 @@ func (t *Token) Type() string { // SetAuthHeader sets the Authorization header to r using the access // token in t. // -// This method is unnecessary when using Transport or an HTTP Client +// This method is unnecessary when using [Transport] or an HTTP Client // returned by this package. func (t *Token) SetAuthHeader(r *http.Request) { r.Header.Set("Authorization", t.Type()+" "+t.AccessToken) } -// WithExtra returns a new Token that's a clone of t, but using the +// WithExtra returns a new [Token] that's a clone of t, but using the // provided raw extra map. This is only intended for use by packages // implementing derivative OAuth2 flows. -func (t *Token) WithExtra(extra interface{}) *Token { +func (t *Token) WithExtra(extra any) *Token { t2 := new(Token) *t2 = *t t2.raw = extra @@ -105,8 +105,8 @@ func (t *Token) WithExtra(extra interface{}) *Token { // Extra returns an extra field. // Extra fields are key-value pairs returned by the server as a // part of the token retrieval response. -func (t *Token) Extra(key string) interface{} { - if raw, ok := t.raw.(map[string]interface{}); ok { +func (t *Token) Extra(key string) any { + if raw, ok := t.raw.(map[string]any); ok { return raw[key] } @@ -163,13 +163,14 @@ func tokenFromInternal(t *internal.Token) *Token { TokenType: t.TokenType, RefreshToken: t.RefreshToken, Expiry: t.Expiry, + ExpiresIn: t.ExpiresIn, raw: t.Raw, } } // retrieveToken takes a *Config and uses that to retrieve an *internal.Token. // This token is then mapped from *internal.Token into an *oauth2.Token which is returned along -// with an error.. +// with an error. func retrieveToken(ctx context.Context, c *Config, v url.Values) (*Token, error) { tk, err := internal.RetrieveToken(ctx, c.ClientID, c.ClientSecret, c.Endpoint.TokenURL, v, internal.AuthStyle(c.Endpoint.AuthStyle), c.authStyleCache.Get()) if err != nil { diff --git a/vendor/golang.org/x/oauth2/transport.go b/vendor/golang.org/x/oauth2/transport.go index 90657915fb..8bbebbac9e 100644 --- a/vendor/golang.org/x/oauth2/transport.go +++ b/vendor/golang.org/x/oauth2/transport.go @@ -11,12 +11,12 @@ import ( "sync" ) -// Transport is an http.RoundTripper that makes OAuth 2.0 HTTP requests, -// wrapping a base RoundTripper and adding an Authorization header -// with a token from the supplied Sources. +// Transport is an [http.RoundTripper] that makes OAuth 2.0 HTTP requests, +// wrapping a base [http.RoundTripper] and adding an Authorization header +// with a token from the supplied [TokenSource]. // // Transport is a low-level mechanism. Most code will use the -// higher-level Config.Client method instead. +// higher-level [Config.Client] method instead. type Transport struct { // Source supplies the token to add to outgoing requests' // Authorization headers. @@ -47,7 +47,7 @@ func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) { return nil, err } - req2 := cloneRequest(req) // per RoundTripper contract + req2 := req.Clone(req.Context()) token.SetAuthHeader(req2) // req.Body is assumed to be closed by the base RoundTripper. @@ -73,17 +73,3 @@ func (t *Transport) base() http.RoundTripper { } return http.DefaultTransport } - -// cloneRequest returns a clone of the provided *http.Request. -// The clone is a shallow copy of the struct and its Header map. -func cloneRequest(r *http.Request) *http.Request { - // shallow copy of the struct - r2 := new(http.Request) - *r2 = *r - // deep copy of the Header - r2.Header = make(http.Header, len(r.Header)) - for k, s := range r.Header { - r2.Header[k] = append([]string(nil), s...) - } - return r2 -} diff --git a/vendor/golang.org/x/sync/errgroup/errgroup.go b/vendor/golang.org/x/sync/errgroup/errgroup.go index cb6bb9ad3b..1d8cffae8c 100644 --- a/vendor/golang.org/x/sync/errgroup/errgroup.go +++ b/vendor/golang.org/x/sync/errgroup/errgroup.go @@ -12,8 +12,6 @@ package errgroup import ( "context" "fmt" - "runtime" - "runtime/debug" "sync" ) @@ -33,10 +31,6 @@ type Group struct { errOnce sync.Once err error - - mu sync.Mutex - panicValue any // = PanicError | PanicValue; non-nil if some Group.Go goroutine panicked. - abnormal bool // some Group.Go goroutine terminated abnormally (panic or goexit). } func (g *Group) done() { @@ -56,22 +50,13 @@ func WithContext(ctx context.Context) (*Group, context.Context) { return &Group{cancel: cancel}, ctx } -// Wait blocks until all function calls from the Go method have returned -// normally, then returns the first non-nil error (if any) from them. -// -// If any of the calls panics, Wait panics with a [PanicValue]; -// and if any of them calls [runtime.Goexit], Wait calls runtime.Goexit. +// Wait blocks until all function calls from the Go method have returned, then +// returns the first non-nil error (if any) from them. func (g *Group) Wait() error { g.wg.Wait() if g.cancel != nil { g.cancel(g.err) } - if g.panicValue != nil { - panic(g.panicValue) - } - if g.abnormal { - runtime.Goexit() - } return g.err } @@ -81,53 +66,31 @@ func (g *Group) Wait() error { // It blocks until the new goroutine can be added without the number of // goroutines in the group exceeding the configured limit. // -// The first goroutine in the group that returns a non-nil error, panics, or -// invokes [runtime.Goexit] will cancel the associated Context, if any. +// The first goroutine in the group that returns a non-nil error will +// cancel the associated Context, if any. The error will be returned +// by Wait. func (g *Group) Go(f func() error) { if g.sem != nil { g.sem <- token{} } - g.add(f) -} - -func (g *Group) add(f func() error) { g.wg.Add(1) go func() { defer g.done() - normalReturn := false - defer func() { - if normalReturn { - return - } - v := recover() - g.mu.Lock() - defer g.mu.Unlock() - if !g.abnormal { - if g.cancel != nil { - g.cancel(g.err) - } - g.abnormal = true - } - if v != nil && g.panicValue == nil { - switch v := v.(type) { - case error: - g.panicValue = PanicError{ - Recovered: v, - Stack: debug.Stack(), - } - default: - g.panicValue = PanicValue{ - Recovered: v, - Stack: debug.Stack(), - } - } - } - }() - err := f() - normalReturn = true - if err != nil { + // It is tempting to propagate panics from f() + // up to the goroutine that calls Wait, but + // it creates more problems than it solves: + // - it delays panics arbitrarily, + // making bugs harder to detect; + // - it turns f's panic stack into a mere value, + // hiding it from crash-monitoring tools; + // - it risks deadlocks that hide the panic entirely, + // if f's panic leaves the program in a state + // that prevents the Wait call from being reached. + // See #53757, #74275, #74304, #74306. + + if err := f(); err != nil { g.errOnce.Do(func() { g.err = err if g.cancel != nil { @@ -152,7 +115,19 @@ func (g *Group) TryGo(f func() error) bool { } } - g.add(f) + g.wg.Add(1) + go func() { + defer g.done() + + if err := f(); err != nil { + g.errOnce.Do(func() { + g.err = err + if g.cancel != nil { + g.cancel(g.err) + } + }) + } + }() return true } @@ -174,34 +149,3 @@ func (g *Group) SetLimit(n int) { } g.sem = make(chan token, n) } - -// PanicError wraps an error recovered from an unhandled panic -// when calling a function passed to Go or TryGo. -type PanicError struct { - Recovered error - Stack []byte // result of call to [debug.Stack] -} - -func (p PanicError) Error() string { - if len(p.Stack) > 0 { - return fmt.Sprintf("recovered from errgroup.Group: %v\n%s", p.Recovered, p.Stack) - } - return fmt.Sprintf("recovered from errgroup.Group: %v", p.Recovered) -} - -func (p PanicError) Unwrap() error { return p.Recovered } - -// PanicValue wraps a value that does not implement the error interface, -// recovered from an unhandled panic when calling a function passed to Go or -// TryGo. -type PanicValue struct { - Recovered any - Stack []byte // result of call to [debug.Stack] -} - -func (p PanicValue) String() string { - if len(p.Stack) > 0 { - return fmt.Sprintf("recovered from errgroup.Group: %v\n%s", p.Recovered, p.Stack) - } - return fmt.Sprintf("recovered from errgroup.Group: %v", p.Recovered) -} diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh index 6ab02b6c31..d1c8b2640e 100644 --- a/vendor/golang.org/x/sys/unix/mkerrors.sh +++ b/vendor/golang.org/x/sys/unix/mkerrors.sh @@ -349,6 +349,9 @@ struct ltchars { #define _HIDIOCGRAWPHYS HIDIOCGRAWPHYS(_HIDIOCGRAWPHYS_LEN) #define _HIDIOCGRAWUNIQ HIDIOCGRAWUNIQ(_HIDIOCGRAWUNIQ_LEN) +// Renamed in v6.16, commit c6d732c38f93 ("net: ethtool: remove duplicate defines for family info") +#define ETHTOOL_FAMILY_NAME ETHTOOL_GENL_NAME +#define ETHTOOL_FAMILY_VERSION ETHTOOL_GENL_VERSION ' includes_NetBSD=' diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go index 798f61ad3b..7838ca5db2 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go @@ -602,14 +602,9 @@ func Connectx(fd int, srcIf uint32, srcAddr, dstAddr Sockaddr, associd SaeAssocI return } -// sys connectx(fd int, endpoints *SaEndpoints, associd SaeAssocID, flags uint32, iov []Iovec, n *uintptr, connid *SaeConnID) (err error) const minIovec = 8 func Readv(fd int, iovs [][]byte) (n int, err error) { - if !darwinKernelVersionMin(11, 0, 0) { - return 0, ENOSYS - } - iovecs := make([]Iovec, 0, minIovec) iovecs = appendBytes(iovecs, iovs) n, err = readv(fd, iovecs) @@ -618,9 +613,6 @@ func Readv(fd int, iovs [][]byte) (n int, err error) { } func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) { - if !darwinKernelVersionMin(11, 0, 0) { - return 0, ENOSYS - } iovecs := make([]Iovec, 0, minIovec) iovecs = appendBytes(iovecs, iovs) n, err = preadv(fd, iovecs, offset) @@ -629,10 +621,6 @@ func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) { } func Writev(fd int, iovs [][]byte) (n int, err error) { - if !darwinKernelVersionMin(11, 0, 0) { - return 0, ENOSYS - } - iovecs := make([]Iovec, 0, minIovec) iovecs = appendBytes(iovecs, iovs) if raceenabled { @@ -644,10 +632,6 @@ func Writev(fd int, iovs [][]byte) (n int, err error) { } func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) { - if !darwinKernelVersionMin(11, 0, 0) { - return 0, ENOSYS - } - iovecs := make([]Iovec, 0, minIovec) iovecs = appendBytes(iovecs, iovs) if raceenabled { @@ -707,45 +691,7 @@ func readvRacedetect(iovecs []Iovec, n int, err error) { } } -func darwinMajorMinPatch() (maj, min, patch int, err error) { - var un Utsname - err = Uname(&un) - if err != nil { - return - } - - var mmp [3]int - c := 0 -Loop: - for _, b := range un.Release[:] { - switch { - case b >= '0' && b <= '9': - mmp[c] = 10*mmp[c] + int(b-'0') - case b == '.': - c++ - if c > 2 { - return 0, 0, 0, ENOTSUP - } - case b == 0: - break Loop - default: - return 0, 0, 0, ENOTSUP - } - } - if c != 2 { - return 0, 0, 0, ENOTSUP - } - return mmp[0], mmp[1], mmp[2], nil -} - -func darwinKernelVersionMin(maj, min, patch int) bool { - actualMaj, actualMin, actualPatch, err := darwinMajorMinPatch() - if err != nil { - return false - } - return actualMaj > maj || actualMaj == maj && (actualMin > min || actualMin == min && actualPatch >= patch) -} - +//sys connectx(fd int, endpoints *SaEndpoints, associd SaeAssocID, flags uint32, iov []Iovec, n *uintptr, connid *SaeConnID) (err error) //sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) //sys shmat(id int, addr uintptr, flag int) (ret uintptr, err error) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux.go b/vendor/golang.org/x/sys/unix/zerrors_linux.go index 4f432bfe8f..b6db27d937 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux.go @@ -319,6 +319,7 @@ const ( AUDIT_INTEGRITY_POLICY_RULE = 0x70f AUDIT_INTEGRITY_RULE = 0x70d AUDIT_INTEGRITY_STATUS = 0x70a + AUDIT_INTEGRITY_USERSPACE = 0x710 AUDIT_IPC = 0x517 AUDIT_IPC_SET_PERM = 0x51f AUDIT_IPE_ACCESS = 0x58c @@ -327,6 +328,8 @@ const ( AUDIT_KERNEL = 0x7d0 AUDIT_KERNEL_OTHER = 0x524 AUDIT_KERN_MODULE = 0x532 + AUDIT_LANDLOCK_ACCESS = 0x58f + AUDIT_LANDLOCK_DOMAIN = 0x590 AUDIT_LAST_FEATURE = 0x1 AUDIT_LAST_KERN_ANOM_MSG = 0x707 AUDIT_LAST_USER_MSG = 0x4af @@ -491,6 +494,7 @@ const ( BPF_F_BEFORE = 0x8 BPF_F_ID = 0x20 BPF_F_NETFILTER_IP_DEFRAG = 0x1 + BPF_F_PREORDER = 0x40 BPF_F_QUERY_EFFECTIVE = 0x1 BPF_F_REDIRECT_FLAGS = 0x19 BPF_F_REPLACE = 0x4 @@ -527,6 +531,7 @@ const ( BPF_LDX = 0x1 BPF_LEN = 0x80 BPF_LL_OFF = -0x200000 + BPF_LOAD_ACQ = 0x100 BPF_LSH = 0x60 BPF_MAJOR_VERSION = 0x1 BPF_MAXINSNS = 0x1000 @@ -554,6 +559,7 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_ST = 0x2 + BPF_STORE_REL = 0x110 BPF_STX = 0x3 BPF_SUB = 0x10 BPF_TAG_SIZE = 0x8 @@ -843,9 +849,9 @@ const ( DM_UUID_FLAG = 0x4000 DM_UUID_LEN = 0x81 DM_VERSION = 0xc138fd00 - DM_VERSION_EXTRA = "-ioctl (2023-03-01)" + DM_VERSION_EXTRA = "-ioctl (2025-04-28)" DM_VERSION_MAJOR = 0x4 - DM_VERSION_MINOR = 0x30 + DM_VERSION_MINOR = 0x32 DM_VERSION_PATCHLEVEL = 0x0 DT_BLK = 0x6 DT_CHR = 0x2 @@ -936,11 +942,10 @@ const ( EPOLL_CTL_MOD = 0x3 EPOLL_IOC_TYPE = 0x8a EROFS_SUPER_MAGIC_V1 = 0xe0f5e1e2 - ESP_V4_FLOW = 0xa - ESP_V6_FLOW = 0xc - ETHER_FLOW = 0x12 ETHTOOL_BUSINFO_LEN = 0x20 ETHTOOL_EROMVERS_LEN = 0x20 + ETHTOOL_FAMILY_NAME = "ethtool" + ETHTOOL_FAMILY_VERSION = 0x1 ETHTOOL_FEC_AUTO = 0x2 ETHTOOL_FEC_BASER = 0x10 ETHTOOL_FEC_LLRS = 0x20 @@ -1203,13 +1208,18 @@ const ( FAN_DENY = 0x2 FAN_ENABLE_AUDIT = 0x40 FAN_EPIDFD = -0x2 + FAN_ERRNO_BITS = 0x8 + FAN_ERRNO_MASK = 0xff + FAN_ERRNO_SHIFT = 0x18 FAN_EVENT_INFO_TYPE_DFID = 0x3 FAN_EVENT_INFO_TYPE_DFID_NAME = 0x2 FAN_EVENT_INFO_TYPE_ERROR = 0x5 FAN_EVENT_INFO_TYPE_FID = 0x1 + FAN_EVENT_INFO_TYPE_MNT = 0x7 FAN_EVENT_INFO_TYPE_NEW_DFID_NAME = 0xc FAN_EVENT_INFO_TYPE_OLD_DFID_NAME = 0xa FAN_EVENT_INFO_TYPE_PIDFD = 0x4 + FAN_EVENT_INFO_TYPE_RANGE = 0x6 FAN_EVENT_METADATA_LEN = 0x18 FAN_EVENT_ON_CHILD = 0x8000000 FAN_FS_ERROR = 0x8000 @@ -1224,9 +1234,12 @@ const ( FAN_MARK_IGNORED_SURV_MODIFY = 0x40 FAN_MARK_IGNORE_SURV = 0x440 FAN_MARK_INODE = 0x0 + FAN_MARK_MNTNS = 0x110 FAN_MARK_MOUNT = 0x10 FAN_MARK_ONLYDIR = 0x8 FAN_MARK_REMOVE = 0x2 + FAN_MNT_ATTACH = 0x1000000 + FAN_MNT_DETACH = 0x2000000 FAN_MODIFY = 0x2 FAN_MOVE = 0xc0 FAN_MOVED_FROM = 0x40 @@ -1240,6 +1253,7 @@ const ( FAN_OPEN_EXEC = 0x1000 FAN_OPEN_EXEC_PERM = 0x40000 FAN_OPEN_PERM = 0x10000 + FAN_PRE_ACCESS = 0x100000 FAN_Q_OVERFLOW = 0x4000 FAN_RENAME = 0x10000000 FAN_REPORT_DFID_NAME = 0xc00 @@ -1247,6 +1261,7 @@ const ( FAN_REPORT_DIR_FID = 0x400 FAN_REPORT_FD_ERROR = 0x2000 FAN_REPORT_FID = 0x200 + FAN_REPORT_MNT = 0x4000 FAN_REPORT_NAME = 0x800 FAN_REPORT_PIDFD = 0x80 FAN_REPORT_TARGET_FID = 0x1000 @@ -1266,6 +1281,7 @@ const ( FIB_RULE_PERMANENT = 0x1 FIB_RULE_UNRESOLVED = 0x4 FIDEDUPERANGE = 0xc0189436 + FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED = 0x1 FSCRYPT_KEY_DESCRIPTOR_SIZE = 0x8 FSCRYPT_KEY_DESC_PREFIX = "fscrypt:" FSCRYPT_KEY_DESC_PREFIX_SIZE = 0x8 @@ -1574,7 +1590,6 @@ const ( IPV6_DONTFRAG = 0x3e IPV6_DROP_MEMBERSHIP = 0x15 IPV6_DSTOPTS = 0x3b - IPV6_FLOW = 0x11 IPV6_FREEBIND = 0x4e IPV6_HDRINCL = 0x24 IPV6_HOPLIMIT = 0x34 @@ -1625,7 +1640,6 @@ const ( IPV6_TRANSPARENT = 0x4b IPV6_UNICAST_HOPS = 0x10 IPV6_UNICAST_IF = 0x4c - IPV6_USER_FLOW = 0xe IPV6_V6ONLY = 0x1a IPV6_VERSION = 0x60 IPV6_VERSION_MASK = 0xf0 @@ -1687,7 +1701,6 @@ const ( IP_TTL = 0x2 IP_UNBLOCK_SOURCE = 0x25 IP_UNICAST_IF = 0x32 - IP_USER_FLOW = 0xd IP_XFRM_POLICY = 0x11 ISOFS_SUPER_MAGIC = 0x9660 ISTRIP = 0x20 @@ -1809,7 +1822,11 @@ const ( LANDLOCK_ACCESS_FS_WRITE_FILE = 0x2 LANDLOCK_ACCESS_NET_BIND_TCP = 0x1 LANDLOCK_ACCESS_NET_CONNECT_TCP = 0x2 + LANDLOCK_CREATE_RULESET_ERRATA = 0x2 LANDLOCK_CREATE_RULESET_VERSION = 0x1 + LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON = 0x2 + LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF = 0x1 + LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF = 0x4 LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET = 0x1 LANDLOCK_SCOPE_SIGNAL = 0x2 LINUX_REBOOT_CMD_CAD_OFF = 0x0 @@ -2485,6 +2502,10 @@ const ( PR_FP_EXC_UND = 0x40000 PR_FP_MODE_FR = 0x1 PR_FP_MODE_FRE = 0x2 + PR_FUTEX_HASH = 0x4e + PR_FUTEX_HASH_GET_IMMUTABLE = 0x3 + PR_FUTEX_HASH_GET_SLOTS = 0x2 + PR_FUTEX_HASH_SET_SLOTS = 0x1 PR_GET_AUXV = 0x41555856 PR_GET_CHILD_SUBREAPER = 0x25 PR_GET_DUMPABLE = 0x3 @@ -2644,6 +2665,10 @@ const ( PR_TAGGED_ADDR_ENABLE = 0x1 PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_ENABLE = 0x20 + PR_TIMER_CREATE_RESTORE_IDS = 0x4d + PR_TIMER_CREATE_RESTORE_IDS_GET = 0x2 + PR_TIMER_CREATE_RESTORE_IDS_OFF = 0x0 + PR_TIMER_CREATE_RESTORE_IDS_ON = 0x1 PR_TIMING_STATISTICAL = 0x0 PR_TIMING_TIMESTAMP = 0x1 PR_TSC_ENABLE = 0x1 @@ -2724,6 +2749,7 @@ const ( PTRACE_SETREGSET = 0x4205 PTRACE_SETSIGINFO = 0x4203 PTRACE_SETSIGMASK = 0x420b + PTRACE_SET_SYSCALL_INFO = 0x4212 PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210 PTRACE_SINGLESTEP = 0x9 PTRACE_SYSCALL = 0x18 @@ -2787,7 +2813,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1e + RTA_MAX = 0x1f RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -2864,10 +2890,12 @@ const ( RTM_DELACTION = 0x31 RTM_DELADDR = 0x15 RTM_DELADDRLABEL = 0x49 + RTM_DELANYCAST = 0x3d RTM_DELCHAIN = 0x65 RTM_DELLINK = 0x11 RTM_DELLINKPROP = 0x6d RTM_DELMDB = 0x55 + RTM_DELMULTICAST = 0x39 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 RTM_DELNEXTHOP = 0x69 @@ -2917,11 +2945,13 @@ const ( RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 + RTM_NEWANYCAST = 0x3c RTM_NEWCACHEREPORT = 0x60 RTM_NEWCHAIN = 0x64 RTM_NEWLINK = 0x10 RTM_NEWLINKPROP = 0x6c RTM_NEWMDB = 0x54 + RTM_NEWMULTICAST = 0x38 RTM_NEWNDUSEROPT = 0x44 RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 @@ -2970,6 +3000,7 @@ const ( RTPROT_NTK = 0xf RTPROT_OPENR = 0x63 RTPROT_OSPF = 0xbc + RTPROT_OVN = 0x54 RTPROT_RA = 0x9 RTPROT_REDIRECT = 0x1 RTPROT_RIP = 0xbd @@ -2987,11 +3018,12 @@ const ( RUSAGE_THREAD = 0x1 RWF_APPEND = 0x10 RWF_ATOMIC = 0x40 + RWF_DONTCACHE = 0x80 RWF_DSYNC = 0x2 RWF_HIPRI = 0x1 RWF_NOAPPEND = 0x20 RWF_NOWAIT = 0x8 - RWF_SUPPORTED = 0x7f + RWF_SUPPORTED = 0xff RWF_SYNC = 0x4 RWF_WRITE_LIFE_NOT_SET = 0x0 SCHED_BATCH = 0x3 @@ -3271,6 +3303,7 @@ const ( STATX_BTIME = 0x800 STATX_CTIME = 0x80 STATX_DIOALIGN = 0x2000 + STATX_DIO_READ_ALIGN = 0x20000 STATX_GID = 0x10 STATX_INO = 0x100 STATX_MNT_ID = 0x1000 @@ -3322,7 +3355,7 @@ const ( TASKSTATS_GENL_NAME = "TASKSTATS" TASKSTATS_GENL_VERSION = 0x1 TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0xe + TASKSTATS_VERSION = 0x10 TCIFLUSH = 0x0 TCIOFF = 0x2 TCIOFLUSH = 0x2 @@ -3392,8 +3425,6 @@ const ( TCP_TX_DELAY = 0x25 TCP_ULP = 0x1f TCP_USER_TIMEOUT = 0x12 - TCP_V4_FLOW = 0x1 - TCP_V6_FLOW = 0x5 TCP_WINDOW_CLAMP = 0xa TCP_ZEROCOPY_RECEIVE = 0x23 TFD_TIMER_ABSTIME = 0x1 @@ -3503,6 +3534,7 @@ const ( TP_STATUS_WRONG_FORMAT = 0x4 TRACEFS_MAGIC = 0x74726163 TS_COMM_LEN = 0x20 + UBI_IOCECNFO = 0xc01c6f06 UDF_SUPER_MAGIC = 0x15013346 UDP_CORK = 0x1 UDP_ENCAP = 0x64 @@ -3515,8 +3547,6 @@ const ( UDP_NO_CHECK6_RX = 0x66 UDP_NO_CHECK6_TX = 0x65 UDP_SEGMENT = 0x67 - UDP_V4_FLOW = 0x2 - UDP_V6_FLOW = 0x6 UMOUNT_NOFOLLOW = 0x8 USBDEVICE_SUPER_MAGIC = 0x9fa2 UTIME_NOW = 0x3fffffff @@ -3559,7 +3589,7 @@ const ( WDIOS_TEMPPANIC = 0x4 WDIOS_UNKNOWN = -0x1 WEXITED = 0x4 - WGALLOWEDIP_A_MAX = 0x3 + WGALLOWEDIP_A_MAX = 0x4 WGDEVICE_A_MAX = 0x8 WGPEER_A_MAX = 0xa WG_CMD_MAX = 0x1 @@ -3673,6 +3703,7 @@ const ( XDP_SHARED_UMEM = 0x1 XDP_STATISTICS = 0x7 XDP_TXMD_FLAGS_CHECKSUM = 0x2 + XDP_TXMD_FLAGS_LAUNCH_TIME = 0x4 XDP_TXMD_FLAGS_TIMESTAMP = 0x1 XDP_TX_METADATA = 0x2 XDP_TX_RING = 0x3 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go index 75207613c7..1c37f9fbc4 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0xfd12 ECCGETLAYOUT = 0x81484d11 ECCGETSTATS = 0x80104d12 ECHOCTL = 0x200 @@ -360,6 +361,7 @@ const ( SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 @@ -372,6 +374,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x12 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x14 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x14 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go index c68acda535..6f54d34aef 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0xfd12 ECCGETLAYOUT = 0x81484d11 ECCGETSTATS = 0x80104d12 ECHOCTL = 0x200 @@ -361,6 +362,7 @@ const ( SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 @@ -373,6 +375,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x12 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x14 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x14 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go index a8c607ab86..783ec5c126 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0xfd12 ECCGETLAYOUT = 0x81484d11 ECCGETSTATS = 0x80104d12 ECHOCTL = 0x200 @@ -366,6 +367,7 @@ const ( SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 @@ -378,6 +380,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x12 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x14 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x14 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go index 18563dd8d3..ca83d3ba16 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0xfd12 ECCGETLAYOUT = 0x81484d11 ECCGETSTATS = 0x80104d12 ECHOCTL = 0x200 @@ -359,6 +360,7 @@ const ( SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 @@ -371,6 +373,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x12 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x14 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x14 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go index 22912cdaa9..607e611c0c 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0xfd12 ECCGETLAYOUT = 0x81484d11 ECCGETSTATS = 0x80104d12 ECHOCTL = 0x200 @@ -353,6 +354,7 @@ const ( SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 @@ -365,6 +367,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x12 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x14 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x14 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go index 29344eb37a..b9cb5bd3c0 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0x2000fd12 ECCGETLAYOUT = 0x41484d11 ECCGETSTATS = 0x40104d12 ECHOCTL = 0x200 @@ -359,6 +360,7 @@ const ( SO_OOBINLINE = 0x100 SO_PASSCRED = 0x11 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x12 @@ -371,6 +373,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x1004 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x1006 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x1006 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go index 20d51fb96a..65b078a638 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0x2000fd12 ECCGETLAYOUT = 0x41484d11 ECCGETSTATS = 0x40104d12 ECHOCTL = 0x200 @@ -359,6 +360,7 @@ const ( SO_OOBINLINE = 0x100 SO_PASSCRED = 0x11 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x12 @@ -371,6 +373,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x1004 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x1006 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x1006 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go index 321b60902a..5298a3033d 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0x2000fd12 ECCGETLAYOUT = 0x41484d11 ECCGETSTATS = 0x40104d12 ECHOCTL = 0x200 @@ -359,6 +360,7 @@ const ( SO_OOBINLINE = 0x100 SO_PASSCRED = 0x11 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x12 @@ -371,6 +373,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x1004 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x1006 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x1006 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go index 9bacdf1e27..7bc557c876 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0x2000fd12 ECCGETLAYOUT = 0x41484d11 ECCGETSTATS = 0x40104d12 ECHOCTL = 0x200 @@ -359,6 +360,7 @@ const ( SO_OOBINLINE = 0x100 SO_PASSCRED = 0x11 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x12 @@ -371,6 +373,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x1004 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x1006 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x1006 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go index c224272615..152399bb04 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go @@ -68,6 +68,7 @@ const ( CS8 = 0x300 CSIZE = 0x300 CSTOPB = 0x400 + DM_MPATH_PROBE_PATHS = 0x2000fd12 ECCGETLAYOUT = 0x41484d11 ECCGETSTATS = 0x40104d12 ECHOCTL = 0x40 @@ -414,6 +415,7 @@ const ( SO_OOBINLINE = 0xa SO_PASSCRED = 0x14 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x15 @@ -426,6 +428,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x10 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x12 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x12 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go index 6270c8ee13..1a1ce2409c 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -68,6 +68,7 @@ const ( CS8 = 0x300 CSIZE = 0x300 CSTOPB = 0x400 + DM_MPATH_PROBE_PATHS = 0x2000fd12 ECCGETLAYOUT = 0x41484d11 ECCGETSTATS = 0x40104d12 ECHOCTL = 0x40 @@ -418,6 +419,7 @@ const ( SO_OOBINLINE = 0xa SO_PASSCRED = 0x14 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x15 @@ -430,6 +432,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x10 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x12 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x12 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go index 9966c1941f..4231a1fb57 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -68,6 +68,7 @@ const ( CS8 = 0x300 CSIZE = 0x300 CSTOPB = 0x400 + DM_MPATH_PROBE_PATHS = 0x2000fd12 ECCGETLAYOUT = 0x41484d11 ECCGETSTATS = 0x40104d12 ECHOCTL = 0x40 @@ -418,6 +419,7 @@ const ( SO_OOBINLINE = 0xa SO_PASSCRED = 0x14 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x15 @@ -430,6 +432,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x10 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x12 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x12 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go index 848e5fcc42..21c0e95266 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0xfd12 ECCGETLAYOUT = 0x81484d11 ECCGETSTATS = 0x80104d12 ECHOCTL = 0x200 @@ -350,6 +351,7 @@ const ( SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 @@ -362,6 +364,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x12 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x14 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x14 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go index 669b2adb80..f00d1cd7cf 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -68,6 +68,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0xfd12 ECCGETLAYOUT = 0x81484d11 ECCGETSTATS = 0x80104d12 ECHOCTL = 0x200 @@ -422,6 +423,7 @@ const ( SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 SO_PASSPIDFD = 0x4c + SO_PASSRIGHTS = 0x53 SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 @@ -434,6 +436,7 @@ const ( SO_RCVBUFFORCE = 0x21 SO_RCVLOWAT = 0x12 SO_RCVMARK = 0x4b + SO_RCVPRIORITY = 0x52 SO_RCVTIMEO = 0x14 SO_RCVTIMEO_NEW = 0x42 SO_RCVTIMEO_OLD = 0x14 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go index 4834e57514..bc8d539e6a 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -71,6 +71,7 @@ const ( CS8 = 0x30 CSIZE = 0x30 CSTOPB = 0x40 + DM_MPATH_PROBE_PATHS = 0x2000fd12 ECCGETLAYOUT = 0x41484d11 ECCGETSTATS = 0x40104d12 ECHOCTL = 0x200 @@ -461,6 +462,7 @@ const ( SO_OOBINLINE = 0x100 SO_PASSCRED = 0x2 SO_PASSPIDFD = 0x55 + SO_PASSRIGHTS = 0x5c SO_PASSSEC = 0x1f SO_PEEK_OFF = 0x26 SO_PEERCRED = 0x40 @@ -473,6 +475,7 @@ const ( SO_RCVBUFFORCE = 0x100b SO_RCVLOWAT = 0x800 SO_RCVMARK = 0x54 + SO_RCVPRIORITY = 0x5b SO_RCVTIMEO = 0x2000 SO_RCVTIMEO_NEW = 0x44 SO_RCVTIMEO_OLD = 0x2000 diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go index c79aaff306..aca56ee494 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -462,4 +462,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go index 5eb450695e..2ea1ef58c3 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -385,4 +385,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go index 05e5029744..d22c8af319 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -426,4 +426,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go index 38c53ec51b..5ee264ae97 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -329,4 +329,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go index 31d2e71a18..f9f03ebf5f 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go @@ -325,4 +325,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go index f4184a336b..87c2118e84 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -446,4 +446,5 @@ const ( SYS_GETXATTRAT = 4464 SYS_LISTXATTRAT = 4465 SYS_REMOVEXATTRAT = 4466 + SYS_OPEN_TREE_ATTR = 4467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go index 05b9962278..391ad102fb 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -376,4 +376,5 @@ const ( SYS_GETXATTRAT = 5464 SYS_LISTXATTRAT = 5465 SYS_REMOVEXATTRAT = 5466 + SYS_OPEN_TREE_ATTR = 5467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go index 43a256e9e6..5656157757 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -376,4 +376,5 @@ const ( SYS_GETXATTRAT = 5464 SYS_LISTXATTRAT = 5465 SYS_REMOVEXATTRAT = 5466 + SYS_OPEN_TREE_ATTR = 5467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go index eea5ddfc22..0482b52e3c 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -446,4 +446,5 @@ const ( SYS_GETXATTRAT = 4464 SYS_LISTXATTRAT = 4465 SYS_REMOVEXATTRAT = 4466 + SYS_OPEN_TREE_ATTR = 4467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go index 0d777bfbb1..71806f08f3 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go @@ -453,4 +453,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go index b446365025..e35a710582 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -425,4 +425,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go index 0c7d21c188..2aea476705 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -425,4 +425,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go index 8405391698..6c9bb4e560 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go @@ -330,4 +330,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go index fcf1b790d6..680bc9915a 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -391,4 +391,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go index 52d15b5f9d..620f271052 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -404,4 +404,5 @@ const ( SYS_GETXATTRAT = 464 SYS_LISTXATTRAT = 465 SYS_REMOVEXATTRAT = 466 + SYS_OPEN_TREE_ATTR = 467 ) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vendor/golang.org/x/sys/unix/ztypes_linux.go index a46abe6472..cd236443f6 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux.go @@ -114,8 +114,10 @@ type Statx_t struct { Atomic_write_unit_min uint32 Atomic_write_unit_max uint32 Atomic_write_segments_max uint32 + Dio_read_offset_align uint32 + Atomic_write_unit_max_opt uint32 _ [1]uint32 - _ [9]uint64 + _ [8]uint64 } type Fsid struct { @@ -199,7 +201,8 @@ type FscryptAddKeyArg struct { Key_spec FscryptKeySpecifier Raw_size uint32 Key_id uint32 - _ [8]uint32 + Flags uint32 + _ [7]uint32 } type FscryptRemoveKeyArg struct { @@ -2226,8 +2229,11 @@ const ( NFT_PAYLOAD_LL_HEADER = 0x0 NFT_PAYLOAD_NETWORK_HEADER = 0x1 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 + NFT_PAYLOAD_INNER_HEADER = 0x3 + NFT_PAYLOAD_TUN_HEADER = 0x4 NFT_PAYLOAD_CSUM_NONE = 0x0 NFT_PAYLOAD_CSUM_INET = 0x1 + NFT_PAYLOAD_CSUM_SCTP = 0x2 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 NFTA_PAYLOAD_UNSPEC = 0x0 NFTA_PAYLOAD_DREG = 0x1 @@ -2314,6 +2320,11 @@ const ( NFT_CT_AVGPKT = 0x10 NFT_CT_ZONE = 0x11 NFT_CT_EVENTMASK = 0x12 + NFT_CT_SRC_IP = 0x13 + NFT_CT_DST_IP = 0x14 + NFT_CT_SRC_IP6 = 0x15 + NFT_CT_DST_IP6 = 0x16 + NFT_CT_ID = 0x17 NFTA_CT_UNSPEC = 0x0 NFTA_CT_DREG = 0x1 NFTA_CT_KEY = 0x2 @@ -2594,8 +2605,8 @@ const ( SOF_TIMESTAMPING_BIND_PHC = 0x8000 SOF_TIMESTAMPING_OPT_ID_TCP = 0x10000 - SOF_TIMESTAMPING_LAST = 0x20000 - SOF_TIMESTAMPING_MASK = 0x3ffff + SOF_TIMESTAMPING_LAST = 0x40000 + SOF_TIMESTAMPING_MASK = 0x7ffff SCM_TSTAMP_SND = 0x0 SCM_TSTAMP_SCHED = 0x1 @@ -3802,7 +3813,16 @@ const ( ETHTOOL_MSG_PSE_GET = 0x24 ETHTOOL_MSG_PSE_SET = 0x25 ETHTOOL_MSG_RSS_GET = 0x26 - ETHTOOL_MSG_USER_MAX = 0x2d + ETHTOOL_MSG_PLCA_GET_CFG = 0x27 + ETHTOOL_MSG_PLCA_SET_CFG = 0x28 + ETHTOOL_MSG_PLCA_GET_STATUS = 0x29 + ETHTOOL_MSG_MM_GET = 0x2a + ETHTOOL_MSG_MM_SET = 0x2b + ETHTOOL_MSG_MODULE_FW_FLASH_ACT = 0x2c + ETHTOOL_MSG_PHY_GET = 0x2d + ETHTOOL_MSG_TSCONFIG_GET = 0x2e + ETHTOOL_MSG_TSCONFIG_SET = 0x2f + ETHTOOL_MSG_USER_MAX = 0x2f ETHTOOL_MSG_KERNEL_NONE = 0x0 ETHTOOL_MSG_STRSET_GET_REPLY = 0x1 ETHTOOL_MSG_LINKINFO_GET_REPLY = 0x2 @@ -3842,7 +3862,17 @@ const ( ETHTOOL_MSG_MODULE_NTF = 0x24 ETHTOOL_MSG_PSE_GET_REPLY = 0x25 ETHTOOL_MSG_RSS_GET_REPLY = 0x26 - ETHTOOL_MSG_KERNEL_MAX = 0x2e + ETHTOOL_MSG_PLCA_GET_CFG_REPLY = 0x27 + ETHTOOL_MSG_PLCA_GET_STATUS_REPLY = 0x28 + ETHTOOL_MSG_PLCA_NTF = 0x29 + ETHTOOL_MSG_MM_GET_REPLY = 0x2a + ETHTOOL_MSG_MM_NTF = 0x2b + ETHTOOL_MSG_MODULE_FW_FLASH_NTF = 0x2c + ETHTOOL_MSG_PHY_GET_REPLY = 0x2d + ETHTOOL_MSG_PHY_NTF = 0x2e + ETHTOOL_MSG_TSCONFIG_GET_REPLY = 0x2f + ETHTOOL_MSG_TSCONFIG_SET_REPLY = 0x30 + ETHTOOL_MSG_KERNEL_MAX = 0x30 ETHTOOL_FLAG_COMPACT_BITSETS = 0x1 ETHTOOL_FLAG_OMIT_REPLY = 0x2 ETHTOOL_FLAG_STATS = 0x4 @@ -3949,7 +3979,12 @@ const ( ETHTOOL_A_RINGS_TCP_DATA_SPLIT = 0xb ETHTOOL_A_RINGS_CQE_SIZE = 0xc ETHTOOL_A_RINGS_TX_PUSH = 0xd - ETHTOOL_A_RINGS_MAX = 0x10 + ETHTOOL_A_RINGS_RX_PUSH = 0xe + ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN = 0xf + ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN_MAX = 0x10 + ETHTOOL_A_RINGS_HDS_THRESH = 0x11 + ETHTOOL_A_RINGS_HDS_THRESH_MAX = 0x12 + ETHTOOL_A_RINGS_MAX = 0x12 ETHTOOL_A_CHANNELS_UNSPEC = 0x0 ETHTOOL_A_CHANNELS_HEADER = 0x1 ETHTOOL_A_CHANNELS_RX_MAX = 0x2 @@ -4015,7 +4050,9 @@ const ( ETHTOOL_A_TSINFO_TX_TYPES = 0x3 ETHTOOL_A_TSINFO_RX_FILTERS = 0x4 ETHTOOL_A_TSINFO_PHC_INDEX = 0x5 - ETHTOOL_A_TSINFO_MAX = 0x6 + ETHTOOL_A_TSINFO_STATS = 0x6 + ETHTOOL_A_TSINFO_HWTSTAMP_PROVIDER = 0x7 + ETHTOOL_A_TSINFO_MAX = 0x9 ETHTOOL_A_CABLE_TEST_UNSPEC = 0x0 ETHTOOL_A_CABLE_TEST_HEADER = 0x1 ETHTOOL_A_CABLE_TEST_MAX = 0x1 @@ -4101,6 +4138,19 @@ const ( ETHTOOL_A_TUNNEL_INFO_MAX = 0x2 ) +const ( + TCP_V4_FLOW = 0x1 + UDP_V4_FLOW = 0x2 + TCP_V6_FLOW = 0x5 + UDP_V6_FLOW = 0x6 + ESP_V4_FLOW = 0xa + ESP_V6_FLOW = 0xc + IP_USER_FLOW = 0xd + IPV6_USER_FLOW = 0xe + IPV6_FLOW = 0x11 + ETHER_FLOW = 0x12 +) + const SPEED_UNKNOWN = -0x1 type EthtoolDrvinfo struct { @@ -4613,6 +4663,7 @@ const ( NL80211_ATTR_AKM_SUITES = 0x4c NL80211_ATTR_AP_ISOLATE = 0x60 NL80211_ATTR_AP_SETTINGS_FLAGS = 0x135 + NL80211_ATTR_ASSOC_SPP_AMSDU = 0x14a NL80211_ATTR_AUTH_DATA = 0x9c NL80211_ATTR_AUTH_TYPE = 0x35 NL80211_ATTR_BANDS = 0xef @@ -4623,6 +4674,7 @@ const ( NL80211_ATTR_BSS_BASIC_RATES = 0x24 NL80211_ATTR_BSS = 0x2f NL80211_ATTR_BSS_CTS_PROT = 0x1c + NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA = 0x147 NL80211_ATTR_BSS_HT_OPMODE = 0x6d NL80211_ATTR_BSSID = 0xf5 NL80211_ATTR_BSS_SELECT = 0xe3 @@ -4682,6 +4734,7 @@ const ( NL80211_ATTR_DTIM_PERIOD = 0xd NL80211_ATTR_DURATION = 0x57 NL80211_ATTR_EHT_CAPABILITY = 0x136 + NL80211_ATTR_EMA_RNR_ELEMS = 0x145 NL80211_ATTR_EML_CAPABILITY = 0x13d NL80211_ATTR_EXT_CAPA = 0xa9 NL80211_ATTR_EXT_CAPA_MASK = 0xaa @@ -4717,6 +4770,7 @@ const ( NL80211_ATTR_HIDDEN_SSID = 0x7e NL80211_ATTR_HT_CAPABILITY = 0x1f NL80211_ATTR_HT_CAPABILITY_MASK = 0x94 + NL80211_ATTR_HW_TIMESTAMP_ENABLED = 0x144 NL80211_ATTR_IE_ASSOC_RESP = 0x80 NL80211_ATTR_IE = 0x2a NL80211_ATTR_IE_PROBE_RESP = 0x7f @@ -4747,9 +4801,10 @@ const ( NL80211_ATTR_MAC_HINT = 0xc8 NL80211_ATTR_MAC_MASK = 0xd7 NL80211_ATTR_MAX_AP_ASSOC_STA = 0xca - NL80211_ATTR_MAX = 0x14d + NL80211_ATTR_MAX = 0x151 NL80211_ATTR_MAX_CRIT_PROT_DURATION = 0xb4 NL80211_ATTR_MAX_CSA_COUNTERS = 0xce + NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS = 0x143 NL80211_ATTR_MAX_MATCH_SETS = 0x85 NL80211_ATTR_MAX_NUM_AKM_SUITES = 0x13c NL80211_ATTR_MAX_NUM_PMKIDS = 0x56 @@ -4774,9 +4829,12 @@ const ( NL80211_ATTR_MGMT_SUBTYPE = 0x29 NL80211_ATTR_MLD_ADDR = 0x13a NL80211_ATTR_MLD_CAPA_AND_OPS = 0x13e + NL80211_ATTR_MLO_LINK_DISABLED = 0x146 NL80211_ATTR_MLO_LINK_ID = 0x139 NL80211_ATTR_MLO_LINKS = 0x138 NL80211_ATTR_MLO_SUPPORT = 0x13b + NL80211_ATTR_MLO_TTLM_DLINK = 0x148 + NL80211_ATTR_MLO_TTLM_ULINK = 0x149 NL80211_ATTR_MNTR_FLAGS = 0x17 NL80211_ATTR_MPATH_INFO = 0x1b NL80211_ATTR_MPATH_NEXT_HOP = 0x1a @@ -4809,12 +4867,14 @@ const ( NL80211_ATTR_PORT_AUTHORIZED = 0x103 NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN = 0x5 NL80211_ATTR_POWER_RULE_MAX_EIRP = 0x6 + NL80211_ATTR_POWER_RULE_PSD = 0x8 NL80211_ATTR_PREV_BSSID = 0x4f NL80211_ATTR_PRIVACY = 0x46 NL80211_ATTR_PROBE_RESP = 0x91 NL80211_ATTR_PROBE_RESP_OFFLOAD = 0x90 NL80211_ATTR_PROTOCOL_FEATURES = 0xad NL80211_ATTR_PS_STATE = 0x5d + NL80211_ATTR_PUNCT_BITMAP = 0x142 NL80211_ATTR_QOS_MAP = 0xc7 NL80211_ATTR_RADAR_BACKGROUND = 0x134 NL80211_ATTR_RADAR_EVENT = 0xa8 @@ -4943,7 +5003,9 @@ const ( NL80211_ATTR_WIPHY_FREQ = 0x26 NL80211_ATTR_WIPHY_FREQ_HINT = 0xc9 NL80211_ATTR_WIPHY_FREQ_OFFSET = 0x122 + NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS = 0x14c NL80211_ATTR_WIPHY_NAME = 0x2 + NL80211_ATTR_WIPHY_RADIOS = 0x14b NL80211_ATTR_WIPHY_RETRY_LONG = 0x3e NL80211_ATTR_WIPHY_RETRY_SHORT = 0x3d NL80211_ATTR_WIPHY_RTS_THRESHOLD = 0x40 @@ -4978,6 +5040,8 @@ const ( NL80211_BAND_ATTR_IFTYPE_DATA = 0x9 NL80211_BAND_ATTR_MAX = 0xd NL80211_BAND_ATTR_RATES = 0x2 + NL80211_BAND_ATTR_S1G_CAPA = 0xd + NL80211_BAND_ATTR_S1G_MCS_NSS_SET = 0xc NL80211_BAND_ATTR_VHT_CAPA = 0x8 NL80211_BAND_ATTR_VHT_MCS_SET = 0x7 NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 0x8 @@ -5001,6 +5065,10 @@ const ( NL80211_BSS_BEACON_INTERVAL = 0x4 NL80211_BSS_BEACON_TSF = 0xd NL80211_BSS_BSSID = 0x1 + NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH = 0x2 + NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 0x1 + NL80211_BSS_CANNOT_USE_REASONS = 0x18 + NL80211_BSS_CANNOT_USE_UHB_PWR_MISMATCH = 0x2 NL80211_BSS_CAPABILITY = 0x5 NL80211_BSS_CHAIN_SIGNAL = 0x13 NL80211_BSS_CHAN_WIDTH_10 = 0x1 @@ -5032,6 +5100,9 @@ const ( NL80211_BSS_STATUS = 0x9 NL80211_BSS_STATUS_IBSS_JOINED = 0x2 NL80211_BSS_TSF = 0x3 + NL80211_BSS_USE_FOR = 0x17 + NL80211_BSS_USE_FOR_MLD_LINK = 0x2 + NL80211_BSS_USE_FOR_NORMAL = 0x1 NL80211_CHAN_HT20 = 0x1 NL80211_CHAN_HT40MINUS = 0x2 NL80211_CHAN_HT40PLUS = 0x3 @@ -5117,7 +5188,8 @@ const ( NL80211_CMD_LEAVE_IBSS = 0x2c NL80211_CMD_LEAVE_MESH = 0x45 NL80211_CMD_LEAVE_OCB = 0x6d - NL80211_CMD_MAX = 0x9b + NL80211_CMD_LINKS_REMOVED = 0x9a + NL80211_CMD_MAX = 0x9d NL80211_CMD_MICHAEL_MIC_FAILURE = 0x29 NL80211_CMD_MODIFY_LINK_STA = 0x97 NL80211_CMD_NAN_MATCH = 0x78 @@ -5161,6 +5233,7 @@ const ( NL80211_CMD_SET_COALESCE = 0x65 NL80211_CMD_SET_CQM = 0x3f NL80211_CMD_SET_FILS_AAD = 0x92 + NL80211_CMD_SET_HW_TIMESTAMP = 0x99 NL80211_CMD_SET_INTERFACE = 0x6 NL80211_CMD_SET_KEY = 0xa NL80211_CMD_SET_MAC_ACL = 0x5d @@ -5180,6 +5253,7 @@ const ( NL80211_CMD_SET_SAR_SPECS = 0x8c NL80211_CMD_SET_STATION = 0x12 NL80211_CMD_SET_TID_CONFIG = 0x89 + NL80211_CMD_SET_TID_TO_LINK_MAPPING = 0x9b NL80211_CMD_SET_TX_BITRATE_MASK = 0x39 NL80211_CMD_SET_WDS_PEER = 0x42 NL80211_CMD_SET_WIPHY = 0x2 @@ -5247,6 +5321,7 @@ const ( NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 0x21 NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 0x22 NL80211_EXT_FEATURE_AQL = 0x28 + NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA = 0x40 NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 0x2e NL80211_EXT_FEATURE_BEACON_PROTECTION = 0x29 NL80211_EXT_FEATURE_BEACON_RATE_HE = 0x36 @@ -5262,6 +5337,7 @@ const ( NL80211_EXT_FEATURE_CQM_RSSI_LIST = 0xd NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT = 0x1b NL80211_EXT_FEATURE_DEL_IBSS_STA = 0x2c + NL80211_EXT_FEATURE_DFS_CONCURRENT = 0x43 NL80211_EXT_FEATURE_DFS_OFFLOAD = 0x19 NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 0x20 NL80211_EXT_FEATURE_EXT_KEY_ID = 0x24 @@ -5281,9 +5357,12 @@ const ( NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 0x14 NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 0x13 NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 0x31 + NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 0x42 + NL80211_EXT_FEATURE_OWE_OFFLOAD = 0x41 NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE = 0x3d NL80211_EXT_FEATURE_PROTECTED_TWT = 0x2b NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE = 0x39 + NL80211_EXT_FEATURE_PUNCT = 0x3e NL80211_EXT_FEATURE_RADAR_BACKGROUND = 0x3c NL80211_EXT_FEATURE_RRM = 0x1 NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 0x33 @@ -5295,8 +5374,10 @@ const ( NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 0x23 NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 0xc NL80211_EXT_FEATURE_SECURE_LTF = 0x37 + NL80211_EXT_FEATURE_SECURE_NAN = 0x3f NL80211_EXT_FEATURE_SECURE_RTT = 0x38 NL80211_EXT_FEATURE_SET_SCAN_DWELL = 0x5 + NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 0x44 NL80211_EXT_FEATURE_STA_TX_PWR = 0x25 NL80211_EXT_FEATURE_TXQS = 0x1c NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 0x35 @@ -5343,7 +5424,10 @@ const ( NL80211_FREQUENCY_ATTR_2MHZ = 0x16 NL80211_FREQUENCY_ATTR_4MHZ = 0x17 NL80211_FREQUENCY_ATTR_8MHZ = 0x18 + NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 0x21 + NL80211_FREQUENCY_ATTR_CAN_MONITOR = 0x20 NL80211_FREQUENCY_ATTR_DFS_CAC_TIME = 0xd + NL80211_FREQUENCY_ATTR_DFS_CONCURRENT = 0x1d NL80211_FREQUENCY_ATTR_DFS_STATE = 0x7 NL80211_FREQUENCY_ATTR_DFS_TIME = 0x8 NL80211_FREQUENCY_ATTR_DISABLED = 0x2 @@ -5351,12 +5435,14 @@ const ( NL80211_FREQUENCY_ATTR_GO_CONCURRENT = 0xf NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 0xe NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 0xf - NL80211_FREQUENCY_ATTR_MAX = 0x21 + NL80211_FREQUENCY_ATTR_MAX = 0x22 NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 0x6 NL80211_FREQUENCY_ATTR_NO_10MHZ = 0x11 NL80211_FREQUENCY_ATTR_NO_160MHZ = 0xc NL80211_FREQUENCY_ATTR_NO_20MHZ = 0x10 NL80211_FREQUENCY_ATTR_NO_320MHZ = 0x1a + NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 0x1f + NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT = 0x1e NL80211_FREQUENCY_ATTR_NO_80MHZ = 0xb NL80211_FREQUENCY_ATTR_NO_EHT = 0x1b NL80211_FREQUENCY_ATTR_NO_HE = 0x13 @@ -5364,8 +5450,11 @@ const ( NL80211_FREQUENCY_ATTR_NO_HT40_PLUS = 0xa NL80211_FREQUENCY_ATTR_NO_IBSS = 0x3 NL80211_FREQUENCY_ATTR_NO_IR = 0x3 + NL80211_FREQUENCY_ATTR_NO_UHB_AFC_CLIENT = 0x1f + NL80211_FREQUENCY_ATTR_NO_UHB_VLP_CLIENT = 0x1e NL80211_FREQUENCY_ATTR_OFFSET = 0x14 NL80211_FREQUENCY_ATTR_PASSIVE_SCAN = 0x3 + NL80211_FREQUENCY_ATTR_PSD = 0x1c NL80211_FREQUENCY_ATTR_RADAR = 0x5 NL80211_FREQUENCY_ATTR_WMM = 0x12 NL80211_FTM_RESP_ATTR_CIVICLOC = 0x3 @@ -5430,6 +5519,7 @@ const ( NL80211_IFTYPE_STATION = 0x2 NL80211_IFTYPE_UNSPECIFIED = 0x0 NL80211_IFTYPE_WDS = 0x5 + NL80211_KCK_EXT_LEN_32 = 0x20 NL80211_KCK_EXT_LEN = 0x18 NL80211_KCK_LEN = 0x10 NL80211_KEK_EXT_LEN = 0x20 @@ -5458,9 +5548,10 @@ const ( NL80211_MAX_SUPP_HT_RATES = 0x4d NL80211_MAX_SUPP_RATES = 0x20 NL80211_MAX_SUPP_REG_RULES = 0x80 + NL80211_MAX_SUPP_SELECTORS = 0x80 NL80211_MBSSID_CONFIG_ATTR_EMA = 0x5 NL80211_MBSSID_CONFIG_ATTR_INDEX = 0x3 - NL80211_MBSSID_CONFIG_ATTR_MAX = 0x5 + NL80211_MBSSID_CONFIG_ATTR_MAX = 0x6 NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 0x2 NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES = 0x1 NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 0x4 @@ -5703,11 +5794,16 @@ const ( NL80211_RADAR_PRE_CAC_EXPIRED = 0x4 NL80211_RATE_INFO_10_MHZ_WIDTH = 0xb NL80211_RATE_INFO_160_MHZ_WIDTH = 0xa + NL80211_RATE_INFO_16_MHZ_WIDTH = 0x1d + NL80211_RATE_INFO_1_MHZ_WIDTH = 0x19 + NL80211_RATE_INFO_2_MHZ_WIDTH = 0x1a NL80211_RATE_INFO_320_MHZ_WIDTH = 0x12 NL80211_RATE_INFO_40_MHZ_WIDTH = 0x3 + NL80211_RATE_INFO_4_MHZ_WIDTH = 0x1b NL80211_RATE_INFO_5_MHZ_WIDTH = 0xc NL80211_RATE_INFO_80_MHZ_WIDTH = 0x8 NL80211_RATE_INFO_80P80_MHZ_WIDTH = 0x9 + NL80211_RATE_INFO_8_MHZ_WIDTH = 0x1c NL80211_RATE_INFO_BITRATE32 = 0x5 NL80211_RATE_INFO_BITRATE = 0x1 NL80211_RATE_INFO_EHT_GI_0_8 = 0x0 @@ -5753,6 +5849,8 @@ const ( NL80211_RATE_INFO_HE_RU_ALLOC = 0x11 NL80211_RATE_INFO_MAX = 0x1d NL80211_RATE_INFO_MCS = 0x2 + NL80211_RATE_INFO_S1G_MCS = 0x17 + NL80211_RATE_INFO_S1G_NSS = 0x18 NL80211_RATE_INFO_SHORT_GI = 0x4 NL80211_RATE_INFO_VHT_MCS = 0x6 NL80211_RATE_INFO_VHT_NSS = 0x7 @@ -5770,14 +5868,19 @@ const ( NL80211_REKEY_DATA_KEK = 0x1 NL80211_REKEY_DATA_REPLAY_CTR = 0x3 NL80211_REPLAY_CTR_LEN = 0x8 + NL80211_RRF_ALLOW_6GHZ_VLP_AP = 0x1000000 NL80211_RRF_AUTO_BW = 0x800 NL80211_RRF_DFS = 0x10 + NL80211_RRF_DFS_CONCURRENT = 0x200000 NL80211_RRF_GO_CONCURRENT = 0x1000 NL80211_RRF_IR_CONCURRENT = 0x1000 NL80211_RRF_NO_160MHZ = 0x10000 NL80211_RRF_NO_320MHZ = 0x40000 + NL80211_RRF_NO_6GHZ_AFC_CLIENT = 0x800000 + NL80211_RRF_NO_6GHZ_VLP_CLIENT = 0x400000 NL80211_RRF_NO_80MHZ = 0x8000 NL80211_RRF_NO_CCK = 0x2 + NL80211_RRF_NO_EHT = 0x80000 NL80211_RRF_NO_HE = 0x20000 NL80211_RRF_NO_HT40 = 0x6000 NL80211_RRF_NO_HT40MINUS = 0x2000 @@ -5788,7 +5891,10 @@ const ( NL80211_RRF_NO_IR = 0x80 NL80211_RRF_NO_OFDM = 0x1 NL80211_RRF_NO_OUTDOOR = 0x8 + NL80211_RRF_NO_UHB_AFC_CLIENT = 0x800000 + NL80211_RRF_NO_UHB_VLP_CLIENT = 0x400000 NL80211_RRF_PASSIVE_SCAN = 0x80 + NL80211_RRF_PSD = 0x100000 NL80211_RRF_PTMP_ONLY = 0x40 NL80211_RRF_PTP_ONLY = 0x20 NL80211_RXMGMT_FLAG_ANSWERED = 0x1 @@ -5849,6 +5955,7 @@ const ( NL80211_STA_FLAG_MAX_OLD_API = 0x6 NL80211_STA_FLAG_MFP = 0x4 NL80211_STA_FLAG_SHORT_PREAMBLE = 0x2 + NL80211_STA_FLAG_SPP_AMSDU = 0x8 NL80211_STA_FLAG_TDLS_PEER = 0x6 NL80211_STA_FLAG_WME = 0x3 NL80211_STA_INFO_ACK_SIGNAL_AVG = 0x23 @@ -6007,6 +6114,13 @@ const ( NL80211_VHT_CAPABILITY_LEN = 0xc NL80211_VHT_NSS_MAX = 0x8 NL80211_WIPHY_NAME_MAXLEN = 0x40 + NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE = 0x2 + NL80211_WIPHY_RADIO_ATTR_INDEX = 0x1 + NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION = 0x3 + NL80211_WIPHY_RADIO_ATTR_MAX = 0x4 + NL80211_WIPHY_RADIO_FREQ_ATTR_END = 0x2 + NL80211_WIPHY_RADIO_FREQ_ATTR_MAX = 0x2 + NL80211_WIPHY_RADIO_FREQ_ATTR_START = 0x1 NL80211_WMMR_AIFSN = 0x3 NL80211_WMMR_CW_MAX = 0x2 NL80211_WMMR_CW_MIN = 0x1 @@ -6038,6 +6152,7 @@ const ( NL80211_WOWLAN_TRIG_PKT_PATTERN = 0x4 NL80211_WOWLAN_TRIG_RFKILL_RELEASE = 0x9 NL80211_WOWLAN_TRIG_TCP_CONNECTION = 0xe + NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC = 0x14 NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 = 0xa NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN = 0xb NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 = 0xc diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go index fd402da43f..485f2d3a1b 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go @@ -282,7 +282,7 @@ type Taskstats struct { Ac_exitcode uint32 Ac_flag uint8 Ac_nice uint8 - _ [4]byte + _ [6]byte Cpu_count uint64 Cpu_delay_total uint64 Blkio_count uint64 @@ -338,6 +338,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go index eb7a5e1864..ecbd1ad8bc 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go @@ -351,6 +351,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go index d78ac108b6..02f0463a44 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go @@ -91,7 +91,7 @@ type Stat_t struct { Gid uint32 Rdev uint64 _ uint16 - _ [4]byte + _ [6]byte Size int64 Blksize int32 _ [4]byte @@ -273,7 +273,7 @@ type Taskstats struct { Ac_exitcode uint32 Ac_flag uint8 Ac_nice uint8 - _ [4]byte + _ [6]byte Cpu_count uint64 Cpu_delay_total uint64 Blkio_count uint64 @@ -329,6 +329,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go index cd06d47f1f..6f4d400d24 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go @@ -330,6 +330,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go index 2f28fe26c1..cd532cfa55 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go @@ -331,6 +331,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go index 71d6cac2f1..4133620851 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go @@ -278,7 +278,7 @@ type Taskstats struct { Ac_exitcode uint32 Ac_flag uint8 Ac_nice uint8 - _ [4]byte + _ [6]byte Cpu_count uint64 Cpu_delay_total uint64 Blkio_count uint64 @@ -334,6 +334,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go index 8596d45356..eaa37eb718 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go @@ -333,6 +333,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go index cd60ea1866..98ae6a1e4a 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go @@ -333,6 +333,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go index b0ae420c48..cae1961594 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go @@ -278,7 +278,7 @@ type Taskstats struct { Ac_exitcode uint32 Ac_flag uint8 Ac_nice uint8 - _ [4]byte + _ [6]byte Cpu_count uint64 Cpu_delay_total uint64 Blkio_count uint64 @@ -334,6 +334,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go index 8359728759..6ce3b4e028 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go @@ -90,7 +90,7 @@ type Stat_t struct { Gid uint32 Rdev uint64 _ uint16 - _ [4]byte + _ [6]byte Size int64 Blksize int32 _ [4]byte @@ -285,7 +285,7 @@ type Taskstats struct { Ac_exitcode uint32 Ac_flag uint8 Ac_nice uint8 - _ [4]byte + _ [6]byte Cpu_count uint64 Cpu_delay_total uint64 Blkio_count uint64 @@ -341,6 +341,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go index 69eb6a5c68..c7429c6a14 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go @@ -340,6 +340,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go index 5f583cb62b..4bf4baf4ca 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go @@ -340,6 +340,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go index ad05b51a60..e9709d70af 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go @@ -358,6 +358,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go index cf3ce90037..fb44268ca7 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go @@ -353,6 +353,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go index 590b56739c..9c38265c74 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go @@ -335,6 +335,22 @@ type Taskstats struct { Wpcopy_delay_total uint64 Irq_count uint64 Irq_delay_total uint64 + Cpu_delay_max uint64 + Cpu_delay_min uint64 + Blkio_delay_max uint64 + Blkio_delay_min uint64 + Swapin_delay_max uint64 + Swapin_delay_min uint64 + Freepages_delay_max uint64 + Freepages_delay_min uint64 + Thrashing_delay_max uint64 + Thrashing_delay_min uint64 + Compact_delay_max uint64 + Compact_delay_min uint64 + Wpcopy_delay_max uint64 + Wpcopy_delay_min uint64 + Irq_delay_max uint64 + Irq_delay_min uint64 } type cpuMask uint64 diff --git a/vendor/golang.org/x/term/term_windows.go b/vendor/golang.org/x/term/term_windows.go index df6bf948e1..0ddd81c02a 100644 --- a/vendor/golang.org/x/term/term_windows.go +++ b/vendor/golang.org/x/term/term_windows.go @@ -20,12 +20,14 @@ func isTerminal(fd int) bool { return err == nil } +// This is intended to be used on a console input handle. +// See https://learn.microsoft.com/en-us/windows/console/setconsolemode func makeRaw(fd int) (*State, error) { var st uint32 if err := windows.GetConsoleMode(windows.Handle(fd), &st); err != nil { return nil, err } - raw := st &^ (windows.ENABLE_ECHO_INPUT | windows.ENABLE_PROCESSED_INPUT | windows.ENABLE_LINE_INPUT | windows.ENABLE_PROCESSED_OUTPUT) + raw := st &^ (windows.ENABLE_ECHO_INPUT | windows.ENABLE_PROCESSED_INPUT | windows.ENABLE_LINE_INPUT) raw |= windows.ENABLE_VIRTUAL_TERMINAL_INPUT if err := windows.SetConsoleMode(windows.Handle(fd), raw); err != nil { return nil, err diff --git a/vendor/golang.org/x/term/terminal.go b/vendor/golang.org/x/term/terminal.go index 13e9a64ad1..bddb2e2aeb 100644 --- a/vendor/golang.org/x/term/terminal.go +++ b/vendor/golang.org/x/term/terminal.go @@ -146,6 +146,7 @@ const ( keyCtrlD = 4 keyCtrlU = 21 keyEnter = '\r' + keyLF = '\n' keyEscape = 27 keyBackspace = 127 keyUnknown = 0xd800 /* UTF-16 surrogate area */ + iota @@ -497,7 +498,7 @@ func (t *Terminal) historyAdd(entry string) { // handleKey processes the given key and, optionally, returns a line of text // that the user has entered. func (t *Terminal) handleKey(key rune) (line string, ok bool) { - if t.pasteActive && key != keyEnter { + if t.pasteActive && key != keyEnter && key != keyLF { t.addKeyToLine(key) return } @@ -567,7 +568,7 @@ func (t *Terminal) handleKey(key rune) (line string, ok bool) { t.setLine(runes, len(runes)) } } - case keyEnter: + case keyEnter, keyLF: t.moveCursorToPos(len(t.line)) t.queue([]rune("\r\n")) line = string(t.line) @@ -812,6 +813,10 @@ func (t *Terminal) readLine() (line string, err error) { if !t.pasteActive { lineIsPasted = false } + // If we have CR, consume LF if present (CRLF sequence) to avoid returning an extra empty line. + if key == keyEnter && len(rest) > 0 && rest[0] == keyLF { + rest = rest[1:] + } line, lineOk = t.handleKey(key) } if len(rest) > 0 { diff --git a/vendor/golang.org/x/tools/go/packages/golist.go b/vendor/golang.org/x/tools/go/packages/golist.go index 96e43cd809..89f89dd2dc 100644 --- a/vendor/golang.org/x/tools/go/packages/golist.go +++ b/vendor/golang.org/x/tools/go/packages/golist.go @@ -224,13 +224,22 @@ extractQueries: return response.dr, nil } +// abs returns an absolute representation of path, based on cfg.Dir. +func (cfg *Config) abs(path string) (string, error) { + if filepath.IsAbs(path) { + return path, nil + } + // In case cfg.Dir is relative, pass it to filepath.Abs. + return filepath.Abs(filepath.Join(cfg.Dir, path)) +} + func (state *golistState) runContainsQueries(response *responseDeduper, queries []string) error { for _, query := range queries { // TODO(matloob): Do only one query per directory. fdir := filepath.Dir(query) // Pass absolute path of directory to go list so that it knows to treat it as a directory, // not a package path. - pattern, err := filepath.Abs(fdir) + pattern, err := state.cfg.abs(fdir) if err != nil { return fmt.Errorf("could not determine absolute path of file= query path %q: %v", query, err) } @@ -703,9 +712,8 @@ func (state *golistState) getGoVersion() (int, error) { // getPkgPath finds the package path of a directory if it's relative to a root // directory. func (state *golistState) getPkgPath(dir string) (string, bool, error) { - absDir, err := filepath.Abs(dir) - if err != nil { - return "", false, err + if !filepath.IsAbs(dir) { + panic("non-absolute dir passed to getPkgPath") } roots, err := state.determineRootDirs() if err != nil { @@ -715,7 +723,7 @@ func (state *golistState) getPkgPath(dir string) (string, bool, error) { for rdir, rpath := range roots { // Make sure that the directory is in the module, // to avoid creating a path relative to another module. - if !strings.HasPrefix(absDir, rdir) { + if !strings.HasPrefix(dir, rdir) { continue } // TODO(matloob): This doesn't properly handle symlinks. diff --git a/vendor/golang.org/x/tools/go/packages/golist_overlay.go b/vendor/golang.org/x/tools/go/packages/golist_overlay.go index d823c474ad..d9d5a45cd4 100644 --- a/vendor/golang.org/x/tools/go/packages/golist_overlay.go +++ b/vendor/golang.org/x/tools/go/packages/golist_overlay.go @@ -55,7 +55,7 @@ func (state *golistState) determineRootDirsModules() (map[string]string, error) } if mod.Dir != "" && mod.Path != "" { // This is a valid module; add it to the map. - absDir, err := filepath.Abs(mod.Dir) + absDir, err := state.cfg.abs(mod.Dir) if err != nil { return nil, err } diff --git a/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go b/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go index 16ed3c1780..d3c2913bef 100644 --- a/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go +++ b/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go @@ -603,7 +603,7 @@ func Object(pkg *types.Package, p Path) (types.Object, error) { type hasTypeParams interface { TypeParams() *types.TypeParamList } - // abstraction of *types.{Named,TypeParam} + // abstraction of *types.{Alias,Named,TypeParam} type hasObj interface { Obj() *types.TypeName } diff --git a/vendor/golang.org/x/tools/internal/packagesinternal/packages.go b/vendor/golang.org/x/tools/internal/packagesinternal/packages.go index 73eefa2a7d..929b470beb 100644 --- a/vendor/golang.org/x/tools/internal/packagesinternal/packages.go +++ b/vendor/golang.org/x/tools/internal/packagesinternal/packages.go @@ -5,6 +5,8 @@ // Package packagesinternal exposes internal-only fields from go/packages. package packagesinternal +import "fmt" + var GetDepsErrors = func(p any) []*PackageError { return nil } type PackageError struct { @@ -13,5 +15,9 @@ type PackageError struct { Err string // the error itself } +func (err PackageError) String() string { + return fmt.Sprintf("%s: %s (import stack: %s)", err.Pos, err.Err, err.ImportStack) +} + var TypecheckCgo int var DepsErrors int // must be set as a LoadMode to call GetDepsErrors diff --git a/vendor/golang.org/x/tools/internal/typesinternal/classify_call.go b/vendor/golang.org/x/tools/internal/typesinternal/classify_call.go index 649c82b6be..3db2a135b9 100644 --- a/vendor/golang.org/x/tools/internal/typesinternal/classify_call.go +++ b/vendor/golang.org/x/tools/internal/typesinternal/classify_call.go @@ -65,14 +65,16 @@ func ClassifyCall(info *types.Info, call *ast.CallExpr) CallKind { if info.Types == nil { panic("ClassifyCall: info.Types is nil") } - if info.Types[call.Fun].IsType() { + tv := info.Types[call.Fun] + if tv.IsType() { return CallConversion } + if tv.IsBuiltin() { + return CallBuiltin + } obj := info.Uses[UsedIdent(info, call.Fun)] // Classify the call by the type of the object, if any. switch obj := obj.(type) { - case *types.Builtin: - return CallBuiltin case *types.Func: if interfaceMethod(obj) { return CallInterface diff --git a/vendor/golang.org/x/tools/internal/typesinternal/types.go b/vendor/golang.org/x/tools/internal/typesinternal/types.go index cc244689ef..a5cd7e8dbf 100644 --- a/vendor/golang.org/x/tools/internal/typesinternal/types.go +++ b/vendor/golang.org/x/tools/internal/typesinternal/types.go @@ -69,6 +69,34 @@ func NameRelativeTo(pkg *types.Package) types.Qualifier { } } +// TypeNameFor returns the type name symbol for the specified type, if +// it is a [*types.Alias], [*types.Named], [*types.TypeParam], or a +// [*types.Basic] representing a type. +// +// For all other types, and for Basic types representing a builtin, +// constant, or nil, it returns nil. Be careful not to convert the +// resulting nil pointer to a [types.Object]! +// +// If t is the type of a constant, it may be an "untyped" type, which +// has no TypeName. To access the name of such types (e.g. "untyped +// int"), use [types.Basic.Name]. +func TypeNameFor(t types.Type) *types.TypeName { + switch t := t.(type) { + case *types.Alias: + return t.Obj() + case *types.Named: + return t.Obj() + case *types.TypeParam: + return t.Obj() + case *types.Basic: + // See issues #71886 and #66890 for some history. + if tname, ok := types.Universe.Lookup(t.Name()).(*types.TypeName); ok { + return tname + } + } + return nil +} + // A NamedOrAlias is a [types.Type] that is named (as // defined by the spec) and capable of bearing type parameters: it // abstracts aliases ([types.Alias]) and defined types @@ -77,7 +105,7 @@ func NameRelativeTo(pkg *types.Package) types.Qualifier { // Every type declared by an explicit "type" declaration is a // NamedOrAlias. (Built-in type symbols may additionally // have type [types.Basic], which is not a NamedOrAlias, -// though the spec regards them as "named".) +// though the spec regards them as "named"; see [TypeNameFor].) // // NamedOrAlias cannot expose the Origin method, because // [types.Alias.Origin] and [types.Named.Origin] have different @@ -85,32 +113,15 @@ func NameRelativeTo(pkg *types.Package) types.Qualifier { type NamedOrAlias interface { types.Type Obj() *types.TypeName - // TODO(hxjiang): add method TypeArgs() *types.TypeList after stop supporting go1.22. -} - -// TypeParams is a light shim around t.TypeParams(). -// (go/types.Alias).TypeParams requires >= 1.23. -func TypeParams(t NamedOrAlias) *types.TypeParamList { - switch t := t.(type) { - case *types.Alias: - return aliases.TypeParams(t) - case *types.Named: - return t.TypeParams() - } - return nil + TypeArgs() *types.TypeList + TypeParams() *types.TypeParamList + SetTypeParams(tparams []*types.TypeParam) } -// TypeArgs is a light shim around t.TypeArgs(). -// (go/types.Alias).TypeArgs requires >= 1.23. -func TypeArgs(t NamedOrAlias) *types.TypeList { - switch t := t.(type) { - case *types.Alias: - return aliases.TypeArgs(t) - case *types.Named: - return t.TypeArgs() - } - return nil -} +var ( + _ NamedOrAlias = (*types.Alias)(nil) + _ NamedOrAlias = (*types.Named)(nil) +) // Origin returns the generic type of the Named or Alias type t if it // is instantiated, otherwise it returns t. diff --git a/vendor/google.golang.org/grpc/internal/resolver/delegatingresolver/delegatingresolver.go b/vendor/google.golang.org/grpc/internal/resolver/delegatingresolver/delegatingresolver.go index 7b93f692be..c0e2275772 100644 --- a/vendor/google.golang.org/grpc/internal/resolver/delegatingresolver/delegatingresolver.go +++ b/vendor/google.golang.org/grpc/internal/resolver/delegatingresolver/delegatingresolver.go @@ -28,6 +28,8 @@ import ( "google.golang.org/grpc/grpclog" "google.golang.org/grpc/internal/proxyattributes" + "google.golang.org/grpc/internal/transport" + "google.golang.org/grpc/internal/transport/networktype" "google.golang.org/grpc/resolver" "google.golang.org/grpc/serviceconfig" ) @@ -40,7 +42,7 @@ var ( // delegatingResolver manages both target URI and proxy address resolution by // delegating these tasks to separate child resolvers. Essentially, it acts as -// a intermediary between the gRPC ClientConn and the child resolvers. +// an intermediary between the gRPC ClientConn and the child resolvers. // // It implements the [resolver.Resolver] interface. type delegatingResolver struct { @@ -48,6 +50,9 @@ type delegatingResolver struct { cc resolver.ClientConn // gRPC ClientConn proxyURL *url.URL // proxy URL, derived from proxy environment and target + // We do not hold both mu and childMu in the same goroutine. Avoid holding + // both locks when calling into the child, as the child resolver may + // synchronously callback into the channel. mu sync.Mutex // protects all the fields below targetResolverState *resolver.State // state of the target resolver proxyAddrs []resolver.Address // resolved proxy addresses; empty if no proxy is configured @@ -66,8 +71,8 @@ func (nopResolver) ResolveNow(resolver.ResolveNowOptions) {} func (nopResolver) Close() {} -// proxyURLForTarget determines the proxy URL for the given address based on -// the environment. It can return the following: +// proxyURLForTarget determines the proxy URL for the given address based on the +// environment. It can return the following: // - nil URL, nil error: No proxy is configured or the address is excluded // using the `NO_PROXY` environment variable or if req.URL.Host is // "localhost" (with or without // a port number) @@ -86,7 +91,8 @@ func proxyURLForTarget(address string) (*url.URL, error) { // resolvers: // - one to resolve the proxy address specified using the supported // environment variables. This uses the registered resolver for the "dns" -// scheme. +// scheme. It is lazily built when a target resolver update contains at least +// one TCP address. // - one to resolve the target URI using the resolver specified by the scheme // in the target URI or specified by the user using the WithResolvers dial // option. As a special case, if the target URI's scheme is "dns" and a @@ -95,8 +101,10 @@ func proxyURLForTarget(address string) (*url.URL, error) { // resolution is enabled using the dial option. func New(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions, targetResolverBuilder resolver.Builder, targetResolutionEnabled bool) (resolver.Resolver, error) { r := &delegatingResolver{ - target: target, - cc: cc, + target: target, + cc: cc, + proxyResolver: nopResolver{}, + targetResolver: nopResolver{}, } var err error @@ -123,37 +131,26 @@ func New(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOpti // resolution should be handled by the proxy, not the client. Therefore, we // bypass the target resolver and store the unresolved target address. if target.URL.Scheme == "dns" && !targetResolutionEnabled { - state := resolver.State{ + r.targetResolverState = &resolver.State{ Addresses: []resolver.Address{{Addr: target.Endpoint()}}, Endpoints: []resolver.Endpoint{{Addresses: []resolver.Address{{Addr: target.Endpoint()}}}}, } - r.targetResolverState = &state - } else { - wcc := &wrappingClientConn{ - stateListener: r.updateTargetResolverState, - parent: r, - } - if r.targetResolver, err = targetResolverBuilder.Build(target, wcc, opts); err != nil { - return nil, fmt.Errorf("delegating_resolver: unable to build the resolver for target %s: %v", target, err) - } - } - - if r.proxyResolver, err = r.proxyURIResolver(opts); err != nil { - return nil, fmt.Errorf("delegating_resolver: failed to build resolver for proxy URL %q: %v", r.proxyURL, err) + r.updateTargetResolverState(*r.targetResolverState) + return r, nil } - - if r.targetResolver == nil { - r.targetResolver = nopResolver{} + wcc := &wrappingClientConn{ + stateListener: r.updateTargetResolverState, + parent: r, } - if r.proxyResolver == nil { - r.proxyResolver = nopResolver{} + if r.targetResolver, err = targetResolverBuilder.Build(target, wcc, opts); err != nil { + return nil, fmt.Errorf("delegating_resolver: unable to build the resolver for target %s: %v", target, err) } return r, nil } -// proxyURIResolver creates a resolver for resolving proxy URIs using the -// "dns" scheme. It adjusts the proxyURL to conform to the "dns:///" format and -// builds a resolver with a wrappingClientConn to capture resolved addresses. +// proxyURIResolver creates a resolver for resolving proxy URIs using the "dns" +// scheme. It adjusts the proxyURL to conform to the "dns:///" format and builds +// a resolver with a wrappingClientConn to capture resolved addresses. func (r *delegatingResolver) proxyURIResolver(opts resolver.BuildOptions) (resolver.Resolver, error) { proxyBuilder := resolver.Get("dns") if proxyBuilder == nil { @@ -189,18 +186,43 @@ func (r *delegatingResolver) Close() { r.proxyResolver = nil } -// updateClientConnStateLocked creates a list of combined addresses by -// pairing each proxy address with every target address. For each pair, it -// generates a new [resolver.Address] using the proxy address, and adding the -// target address as the attribute along with user info. It returns nil if -// either resolver has not sent update even once and returns the error from -// ClientConn update once both resolvers have sent update atleast once. +func networkTypeFromAddr(addr resolver.Address) string { + networkType, ok := networktype.Get(addr) + if !ok { + networkType, _ = transport.ParseDialTarget(addr.Addr) + } + return networkType +} + +func isTCPAddressPresent(state *resolver.State) bool { + for _, addr := range state.Addresses { + if networkType := networkTypeFromAddr(addr); networkType == "tcp" { + return true + } + } + for _, endpoint := range state.Endpoints { + for _, addr := range endpoint.Addresses { + if networktype := networkTypeFromAddr(addr); networktype == "tcp" { + return true + } + } + } + return false +} + +// updateClientConnStateLocked constructs a combined list of addresses by +// pairing each proxy address with every target address of type TCP. For each +// pair, it creates a new [resolver.Address] using the proxy address and +// attaches the corresponding target address and user info as attributes. Target +// addresses that are not of type TCP are appended to the list as-is. The +// function returns nil if either resolver has not yet provided an update, and +// returns the result of ClientConn.UpdateState once both resolvers have +// provided at least one update. func (r *delegatingResolver) updateClientConnStateLocked() error { if r.targetResolverState == nil || r.proxyAddrs == nil { return nil } - curState := *r.targetResolverState // If multiple resolved proxy addresses are present, we send only the // unresolved proxy host and let net.Dial handle the proxy host name // resolution when creating the transport. Sending all resolved addresses @@ -218,24 +240,30 @@ func (r *delegatingResolver) updateClientConnStateLocked() error { } var addresses []resolver.Address for _, targetAddr := range (*r.targetResolverState).Addresses { + // Avoid proxy when network is not tcp. + if networkType := networkTypeFromAddr(targetAddr); networkType != "tcp" { + addresses = append(addresses, targetAddr) + continue + } addresses = append(addresses, proxyattributes.Set(proxyAddr, proxyattributes.Options{ User: r.proxyURL.User, ConnectAddr: targetAddr.Addr, })) } - // Create a list of combined endpoints by pairing all proxy endpoints - // with every target endpoint. Each time, it constructs a new - // [resolver.Endpoint] using the all addresses from all the proxy endpoint - // and the target addresses from one endpoint. The target address and user - // information from the proxy URL are added as attributes to the proxy - // address.The resulting list of addresses is then grouped into endpoints, - // covering all combinations of proxy and target endpoints. + // For each target endpoint, construct a new [resolver.Endpoint] that + // includes all addresses from all proxy endpoints and the addresses from + // that target endpoint, preserving the number of target endpoints. var endpoints []resolver.Endpoint for _, endpt := range (*r.targetResolverState).Endpoints { var addrs []resolver.Address - for _, proxyAddr := range r.proxyAddrs { - for _, targetAddr := range endpt.Addresses { + for _, targetAddr := range endpt.Addresses { + // Avoid proxy when network is not tcp. + if networkType := networkTypeFromAddr(targetAddr); networkType != "tcp" { + addrs = append(addrs, targetAddr) + continue + } + for _, proxyAddr := range r.proxyAddrs { addrs = append(addrs, proxyattributes.Set(proxyAddr, proxyattributes.Options{ User: r.proxyURL.User, ConnectAddr: targetAddr.Addr, @@ -246,8 +274,9 @@ func (r *delegatingResolver) updateClientConnStateLocked() error { } // Use the targetResolverState for its service config and attributes // contents. The state update is only sent after both the target and proxy - // resolvers have sent their updates, and curState has been updated with - // the combined addresses. + // resolvers have sent their updates, and curState has been updated with the + // combined addresses. + curState := *r.targetResolverState curState.Addresses = addresses curState.Endpoints = endpoints return r.cc.UpdateState(curState) @@ -257,7 +286,8 @@ func (r *delegatingResolver) updateClientConnStateLocked() error { // addresses and endpoints, marking the resolver as ready, and triggering a // state update if both proxy and target resolvers are ready. If the ClientConn // returns a non-nil error, it calls `ResolveNow()` on the target resolver. It -// is a StateListener function of wrappingClientConn passed to the proxy resolver. +// is a StateListener function of wrappingClientConn passed to the proxy +// resolver. func (r *delegatingResolver) updateProxyResolverState(state resolver.State) error { r.mu.Lock() defer r.mu.Unlock() @@ -265,8 +295,8 @@ func (r *delegatingResolver) updateProxyResolverState(state resolver.State) erro logger.Infof("Addresses received from proxy resolver: %s", state.Addresses) } if len(state.Endpoints) > 0 { - // We expect exactly one address per endpoint because the proxy - // resolver uses "dns" resolution. + // We expect exactly one address per endpoint because the proxy resolver + // uses "dns" resolution. r.proxyAddrs = make([]resolver.Address, 0, len(state.Endpoints)) for _, endpoint := range state.Endpoints { r.proxyAddrs = append(r.proxyAddrs, endpoint.Addresses...) @@ -294,11 +324,14 @@ func (r *delegatingResolver) updateProxyResolverState(state resolver.State) erro return err } -// updateTargetResolverState updates the target resolver state by storing target -// addresses, endpoints, and service config, marking the resolver as ready, and -// triggering a state update if both resolvers are ready. If the ClientConn -// returns a non-nil error, it calls `ResolveNow()` on the proxy resolver. It -// is a StateListener function of wrappingClientConn passed to the target resolver. +// updateTargetResolverState is the StateListener function provided to the +// target resolver via wrappingClientConn. It updates the resolver state and +// marks the target resolver as ready. If the update includes at least one TCP +// address and the proxy resolver has not yet been constructed, it initializes +// the proxy resolver. A combined state update is triggered once both resolvers +// are ready. If all addresses are non-TCP, it proceeds without waiting for the +// proxy resolver. If ClientConn.UpdateState returns a non-nil error, +// ResolveNow() is called on the proxy resolver. func (r *delegatingResolver) updateTargetResolverState(state resolver.State) error { r.mu.Lock() defer r.mu.Unlock() @@ -307,6 +340,31 @@ func (r *delegatingResolver) updateTargetResolverState(state resolver.State) err logger.Infof("Addresses received from target resolver: %v", state.Addresses) } r.targetResolverState = &state + // If no addresses returned by resolver have network type as tcp , do not + // wait for proxy update. + if !isTCPAddressPresent(r.targetResolverState) { + return r.cc.UpdateState(*r.targetResolverState) + } + + // The proxy resolver may be rebuilt multiple times, specifically each time + // the target resolver sends an update, even if the target resolver is built + // successfully but building the proxy resolver fails. + if len(r.proxyAddrs) == 0 { + go func() { + r.childMu.Lock() + defer r.childMu.Unlock() + if _, ok := r.proxyResolver.(nopResolver); !ok { + return + } + proxyResolver, err := r.proxyURIResolver(resolver.BuildOptions{}) + if err != nil { + r.cc.ReportError(fmt.Errorf("delegating_resolver: unable to build the proxy resolver: %v", err)) + return + } + r.proxyResolver = proxyResolver + }() + } + err := r.updateClientConnStateLocked() if err != nil { go func() { @@ -335,7 +393,8 @@ func (wcc *wrappingClientConn) UpdateState(state resolver.State) error { return wcc.stateListener(state) } -// ReportError intercepts errors from the child resolvers and passes them to ClientConn. +// ReportError intercepts errors from the child resolvers and passes them to +// ClientConn. func (wcc *wrappingClientConn) ReportError(err error) { wcc.parent.cc.ReportError(err) } @@ -346,8 +405,8 @@ func (wcc *wrappingClientConn) NewAddress(addrs []resolver.Address) { wcc.UpdateState(resolver.State{Addresses: addrs}) } -// ParseServiceConfig parses the provided service config and returns an -// object that provides the parsed config. +// ParseServiceConfig parses the provided service config and returns an object +// that provides the parsed config. func (wcc *wrappingClientConn) ParseServiceConfig(serviceConfigJSON string) *serviceconfig.ParseResult { return wcc.parent.cc.ParseServiceConfig(serviceConfigJSON) } diff --git a/vendor/google.golang.org/grpc/internal/transport/http2_client.go b/vendor/google.golang.org/grpc/internal/transport/http2_client.go index ae9316662e..171e690a3f 100644 --- a/vendor/google.golang.org/grpc/internal/transport/http2_client.go +++ b/vendor/google.golang.org/grpc/internal/transport/http2_client.go @@ -176,7 +176,7 @@ func dial(ctx context.Context, fn func(context.Context, string) (net.Conn, error return fn(ctx, address) } if !ok { - networkType, address = parseDialTarget(address) + networkType, address = ParseDialTarget(address) } if opts, present := proxyattributes.Get(addr); present { return proxyDial(ctx, addr, grpcUA, opts) @@ -1242,7 +1242,8 @@ func (t *http2Client) handleRSTStream(f *http2.RSTStreamFrame) { statusCode = codes.DeadlineExceeded } } - t.closeStream(s, io.EOF, false, http2.ErrCodeNo, status.Newf(statusCode, "stream terminated by RST_STREAM with error code: %v", f.ErrCode), nil, false) + st := status.Newf(statusCode, "stream terminated by RST_STREAM with error code: %v", f.ErrCode) + t.closeStream(s, st.Err(), false, http2.ErrCodeNo, st, nil, false) } func (t *http2Client) handleSettings(f *http2.SettingsFrame, isFirst bool) { diff --git a/vendor/google.golang.org/grpc/internal/transport/http_util.go b/vendor/google.golang.org/grpc/internal/transport/http_util.go index 3613d7b648..f997f9fdb5 100644 --- a/vendor/google.golang.org/grpc/internal/transport/http_util.go +++ b/vendor/google.golang.org/grpc/internal/transport/http_util.go @@ -439,8 +439,8 @@ func getWriteBufferPool(size int) *sync.Pool { return pool } -// parseDialTarget returns the network and address to pass to dialer. -func parseDialTarget(target string) (string, string) { +// ParseDialTarget returns the network and address to pass to dialer. +func ParseDialTarget(target string) (string, string) { net := "tcp" m1 := strings.Index(target, ":") m2 := strings.Index(target, ":/") diff --git a/vendor/google.golang.org/grpc/version.go b/vendor/google.golang.org/grpc/version.go index 90237b1dbb..51da8ed590 100644 --- a/vendor/google.golang.org/grpc/version.go +++ b/vendor/google.golang.org/grpc/version.go @@ -19,4 +19,4 @@ package grpc // Version is the current grpc version. -const Version = "1.72.0" +const Version = "1.72.1" diff --git a/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb b/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb index 5a57ef6f3c80a4a930b7bdb33b039ea94d1eb5f2..323829da1477e4496d664b2a1092a9f9cec275d4 100644 GIT binary patch literal 146 zcmX}mF%Ezr3X5(&e%rBRTLK{CjOa+)E@2mYkk=mEF7 B6)FG# literal 138 zcmd;*muO*EV!mX@pe4$|D8MAaq`<7fXux#Ijt$6VkYMDJmv|0Wz$CyZ!KlClRKN&Q wzyMY7f?Y`%s2WL*1th1%ddZFnY{E-+C6MVz3P75fB^b3pHY+@1*LcYe04AXnGXMYp diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/editions.go b/vendor/google.golang.org/protobuf/internal/filedesc/editions.go index 10132c9b38..b08b71830c 100644 --- a/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +++ b/vendor/google.golang.org/protobuf/internal/filedesc/editions.go @@ -69,6 +69,9 @@ func unmarshalFeatureSet(b []byte, parent EditionFeatures) EditionFeatures { parent.IsDelimitedEncoded = v == genid.FeatureSet_DELIMITED_enum_value case genid.FeatureSet_JsonFormat_field_number: parent.IsJSONCompliant = v == genid.FeatureSet_ALLOW_enum_value + case genid.FeatureSet_EnforceNamingStyle_field_number: + // EnforceNamingStyle is enforced in protoc, languages other than C++ + // are not supposed to do anything with this feature. default: panic(fmt.Sprintf("unkown field number %d while unmarshalling FeatureSet", num)) } diff --git a/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go b/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go index f30ab6b586..39524782ad 100644 --- a/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +++ b/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go @@ -1014,6 +1014,7 @@ const ( FeatureSet_Utf8Validation_field_name protoreflect.Name = "utf8_validation" FeatureSet_MessageEncoding_field_name protoreflect.Name = "message_encoding" FeatureSet_JsonFormat_field_name protoreflect.Name = "json_format" + FeatureSet_EnforceNamingStyle_field_name protoreflect.Name = "enforce_naming_style" FeatureSet_FieldPresence_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.field_presence" FeatureSet_EnumType_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.enum_type" @@ -1021,6 +1022,7 @@ const ( FeatureSet_Utf8Validation_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.utf8_validation" FeatureSet_MessageEncoding_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.message_encoding" FeatureSet_JsonFormat_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.json_format" + FeatureSet_EnforceNamingStyle_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.enforce_naming_style" ) // Field numbers for google.protobuf.FeatureSet. @@ -1031,6 +1033,7 @@ const ( FeatureSet_Utf8Validation_field_number protoreflect.FieldNumber = 4 FeatureSet_MessageEncoding_field_number protoreflect.FieldNumber = 5 FeatureSet_JsonFormat_field_number protoreflect.FieldNumber = 6 + FeatureSet_EnforceNamingStyle_field_number protoreflect.FieldNumber = 7 ) // Full and short names for google.protobuf.FeatureSet.FieldPresence. @@ -1112,6 +1115,19 @@ const ( FeatureSet_LEGACY_BEST_EFFORT_enum_value = 2 ) +// Full and short names for google.protobuf.FeatureSet.EnforceNamingStyle. +const ( + FeatureSet_EnforceNamingStyle_enum_fullname = "google.protobuf.FeatureSet.EnforceNamingStyle" + FeatureSet_EnforceNamingStyle_enum_name = "EnforceNamingStyle" +) + +// Enum values for google.protobuf.FeatureSet.EnforceNamingStyle. +const ( + FeatureSet_ENFORCE_NAMING_STYLE_UNKNOWN_enum_value = 0 + FeatureSet_STYLE2024_enum_value = 1 + FeatureSet_STYLE_LEGACY_enum_value = 2 +) + // Names for google.protobuf.FeatureSetDefaults. const ( FeatureSetDefaults_message_name protoreflect.Name = "FeatureSetDefaults" diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go121.go b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go similarity index 99% rename from vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go121.go rename to vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go index 1ffddf6877..42dd6f70c6 100644 --- a/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go121.go +++ b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build go1.21 - package strs import ( diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go deleted file mode 100644 index 832a7988f1..0000000000 --- a/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go +++ /dev/null @@ -1,94 +0,0 @@ -// 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. - -//go:build !go1.21 - -package strs - -import ( - "unsafe" - - "google.golang.org/protobuf/reflect/protoreflect" -) - -type ( - stringHeader struct { - Data unsafe.Pointer - Len int - } - sliceHeader struct { - Data unsafe.Pointer - Len int - Cap int - } -) - -// UnsafeString returns an unsafe string reference of b. -// The caller must treat the input slice as immutable. -// -// WARNING: Use carefully. The returned result must not leak to the end user -// unless the input slice is provably immutable. -func UnsafeString(b []byte) (s string) { - src := (*sliceHeader)(unsafe.Pointer(&b)) - dst := (*stringHeader)(unsafe.Pointer(&s)) - dst.Data = src.Data - dst.Len = src.Len - return s -} - -// UnsafeBytes returns an unsafe bytes slice reference of s. -// The caller must treat returned slice as immutable. -// -// WARNING: Use carefully. The returned result must not leak to the end user. -func UnsafeBytes(s string) (b []byte) { - src := (*stringHeader)(unsafe.Pointer(&s)) - dst := (*sliceHeader)(unsafe.Pointer(&b)) - dst.Data = src.Data - dst.Len = src.Len - dst.Cap = src.Len - return b -} - -// Builder builds a set of strings with shared lifetime. -// This differs from strings.Builder, which is for building a single string. -type Builder struct { - buf []byte -} - -// AppendFullName is equivalent to protoreflect.FullName.Append, -// but optimized for large batches where each name has a shared lifetime. -func (sb *Builder) AppendFullName(prefix protoreflect.FullName, name protoreflect.Name) protoreflect.FullName { - n := len(prefix) + len(".") + len(name) - if len(prefix) == 0 { - n -= len(".") - } - sb.grow(n) - sb.buf = append(sb.buf, prefix...) - sb.buf = append(sb.buf, '.') - sb.buf = append(sb.buf, name...) - return protoreflect.FullName(sb.last(n)) -} - -// MakeString is equivalent to string(b), but optimized for large batches -// with a shared lifetime. -func (sb *Builder) MakeString(b []byte) string { - sb.grow(len(b)) - sb.buf = append(sb.buf, b...) - return sb.last(len(b)) -} - -func (sb *Builder) grow(n int) { - if cap(sb.buf)-len(sb.buf) >= n { - return - } - - // Unlike strings.Builder, we do not need to copy over the contents - // of the old buffer since our builder provides no API for - // retrieving previously created strings. - sb.buf = make([]byte, 0, 2*(cap(sb.buf)+n)) -} - -func (sb *Builder) last(n int) string { - return UnsafeString(sb.buf[len(sb.buf)-n:]) -} diff --git a/vendor/google.golang.org/protobuf/internal/version/version.go b/vendor/google.golang.org/protobuf/internal/version/version.go index 01efc33030..aac1cb18a7 100644 --- a/vendor/google.golang.org/protobuf/internal/version/version.go +++ b/vendor/google.golang.org/protobuf/internal/version/version.go @@ -52,7 +52,7 @@ import ( const ( Major = 1 Minor = 36 - Patch = 5 + Patch = 6 PreRelease = "" ) diff --git a/vendor/google.golang.org/protobuf/proto/merge.go b/vendor/google.golang.org/protobuf/proto/merge.go index 3c6fe57807..ef55b97dde 100644 --- a/vendor/google.golang.org/protobuf/proto/merge.go +++ b/vendor/google.golang.org/protobuf/proto/merge.go @@ -59,6 +59,12 @@ func Clone(m Message) Message { return dst.Interface() } +// CloneOf returns a deep copy of m. If the top-level message is invalid, +// it returns an invalid message as well. +func CloneOf[M Message](m M) M { + return Clone(m).(M) +} + // mergeOptions provides a namespace for merge functions, and can be // exported in the future if we add user-visible merge options. type mergeOptions struct{} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go index ea154eec44..a4a0a2971d 100644 --- a/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go @@ -398,6 +398,8 @@ func (p *SourcePath) appendFeatureSet(b []byte) []byte { b = p.appendSingularField(b, "message_encoding", nil) case 6: b = p.appendSingularField(b, "json_format", nil) + case 7: + b = p.appendSingularField(b, "enforce_naming_style", nil) } return b } diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go121.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go similarity index 99% rename from vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go121.go rename to vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go index 479527b58d..fe17f37220 100644 --- a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go121.go +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build go1.21 - package protoreflect import ( diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go deleted file mode 100644 index 0015fcb35d..0000000000 --- a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go +++ /dev/null @@ -1,98 +0,0 @@ -// 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. - -//go:build !go1.21 - -package protoreflect - -import ( - "unsafe" - - "google.golang.org/protobuf/internal/pragma" -) - -type ( - stringHeader struct { - Data unsafe.Pointer - Len int - } - sliceHeader struct { - Data unsafe.Pointer - Len int - Cap int - } - ifaceHeader struct { - Type unsafe.Pointer - Data unsafe.Pointer - } -) - -var ( - nilType = typeOf(nil) - boolType = typeOf(*new(bool)) - int32Type = typeOf(*new(int32)) - int64Type = typeOf(*new(int64)) - uint32Type = typeOf(*new(uint32)) - uint64Type = typeOf(*new(uint64)) - float32Type = typeOf(*new(float32)) - float64Type = typeOf(*new(float64)) - stringType = typeOf(*new(string)) - bytesType = typeOf(*new([]byte)) - enumType = typeOf(*new(EnumNumber)) -) - -// typeOf returns a pointer to the Go type information. -// The pointer is comparable and equal if and only if the types are identical. -func typeOf(t any) unsafe.Pointer { - return (*ifaceHeader)(unsafe.Pointer(&t)).Type -} - -// value is a union where only one type can be represented at a time. -// The struct is 24B large on 64-bit systems and requires the minimum storage -// necessary to represent each possible type. -// -// The Go GC needs to be able to scan variables containing pointers. -// As such, pointers and non-pointers cannot be intermixed. -type value struct { - pragma.DoNotCompare // 0B - - // typ stores the type of the value as a pointer to the Go type. - typ unsafe.Pointer // 8B - - // ptr stores the data pointer for a String, Bytes, or interface value. - ptr unsafe.Pointer // 8B - - // num stores a Bool, Int32, Int64, Uint32, Uint64, Float32, Float64, or - // Enum value as a raw uint64. - // - // It is also used to store the length of a String or Bytes value; - // the capacity is ignored. - num uint64 // 8B -} - -func valueOfString(v string) Value { - p := (*stringHeader)(unsafe.Pointer(&v)) - return Value{typ: stringType, ptr: p.Data, num: uint64(len(v))} -} -func valueOfBytes(v []byte) Value { - p := (*sliceHeader)(unsafe.Pointer(&v)) - return Value{typ: bytesType, ptr: p.Data, num: uint64(len(v))} -} -func valueOfIface(v any) Value { - p := (*ifaceHeader)(unsafe.Pointer(&v)) - return Value{typ: p.Type, ptr: p.Data} -} - -func (v Value) getString() (x string) { - *(*stringHeader)(unsafe.Pointer(&x)) = stringHeader{Data: v.ptr, Len: int(v.num)} - return x -} -func (v Value) getBytes() (x []byte) { - *(*sliceHeader)(unsafe.Pointer(&x)) = sliceHeader{Data: v.ptr, Len: int(v.num), Cap: int(v.num)} - return x -} -func (v Value) getIface() (x any) { - *(*ifaceHeader)(unsafe.Pointer(&x)) = ifaceHeader{Type: v.typ, Data: v.ptr} - return x -} diff --git a/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go b/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go index a516337674..7fe280f194 100644 --- a/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go +++ b/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go @@ -1139,6 +1139,65 @@ func (FeatureSet_JsonFormat) EnumDescriptor() ([]byte, []int) { return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{19, 5} } +type FeatureSet_EnforceNamingStyle int32 + +const ( + FeatureSet_ENFORCE_NAMING_STYLE_UNKNOWN FeatureSet_EnforceNamingStyle = 0 + FeatureSet_STYLE2024 FeatureSet_EnforceNamingStyle = 1 + FeatureSet_STYLE_LEGACY FeatureSet_EnforceNamingStyle = 2 +) + +// Enum value maps for FeatureSet_EnforceNamingStyle. +var ( + FeatureSet_EnforceNamingStyle_name = map[int32]string{ + 0: "ENFORCE_NAMING_STYLE_UNKNOWN", + 1: "STYLE2024", + 2: "STYLE_LEGACY", + } + FeatureSet_EnforceNamingStyle_value = map[string]int32{ + "ENFORCE_NAMING_STYLE_UNKNOWN": 0, + "STYLE2024": 1, + "STYLE_LEGACY": 2, + } +) + +func (x FeatureSet_EnforceNamingStyle) Enum() *FeatureSet_EnforceNamingStyle { + p := new(FeatureSet_EnforceNamingStyle) + *p = x + return p +} + +func (x FeatureSet_EnforceNamingStyle) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FeatureSet_EnforceNamingStyle) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[16].Descriptor() +} + +func (FeatureSet_EnforceNamingStyle) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[16] +} + +func (x FeatureSet_EnforceNamingStyle) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FeatureSet_EnforceNamingStyle) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FeatureSet_EnforceNamingStyle(num) + return nil +} + +// Deprecated: Use FeatureSet_EnforceNamingStyle.Descriptor instead. +func (FeatureSet_EnforceNamingStyle) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{19, 6} +} + // Represents the identified object's effect on the element in the original // .proto file. type GeneratedCodeInfo_Annotation_Semantic int32 @@ -1177,11 +1236,11 @@ func (x GeneratedCodeInfo_Annotation_Semantic) String() string { } func (GeneratedCodeInfo_Annotation_Semantic) Descriptor() protoreflect.EnumDescriptor { - return file_google_protobuf_descriptor_proto_enumTypes[16].Descriptor() + return file_google_protobuf_descriptor_proto_enumTypes[17].Descriptor() } func (GeneratedCodeInfo_Annotation_Semantic) Type() protoreflect.EnumType { - return &file_google_protobuf_descriptor_proto_enumTypes[16] + return &file_google_protobuf_descriptor_proto_enumTypes[17] } func (x GeneratedCodeInfo_Annotation_Semantic) Number() protoreflect.EnumNumber { @@ -1277,8 +1336,14 @@ type FileDescriptorProto struct { // The supported values are "proto2", "proto3", and "editions". // // If `edition` is present, this value must be "editions". + // WARNING: This field should only be used by protobuf plugins or special + // cases like the proto compiler. Other uses are discouraged and + // developers should rely on the protoreflect APIs for their client language. Syntax *string `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"` // The edition of the proto file. + // WARNING: This field should only be used by protobuf plugins or special + // cases like the proto compiler. Other uses are discouraged and + // developers should rely on the protoreflect APIs for their client language. Edition *Edition `protobuf:"varint,14,opt,name=edition,enum=google.protobuf.Edition" json:"edition,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -2212,6 +2277,9 @@ type FileOptions struct { // determining the ruby package. RubyPackage *string `protobuf:"bytes,45,opt,name=ruby_package,json=rubyPackage" json:"ruby_package,omitempty"` // Any features defined in the specific edition. + // WARNING: This field should only be used by protobuf plugins or special + // cases like the proto compiler. Other uses are discouraged and + // developers should rely on the protoreflect APIs for their client language. Features *FeatureSet `protobuf:"bytes,50,opt,name=features" json:"features,omitempty"` // The parser stores options it doesn't recognize here. // See the documentation for the "Options" section above. @@ -2482,6 +2550,9 @@ type MessageOptions struct { // Deprecated: Marked as deprecated in google/protobuf/descriptor.proto. DeprecatedLegacyJsonFieldConflicts *bool `protobuf:"varint,11,opt,name=deprecated_legacy_json_field_conflicts,json=deprecatedLegacyJsonFieldConflicts" json:"deprecated_legacy_json_field_conflicts,omitempty"` // Any features defined in the specific edition. + // WARNING: This field should only be used by protobuf plugins or special + // cases like the proto compiler. Other uses are discouraged and + // developers should rely on the protoreflect APIs for their client language. Features *FeatureSet `protobuf:"bytes,12,opt,name=features" json:"features,omitempty"` // The parser stores options it doesn't recognize here. See above. UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` @@ -2648,6 +2719,9 @@ type FieldOptions struct { Targets []FieldOptions_OptionTargetType `protobuf:"varint,19,rep,name=targets,enum=google.protobuf.FieldOptions_OptionTargetType" json:"targets,omitempty"` EditionDefaults []*FieldOptions_EditionDefault `protobuf:"bytes,20,rep,name=edition_defaults,json=editionDefaults" json:"edition_defaults,omitempty"` // Any features defined in the specific edition. + // WARNING: This field should only be used by protobuf plugins or special + // cases like the proto compiler. Other uses are discouraged and + // developers should rely on the protoreflect APIs for their client language. Features *FeatureSet `protobuf:"bytes,21,opt,name=features" json:"features,omitempty"` FeatureSupport *FieldOptions_FeatureSupport `protobuf:"bytes,22,opt,name=feature_support,json=featureSupport" json:"feature_support,omitempty"` // The parser stores options it doesn't recognize here. See above. @@ -2799,6 +2873,9 @@ func (x *FieldOptions) GetUninterpretedOption() []*UninterpretedOption { type OneofOptions struct { state protoimpl.MessageState `protogen:"open.v1"` // Any features defined in the specific edition. + // WARNING: This field should only be used by protobuf plugins or special + // cases like the proto compiler. Other uses are discouraged and + // developers should rely on the protoreflect APIs for their client language. Features *FeatureSet `protobuf:"bytes,1,opt,name=features" json:"features,omitempty"` // The parser stores options it doesn't recognize here. See above. UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` @@ -2871,6 +2948,9 @@ type EnumOptions struct { // Deprecated: Marked as deprecated in google/protobuf/descriptor.proto. DeprecatedLegacyJsonFieldConflicts *bool `protobuf:"varint,6,opt,name=deprecated_legacy_json_field_conflicts,json=deprecatedLegacyJsonFieldConflicts" json:"deprecated_legacy_json_field_conflicts,omitempty"` // Any features defined in the specific edition. + // WARNING: This field should only be used by protobuf plugins or special + // cases like the proto compiler. Other uses are discouraged and + // developers should rely on the protoreflect APIs for their client language. Features *FeatureSet `protobuf:"bytes,7,opt,name=features" json:"features,omitempty"` // The parser stores options it doesn't recognize here. See above. UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` @@ -2958,6 +3038,9 @@ type EnumValueOptions struct { // this is a formalization for deprecating enum values. Deprecated *bool `protobuf:"varint,1,opt,name=deprecated,def=0" json:"deprecated,omitempty"` // Any features defined in the specific edition. + // WARNING: This field should only be used by protobuf plugins or special + // cases like the proto compiler. Other uses are discouraged and + // developers should rely on the protoreflect APIs for their client language. Features *FeatureSet `protobuf:"bytes,2,opt,name=features" json:"features,omitempty"` // Indicate that fields annotated with this enum value should not be printed // out when using debug formats, e.g. when the field contains sensitive @@ -3046,6 +3129,9 @@ func (x *EnumValueOptions) GetUninterpretedOption() []*UninterpretedOption { type ServiceOptions struct { state protoimpl.MessageState `protogen:"open.v1"` // Any features defined in the specific edition. + // WARNING: This field should only be used by protobuf plugins or special + // cases like the proto compiler. Other uses are discouraged and + // developers should rely on the protoreflect APIs for their client language. Features *FeatureSet `protobuf:"bytes,34,opt,name=features" json:"features,omitempty"` // Is this service deprecated? // Depending on the target platform, this can emit Deprecated annotations @@ -3124,6 +3210,9 @@ type MethodOptions struct { Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` IdempotencyLevel *MethodOptions_IdempotencyLevel `protobuf:"varint,34,opt,name=idempotency_level,json=idempotencyLevel,enum=google.protobuf.MethodOptions_IdempotencyLevel,def=0" json:"idempotency_level,omitempty"` // Any features defined in the specific edition. + // WARNING: This field should only be used by protobuf plugins or special + // cases like the proto compiler. Other uses are discouraged and + // developers should rely on the protoreflect APIs for their client language. Features *FeatureSet `protobuf:"bytes,35,opt,name=features" json:"features,omitempty"` // The parser stores options it doesn't recognize here. See above. UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` @@ -3310,6 +3399,7 @@ type FeatureSet struct { Utf8Validation *FeatureSet_Utf8Validation `protobuf:"varint,4,opt,name=utf8_validation,json=utf8Validation,enum=google.protobuf.FeatureSet_Utf8Validation" json:"utf8_validation,omitempty"` MessageEncoding *FeatureSet_MessageEncoding `protobuf:"varint,5,opt,name=message_encoding,json=messageEncoding,enum=google.protobuf.FeatureSet_MessageEncoding" json:"message_encoding,omitempty"` JsonFormat *FeatureSet_JsonFormat `protobuf:"varint,6,opt,name=json_format,json=jsonFormat,enum=google.protobuf.FeatureSet_JsonFormat" json:"json_format,omitempty"` + EnforceNamingStyle *FeatureSet_EnforceNamingStyle `protobuf:"varint,7,opt,name=enforce_naming_style,json=enforceNamingStyle,enum=google.protobuf.FeatureSet_EnforceNamingStyle" json:"enforce_naming_style,omitempty"` extensionFields protoimpl.ExtensionFields unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -3387,6 +3477,13 @@ func (x *FeatureSet) GetJsonFormat() FeatureSet_JsonFormat { return FeatureSet_JSON_FORMAT_UNKNOWN } +func (x *FeatureSet) GetEnforceNamingStyle() FeatureSet_EnforceNamingStyle { + if x != nil && x.EnforceNamingStyle != nil { + return *x.EnforceNamingStyle + } + return FeatureSet_ENFORCE_NAMING_STYLE_UNKNOWN +} + // A compiled specification for the defaults of a set of features. These // messages are generated from FeatureSet extensions and can be used to seed // feature resolution. The resolution with this object becomes a simple search @@ -4361,777 +4458,367 @@ func (x *GeneratedCodeInfo_Annotation) GetSemantic() GeneratedCodeInfo_Annotatio var File_google_protobuf_descriptor_proto protoreflect.FileDescriptor -var file_google_protobuf_descriptor_proto_rawDesc = string([]byte{ - 0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x22, 0x5b, 0x0a, 0x11, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x04, 0x66, 0x69, - 0x6c, 0x65, 0x2a, 0x0c, 0x08, 0x80, 0xec, 0xca, 0xff, 0x01, 0x10, 0x81, 0xec, 0xca, 0xff, 0x01, - 0x22, 0x98, 0x05, 0x0a, 0x13, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, - 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x65, - 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x03, 0x28, - 0x05, 0x52, 0x10, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, - 0x6e, 0x63, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x65, 0x61, 0x6b, 0x5f, 0x64, 0x65, 0x70, 0x65, - 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, 0x77, 0x65, - 0x61, 0x6b, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x43, 0x0a, 0x0c, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x41, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x08, 0x65, 0x6e, 0x75, 0x6d, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, - 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x07, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x07, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, - 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x12, 0x32, 0x0a, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb9, 0x06, 0x0a, 0x0f, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x12, 0x43, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x0a, 0x6e, 0x65, - 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, - 0x75, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x52, 0x08, 0x65, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x0f, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, - 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x64, - 0x65, 0x63, 0x6c, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, - 0x66, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x52, 0x09, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x44, 0x65, 0x63, 0x6c, 0x12, 0x39, 0x0a, 0x07, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x55, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x64, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0d, - 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x4e, 0x61, - 0x6d, 0x65, 0x1a, 0x7a, 0x0a, 0x0e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x40, 0x0a, 0x07, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x37, - 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x22, 0xcc, 0x04, 0x0a, 0x15, 0x45, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, - 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, - 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x59, 0x0a, 0x0b, 0x64, - 0x65, 0x63, 0x6c, 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, - 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0x88, 0x01, 0x02, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x6c, 0x61, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x73, 0x18, 0x32, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, - 0x6d, 0x0a, 0x0c, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x3a, - 0x0a, 0x55, 0x4e, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x45, 0x44, 0x42, 0x03, 0x88, 0x01, 0x02, - 0x52, 0x0c, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x94, - 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, - 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, - 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4a, - 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0x34, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x45, - 0x43, 0x4c, 0x41, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, - 0x4e, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x01, 0x2a, 0x09, 0x08, 0xe8, 0x07, - 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0xc1, 0x06, 0x0a, 0x14, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x05, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x3e, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, - 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, - 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, - 0x09, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x5f, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x22, 0xb6, 0x02, 0x0a, - 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4f, - 0x55, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, - 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, - 0x4e, 0x54, 0x36, 0x34, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, - 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x46, 0x49, 0x58, 0x45, 0x44, 0x36, 0x34, 0x10, 0x06, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x46, 0x49, 0x58, 0x45, 0x44, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x08, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x09, 0x12, 0x0e, 0x0a, 0x0a, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x0b, 0x12, 0x0e, 0x0a, - 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x59, 0x54, 0x45, 0x53, 0x10, 0x0c, 0x12, 0x0f, 0x0a, - 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x0d, 0x12, 0x0d, - 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x10, 0x0e, 0x12, 0x11, 0x0a, - 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x46, 0x49, 0x58, 0x45, 0x44, 0x33, 0x32, 0x10, 0x0f, - 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x46, 0x49, 0x58, 0x45, 0x44, 0x36, - 0x34, 0x10, 0x10, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x49, 0x4e, 0x54, - 0x33, 0x32, 0x10, 0x11, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x49, 0x4e, - 0x54, 0x36, 0x34, 0x10, 0x12, 0x22, 0x43, 0x0a, 0x05, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x12, - 0x0a, 0x0e, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, - 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x52, 0x45, 0x50, 0x45, - 0x41, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, - 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x10, 0x02, 0x22, 0x63, 0x0a, 0x14, 0x4f, 0x6e, - 0x65, 0x6f, 0x66, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, - 0xe3, 0x02, 0x0a, 0x13, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, - 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x07, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5d, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, - 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, - 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, - 0x6e, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x3b, 0x0a, 0x11, 0x45, 0x6e, 0x75, 0x6d, - 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x03, 0x65, 0x6e, 0x64, 0x22, 0x83, 0x01, 0x0a, 0x18, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3b, - 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa7, 0x01, 0x0a, 0x16, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, - 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x6d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x39, 0x0a, 0x07, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x89, 0x02, 0x0a, 0x15, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, - 0x10, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0f, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, - 0x30, 0x0a, 0x10, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, - 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x22, 0xad, 0x09, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6a, 0x61, 0x76, 0x61, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x6f, 0x75, 0x74, - 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x12, 0x6a, 0x61, 0x76, 0x61, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x13, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x6d, - 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x11, 0x6a, 0x61, 0x76, 0x61, - 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x44, 0x0a, - 0x1d, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x65, - 0x71, 0x75, 0x61, 0x6c, 0x73, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x14, - 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x19, 0x6a, 0x61, 0x76, 0x61, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x71, 0x75, 0x61, 0x6c, 0x73, 0x41, 0x6e, 0x64, 0x48, - 0x61, 0x73, 0x68, 0x12, 0x3a, 0x0a, 0x16, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x75, 0x74, 0x66, 0x38, 0x18, 0x1b, 0x20, - 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x13, 0x6a, 0x61, 0x76, 0x61, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x74, 0x66, 0x38, 0x12, - 0x53, 0x0a, 0x0c, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x4d, 0x6f, 0x64, 0x65, - 0x3a, 0x05, 0x53, 0x50, 0x45, 0x45, 0x44, 0x52, 0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, - 0x65, 0x46, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x6f, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x50, 0x61, 0x63, 0x6b, - 0x61, 0x67, 0x65, 0x12, 0x35, 0x0a, 0x13, 0x63, 0x63, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, - 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, - 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x11, 0x63, 0x63, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x69, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x15, 0x6a, 0x61, - 0x76, 0x61, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, - 0x52, 0x13, 0x6a, 0x61, 0x76, 0x61, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x13, 0x70, 0x79, 0x5f, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x69, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x12, 0x20, 0x01, - 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x11, 0x70, 0x79, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x69, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0a, - 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x08, - 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, - 0x74, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x10, 0x63, 0x63, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x61, 0x72, 0x65, 0x6e, 0x61, 0x73, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, - 0x72, 0x75, 0x65, 0x52, 0x0e, 0x63, 0x63, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x72, 0x65, - 0x6e, 0x61, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x6f, 0x62, 0x6a, 0x63, 0x5f, 0x63, 0x6c, 0x61, 0x73, - 0x73, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x24, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, - 0x6f, 0x62, 0x6a, 0x63, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, - 0x29, 0x0a, 0x10, 0x63, 0x73, 0x68, 0x61, 0x72, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x18, 0x25, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x73, 0x68, 0x61, 0x72, - 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x77, - 0x69, 0x66, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x27, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x73, 0x77, 0x69, 0x66, 0x74, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x28, 0x0a, - 0x10, 0x70, 0x68, 0x70, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, - 0x78, 0x18, 0x28, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x68, 0x70, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x68, 0x70, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x29, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x70, 0x68, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x16, - 0x70, 0x68, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x2c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x70, 0x68, - 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x75, 0x62, 0x79, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x18, 0x2d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x75, 0x62, 0x79, 0x50, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x73, 0x18, 0x32, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x58, - 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, - 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, - 0x6d, 0x69, 0x7a, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x50, 0x45, 0x45, - 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x5a, 0x45, - 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x49, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, - 0x4d, 0x45, 0x10, 0x03, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, - 0x04, 0x08, 0x2a, 0x10, 0x2b, 0x4a, 0x04, 0x08, 0x26, 0x10, 0x27, 0x52, 0x14, 0x70, 0x68, 0x70, - 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x22, 0xf4, 0x03, 0x0a, 0x0e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x17, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, - 0x73, 0x65, 0x74, 0x5f, 0x77, 0x69, 0x72, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x14, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, - 0x61, 0x74, 0x12, 0x4c, 0x0a, 0x1f, 0x6e, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, - 0x64, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, - 0x73, 0x65, 0x52, 0x1c, 0x6e, 0x6f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x44, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, - 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, - 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x70, 0x5f, 0x65, - 0x6e, 0x74, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x61, 0x70, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x56, 0x0a, 0x26, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x18, 0x0b, - 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x22, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, - 0x61, 0x74, 0x65, 0x64, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, - 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, - 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, - 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, - 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x08, - 0x10, 0x09, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0x9d, 0x0d, 0x0a, 0x0c, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x05, 0x63, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x06, 0x53, - 0x54, 0x52, 0x49, 0x4e, 0x47, 0x52, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x61, - 0x63, 0x6b, 0x65, 0x64, 0x12, 0x47, 0x0a, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x4a, 0x53, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x09, 0x4a, 0x53, 0x5f, 0x4e, - 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x52, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, - 0x04, 0x6c, 0x61, 0x7a, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, - 0x73, 0x65, 0x52, 0x04, 0x6c, 0x61, 0x7a, 0x79, 0x12, 0x2e, 0x0a, 0x0f, 0x75, 0x6e, 0x76, 0x65, - 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x7a, 0x79, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0e, 0x75, 0x6e, 0x76, 0x65, 0x72, 0x69, - 0x66, 0x69, 0x65, 0x64, 0x4c, 0x61, 0x7a, 0x79, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, - 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, - 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x19, 0x0a, 0x04, 0x77, 0x65, 0x61, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, - 0x61, 0x6c, 0x73, 0x65, 0x52, 0x04, 0x77, 0x65, 0x61, 0x6b, 0x12, 0x28, 0x0a, 0x0c, 0x64, 0x65, - 0x62, 0x75, 0x67, 0x5f, 0x72, 0x65, 0x64, 0x61, 0x63, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, - 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0b, 0x64, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, - 0x64, 0x61, 0x63, 0x74, 0x12, 0x4b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x74, - 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x48, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x13, 0x20, 0x03, - 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x12, 0x57, 0x0a, 0x10, 0x65, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, - 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x52, 0x0f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, - 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x55, 0x0a, - 0x0f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, - 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x75, 0x70, - 0x70, 0x6f, 0x72, 0x74, 0x52, 0x0e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x75, 0x70, - 0x70, 0x6f, 0x72, 0x74, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, - 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, - 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x5a, - 0x0a, 0x0e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x12, 0x32, 0x0a, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x65, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x96, 0x02, 0x0a, 0x0e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x47, 0x0a, - 0x12, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, - 0x63, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x74, 0x72, - 0x6f, 0x64, 0x75, 0x63, 0x65, 0x64, 0x12, 0x47, 0x0a, 0x12, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x65, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x77, - 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, - 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, - 0x12, 0x41, 0x0a, 0x0f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x64, 0x22, 0x2f, 0x0a, 0x05, 0x43, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, - 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x52, 0x44, - 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x49, 0x45, - 0x43, 0x45, 0x10, 0x02, 0x22, 0x35, 0x0a, 0x06, 0x4a, 0x53, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, - 0x0a, 0x09, 0x4a, 0x53, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x00, 0x12, 0x0d, 0x0a, - 0x09, 0x4a, 0x53, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, - 0x4a, 0x53, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x22, 0x55, 0x0a, 0x0f, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, - 0x0a, 0x11, 0x52, 0x45, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, - 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x45, 0x4e, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, - 0x52, 0x45, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, - 0x10, 0x02, 0x22, 0x8c, 0x02, 0x0a, 0x10, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, 0x47, 0x45, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, - 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x46, 0x49, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x5f, - 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, 0x47, 0x45, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x03, - 0x12, 0x15, 0x0a, 0x11, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x41, 0x52, 0x47, 0x45, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x4e, 0x45, 0x4f, 0x46, 0x10, 0x05, 0x12, 0x14, - 0x0a, 0x10, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, - 0x55, 0x4d, 0x10, 0x06, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x45, 0x4e, 0x54, 0x52, 0x59, 0x10, 0x07, - 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x41, 0x52, - 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x10, - 0x09, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x04, - 0x10, 0x05, 0x4a, 0x04, 0x08, 0x12, 0x10, 0x13, 0x22, 0xac, 0x01, 0x0a, 0x0c, 0x4f, 0x6e, 0x65, - 0x6f, 0x66, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, - 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, - 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, - 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0xd1, 0x02, 0x0a, 0x0b, 0x45, 0x6e, 0x75, 0x6d, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, - 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x6c, - 0x6c, 0x6f, 0x77, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, - 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, - 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x56, 0x0a, 0x26, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, - 0x67, 0x61, 0x63, 0x79, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, - 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, - 0x02, 0x18, 0x01, 0x52, 0x22, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4c, - 0x65, 0x67, 0x61, 0x63, 0x79, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, - 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, - 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, - 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, - 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, - 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x22, 0xd8, 0x02, 0x0a, 0x10, - 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, - 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, - 0x12, 0x28, 0x0a, 0x0c, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x72, 0x65, 0x64, 0x61, 0x63, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0b, 0x64, - 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x64, 0x61, 0x63, 0x74, 0x12, 0x55, 0x0a, 0x0f, 0x66, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, - 0x74, 0x52, 0x0e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, - 0x74, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, - 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, - 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, - 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0xd5, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, - 0x18, 0x21, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, - 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, - 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x99, - 0x03, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x21, - 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, - 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x71, 0x0a, 0x11, 0x69, 0x64, 0x65, 0x6d, 0x70, - 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x22, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, - 0x76, 0x65, 0x6c, 0x3a, 0x13, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, 0x4e, 0x43, 0x59, - 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x10, 0x69, 0x64, 0x65, 0x6d, 0x70, 0x6f, - 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x23, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, - 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, - 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x50, 0x0a, - 0x10, 0x49, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, 0x4e, 0x43, 0x59, - 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x4f, - 0x5f, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x45, 0x46, 0x46, 0x45, 0x43, 0x54, 0x53, 0x10, 0x01, 0x12, - 0x0e, 0x0a, 0x0a, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x2a, - 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x9a, 0x03, 0x0a, 0x13, 0x55, - 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x2c, 0x0a, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, - 0x0a, 0x12, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x65, 0x67, 0x61, - 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x01, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x67, 0x67, - 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x4a, 0x0a, 0x08, 0x4e, - 0x61, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x5f, - 0x70, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x61, 0x6d, 0x65, - 0x50, 0x61, 0x72, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x02, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x45, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xa7, 0x0a, 0x0a, 0x0a, 0x46, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x12, 0x91, 0x01, 0x0a, 0x0e, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x3f, 0x88, 0x01, 0x01, 0x98, - 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x45, 0x58, 0x50, 0x4c, 0x49, 0x43, - 0x49, 0x54, 0x18, 0x84, 0x07, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x49, 0x4d, 0x50, 0x4c, 0x49, 0x43, - 0x49, 0x54, 0x18, 0xe7, 0x07, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x45, 0x58, 0x50, 0x4c, 0x49, 0x43, - 0x49, 0x54, 0x18, 0xe8, 0x07, 0xb2, 0x01, 0x03, 0x08, 0xe8, 0x07, 0x52, 0x0d, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x09, 0x65, 0x6e, - 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, - 0x79, 0x70, 0x65, 0x42, 0x29, 0x88, 0x01, 0x01, 0x98, 0x01, 0x06, 0x98, 0x01, 0x01, 0xa2, 0x01, - 0x0b, 0x12, 0x06, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x18, 0x84, 0x07, 0xa2, 0x01, 0x09, 0x12, - 0x04, 0x4f, 0x50, 0x45, 0x4e, 0x18, 0xe7, 0x07, 0xb2, 0x01, 0x03, 0x08, 0xe8, 0x07, 0x52, 0x08, - 0x65, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x98, 0x01, 0x0a, 0x17, 0x72, 0x65, 0x70, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x65, 0x6e, 0x63, 0x6f, - 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x2d, 0x88, - 0x01, 0x01, 0x98, 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x45, 0x58, 0x50, - 0x41, 0x4e, 0x44, 0x45, 0x44, 0x18, 0x84, 0x07, 0xa2, 0x01, 0x0b, 0x12, 0x06, 0x50, 0x41, 0x43, - 0x4b, 0x45, 0x44, 0x18, 0xe7, 0x07, 0xb2, 0x01, 0x03, 0x08, 0xe8, 0x07, 0x52, 0x15, 0x72, 0x65, - 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x63, 0x6f, 0x64, - 0x69, 0x6e, 0x67, 0x12, 0x7e, 0x0a, 0x0f, 0x75, 0x74, 0x66, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x55, 0x74, 0x66, 0x38, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x29, 0x88, 0x01, 0x01, 0x98, 0x01, 0x04, - 0x98, 0x01, 0x01, 0xa2, 0x01, 0x09, 0x12, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x18, 0x84, 0x07, 0xa2, - 0x01, 0x0b, 0x12, 0x06, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x18, 0xe7, 0x07, 0xb2, 0x01, 0x03, - 0x08, 0xe8, 0x07, 0x52, 0x0e, 0x75, 0x74, 0x66, 0x38, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x7e, 0x0a, 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, - 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x26, 0x88, 0x01, 0x01, 0x98, - 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x14, 0x12, 0x0f, 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, - 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x45, 0x44, 0x18, 0x84, 0x07, 0xb2, 0x01, 0x03, 0x08, - 0xe8, 0x07, 0x52, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x63, 0x6f, 0x64, - 0x69, 0x6e, 0x67, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, - 0x74, 0x42, 0x39, 0x88, 0x01, 0x01, 0x98, 0x01, 0x03, 0x98, 0x01, 0x06, 0x98, 0x01, 0x01, 0xa2, - 0x01, 0x17, 0x12, 0x12, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x42, 0x45, 0x53, 0x54, 0x5f, - 0x45, 0x46, 0x46, 0x4f, 0x52, 0x54, 0x18, 0x84, 0x07, 0xa2, 0x01, 0x0a, 0x12, 0x05, 0x41, 0x4c, - 0x4c, 0x4f, 0x57, 0x18, 0xe7, 0x07, 0xb2, 0x01, 0x03, 0x08, 0xe8, 0x07, 0x52, 0x0a, 0x6a, 0x73, - 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x5c, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x46, 0x49, 0x45, - 0x4c, 0x44, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, - 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58, 0x50, 0x4c, 0x49, 0x43, 0x49, - 0x54, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4d, 0x50, 0x4c, 0x49, 0x43, 0x49, 0x54, 0x10, - 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, - 0x49, 0x52, 0x45, 0x44, 0x10, 0x03, 0x22, 0x37, 0x0a, 0x08, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x50, 0x45, - 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x10, 0x02, 0x22, - 0x56, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x0a, 0x1f, 0x52, 0x45, 0x50, 0x45, - 0x41, 0x54, 0x45, 0x44, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, - 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, - 0x06, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58, 0x50, - 0x41, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x02, 0x22, 0x49, 0x0a, 0x0e, 0x55, 0x74, 0x66, 0x38, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x55, 0x54, 0x46, - 0x38, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, - 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x22, 0x04, 0x08, 0x01, - 0x10, 0x01, 0x22, 0x53, 0x0a, 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x63, - 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x18, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, - 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, - 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x5f, 0x50, 0x52, - 0x45, 0x46, 0x49, 0x58, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x45, 0x4c, 0x49, - 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x48, 0x0a, 0x0a, 0x4a, 0x73, 0x6f, 0x6e, 0x46, - 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x17, 0x0a, 0x13, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, - 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, - 0x0a, 0x05, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4c, 0x45, 0x47, - 0x41, 0x43, 0x59, 0x5f, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x45, 0x46, 0x46, 0x4f, 0x52, 0x54, 0x10, - 0x02, 0x2a, 0x06, 0x08, 0xe8, 0x07, 0x10, 0x8b, 0x4e, 0x2a, 0x06, 0x08, 0x8b, 0x4e, 0x10, 0x90, - 0x4e, 0x2a, 0x06, 0x08, 0x90, 0x4e, 0x10, 0x91, 0x4e, 0x4a, 0x06, 0x08, 0xe7, 0x07, 0x10, 0xe8, - 0x07, 0x22, 0xef, 0x03, 0x0a, 0x12, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, - 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x58, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, - 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x08, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x73, 0x12, 0x41, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x65, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x45, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, - 0x5f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, - 0x6d, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xf8, 0x01, 0x0a, 0x18, 0x46, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x14, 0x6f, 0x76, 0x65, - 0x72, 0x72, 0x69, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x53, 0x65, 0x74, 0x52, 0x13, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x61, 0x62, 0x6c, - 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x0e, 0x66, 0x69, 0x78, - 0x65, 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x0d, - 0x66, 0x69, 0x78, 0x65, 0x64, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x4a, 0x04, 0x08, - 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x73, 0x22, 0xb5, 0x02, 0x0a, 0x0e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, - 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x44, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xce, 0x01, 0x0a, - 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x04, 0x70, 0x61, 0x74, - 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x70, 0x61, 0x74, - 0x68, 0x12, 0x16, 0x0a, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x42, - 0x02, 0x10, 0x01, 0x52, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x65, 0x61, - 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67, - 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x10, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x3a, 0x0a, 0x19, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x74, - 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x17, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x74, - 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2a, 0x0c, 0x08, - 0x80, 0xec, 0xca, 0xff, 0x01, 0x10, 0x81, 0xec, 0xca, 0xff, 0x01, 0x22, 0xd0, 0x02, 0x0a, 0x11, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x4d, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x1a, 0xeb, 0x01, 0x0a, 0x0a, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x16, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x42, 0x02, 0x10, - 0x01, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x65, 0x67, 0x69, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x12, 0x10, - 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, - 0x12, 0x52, 0x0a, 0x08, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, - 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x08, 0x73, 0x65, 0x6d, 0x61, - 0x6e, 0x74, 0x69, 0x63, 0x22, 0x28, 0x0a, 0x08, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, - 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, - 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x49, 0x41, 0x53, 0x10, 0x02, 0x2a, 0xa7, - 0x02, 0x0a, 0x07, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x44, - 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x13, 0x0a, 0x0e, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, 0x47, 0x41, 0x43, - 0x59, 0x10, 0x84, 0x07, 0x12, 0x13, 0x0a, 0x0e, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x32, 0x10, 0xe6, 0x07, 0x12, 0x13, 0x0a, 0x0e, 0x45, 0x44, 0x49, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x33, 0x10, 0xe7, 0x07, 0x12, 0x11, - 0x0a, 0x0c, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x32, 0x30, 0x32, 0x33, 0x10, 0xe8, - 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x32, 0x30, 0x32, - 0x34, 0x10, 0xe9, 0x07, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x31, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x17, 0x0a, - 0x13, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x32, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, - 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x17, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x39, 0x39, 0x39, 0x39, 0x37, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, - 0x59, 0x10, 0x9d, 0x8d, 0x06, 0x12, 0x1d, 0x0a, 0x17, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x39, 0x39, 0x39, 0x39, 0x38, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, - 0x10, 0x9e, 0x8d, 0x06, 0x12, 0x1d, 0x0a, 0x17, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x39, 0x39, 0x39, 0x39, 0x39, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, - 0x9f, 0x8d, 0x06, 0x12, 0x13, 0x0a, 0x0b, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, - 0x41, 0x58, 0x10, 0xff, 0xff, 0xff, 0xff, 0x07, 0x42, 0x7e, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, - 0x10, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x48, 0x01, 0x5a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, - 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, - 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1a, 0x47, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, - 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, -}) +const file_google_protobuf_descriptor_proto_rawDesc = "" + + "\n" + + " google/protobuf/descriptor.proto\x12\x0fgoogle.protobuf\"[\n" + + "\x11FileDescriptorSet\x128\n" + + "\x04file\x18\x01 \x03(\v2$.google.protobuf.FileDescriptorProtoR\x04file*\f\b\x80\xec\xca\xff\x01\x10\x81\xec\xca\xff\x01\"\x98\x05\n" + + "\x13FileDescriptorProto\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\apackage\x18\x02 \x01(\tR\apackage\x12\x1e\n" + + "\n" + + "dependency\x18\x03 \x03(\tR\n" + + "dependency\x12+\n" + + "\x11public_dependency\x18\n" + + " \x03(\x05R\x10publicDependency\x12'\n" + + "\x0fweak_dependency\x18\v \x03(\x05R\x0eweakDependency\x12C\n" + + "\fmessage_type\x18\x04 \x03(\v2 .google.protobuf.DescriptorProtoR\vmessageType\x12A\n" + + "\tenum_type\x18\x05 \x03(\v2$.google.protobuf.EnumDescriptorProtoR\benumType\x12A\n" + + "\aservice\x18\x06 \x03(\v2'.google.protobuf.ServiceDescriptorProtoR\aservice\x12C\n" + + "\textension\x18\a \x03(\v2%.google.protobuf.FieldDescriptorProtoR\textension\x126\n" + + "\aoptions\x18\b \x01(\v2\x1c.google.protobuf.FileOptionsR\aoptions\x12I\n" + + "\x10source_code_info\x18\t \x01(\v2\x1f.google.protobuf.SourceCodeInfoR\x0esourceCodeInfo\x12\x16\n" + + "\x06syntax\x18\f \x01(\tR\x06syntax\x122\n" + + "\aedition\x18\x0e \x01(\x0e2\x18.google.protobuf.EditionR\aedition\"\xb9\x06\n" + + "\x0fDescriptorProto\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12;\n" + + "\x05field\x18\x02 \x03(\v2%.google.protobuf.FieldDescriptorProtoR\x05field\x12C\n" + + "\textension\x18\x06 \x03(\v2%.google.protobuf.FieldDescriptorProtoR\textension\x12A\n" + + "\vnested_type\x18\x03 \x03(\v2 .google.protobuf.DescriptorProtoR\n" + + "nestedType\x12A\n" + + "\tenum_type\x18\x04 \x03(\v2$.google.protobuf.EnumDescriptorProtoR\benumType\x12X\n" + + "\x0fextension_range\x18\x05 \x03(\v2/.google.protobuf.DescriptorProto.ExtensionRangeR\x0eextensionRange\x12D\n" + + "\n" + + "oneof_decl\x18\b \x03(\v2%.google.protobuf.OneofDescriptorProtoR\toneofDecl\x129\n" + + "\aoptions\x18\a \x01(\v2\x1f.google.protobuf.MessageOptionsR\aoptions\x12U\n" + + "\x0ereserved_range\x18\t \x03(\v2..google.protobuf.DescriptorProto.ReservedRangeR\rreservedRange\x12#\n" + + "\rreserved_name\x18\n" + + " \x03(\tR\freservedName\x1az\n" + + "\x0eExtensionRange\x12\x14\n" + + "\x05start\x18\x01 \x01(\x05R\x05start\x12\x10\n" + + "\x03end\x18\x02 \x01(\x05R\x03end\x12@\n" + + "\aoptions\x18\x03 \x01(\v2&.google.protobuf.ExtensionRangeOptionsR\aoptions\x1a7\n" + + "\rReservedRange\x12\x14\n" + + "\x05start\x18\x01 \x01(\x05R\x05start\x12\x10\n" + + "\x03end\x18\x02 \x01(\x05R\x03end\"\xcc\x04\n" + + "\x15ExtensionRangeOptions\x12X\n" + + "\x14uninterpreted_option\x18\xe7\a \x03(\v2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption\x12Y\n" + + "\vdeclaration\x18\x02 \x03(\v22.google.protobuf.ExtensionRangeOptions.DeclarationB\x03\x88\x01\x02R\vdeclaration\x127\n" + + "\bfeatures\x182 \x01(\v2\x1b.google.protobuf.FeatureSetR\bfeatures\x12m\n" + + "\fverification\x18\x03 \x01(\x0e28.google.protobuf.ExtensionRangeOptions.VerificationState:\n" + + "UNVERIFIEDB\x03\x88\x01\x02R\fverification\x1a\x94\x01\n" + + "\vDeclaration\x12\x16\n" + + "\x06number\x18\x01 \x01(\x05R\x06number\x12\x1b\n" + + "\tfull_name\x18\x02 \x01(\tR\bfullName\x12\x12\n" + + "\x04type\x18\x03 \x01(\tR\x04type\x12\x1a\n" + + "\breserved\x18\x05 \x01(\bR\breserved\x12\x1a\n" + + "\brepeated\x18\x06 \x01(\bR\brepeatedJ\x04\b\x04\x10\x05\"4\n" + + "\x11VerificationState\x12\x0f\n" + + "\vDECLARATION\x10\x00\x12\x0e\n" + + "\n" + + "UNVERIFIED\x10\x01*\t\b\xe8\a\x10\x80\x80\x80\x80\x02\"\xc1\x06\n" + + "\x14FieldDescriptorProto\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" + + "\x06number\x18\x03 \x01(\x05R\x06number\x12A\n" + + "\x05label\x18\x04 \x01(\x0e2+.google.protobuf.FieldDescriptorProto.LabelR\x05label\x12>\n" + + "\x04type\x18\x05 \x01(\x0e2*.google.protobuf.FieldDescriptorProto.TypeR\x04type\x12\x1b\n" + + "\ttype_name\x18\x06 \x01(\tR\btypeName\x12\x1a\n" + + "\bextendee\x18\x02 \x01(\tR\bextendee\x12#\n" + + "\rdefault_value\x18\a \x01(\tR\fdefaultValue\x12\x1f\n" + + "\voneof_index\x18\t \x01(\x05R\n" + + "oneofIndex\x12\x1b\n" + + "\tjson_name\x18\n" + + " \x01(\tR\bjsonName\x127\n" + + "\aoptions\x18\b \x01(\v2\x1d.google.protobuf.FieldOptionsR\aoptions\x12'\n" + + "\x0fproto3_optional\x18\x11 \x01(\bR\x0eproto3Optional\"\xb6\x02\n" + + "\x04Type\x12\x0f\n" + + "\vTYPE_DOUBLE\x10\x01\x12\x0e\n" + + "\n" + + "TYPE_FLOAT\x10\x02\x12\x0e\n" + + "\n" + + "TYPE_INT64\x10\x03\x12\x0f\n" + + "\vTYPE_UINT64\x10\x04\x12\x0e\n" + + "\n" + + "TYPE_INT32\x10\x05\x12\x10\n" + + "\fTYPE_FIXED64\x10\x06\x12\x10\n" + + "\fTYPE_FIXED32\x10\a\x12\r\n" + + "\tTYPE_BOOL\x10\b\x12\x0f\n" + + "\vTYPE_STRING\x10\t\x12\x0e\n" + + "\n" + + "TYPE_GROUP\x10\n" + + "\x12\x10\n" + + "\fTYPE_MESSAGE\x10\v\x12\x0e\n" + + "\n" + + "TYPE_BYTES\x10\f\x12\x0f\n" + + "\vTYPE_UINT32\x10\r\x12\r\n" + + "\tTYPE_ENUM\x10\x0e\x12\x11\n" + + "\rTYPE_SFIXED32\x10\x0f\x12\x11\n" + + "\rTYPE_SFIXED64\x10\x10\x12\x0f\n" + + "\vTYPE_SINT32\x10\x11\x12\x0f\n" + + "\vTYPE_SINT64\x10\x12\"C\n" + + "\x05Label\x12\x12\n" + + "\x0eLABEL_OPTIONAL\x10\x01\x12\x12\n" + + "\x0eLABEL_REPEATED\x10\x03\x12\x12\n" + + "\x0eLABEL_REQUIRED\x10\x02\"c\n" + + "\x14OneofDescriptorProto\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x127\n" + + "\aoptions\x18\x02 \x01(\v2\x1d.google.protobuf.OneofOptionsR\aoptions\"\xe3\x02\n" + + "\x13EnumDescriptorProto\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12?\n" + + "\x05value\x18\x02 \x03(\v2).google.protobuf.EnumValueDescriptorProtoR\x05value\x126\n" + + "\aoptions\x18\x03 \x01(\v2\x1c.google.protobuf.EnumOptionsR\aoptions\x12]\n" + + "\x0ereserved_range\x18\x04 \x03(\v26.google.protobuf.EnumDescriptorProto.EnumReservedRangeR\rreservedRange\x12#\n" + + "\rreserved_name\x18\x05 \x03(\tR\freservedName\x1a;\n" + + "\x11EnumReservedRange\x12\x14\n" + + "\x05start\x18\x01 \x01(\x05R\x05start\x12\x10\n" + + "\x03end\x18\x02 \x01(\x05R\x03end\"\x83\x01\n" + + "\x18EnumValueDescriptorProto\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" + + "\x06number\x18\x02 \x01(\x05R\x06number\x12;\n" + + "\aoptions\x18\x03 \x01(\v2!.google.protobuf.EnumValueOptionsR\aoptions\"\xa7\x01\n" + + "\x16ServiceDescriptorProto\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12>\n" + + "\x06method\x18\x02 \x03(\v2&.google.protobuf.MethodDescriptorProtoR\x06method\x129\n" + + "\aoptions\x18\x03 \x01(\v2\x1f.google.protobuf.ServiceOptionsR\aoptions\"\x89\x02\n" + + "\x15MethodDescriptorProto\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1d\n" + + "\n" + + "input_type\x18\x02 \x01(\tR\tinputType\x12\x1f\n" + + "\voutput_type\x18\x03 \x01(\tR\n" + + "outputType\x128\n" + + "\aoptions\x18\x04 \x01(\v2\x1e.google.protobuf.MethodOptionsR\aoptions\x120\n" + + "\x10client_streaming\x18\x05 \x01(\b:\x05falseR\x0fclientStreaming\x120\n" + + "\x10server_streaming\x18\x06 \x01(\b:\x05falseR\x0fserverStreaming\"\xad\t\n" + + "\vFileOptions\x12!\n" + + "\fjava_package\x18\x01 \x01(\tR\vjavaPackage\x120\n" + + "\x14java_outer_classname\x18\b \x01(\tR\x12javaOuterClassname\x125\n" + + "\x13java_multiple_files\x18\n" + + " \x01(\b:\x05falseR\x11javaMultipleFiles\x12D\n" + + "\x1djava_generate_equals_and_hash\x18\x14 \x01(\bB\x02\x18\x01R\x19javaGenerateEqualsAndHash\x12:\n" + + "\x16java_string_check_utf8\x18\x1b \x01(\b:\x05falseR\x13javaStringCheckUtf8\x12S\n" + + "\foptimize_for\x18\t \x01(\x0e2).google.protobuf.FileOptions.OptimizeMode:\x05SPEEDR\voptimizeFor\x12\x1d\n" + + "\n" + + "go_package\x18\v \x01(\tR\tgoPackage\x125\n" + + "\x13cc_generic_services\x18\x10 \x01(\b:\x05falseR\x11ccGenericServices\x129\n" + + "\x15java_generic_services\x18\x11 \x01(\b:\x05falseR\x13javaGenericServices\x125\n" + + "\x13py_generic_services\x18\x12 \x01(\b:\x05falseR\x11pyGenericServices\x12%\n" + + "\n" + + "deprecated\x18\x17 \x01(\b:\x05falseR\n" + + "deprecated\x12.\n" + + "\x10cc_enable_arenas\x18\x1f \x01(\b:\x04trueR\x0eccEnableArenas\x12*\n" + + "\x11objc_class_prefix\x18$ \x01(\tR\x0fobjcClassPrefix\x12)\n" + + "\x10csharp_namespace\x18% \x01(\tR\x0fcsharpNamespace\x12!\n" + + "\fswift_prefix\x18' \x01(\tR\vswiftPrefix\x12(\n" + + "\x10php_class_prefix\x18( \x01(\tR\x0ephpClassPrefix\x12#\n" + + "\rphp_namespace\x18) \x01(\tR\fphpNamespace\x124\n" + + "\x16php_metadata_namespace\x18, \x01(\tR\x14phpMetadataNamespace\x12!\n" + + "\fruby_package\x18- \x01(\tR\vrubyPackage\x127\n" + + "\bfeatures\x182 \x01(\v2\x1b.google.protobuf.FeatureSetR\bfeatures\x12X\n" + + "\x14uninterpreted_option\x18\xe7\a \x03(\v2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption\":\n" + + "\fOptimizeMode\x12\t\n" + + "\x05SPEED\x10\x01\x12\r\n" + + "\tCODE_SIZE\x10\x02\x12\x10\n" + + "\fLITE_RUNTIME\x10\x03*\t\b\xe8\a\x10\x80\x80\x80\x80\x02J\x04\b*\x10+J\x04\b&\x10'R\x14php_generic_services\"\xf4\x03\n" + + "\x0eMessageOptions\x12<\n" + + "\x17message_set_wire_format\x18\x01 \x01(\b:\x05falseR\x14messageSetWireFormat\x12L\n" + + "\x1fno_standard_descriptor_accessor\x18\x02 \x01(\b:\x05falseR\x1cnoStandardDescriptorAccessor\x12%\n" + + "\n" + + "deprecated\x18\x03 \x01(\b:\x05falseR\n" + + "deprecated\x12\x1b\n" + + "\tmap_entry\x18\a \x01(\bR\bmapEntry\x12V\n" + + "&deprecated_legacy_json_field_conflicts\x18\v \x01(\bB\x02\x18\x01R\"deprecatedLegacyJsonFieldConflicts\x127\n" + + "\bfeatures\x18\f \x01(\v2\x1b.google.protobuf.FeatureSetR\bfeatures\x12X\n" + + "\x14uninterpreted_option\x18\xe7\a \x03(\v2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption*\t\b\xe8\a\x10\x80\x80\x80\x80\x02J\x04\b\x04\x10\x05J\x04\b\x05\x10\x06J\x04\b\x06\x10\aJ\x04\b\b\x10\tJ\x04\b\t\x10\n" + + "\"\x9d\r\n" + + "\fFieldOptions\x12A\n" + + "\x05ctype\x18\x01 \x01(\x0e2#.google.protobuf.FieldOptions.CType:\x06STRINGR\x05ctype\x12\x16\n" + + "\x06packed\x18\x02 \x01(\bR\x06packed\x12G\n" + + "\x06jstype\x18\x06 \x01(\x0e2$.google.protobuf.FieldOptions.JSType:\tJS_NORMALR\x06jstype\x12\x19\n" + + "\x04lazy\x18\x05 \x01(\b:\x05falseR\x04lazy\x12.\n" + + "\x0funverified_lazy\x18\x0f \x01(\b:\x05falseR\x0eunverifiedLazy\x12%\n" + + "\n" + + "deprecated\x18\x03 \x01(\b:\x05falseR\n" + + "deprecated\x12\x19\n" + + "\x04weak\x18\n" + + " \x01(\b:\x05falseR\x04weak\x12(\n" + + "\fdebug_redact\x18\x10 \x01(\b:\x05falseR\vdebugRedact\x12K\n" + + "\tretention\x18\x11 \x01(\x0e2-.google.protobuf.FieldOptions.OptionRetentionR\tretention\x12H\n" + + "\atargets\x18\x13 \x03(\x0e2..google.protobuf.FieldOptions.OptionTargetTypeR\atargets\x12W\n" + + "\x10edition_defaults\x18\x14 \x03(\v2,.google.protobuf.FieldOptions.EditionDefaultR\x0feditionDefaults\x127\n" + + "\bfeatures\x18\x15 \x01(\v2\x1b.google.protobuf.FeatureSetR\bfeatures\x12U\n" + + "\x0ffeature_support\x18\x16 \x01(\v2,.google.protobuf.FieldOptions.FeatureSupportR\x0efeatureSupport\x12X\n" + + "\x14uninterpreted_option\x18\xe7\a \x03(\v2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption\x1aZ\n" + + "\x0eEditionDefault\x122\n" + + "\aedition\x18\x03 \x01(\x0e2\x18.google.protobuf.EditionR\aedition\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\x1a\x96\x02\n" + + "\x0eFeatureSupport\x12G\n" + + "\x12edition_introduced\x18\x01 \x01(\x0e2\x18.google.protobuf.EditionR\x11editionIntroduced\x12G\n" + + "\x12edition_deprecated\x18\x02 \x01(\x0e2\x18.google.protobuf.EditionR\x11editionDeprecated\x12/\n" + + "\x13deprecation_warning\x18\x03 \x01(\tR\x12deprecationWarning\x12A\n" + + "\x0fedition_removed\x18\x04 \x01(\x0e2\x18.google.protobuf.EditionR\x0eeditionRemoved\"/\n" + + "\x05CType\x12\n" + + "\n" + + "\x06STRING\x10\x00\x12\b\n" + + "\x04CORD\x10\x01\x12\x10\n" + + "\fSTRING_PIECE\x10\x02\"5\n" + + "\x06JSType\x12\r\n" + + "\tJS_NORMAL\x10\x00\x12\r\n" + + "\tJS_STRING\x10\x01\x12\r\n" + + "\tJS_NUMBER\x10\x02\"U\n" + + "\x0fOptionRetention\x12\x15\n" + + "\x11RETENTION_UNKNOWN\x10\x00\x12\x15\n" + + "\x11RETENTION_RUNTIME\x10\x01\x12\x14\n" + + "\x10RETENTION_SOURCE\x10\x02\"\x8c\x02\n" + + "\x10OptionTargetType\x12\x17\n" + + "\x13TARGET_TYPE_UNKNOWN\x10\x00\x12\x14\n" + + "\x10TARGET_TYPE_FILE\x10\x01\x12\x1f\n" + + "\x1bTARGET_TYPE_EXTENSION_RANGE\x10\x02\x12\x17\n" + + "\x13TARGET_TYPE_MESSAGE\x10\x03\x12\x15\n" + + "\x11TARGET_TYPE_FIELD\x10\x04\x12\x15\n" + + "\x11TARGET_TYPE_ONEOF\x10\x05\x12\x14\n" + + "\x10TARGET_TYPE_ENUM\x10\x06\x12\x1a\n" + + "\x16TARGET_TYPE_ENUM_ENTRY\x10\a\x12\x17\n" + + "\x13TARGET_TYPE_SERVICE\x10\b\x12\x16\n" + + "\x12TARGET_TYPE_METHOD\x10\t*\t\b\xe8\a\x10\x80\x80\x80\x80\x02J\x04\b\x04\x10\x05J\x04\b\x12\x10\x13\"\xac\x01\n" + + "\fOneofOptions\x127\n" + + "\bfeatures\x18\x01 \x01(\v2\x1b.google.protobuf.FeatureSetR\bfeatures\x12X\n" + + "\x14uninterpreted_option\x18\xe7\a \x03(\v2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption*\t\b\xe8\a\x10\x80\x80\x80\x80\x02\"\xd1\x02\n" + + "\vEnumOptions\x12\x1f\n" + + "\vallow_alias\x18\x02 \x01(\bR\n" + + "allowAlias\x12%\n" + + "\n" + + "deprecated\x18\x03 \x01(\b:\x05falseR\n" + + "deprecated\x12V\n" + + "&deprecated_legacy_json_field_conflicts\x18\x06 \x01(\bB\x02\x18\x01R\"deprecatedLegacyJsonFieldConflicts\x127\n" + + "\bfeatures\x18\a \x01(\v2\x1b.google.protobuf.FeatureSetR\bfeatures\x12X\n" + + "\x14uninterpreted_option\x18\xe7\a \x03(\v2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption*\t\b\xe8\a\x10\x80\x80\x80\x80\x02J\x04\b\x05\x10\x06\"\xd8\x02\n" + + "\x10EnumValueOptions\x12%\n" + + "\n" + + "deprecated\x18\x01 \x01(\b:\x05falseR\n" + + "deprecated\x127\n" + + "\bfeatures\x18\x02 \x01(\v2\x1b.google.protobuf.FeatureSetR\bfeatures\x12(\n" + + "\fdebug_redact\x18\x03 \x01(\b:\x05falseR\vdebugRedact\x12U\n" + + "\x0ffeature_support\x18\x04 \x01(\v2,.google.protobuf.FieldOptions.FeatureSupportR\x0efeatureSupport\x12X\n" + + "\x14uninterpreted_option\x18\xe7\a \x03(\v2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption*\t\b\xe8\a\x10\x80\x80\x80\x80\x02\"\xd5\x01\n" + + "\x0eServiceOptions\x127\n" + + "\bfeatures\x18\" \x01(\v2\x1b.google.protobuf.FeatureSetR\bfeatures\x12%\n" + + "\n" + + "deprecated\x18! \x01(\b:\x05falseR\n" + + "deprecated\x12X\n" + + "\x14uninterpreted_option\x18\xe7\a \x03(\v2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption*\t\b\xe8\a\x10\x80\x80\x80\x80\x02\"\x99\x03\n" + + "\rMethodOptions\x12%\n" + + "\n" + + "deprecated\x18! \x01(\b:\x05falseR\n" + + "deprecated\x12q\n" + + "\x11idempotency_level\x18\" \x01(\x0e2/.google.protobuf.MethodOptions.IdempotencyLevel:\x13IDEMPOTENCY_UNKNOWNR\x10idempotencyLevel\x127\n" + + "\bfeatures\x18# \x01(\v2\x1b.google.protobuf.FeatureSetR\bfeatures\x12X\n" + + "\x14uninterpreted_option\x18\xe7\a \x03(\v2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption\"P\n" + + "\x10IdempotencyLevel\x12\x17\n" + + "\x13IDEMPOTENCY_UNKNOWN\x10\x00\x12\x13\n" + + "\x0fNO_SIDE_EFFECTS\x10\x01\x12\x0e\n" + + "\n" + + "IDEMPOTENT\x10\x02*\t\b\xe8\a\x10\x80\x80\x80\x80\x02\"\x9a\x03\n" + + "\x13UninterpretedOption\x12A\n" + + "\x04name\x18\x02 \x03(\v2-.google.protobuf.UninterpretedOption.NamePartR\x04name\x12)\n" + + "\x10identifier_value\x18\x03 \x01(\tR\x0fidentifierValue\x12,\n" + + "\x12positive_int_value\x18\x04 \x01(\x04R\x10positiveIntValue\x12,\n" + + "\x12negative_int_value\x18\x05 \x01(\x03R\x10negativeIntValue\x12!\n" + + "\fdouble_value\x18\x06 \x01(\x01R\vdoubleValue\x12!\n" + + "\fstring_value\x18\a \x01(\fR\vstringValue\x12'\n" + + "\x0faggregate_value\x18\b \x01(\tR\x0eaggregateValue\x1aJ\n" + + "\bNamePart\x12\x1b\n" + + "\tname_part\x18\x01 \x02(\tR\bnamePart\x12!\n" + + "\fis_extension\x18\x02 \x02(\bR\visExtension\"\xae\f\n" + + "\n" + + "FeatureSet\x12\x91\x01\n" + + "\x0efield_presence\x18\x01 \x01(\x0e2).google.protobuf.FeatureSet.FieldPresenceB?\x88\x01\x01\x98\x01\x04\x98\x01\x01\xa2\x01\r\x12\bEXPLICIT\x18\x84\a\xa2\x01\r\x12\bIMPLICIT\x18\xe7\a\xa2\x01\r\x12\bEXPLICIT\x18\xe8\a\xb2\x01\x03\b\xe8\aR\rfieldPresence\x12l\n" + + "\tenum_type\x18\x02 \x01(\x0e2$.google.protobuf.FeatureSet.EnumTypeB)\x88\x01\x01\x98\x01\x06\x98\x01\x01\xa2\x01\v\x12\x06CLOSED\x18\x84\a\xa2\x01\t\x12\x04OPEN\x18\xe7\a\xb2\x01\x03\b\xe8\aR\benumType\x12\x98\x01\n" + + "\x17repeated_field_encoding\x18\x03 \x01(\x0e21.google.protobuf.FeatureSet.RepeatedFieldEncodingB-\x88\x01\x01\x98\x01\x04\x98\x01\x01\xa2\x01\r\x12\bEXPANDED\x18\x84\a\xa2\x01\v\x12\x06PACKED\x18\xe7\a\xb2\x01\x03\b\xe8\aR\x15repeatedFieldEncoding\x12~\n" + + "\x0futf8_validation\x18\x04 \x01(\x0e2*.google.protobuf.FeatureSet.Utf8ValidationB)\x88\x01\x01\x98\x01\x04\x98\x01\x01\xa2\x01\t\x12\x04NONE\x18\x84\a\xa2\x01\v\x12\x06VERIFY\x18\xe7\a\xb2\x01\x03\b\xe8\aR\x0eutf8Validation\x12~\n" + + "\x10message_encoding\x18\x05 \x01(\x0e2+.google.protobuf.FeatureSet.MessageEncodingB&\x88\x01\x01\x98\x01\x04\x98\x01\x01\xa2\x01\x14\x12\x0fLENGTH_PREFIXED\x18\x84\a\xb2\x01\x03\b\xe8\aR\x0fmessageEncoding\x12\x82\x01\n" + + "\vjson_format\x18\x06 \x01(\x0e2&.google.protobuf.FeatureSet.JsonFormatB9\x88\x01\x01\x98\x01\x03\x98\x01\x06\x98\x01\x01\xa2\x01\x17\x12\x12LEGACY_BEST_EFFORT\x18\x84\a\xa2\x01\n" + + "\x12\x05ALLOW\x18\xe7\a\xb2\x01\x03\b\xe8\aR\n" + + "jsonFormat\x12\xab\x01\n" + + "\x14enforce_naming_style\x18\a \x01(\x0e2..google.protobuf.FeatureSet.EnforceNamingStyleBI\x88\x01\x02\x98\x01\x01\x98\x01\x02\x98\x01\x03\x98\x01\x04\x98\x01\x05\x98\x01\x06\x98\x01\a\x98\x01\b\x98\x01\t\xa2\x01\x11\x12\fSTYLE_LEGACY\x18\x84\a\xa2\x01\x0e\x12\tSTYLE2024\x18\xe9\a\xb2\x01\x03\b\xe9\aR\x12enforceNamingStyle\"\\\n" + + "\rFieldPresence\x12\x1a\n" + + "\x16FIELD_PRESENCE_UNKNOWN\x10\x00\x12\f\n" + + "\bEXPLICIT\x10\x01\x12\f\n" + + "\bIMPLICIT\x10\x02\x12\x13\n" + + "\x0fLEGACY_REQUIRED\x10\x03\"7\n" + + "\bEnumType\x12\x15\n" + + "\x11ENUM_TYPE_UNKNOWN\x10\x00\x12\b\n" + + "\x04OPEN\x10\x01\x12\n" + + "\n" + + "\x06CLOSED\x10\x02\"V\n" + + "\x15RepeatedFieldEncoding\x12#\n" + + "\x1fREPEATED_FIELD_ENCODING_UNKNOWN\x10\x00\x12\n" + + "\n" + + "\x06PACKED\x10\x01\x12\f\n" + + "\bEXPANDED\x10\x02\"I\n" + + "\x0eUtf8Validation\x12\x1b\n" + + "\x17UTF8_VALIDATION_UNKNOWN\x10\x00\x12\n" + + "\n" + + "\x06VERIFY\x10\x02\x12\b\n" + + "\x04NONE\x10\x03\"\x04\b\x01\x10\x01\"S\n" + + "\x0fMessageEncoding\x12\x1c\n" + + "\x18MESSAGE_ENCODING_UNKNOWN\x10\x00\x12\x13\n" + + "\x0fLENGTH_PREFIXED\x10\x01\x12\r\n" + + "\tDELIMITED\x10\x02\"H\n" + + "\n" + + "JsonFormat\x12\x17\n" + + "\x13JSON_FORMAT_UNKNOWN\x10\x00\x12\t\n" + + "\x05ALLOW\x10\x01\x12\x16\n" + + "\x12LEGACY_BEST_EFFORT\x10\x02\"W\n" + + "\x12EnforceNamingStyle\x12 \n" + + "\x1cENFORCE_NAMING_STYLE_UNKNOWN\x10\x00\x12\r\n" + + "\tSTYLE2024\x10\x01\x12\x10\n" + + "\fSTYLE_LEGACY\x10\x02*\x06\b\xe8\a\x10\x8bN*\x06\b\x8bN\x10\x90N*\x06\b\x90N\x10\x91NJ\x06\b\xe7\a\x10\xe8\a\"\xef\x03\n" + + "\x12FeatureSetDefaults\x12X\n" + + "\bdefaults\x18\x01 \x03(\v2<.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefaultR\bdefaults\x12A\n" + + "\x0fminimum_edition\x18\x04 \x01(\x0e2\x18.google.protobuf.EditionR\x0eminimumEdition\x12A\n" + + "\x0fmaximum_edition\x18\x05 \x01(\x0e2\x18.google.protobuf.EditionR\x0emaximumEdition\x1a\xf8\x01\n" + + "\x18FeatureSetEditionDefault\x122\n" + + "\aedition\x18\x03 \x01(\x0e2\x18.google.protobuf.EditionR\aedition\x12N\n" + + "\x14overridable_features\x18\x04 \x01(\v2\x1b.google.protobuf.FeatureSetR\x13overridableFeatures\x12B\n" + + "\x0efixed_features\x18\x05 \x01(\v2\x1b.google.protobuf.FeatureSetR\rfixedFeaturesJ\x04\b\x01\x10\x02J\x04\b\x02\x10\x03R\bfeatures\"\xb5\x02\n" + + "\x0eSourceCodeInfo\x12D\n" + + "\blocation\x18\x01 \x03(\v2(.google.protobuf.SourceCodeInfo.LocationR\blocation\x1a\xce\x01\n" + + "\bLocation\x12\x16\n" + + "\x04path\x18\x01 \x03(\x05B\x02\x10\x01R\x04path\x12\x16\n" + + "\x04span\x18\x02 \x03(\x05B\x02\x10\x01R\x04span\x12)\n" + + "\x10leading_comments\x18\x03 \x01(\tR\x0fleadingComments\x12+\n" + + "\x11trailing_comments\x18\x04 \x01(\tR\x10trailingComments\x12:\n" + + "\x19leading_detached_comments\x18\x06 \x03(\tR\x17leadingDetachedComments*\f\b\x80\xec\xca\xff\x01\x10\x81\xec\xca\xff\x01\"\xd0\x02\n" + + "\x11GeneratedCodeInfo\x12M\n" + + "\n" + + "annotation\x18\x01 \x03(\v2-.google.protobuf.GeneratedCodeInfo.AnnotationR\n" + + "annotation\x1a\xeb\x01\n" + + "\n" + + "Annotation\x12\x16\n" + + "\x04path\x18\x01 \x03(\x05B\x02\x10\x01R\x04path\x12\x1f\n" + + "\vsource_file\x18\x02 \x01(\tR\n" + + "sourceFile\x12\x14\n" + + "\x05begin\x18\x03 \x01(\x05R\x05begin\x12\x10\n" + + "\x03end\x18\x04 \x01(\x05R\x03end\x12R\n" + + "\bsemantic\x18\x05 \x01(\x0e26.google.protobuf.GeneratedCodeInfo.Annotation.SemanticR\bsemantic\"(\n" + + "\bSemantic\x12\b\n" + + "\x04NONE\x10\x00\x12\a\n" + + "\x03SET\x10\x01\x12\t\n" + + "\x05ALIAS\x10\x02*\xa7\x02\n" + + "\aEdition\x12\x13\n" + + "\x0fEDITION_UNKNOWN\x10\x00\x12\x13\n" + + "\x0eEDITION_LEGACY\x10\x84\a\x12\x13\n" + + "\x0eEDITION_PROTO2\x10\xe6\a\x12\x13\n" + + "\x0eEDITION_PROTO3\x10\xe7\a\x12\x11\n" + + "\fEDITION_2023\x10\xe8\a\x12\x11\n" + + "\fEDITION_2024\x10\xe9\a\x12\x17\n" + + "\x13EDITION_1_TEST_ONLY\x10\x01\x12\x17\n" + + "\x13EDITION_2_TEST_ONLY\x10\x02\x12\x1d\n" + + "\x17EDITION_99997_TEST_ONLY\x10\x9d\x8d\x06\x12\x1d\n" + + "\x17EDITION_99998_TEST_ONLY\x10\x9e\x8d\x06\x12\x1d\n" + + "\x17EDITION_99999_TEST_ONLY\x10\x9f\x8d\x06\x12\x13\n" + + "\vEDITION_MAX\x10\xff\xff\xff\xff\aB~\n" + + "\x13com.google.protobufB\x10DescriptorProtosH\x01Z-google.golang.org/protobuf/types/descriptorpb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1aGoogle.Protobuf.Reflection" var ( file_google_protobuf_descriptor_proto_rawDescOnce sync.Once @@ -5145,7 +4832,7 @@ func file_google_protobuf_descriptor_proto_rawDescGZIP() []byte { return file_google_protobuf_descriptor_proto_rawDescData } -var file_google_protobuf_descriptor_proto_enumTypes = make([]protoimpl.EnumInfo, 17) +var file_google_protobuf_descriptor_proto_enumTypes = make([]protoimpl.EnumInfo, 18) var file_google_protobuf_descriptor_proto_msgTypes = make([]protoimpl.MessageInfo, 33) var file_google_protobuf_descriptor_proto_goTypes = []any{ (Edition)(0), // 0: google.protobuf.Edition @@ -5164,124 +4851,126 @@ var file_google_protobuf_descriptor_proto_goTypes = []any{ (FeatureSet_Utf8Validation)(0), // 13: google.protobuf.FeatureSet.Utf8Validation (FeatureSet_MessageEncoding)(0), // 14: google.protobuf.FeatureSet.MessageEncoding (FeatureSet_JsonFormat)(0), // 15: google.protobuf.FeatureSet.JsonFormat - (GeneratedCodeInfo_Annotation_Semantic)(0), // 16: google.protobuf.GeneratedCodeInfo.Annotation.Semantic - (*FileDescriptorSet)(nil), // 17: google.protobuf.FileDescriptorSet - (*FileDescriptorProto)(nil), // 18: google.protobuf.FileDescriptorProto - (*DescriptorProto)(nil), // 19: google.protobuf.DescriptorProto - (*ExtensionRangeOptions)(nil), // 20: google.protobuf.ExtensionRangeOptions - (*FieldDescriptorProto)(nil), // 21: google.protobuf.FieldDescriptorProto - (*OneofDescriptorProto)(nil), // 22: google.protobuf.OneofDescriptorProto - (*EnumDescriptorProto)(nil), // 23: google.protobuf.EnumDescriptorProto - (*EnumValueDescriptorProto)(nil), // 24: google.protobuf.EnumValueDescriptorProto - (*ServiceDescriptorProto)(nil), // 25: google.protobuf.ServiceDescriptorProto - (*MethodDescriptorProto)(nil), // 26: google.protobuf.MethodDescriptorProto - (*FileOptions)(nil), // 27: google.protobuf.FileOptions - (*MessageOptions)(nil), // 28: google.protobuf.MessageOptions - (*FieldOptions)(nil), // 29: google.protobuf.FieldOptions - (*OneofOptions)(nil), // 30: google.protobuf.OneofOptions - (*EnumOptions)(nil), // 31: google.protobuf.EnumOptions - (*EnumValueOptions)(nil), // 32: google.protobuf.EnumValueOptions - (*ServiceOptions)(nil), // 33: google.protobuf.ServiceOptions - (*MethodOptions)(nil), // 34: google.protobuf.MethodOptions - (*UninterpretedOption)(nil), // 35: google.protobuf.UninterpretedOption - (*FeatureSet)(nil), // 36: google.protobuf.FeatureSet - (*FeatureSetDefaults)(nil), // 37: google.protobuf.FeatureSetDefaults - (*SourceCodeInfo)(nil), // 38: google.protobuf.SourceCodeInfo - (*GeneratedCodeInfo)(nil), // 39: google.protobuf.GeneratedCodeInfo - (*DescriptorProto_ExtensionRange)(nil), // 40: google.protobuf.DescriptorProto.ExtensionRange - (*DescriptorProto_ReservedRange)(nil), // 41: google.protobuf.DescriptorProto.ReservedRange - (*ExtensionRangeOptions_Declaration)(nil), // 42: google.protobuf.ExtensionRangeOptions.Declaration - (*EnumDescriptorProto_EnumReservedRange)(nil), // 43: google.protobuf.EnumDescriptorProto.EnumReservedRange - (*FieldOptions_EditionDefault)(nil), // 44: google.protobuf.FieldOptions.EditionDefault - (*FieldOptions_FeatureSupport)(nil), // 45: google.protobuf.FieldOptions.FeatureSupport - (*UninterpretedOption_NamePart)(nil), // 46: google.protobuf.UninterpretedOption.NamePart - (*FeatureSetDefaults_FeatureSetEditionDefault)(nil), // 47: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - (*SourceCodeInfo_Location)(nil), // 48: google.protobuf.SourceCodeInfo.Location - (*GeneratedCodeInfo_Annotation)(nil), // 49: google.protobuf.GeneratedCodeInfo.Annotation + (FeatureSet_EnforceNamingStyle)(0), // 16: google.protobuf.FeatureSet.EnforceNamingStyle + (GeneratedCodeInfo_Annotation_Semantic)(0), // 17: google.protobuf.GeneratedCodeInfo.Annotation.Semantic + (*FileDescriptorSet)(nil), // 18: google.protobuf.FileDescriptorSet + (*FileDescriptorProto)(nil), // 19: google.protobuf.FileDescriptorProto + (*DescriptorProto)(nil), // 20: google.protobuf.DescriptorProto + (*ExtensionRangeOptions)(nil), // 21: google.protobuf.ExtensionRangeOptions + (*FieldDescriptorProto)(nil), // 22: google.protobuf.FieldDescriptorProto + (*OneofDescriptorProto)(nil), // 23: google.protobuf.OneofDescriptorProto + (*EnumDescriptorProto)(nil), // 24: google.protobuf.EnumDescriptorProto + (*EnumValueDescriptorProto)(nil), // 25: google.protobuf.EnumValueDescriptorProto + (*ServiceDescriptorProto)(nil), // 26: google.protobuf.ServiceDescriptorProto + (*MethodDescriptorProto)(nil), // 27: google.protobuf.MethodDescriptorProto + (*FileOptions)(nil), // 28: google.protobuf.FileOptions + (*MessageOptions)(nil), // 29: google.protobuf.MessageOptions + (*FieldOptions)(nil), // 30: google.protobuf.FieldOptions + (*OneofOptions)(nil), // 31: google.protobuf.OneofOptions + (*EnumOptions)(nil), // 32: google.protobuf.EnumOptions + (*EnumValueOptions)(nil), // 33: google.protobuf.EnumValueOptions + (*ServiceOptions)(nil), // 34: google.protobuf.ServiceOptions + (*MethodOptions)(nil), // 35: google.protobuf.MethodOptions + (*UninterpretedOption)(nil), // 36: google.protobuf.UninterpretedOption + (*FeatureSet)(nil), // 37: google.protobuf.FeatureSet + (*FeatureSetDefaults)(nil), // 38: google.protobuf.FeatureSetDefaults + (*SourceCodeInfo)(nil), // 39: google.protobuf.SourceCodeInfo + (*GeneratedCodeInfo)(nil), // 40: google.protobuf.GeneratedCodeInfo + (*DescriptorProto_ExtensionRange)(nil), // 41: google.protobuf.DescriptorProto.ExtensionRange + (*DescriptorProto_ReservedRange)(nil), // 42: google.protobuf.DescriptorProto.ReservedRange + (*ExtensionRangeOptions_Declaration)(nil), // 43: google.protobuf.ExtensionRangeOptions.Declaration + (*EnumDescriptorProto_EnumReservedRange)(nil), // 44: google.protobuf.EnumDescriptorProto.EnumReservedRange + (*FieldOptions_EditionDefault)(nil), // 45: google.protobuf.FieldOptions.EditionDefault + (*FieldOptions_FeatureSupport)(nil), // 46: google.protobuf.FieldOptions.FeatureSupport + (*UninterpretedOption_NamePart)(nil), // 47: google.protobuf.UninterpretedOption.NamePart + (*FeatureSetDefaults_FeatureSetEditionDefault)(nil), // 48: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + (*SourceCodeInfo_Location)(nil), // 49: google.protobuf.SourceCodeInfo.Location + (*GeneratedCodeInfo_Annotation)(nil), // 50: google.protobuf.GeneratedCodeInfo.Annotation } var file_google_protobuf_descriptor_proto_depIdxs = []int32{ - 18, // 0: google.protobuf.FileDescriptorSet.file:type_name -> google.protobuf.FileDescriptorProto - 19, // 1: google.protobuf.FileDescriptorProto.message_type:type_name -> google.protobuf.DescriptorProto - 23, // 2: google.protobuf.FileDescriptorProto.enum_type:type_name -> google.protobuf.EnumDescriptorProto - 25, // 3: google.protobuf.FileDescriptorProto.service:type_name -> google.protobuf.ServiceDescriptorProto - 21, // 4: google.protobuf.FileDescriptorProto.extension:type_name -> google.protobuf.FieldDescriptorProto - 27, // 5: google.protobuf.FileDescriptorProto.options:type_name -> google.protobuf.FileOptions - 38, // 6: google.protobuf.FileDescriptorProto.source_code_info:type_name -> google.protobuf.SourceCodeInfo + 19, // 0: google.protobuf.FileDescriptorSet.file:type_name -> google.protobuf.FileDescriptorProto + 20, // 1: google.protobuf.FileDescriptorProto.message_type:type_name -> google.protobuf.DescriptorProto + 24, // 2: google.protobuf.FileDescriptorProto.enum_type:type_name -> google.protobuf.EnumDescriptorProto + 26, // 3: google.protobuf.FileDescriptorProto.service:type_name -> google.protobuf.ServiceDescriptorProto + 22, // 4: google.protobuf.FileDescriptorProto.extension:type_name -> google.protobuf.FieldDescriptorProto + 28, // 5: google.protobuf.FileDescriptorProto.options:type_name -> google.protobuf.FileOptions + 39, // 6: google.protobuf.FileDescriptorProto.source_code_info:type_name -> google.protobuf.SourceCodeInfo 0, // 7: google.protobuf.FileDescriptorProto.edition:type_name -> google.protobuf.Edition - 21, // 8: google.protobuf.DescriptorProto.field:type_name -> google.protobuf.FieldDescriptorProto - 21, // 9: google.protobuf.DescriptorProto.extension:type_name -> google.protobuf.FieldDescriptorProto - 19, // 10: google.protobuf.DescriptorProto.nested_type:type_name -> google.protobuf.DescriptorProto - 23, // 11: google.protobuf.DescriptorProto.enum_type:type_name -> google.protobuf.EnumDescriptorProto - 40, // 12: google.protobuf.DescriptorProto.extension_range:type_name -> google.protobuf.DescriptorProto.ExtensionRange - 22, // 13: google.protobuf.DescriptorProto.oneof_decl:type_name -> google.protobuf.OneofDescriptorProto - 28, // 14: google.protobuf.DescriptorProto.options:type_name -> google.protobuf.MessageOptions - 41, // 15: google.protobuf.DescriptorProto.reserved_range:type_name -> google.protobuf.DescriptorProto.ReservedRange - 35, // 16: google.protobuf.ExtensionRangeOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 42, // 17: google.protobuf.ExtensionRangeOptions.declaration:type_name -> google.protobuf.ExtensionRangeOptions.Declaration - 36, // 18: google.protobuf.ExtensionRangeOptions.features:type_name -> google.protobuf.FeatureSet + 22, // 8: google.protobuf.DescriptorProto.field:type_name -> google.protobuf.FieldDescriptorProto + 22, // 9: google.protobuf.DescriptorProto.extension:type_name -> google.protobuf.FieldDescriptorProto + 20, // 10: google.protobuf.DescriptorProto.nested_type:type_name -> google.protobuf.DescriptorProto + 24, // 11: google.protobuf.DescriptorProto.enum_type:type_name -> google.protobuf.EnumDescriptorProto + 41, // 12: google.protobuf.DescriptorProto.extension_range:type_name -> google.protobuf.DescriptorProto.ExtensionRange + 23, // 13: google.protobuf.DescriptorProto.oneof_decl:type_name -> google.protobuf.OneofDescriptorProto + 29, // 14: google.protobuf.DescriptorProto.options:type_name -> google.protobuf.MessageOptions + 42, // 15: google.protobuf.DescriptorProto.reserved_range:type_name -> google.protobuf.DescriptorProto.ReservedRange + 36, // 16: google.protobuf.ExtensionRangeOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 43, // 17: google.protobuf.ExtensionRangeOptions.declaration:type_name -> google.protobuf.ExtensionRangeOptions.Declaration + 37, // 18: google.protobuf.ExtensionRangeOptions.features:type_name -> google.protobuf.FeatureSet 1, // 19: google.protobuf.ExtensionRangeOptions.verification:type_name -> google.protobuf.ExtensionRangeOptions.VerificationState 3, // 20: google.protobuf.FieldDescriptorProto.label:type_name -> google.protobuf.FieldDescriptorProto.Label 2, // 21: google.protobuf.FieldDescriptorProto.type:type_name -> google.protobuf.FieldDescriptorProto.Type - 29, // 22: google.protobuf.FieldDescriptorProto.options:type_name -> google.protobuf.FieldOptions - 30, // 23: google.protobuf.OneofDescriptorProto.options:type_name -> google.protobuf.OneofOptions - 24, // 24: google.protobuf.EnumDescriptorProto.value:type_name -> google.protobuf.EnumValueDescriptorProto - 31, // 25: google.protobuf.EnumDescriptorProto.options:type_name -> google.protobuf.EnumOptions - 43, // 26: google.protobuf.EnumDescriptorProto.reserved_range:type_name -> google.protobuf.EnumDescriptorProto.EnumReservedRange - 32, // 27: google.protobuf.EnumValueDescriptorProto.options:type_name -> google.protobuf.EnumValueOptions - 26, // 28: google.protobuf.ServiceDescriptorProto.method:type_name -> google.protobuf.MethodDescriptorProto - 33, // 29: google.protobuf.ServiceDescriptorProto.options:type_name -> google.protobuf.ServiceOptions - 34, // 30: google.protobuf.MethodDescriptorProto.options:type_name -> google.protobuf.MethodOptions + 30, // 22: google.protobuf.FieldDescriptorProto.options:type_name -> google.protobuf.FieldOptions + 31, // 23: google.protobuf.OneofDescriptorProto.options:type_name -> google.protobuf.OneofOptions + 25, // 24: google.protobuf.EnumDescriptorProto.value:type_name -> google.protobuf.EnumValueDescriptorProto + 32, // 25: google.protobuf.EnumDescriptorProto.options:type_name -> google.protobuf.EnumOptions + 44, // 26: google.protobuf.EnumDescriptorProto.reserved_range:type_name -> google.protobuf.EnumDescriptorProto.EnumReservedRange + 33, // 27: google.protobuf.EnumValueDescriptorProto.options:type_name -> google.protobuf.EnumValueOptions + 27, // 28: google.protobuf.ServiceDescriptorProto.method:type_name -> google.protobuf.MethodDescriptorProto + 34, // 29: google.protobuf.ServiceDescriptorProto.options:type_name -> google.protobuf.ServiceOptions + 35, // 30: google.protobuf.MethodDescriptorProto.options:type_name -> google.protobuf.MethodOptions 4, // 31: google.protobuf.FileOptions.optimize_for:type_name -> google.protobuf.FileOptions.OptimizeMode - 36, // 32: google.protobuf.FileOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 33: google.protobuf.FileOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 36, // 34: google.protobuf.MessageOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 35: google.protobuf.MessageOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 37, // 32: google.protobuf.FileOptions.features:type_name -> google.protobuf.FeatureSet + 36, // 33: google.protobuf.FileOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 37, // 34: google.protobuf.MessageOptions.features:type_name -> google.protobuf.FeatureSet + 36, // 35: google.protobuf.MessageOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption 5, // 36: google.protobuf.FieldOptions.ctype:type_name -> google.protobuf.FieldOptions.CType 6, // 37: google.protobuf.FieldOptions.jstype:type_name -> google.protobuf.FieldOptions.JSType 7, // 38: google.protobuf.FieldOptions.retention:type_name -> google.protobuf.FieldOptions.OptionRetention 8, // 39: google.protobuf.FieldOptions.targets:type_name -> google.protobuf.FieldOptions.OptionTargetType - 44, // 40: google.protobuf.FieldOptions.edition_defaults:type_name -> google.protobuf.FieldOptions.EditionDefault - 36, // 41: google.protobuf.FieldOptions.features:type_name -> google.protobuf.FeatureSet - 45, // 42: google.protobuf.FieldOptions.feature_support:type_name -> google.protobuf.FieldOptions.FeatureSupport - 35, // 43: google.protobuf.FieldOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 36, // 44: google.protobuf.OneofOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 45: google.protobuf.OneofOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 36, // 46: google.protobuf.EnumOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 47: google.protobuf.EnumOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 36, // 48: google.protobuf.EnumValueOptions.features:type_name -> google.protobuf.FeatureSet - 45, // 49: google.protobuf.EnumValueOptions.feature_support:type_name -> google.protobuf.FieldOptions.FeatureSupport - 35, // 50: google.protobuf.EnumValueOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 36, // 51: google.protobuf.ServiceOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 52: google.protobuf.ServiceOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 45, // 40: google.protobuf.FieldOptions.edition_defaults:type_name -> google.protobuf.FieldOptions.EditionDefault + 37, // 41: google.protobuf.FieldOptions.features:type_name -> google.protobuf.FeatureSet + 46, // 42: google.protobuf.FieldOptions.feature_support:type_name -> google.protobuf.FieldOptions.FeatureSupport + 36, // 43: google.protobuf.FieldOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 37, // 44: google.protobuf.OneofOptions.features:type_name -> google.protobuf.FeatureSet + 36, // 45: google.protobuf.OneofOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 37, // 46: google.protobuf.EnumOptions.features:type_name -> google.protobuf.FeatureSet + 36, // 47: google.protobuf.EnumOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 37, // 48: google.protobuf.EnumValueOptions.features:type_name -> google.protobuf.FeatureSet + 46, // 49: google.protobuf.EnumValueOptions.feature_support:type_name -> google.protobuf.FieldOptions.FeatureSupport + 36, // 50: google.protobuf.EnumValueOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 37, // 51: google.protobuf.ServiceOptions.features:type_name -> google.protobuf.FeatureSet + 36, // 52: google.protobuf.ServiceOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption 9, // 53: google.protobuf.MethodOptions.idempotency_level:type_name -> google.protobuf.MethodOptions.IdempotencyLevel - 36, // 54: google.protobuf.MethodOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 55: google.protobuf.MethodOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 46, // 56: google.protobuf.UninterpretedOption.name:type_name -> google.protobuf.UninterpretedOption.NamePart + 37, // 54: google.protobuf.MethodOptions.features:type_name -> google.protobuf.FeatureSet + 36, // 55: google.protobuf.MethodOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 47, // 56: google.protobuf.UninterpretedOption.name:type_name -> google.protobuf.UninterpretedOption.NamePart 10, // 57: google.protobuf.FeatureSet.field_presence:type_name -> google.protobuf.FeatureSet.FieldPresence 11, // 58: google.protobuf.FeatureSet.enum_type:type_name -> google.protobuf.FeatureSet.EnumType 12, // 59: google.protobuf.FeatureSet.repeated_field_encoding:type_name -> google.protobuf.FeatureSet.RepeatedFieldEncoding 13, // 60: google.protobuf.FeatureSet.utf8_validation:type_name -> google.protobuf.FeatureSet.Utf8Validation 14, // 61: google.protobuf.FeatureSet.message_encoding:type_name -> google.protobuf.FeatureSet.MessageEncoding 15, // 62: google.protobuf.FeatureSet.json_format:type_name -> google.protobuf.FeatureSet.JsonFormat - 47, // 63: google.protobuf.FeatureSetDefaults.defaults:type_name -> google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - 0, // 64: google.protobuf.FeatureSetDefaults.minimum_edition:type_name -> google.protobuf.Edition - 0, // 65: google.protobuf.FeatureSetDefaults.maximum_edition:type_name -> google.protobuf.Edition - 48, // 66: google.protobuf.SourceCodeInfo.location:type_name -> google.protobuf.SourceCodeInfo.Location - 49, // 67: google.protobuf.GeneratedCodeInfo.annotation:type_name -> google.protobuf.GeneratedCodeInfo.Annotation - 20, // 68: google.protobuf.DescriptorProto.ExtensionRange.options:type_name -> google.protobuf.ExtensionRangeOptions - 0, // 69: google.protobuf.FieldOptions.EditionDefault.edition:type_name -> google.protobuf.Edition - 0, // 70: google.protobuf.FieldOptions.FeatureSupport.edition_introduced:type_name -> google.protobuf.Edition - 0, // 71: google.protobuf.FieldOptions.FeatureSupport.edition_deprecated:type_name -> google.protobuf.Edition - 0, // 72: google.protobuf.FieldOptions.FeatureSupport.edition_removed:type_name -> google.protobuf.Edition - 0, // 73: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.edition:type_name -> google.protobuf.Edition - 36, // 74: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridable_features:type_name -> google.protobuf.FeatureSet - 36, // 75: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixed_features:type_name -> google.protobuf.FeatureSet - 16, // 76: google.protobuf.GeneratedCodeInfo.Annotation.semantic:type_name -> google.protobuf.GeneratedCodeInfo.Annotation.Semantic - 77, // [77:77] is the sub-list for method output_type - 77, // [77:77] is the sub-list for method input_type - 77, // [77:77] is the sub-list for extension type_name - 77, // [77:77] is the sub-list for extension extendee - 0, // [0:77] is the sub-list for field type_name + 16, // 63: google.protobuf.FeatureSet.enforce_naming_style:type_name -> google.protobuf.FeatureSet.EnforceNamingStyle + 48, // 64: google.protobuf.FeatureSetDefaults.defaults:type_name -> google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + 0, // 65: google.protobuf.FeatureSetDefaults.minimum_edition:type_name -> google.protobuf.Edition + 0, // 66: google.protobuf.FeatureSetDefaults.maximum_edition:type_name -> google.protobuf.Edition + 49, // 67: google.protobuf.SourceCodeInfo.location:type_name -> google.protobuf.SourceCodeInfo.Location + 50, // 68: google.protobuf.GeneratedCodeInfo.annotation:type_name -> google.protobuf.GeneratedCodeInfo.Annotation + 21, // 69: google.protobuf.DescriptorProto.ExtensionRange.options:type_name -> google.protobuf.ExtensionRangeOptions + 0, // 70: google.protobuf.FieldOptions.EditionDefault.edition:type_name -> google.protobuf.Edition + 0, // 71: google.protobuf.FieldOptions.FeatureSupport.edition_introduced:type_name -> google.protobuf.Edition + 0, // 72: google.protobuf.FieldOptions.FeatureSupport.edition_deprecated:type_name -> google.protobuf.Edition + 0, // 73: google.protobuf.FieldOptions.FeatureSupport.edition_removed:type_name -> google.protobuf.Edition + 0, // 74: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.edition:type_name -> google.protobuf.Edition + 37, // 75: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridable_features:type_name -> google.protobuf.FeatureSet + 37, // 76: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixed_features:type_name -> google.protobuf.FeatureSet + 17, // 77: google.protobuf.GeneratedCodeInfo.Annotation.semantic:type_name -> google.protobuf.GeneratedCodeInfo.Annotation.Semantic + 78, // [78:78] is the sub-list for method output_type + 78, // [78:78] is the sub-list for method input_type + 78, // [78:78] is the sub-list for extension type_name + 78, // [78:78] is the sub-list for extension extendee + 0, // [0:78] is the sub-list for field type_name } func init() { file_google_protobuf_descriptor_proto_init() } @@ -5294,7 +4983,7 @@ func file_google_protobuf_descriptor_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_descriptor_proto_rawDesc), len(file_google_protobuf_descriptor_proto_rawDesc)), - NumEnums: 17, + NumEnums: 18, NumMessages: 33, NumExtensions: 0, NumServices: 0, diff --git a/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go b/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go index 28d24bad79..37e712b6b7 100644 --- a/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go +++ b/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go @@ -228,63 +228,29 @@ var ( var File_google_protobuf_go_features_proto protoreflect.FileDescriptor -var file_google_protobuf_go_features_proto_rawDesc = string([]byte{ - 0x0a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x67, 0x6f, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xab, 0x05, 0x0a, 0x0a, 0x47, 0x6f, - 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0xbe, 0x01, 0x0a, 0x1a, 0x6c, 0x65, 0x67, - 0x61, 0x63, 0x79, 0x5f, 0x75, 0x6e, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, 0x6c, 0x5f, 0x6a, 0x73, - 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x80, 0x01, - 0x88, 0x01, 0x01, 0x98, 0x01, 0x06, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x09, 0x12, 0x04, 0x74, 0x72, - 0x75, 0x65, 0x18, 0x84, 0x07, 0xa2, 0x01, 0x0a, 0x12, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x18, - 0xe7, 0x07, 0xb2, 0x01, 0x5b, 0x08, 0xe8, 0x07, 0x10, 0xe8, 0x07, 0x1a, 0x53, 0x54, 0x68, 0x65, - 0x20, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x20, 0x55, 0x6e, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, - 0x6c, 0x4a, 0x53, 0x4f, 0x4e, 0x20, 0x41, 0x50, 0x49, 0x20, 0x69, 0x73, 0x20, 0x64, 0x65, 0x70, - 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x77, 0x69, 0x6c, 0x6c, - 0x20, 0x62, 0x65, 0x20, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x61, - 0x20, 0x66, 0x75, 0x74, 0x75, 0x72, 0x65, 0x20, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x52, 0x17, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x55, 0x6e, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, - 0x6c, 0x4a, 0x73, 0x6f, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x74, 0x0a, 0x09, 0x61, 0x70, 0x69, - 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, - 0x62, 0x2e, 0x47, 0x6f, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x41, 0x50, 0x49, - 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x3e, 0x88, 0x01, 0x01, 0x98, 0x01, 0x03, 0x98, 0x01, 0x01, - 0xa2, 0x01, 0x1a, 0x12, 0x15, 0x41, 0x50, 0x49, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x18, 0x84, 0x07, 0xa2, 0x01, 0x0f, - 0x12, 0x0a, 0x41, 0x50, 0x49, 0x5f, 0x4f, 0x50, 0x41, 0x51, 0x55, 0x45, 0x18, 0xe9, 0x07, 0xb2, - 0x01, 0x03, 0x08, 0xe8, 0x07, 0x52, 0x08, 0x61, 0x70, 0x69, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, - 0x7c, 0x0a, 0x11, 0x73, 0x74, 0x72, 0x69, 0x70, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x70, 0x72, - 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x62, 0x2e, - 0x47, 0x6f, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x70, - 0x45, 0x6e, 0x75, 0x6d, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x42, 0x30, 0x88, 0x01, 0x01, 0x98, - 0x01, 0x06, 0x98, 0x01, 0x07, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x1b, 0x12, 0x16, 0x53, 0x54, 0x52, - 0x49, 0x50, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x5f, 0x4b, - 0x45, 0x45, 0x50, 0x18, 0x84, 0x07, 0xb2, 0x01, 0x03, 0x08, 0xe9, 0x07, 0x52, 0x0f, 0x73, 0x74, - 0x72, 0x69, 0x70, 0x45, 0x6e, 0x75, 0x6d, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x53, 0x0a, - 0x08, 0x41, 0x50, 0x49, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x50, 0x49, - 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x49, 0x5f, 0x4f, 0x50, 0x45, 0x4e, - 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x50, 0x49, 0x5f, 0x48, 0x59, 0x42, 0x52, 0x49, 0x44, - 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x50, 0x49, 0x5f, 0x4f, 0x50, 0x41, 0x51, 0x55, 0x45, - 0x10, 0x03, 0x22, 0x92, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x69, 0x70, 0x45, 0x6e, 0x75, 0x6d, - 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x52, 0x49, 0x50, 0x5f, - 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x54, 0x52, - 0x49, 0x50, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x5f, 0x4b, - 0x45, 0x45, 0x50, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x53, 0x54, 0x52, 0x49, 0x50, 0x5f, 0x45, - 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x52, - 0x41, 0x54, 0x45, 0x5f, 0x42, 0x4f, 0x54, 0x48, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, - 0x52, 0x49, 0x50, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x5f, - 0x53, 0x54, 0x52, 0x49, 0x50, 0x10, 0x03, 0x3a, 0x3c, 0x0a, 0x02, 0x67, 0x6f, 0x12, 0x1b, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x6f, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x73, 0x52, 0x02, 0x67, 0x6f, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x67, 0x6f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x73, 0x70, 0x62, -}) +const file_google_protobuf_go_features_proto_rawDesc = "" + + "\n" + + "!google/protobuf/go_features.proto\x12\x02pb\x1a google/protobuf/descriptor.proto\"\xab\x05\n" + + "\n" + + "GoFeatures\x12\xbe\x01\n" + + "\x1alegacy_unmarshal_json_enum\x18\x01 \x01(\bB\x80\x01\x88\x01\x01\x98\x01\x06\x98\x01\x01\xa2\x01\t\x12\x04true\x18\x84\a\xa2\x01\n" + + "\x12\x05false\x18\xe7\a\xb2\x01[\b\xe8\a\x10\xe8\a\x1aSThe legacy UnmarshalJSON API is deprecated and will be removed in a future edition.R\x17legacyUnmarshalJsonEnum\x12t\n" + + "\tapi_level\x18\x02 \x01(\x0e2\x17.pb.GoFeatures.APILevelB>\x88\x01\x01\x98\x01\x03\x98\x01\x01\xa2\x01\x1a\x12\x15API_LEVEL_UNSPECIFIED\x18\x84\a\xa2\x01\x0f\x12\n" + + "API_OPAQUE\x18\xe9\a\xb2\x01\x03\b\xe8\aR\bapiLevel\x12|\n" + + "\x11strip_enum_prefix\x18\x03 \x01(\x0e2\x1e.pb.GoFeatures.StripEnumPrefixB0\x88\x01\x01\x98\x01\x06\x98\x01\a\x98\x01\x01\xa2\x01\x1b\x12\x16STRIP_ENUM_PREFIX_KEEP\x18\x84\a\xb2\x01\x03\b\xe9\aR\x0fstripEnumPrefix\"S\n" + + "\bAPILevel\x12\x19\n" + + "\x15API_LEVEL_UNSPECIFIED\x10\x00\x12\f\n" + + "\bAPI_OPEN\x10\x01\x12\x0e\n" + + "\n" + + "API_HYBRID\x10\x02\x12\x0e\n" + + "\n" + + "API_OPAQUE\x10\x03\"\x92\x01\n" + + "\x0fStripEnumPrefix\x12!\n" + + "\x1dSTRIP_ENUM_PREFIX_UNSPECIFIED\x10\x00\x12\x1a\n" + + "\x16STRIP_ENUM_PREFIX_KEEP\x10\x01\x12#\n" + + "\x1fSTRIP_ENUM_PREFIX_GENERATE_BOTH\x10\x02\x12\x1b\n" + + "\x17STRIP_ENUM_PREFIX_STRIP\x10\x03:<\n" + + "\x02go\x12\x1b.google.protobuf.FeatureSet\x18\xea\a \x01(\v2\x0e.pb.GoFeaturesR\x02goB/Z-google.golang.org/protobuf/types/gofeaturespb" var ( file_google_protobuf_go_features_proto_rawDescOnce sync.Once diff --git a/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go b/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go index 497da66e91..1ff0d1494d 100644 --- a/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go @@ -412,23 +412,13 @@ func (x *Any) GetValue() []byte { var File_google_protobuf_any_proto protoreflect.FileDescriptor -var file_google_protobuf_any_proto_rawDesc = string([]byte{ - 0x0a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x36, 0x0a, 0x03, - 0x41, 0x6e, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x79, 0x70, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x42, 0x76, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x08, 0x41, 0x6e, 0x79, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, - 0x61, 0x6e, 0x79, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, - 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -}) +const file_google_protobuf_any_proto_rawDesc = "" + + "\n" + + "\x19google/protobuf/any.proto\x12\x0fgoogle.protobuf\"6\n" + + "\x03Any\x12\x19\n" + + "\btype_url\x18\x01 \x01(\tR\atypeUrl\x12\x14\n" + + "\x05value\x18\x02 \x01(\fR\x05valueBv\n" + + "\x13com.google.protobufB\bAnyProtoP\x01Z,google.golang.org/protobuf/types/known/anypb\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3" var ( file_google_protobuf_any_proto_rawDescOnce sync.Once diff --git a/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go b/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go index 193880d181..ca2e7b38f4 100644 --- a/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go @@ -289,24 +289,13 @@ func (x *Duration) GetNanos() int32 { var File_google_protobuf_duration_proto protoreflect.FileDescriptor -var file_google_protobuf_duration_proto_rawDesc = string([]byte{ - 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x22, 0x3a, 0x0a, 0x08, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, - 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, - 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0x83, 0x01, - 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0d, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, - 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x64, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, - 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +const file_google_protobuf_duration_proto_rawDesc = "" + + "\n" + + "\x1egoogle/protobuf/duration.proto\x12\x0fgoogle.protobuf\":\n" + + "\bDuration\x12\x18\n" + + "\aseconds\x18\x01 \x01(\x03R\aseconds\x12\x14\n" + + "\x05nanos\x18\x02 \x01(\x05R\x05nanosB\x83\x01\n" + + "\x13com.google.protobufB\rDurationProtoP\x01Z1google.golang.org/protobuf/types/known/durationpb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3" var ( file_google_protobuf_duration_proto_rawDescOnce sync.Once diff --git a/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go b/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go index a5b8657c4b..1d7ee3b476 100644 --- a/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go @@ -86,20 +86,12 @@ func (*Empty) Descriptor() ([]byte, []int) { var File_google_protobuf_empty_proto protoreflect.FileDescriptor -var file_google_protobuf_empty_proto_rawDesc = string([]byte{ - 0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x07, - 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x7d, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0a, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, - 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, - 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +const file_google_protobuf_empty_proto_rawDesc = "" + + "\n" + + "\x1bgoogle/protobuf/empty.proto\x12\x0fgoogle.protobuf\"\a\n" + + "\x05EmptyB}\n" + + "\x13com.google.protobufB\n" + + "EmptyProtoP\x01Z.google.golang.org/protobuf/types/known/emptypb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3" var ( file_google_protobuf_empty_proto_rawDescOnce sync.Once diff --git a/vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go b/vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go index 041feb0f3e..91ee89a5cd 100644 --- a/vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go @@ -504,23 +504,12 @@ func (x *FieldMask) GetPaths() []string { var File_google_protobuf_field_mask_proto protoreflect.FileDescriptor -var file_google_protobuf_field_mask_proto_rawDesc = string([]byte{ - 0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x22, 0x21, 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, - 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x42, 0x85, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0e, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, - 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x6d, 0x61, - 0x73, 0x6b, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, - 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +const file_google_protobuf_field_mask_proto_rawDesc = "" + + "\n" + + " google/protobuf/field_mask.proto\x12\x0fgoogle.protobuf\"!\n" + + "\tFieldMask\x12\x14\n" + + "\x05paths\x18\x01 \x03(\tR\x05pathsB\x85\x01\n" + + "\x13com.google.protobufB\x0eFieldMaskProtoP\x01Z2google.golang.org/protobuf/types/known/fieldmaskpb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3" var ( file_google_protobuf_field_mask_proto_rawDescOnce sync.Once diff --git a/vendor/google.golang.org/protobuf/types/known/structpb/struct.pb.go b/vendor/google.golang.org/protobuf/types/known/structpb/struct.pb.go index ecdd31ab53..30411b7283 100644 --- a/vendor/google.golang.org/protobuf/types/known/structpb/struct.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/structpb/struct.pb.go @@ -672,55 +672,31 @@ func (x *ListValue) GetValues() []*Value { var File_google_protobuf_struct_proto protoreflect.FileDescriptor -var file_google_protobuf_struct_proto_rawDesc = string([]byte{ - 0x0a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, - 0x98, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x51, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb2, 0x02, 0x0a, 0x05, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, - 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, - 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x0c, - 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x73, - 0x74, 0x72, 0x75, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6c, 0x69, - 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x69, - 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, - 0x3b, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, 0x06, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2a, 0x1b, 0x0a, 0x09, - 0x4e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x55, 0x4c, - 0x4c, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x42, 0x7f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x42, 0x0b, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, - 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x70, 0x62, - 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, - 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -}) +const file_google_protobuf_struct_proto_rawDesc = "" + + "\n" + + "\x1cgoogle/protobuf/struct.proto\x12\x0fgoogle.protobuf\"\x98\x01\n" + + "\x06Struct\x12;\n" + + "\x06fields\x18\x01 \x03(\v2#.google.protobuf.Struct.FieldsEntryR\x06fields\x1aQ\n" + + "\vFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12,\n" + + "\x05value\x18\x02 \x01(\v2\x16.google.protobuf.ValueR\x05value:\x028\x01\"\xb2\x02\n" + + "\x05Value\x12;\n" + + "\n" + + "null_value\x18\x01 \x01(\x0e2\x1a.google.protobuf.NullValueH\x00R\tnullValue\x12#\n" + + "\fnumber_value\x18\x02 \x01(\x01H\x00R\vnumberValue\x12#\n" + + "\fstring_value\x18\x03 \x01(\tH\x00R\vstringValue\x12\x1f\n" + + "\n" + + "bool_value\x18\x04 \x01(\bH\x00R\tboolValue\x12<\n" + + "\fstruct_value\x18\x05 \x01(\v2\x17.google.protobuf.StructH\x00R\vstructValue\x12;\n" + + "\n" + + "list_value\x18\x06 \x01(\v2\x1a.google.protobuf.ListValueH\x00R\tlistValueB\x06\n" + + "\x04kind\";\n" + + "\tListValue\x12.\n" + + "\x06values\x18\x01 \x03(\v2\x16.google.protobuf.ValueR\x06values*\x1b\n" + + "\tNullValue\x12\x0e\n" + + "\n" + + "NULL_VALUE\x10\x00B\x7f\n" + + "\x13com.google.protobufB\vStructProtoP\x01Z/google.golang.org/protobuf/types/known/structpb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3" var ( file_google_protobuf_struct_proto_rawDescOnce sync.Once diff --git a/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go b/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go index 00ac835c0b..06d584c14b 100644 --- a/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go @@ -298,24 +298,13 @@ func (x *Timestamp) GetNanos() int32 { var File_google_protobuf_timestamp_proto protoreflect.FileDescriptor -var file_google_protobuf_timestamp_proto_rawDesc = string([]byte{ - 0x0a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x22, 0x3b, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, - 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, - 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, - 0x85, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, - 0x6e, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x70, 0x62, 0xf8, 0x01, 0x01, - 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, - 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +const file_google_protobuf_timestamp_proto_rawDesc = "" + + "\n" + + "\x1fgoogle/protobuf/timestamp.proto\x12\x0fgoogle.protobuf\";\n" + + "\tTimestamp\x12\x18\n" + + "\aseconds\x18\x01 \x01(\x03R\aseconds\x12\x14\n" + + "\x05nanos\x18\x02 \x01(\x05R\x05nanosB\x85\x01\n" + + "\x13com.google.protobufB\x0eTimestampProtoP\x01Z2google.golang.org/protobuf/types/known/timestamppb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3" var ( file_google_protobuf_timestamp_proto_rawDescOnce sync.Once diff --git a/vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go b/vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go index 5de5301063..b7c2d0607d 100644 --- a/vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go @@ -28,10 +28,17 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // -// Wrappers for primitive (non-message) types. These types are useful -// for embedding primitives in the `google.protobuf.Any` type and for places -// where we need to distinguish between the absence of a primitive -// typed field and its default value. +// Wrappers for primitive (non-message) types. These types were needed +// for legacy reasons and are not recommended for use in new APIs. +// +// Historically these wrappers were useful to have presence on proto3 primitive +// fields, but proto3 syntax has been updated to support the `optional` keyword. +// Using that keyword is now the strongly preferred way to add presence to +// proto3 primitive fields. +// +// A secondary usecase was to embed primitives in the `google.protobuf.Any` +// type: it is now recommended that you embed your value in your own wrapper +// message which can be specifically documented. // // These wrappers have no meaningful use within repeated fields as they lack // the ability to detect presence on individual elements. @@ -54,6 +61,9 @@ import ( // Wrapper message for `double`. // // The JSON representation for `DoubleValue` is JSON number. +// +// Not recommended for use in new APIs, but still useful for legacy APIs and +// has no plan to be removed. type DoubleValue struct { state protoimpl.MessageState `protogen:"open.v1"` // The double value. @@ -107,6 +117,9 @@ func (x *DoubleValue) GetValue() float64 { // Wrapper message for `float`. // // The JSON representation for `FloatValue` is JSON number. +// +// Not recommended for use in new APIs, but still useful for legacy APIs and +// has no plan to be removed. type FloatValue struct { state protoimpl.MessageState `protogen:"open.v1"` // The float value. @@ -160,6 +173,9 @@ func (x *FloatValue) GetValue() float32 { // Wrapper message for `int64`. // // The JSON representation for `Int64Value` is JSON string. +// +// Not recommended for use in new APIs, but still useful for legacy APIs and +// has no plan to be removed. type Int64Value struct { state protoimpl.MessageState `protogen:"open.v1"` // The int64 value. @@ -213,6 +229,9 @@ func (x *Int64Value) GetValue() int64 { // Wrapper message for `uint64`. // // The JSON representation for `UInt64Value` is JSON string. +// +// Not recommended for use in new APIs, but still useful for legacy APIs and +// has no plan to be removed. type UInt64Value struct { state protoimpl.MessageState `protogen:"open.v1"` // The uint64 value. @@ -266,6 +285,9 @@ func (x *UInt64Value) GetValue() uint64 { // Wrapper message for `int32`. // // The JSON representation for `Int32Value` is JSON number. +// +// Not recommended for use in new APIs, but still useful for legacy APIs and +// has no plan to be removed. type Int32Value struct { state protoimpl.MessageState `protogen:"open.v1"` // The int32 value. @@ -319,6 +341,9 @@ func (x *Int32Value) GetValue() int32 { // Wrapper message for `uint32`. // // The JSON representation for `UInt32Value` is JSON number. +// +// Not recommended for use in new APIs, but still useful for legacy APIs and +// has no plan to be removed. type UInt32Value struct { state protoimpl.MessageState `protogen:"open.v1"` // The uint32 value. @@ -372,6 +397,9 @@ func (x *UInt32Value) GetValue() uint32 { // Wrapper message for `bool`. // // The JSON representation for `BoolValue` is JSON `true` and `false`. +// +// Not recommended for use in new APIs, but still useful for legacy APIs and +// has no plan to be removed. type BoolValue struct { state protoimpl.MessageState `protogen:"open.v1"` // The bool value. @@ -425,6 +453,9 @@ func (x *BoolValue) GetValue() bool { // Wrapper message for `string`. // // The JSON representation for `StringValue` is JSON string. +// +// Not recommended for use in new APIs, but still useful for legacy APIs and +// has no plan to be removed. type StringValue struct { state protoimpl.MessageState `protogen:"open.v1"` // The string value. @@ -478,6 +509,9 @@ func (x *StringValue) GetValue() string { // Wrapper message for `bytes`. // // The JSON representation for `BytesValue` is JSON string. +// +// Not recommended for use in new APIs, but still useful for legacy APIs and +// has no plan to be removed. type BytesValue struct { state protoimpl.MessageState `protogen:"open.v1"` // The bytes value. @@ -530,41 +564,32 @@ func (x *BytesValue) GetValue() []byte { var File_google_protobuf_wrappers_proto protoreflect.FileDescriptor -var file_google_protobuf_wrappers_proto_rawDesc = string([]byte{ - 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x22, 0x23, 0x0a, 0x0b, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x49, 0x6e, - 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, - 0x0a, 0x0b, 0x55, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x0b, 0x55, 0x49, 0x6e, 0x74, 0x33, - 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21, 0x0a, 0x09, - 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, - 0x23, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x42, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x83, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x42, 0x0d, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, - 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, - 0x72, 0x73, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, - 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +const file_google_protobuf_wrappers_proto_rawDesc = "" + + "\n" + + "\x1egoogle/protobuf/wrappers.proto\x12\x0fgoogle.protobuf\"#\n" + + "\vDoubleValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\x01R\x05value\"\"\n" + + "\n" + + "FloatValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\x02R\x05value\"\"\n" + + "\n" + + "Int64Value\x12\x14\n" + + "\x05value\x18\x01 \x01(\x03R\x05value\"#\n" + + "\vUInt64Value\x12\x14\n" + + "\x05value\x18\x01 \x01(\x04R\x05value\"\"\n" + + "\n" + + "Int32Value\x12\x14\n" + + "\x05value\x18\x01 \x01(\x05R\x05value\"#\n" + + "\vUInt32Value\x12\x14\n" + + "\x05value\x18\x01 \x01(\rR\x05value\"!\n" + + "\tBoolValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\bR\x05value\"#\n" + + "\vStringValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\tR\x05value\"\"\n" + + "\n" + + "BytesValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\fR\x05valueB\x83\x01\n" + + "\x13com.google.protobufB\rWrappersProtoP\x01Z1google.golang.org/protobuf/types/known/wrapperspb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3" var ( file_google_protobuf_wrappers_proto_rawDescOnce sync.Once diff --git a/vendor/k8s.io/api/admissionregistration/v1beta1/generated.pb.go b/vendor/k8s.io/api/admissionregistration/v1beta1/generated.pb.go index 261ae41bd0..bf1ae59488 100644 --- a/vendor/k8s.io/api/admissionregistration/v1beta1/generated.pb.go +++ b/vendor/k8s.io/api/admissionregistration/v1beta1/generated.pb.go @@ -25,6 +25,7 @@ import ( io "io" proto "github.com/gogo/protobuf/proto" + k8s_io_api_admissionregistration_v1 "k8s.io/api/admissionregistration/v1" v11 "k8s.io/api/admissionregistration/v1" k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -46,10 +47,38 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +func (m *ApplyConfiguration) Reset() { *m = ApplyConfiguration{} } +func (*ApplyConfiguration) ProtoMessage() {} +func (*ApplyConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_7f7c65a4f012fb19, []int{0} +} +func (m *ApplyConfiguration) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplyConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ApplyConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplyConfiguration.Merge(m, src) +} +func (m *ApplyConfiguration) XXX_Size() int { + return m.Size() +} +func (m *ApplyConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_ApplyConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplyConfiguration proto.InternalMessageInfo + func (m *AuditAnnotation) Reset() { *m = AuditAnnotation{} } func (*AuditAnnotation) ProtoMessage() {} func (*AuditAnnotation) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{0} + return fileDescriptor_7f7c65a4f012fb19, []int{1} } func (m *AuditAnnotation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +106,7 @@ var xxx_messageInfo_AuditAnnotation proto.InternalMessageInfo func (m *ExpressionWarning) Reset() { *m = ExpressionWarning{} } func (*ExpressionWarning) ProtoMessage() {} func (*ExpressionWarning) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{1} + return fileDescriptor_7f7c65a4f012fb19, []int{2} } func (m *ExpressionWarning) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -102,10 +131,38 @@ func (m *ExpressionWarning) XXX_DiscardUnknown() { var xxx_messageInfo_ExpressionWarning proto.InternalMessageInfo +func (m *JSONPatch) Reset() { *m = JSONPatch{} } +func (*JSONPatch) ProtoMessage() {} +func (*JSONPatch) Descriptor() ([]byte, []int) { + return fileDescriptor_7f7c65a4f012fb19, []int{3} +} +func (m *JSONPatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JSONPatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *JSONPatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_JSONPatch.Merge(m, src) +} +func (m *JSONPatch) XXX_Size() int { + return m.Size() +} +func (m *JSONPatch) XXX_DiscardUnknown() { + xxx_messageInfo_JSONPatch.DiscardUnknown(m) +} + +var xxx_messageInfo_JSONPatch proto.InternalMessageInfo + func (m *MatchCondition) Reset() { *m = MatchCondition{} } func (*MatchCondition) ProtoMessage() {} func (*MatchCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{2} + return fileDescriptor_7f7c65a4f012fb19, []int{4} } func (m *MatchCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -133,7 +190,7 @@ var xxx_messageInfo_MatchCondition proto.InternalMessageInfo func (m *MatchResources) Reset() { *m = MatchResources{} } func (*MatchResources) ProtoMessage() {} func (*MatchResources) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{3} + return fileDescriptor_7f7c65a4f012fb19, []int{5} } func (m *MatchResources) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -158,10 +215,178 @@ func (m *MatchResources) XXX_DiscardUnknown() { var xxx_messageInfo_MatchResources proto.InternalMessageInfo +func (m *MutatingAdmissionPolicy) Reset() { *m = MutatingAdmissionPolicy{} } +func (*MutatingAdmissionPolicy) ProtoMessage() {} +func (*MutatingAdmissionPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_7f7c65a4f012fb19, []int{6} +} +func (m *MutatingAdmissionPolicy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MutatingAdmissionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *MutatingAdmissionPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_MutatingAdmissionPolicy.Merge(m, src) +} +func (m *MutatingAdmissionPolicy) XXX_Size() int { + return m.Size() +} +func (m *MutatingAdmissionPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_MutatingAdmissionPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_MutatingAdmissionPolicy proto.InternalMessageInfo + +func (m *MutatingAdmissionPolicyBinding) Reset() { *m = MutatingAdmissionPolicyBinding{} } +func (*MutatingAdmissionPolicyBinding) ProtoMessage() {} +func (*MutatingAdmissionPolicyBinding) Descriptor() ([]byte, []int) { + return fileDescriptor_7f7c65a4f012fb19, []int{7} +} +func (m *MutatingAdmissionPolicyBinding) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MutatingAdmissionPolicyBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *MutatingAdmissionPolicyBinding) XXX_Merge(src proto.Message) { + xxx_messageInfo_MutatingAdmissionPolicyBinding.Merge(m, src) +} +func (m *MutatingAdmissionPolicyBinding) XXX_Size() int { + return m.Size() +} +func (m *MutatingAdmissionPolicyBinding) XXX_DiscardUnknown() { + xxx_messageInfo_MutatingAdmissionPolicyBinding.DiscardUnknown(m) +} + +var xxx_messageInfo_MutatingAdmissionPolicyBinding proto.InternalMessageInfo + +func (m *MutatingAdmissionPolicyBindingList) Reset() { *m = MutatingAdmissionPolicyBindingList{} } +func (*MutatingAdmissionPolicyBindingList) ProtoMessage() {} +func (*MutatingAdmissionPolicyBindingList) Descriptor() ([]byte, []int) { + return fileDescriptor_7f7c65a4f012fb19, []int{8} +} +func (m *MutatingAdmissionPolicyBindingList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MutatingAdmissionPolicyBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *MutatingAdmissionPolicyBindingList) XXX_Merge(src proto.Message) { + xxx_messageInfo_MutatingAdmissionPolicyBindingList.Merge(m, src) +} +func (m *MutatingAdmissionPolicyBindingList) XXX_Size() int { + return m.Size() +} +func (m *MutatingAdmissionPolicyBindingList) XXX_DiscardUnknown() { + xxx_messageInfo_MutatingAdmissionPolicyBindingList.DiscardUnknown(m) +} + +var xxx_messageInfo_MutatingAdmissionPolicyBindingList proto.InternalMessageInfo + +func (m *MutatingAdmissionPolicyBindingSpec) Reset() { *m = MutatingAdmissionPolicyBindingSpec{} } +func (*MutatingAdmissionPolicyBindingSpec) ProtoMessage() {} +func (*MutatingAdmissionPolicyBindingSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_7f7c65a4f012fb19, []int{9} +} +func (m *MutatingAdmissionPolicyBindingSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MutatingAdmissionPolicyBindingSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *MutatingAdmissionPolicyBindingSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_MutatingAdmissionPolicyBindingSpec.Merge(m, src) +} +func (m *MutatingAdmissionPolicyBindingSpec) XXX_Size() int { + return m.Size() +} +func (m *MutatingAdmissionPolicyBindingSpec) XXX_DiscardUnknown() { + xxx_messageInfo_MutatingAdmissionPolicyBindingSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_MutatingAdmissionPolicyBindingSpec proto.InternalMessageInfo + +func (m *MutatingAdmissionPolicyList) Reset() { *m = MutatingAdmissionPolicyList{} } +func (*MutatingAdmissionPolicyList) ProtoMessage() {} +func (*MutatingAdmissionPolicyList) Descriptor() ([]byte, []int) { + return fileDescriptor_7f7c65a4f012fb19, []int{10} +} +func (m *MutatingAdmissionPolicyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MutatingAdmissionPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *MutatingAdmissionPolicyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_MutatingAdmissionPolicyList.Merge(m, src) +} +func (m *MutatingAdmissionPolicyList) XXX_Size() int { + return m.Size() +} +func (m *MutatingAdmissionPolicyList) XXX_DiscardUnknown() { + xxx_messageInfo_MutatingAdmissionPolicyList.DiscardUnknown(m) +} + +var xxx_messageInfo_MutatingAdmissionPolicyList proto.InternalMessageInfo + +func (m *MutatingAdmissionPolicySpec) Reset() { *m = MutatingAdmissionPolicySpec{} } +func (*MutatingAdmissionPolicySpec) ProtoMessage() {} +func (*MutatingAdmissionPolicySpec) Descriptor() ([]byte, []int) { + return fileDescriptor_7f7c65a4f012fb19, []int{11} +} +func (m *MutatingAdmissionPolicySpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MutatingAdmissionPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *MutatingAdmissionPolicySpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_MutatingAdmissionPolicySpec.Merge(m, src) +} +func (m *MutatingAdmissionPolicySpec) XXX_Size() int { + return m.Size() +} +func (m *MutatingAdmissionPolicySpec) XXX_DiscardUnknown() { + xxx_messageInfo_MutatingAdmissionPolicySpec.DiscardUnknown(m) +} + +var xxx_messageInfo_MutatingAdmissionPolicySpec proto.InternalMessageInfo + func (m *MutatingWebhook) Reset() { *m = MutatingWebhook{} } func (*MutatingWebhook) ProtoMessage() {} func (*MutatingWebhook) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{4} + return fileDescriptor_7f7c65a4f012fb19, []int{12} } func (m *MutatingWebhook) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -189,7 +414,7 @@ var xxx_messageInfo_MutatingWebhook proto.InternalMessageInfo func (m *MutatingWebhookConfiguration) Reset() { *m = MutatingWebhookConfiguration{} } func (*MutatingWebhookConfiguration) ProtoMessage() {} func (*MutatingWebhookConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{5} + return fileDescriptor_7f7c65a4f012fb19, []int{13} } func (m *MutatingWebhookConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -217,7 +442,7 @@ var xxx_messageInfo_MutatingWebhookConfiguration proto.InternalMessageInfo func (m *MutatingWebhookConfigurationList) Reset() { *m = MutatingWebhookConfigurationList{} } func (*MutatingWebhookConfigurationList) ProtoMessage() {} func (*MutatingWebhookConfigurationList) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{6} + return fileDescriptor_7f7c65a4f012fb19, []int{14} } func (m *MutatingWebhookConfigurationList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -242,10 +467,38 @@ func (m *MutatingWebhookConfigurationList) XXX_DiscardUnknown() { var xxx_messageInfo_MutatingWebhookConfigurationList proto.InternalMessageInfo +func (m *Mutation) Reset() { *m = Mutation{} } +func (*Mutation) ProtoMessage() {} +func (*Mutation) Descriptor() ([]byte, []int) { + return fileDescriptor_7f7c65a4f012fb19, []int{15} +} +func (m *Mutation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Mutation) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mutation.Merge(m, src) +} +func (m *Mutation) XXX_Size() int { + return m.Size() +} +func (m *Mutation) XXX_DiscardUnknown() { + xxx_messageInfo_Mutation.DiscardUnknown(m) +} + +var xxx_messageInfo_Mutation proto.InternalMessageInfo + func (m *NamedRuleWithOperations) Reset() { *m = NamedRuleWithOperations{} } func (*NamedRuleWithOperations) ProtoMessage() {} func (*NamedRuleWithOperations) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{7} + return fileDescriptor_7f7c65a4f012fb19, []int{16} } func (m *NamedRuleWithOperations) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -273,7 +526,7 @@ var xxx_messageInfo_NamedRuleWithOperations proto.InternalMessageInfo func (m *ParamKind) Reset() { *m = ParamKind{} } func (*ParamKind) ProtoMessage() {} func (*ParamKind) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{8} + return fileDescriptor_7f7c65a4f012fb19, []int{17} } func (m *ParamKind) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -301,7 +554,7 @@ var xxx_messageInfo_ParamKind proto.InternalMessageInfo func (m *ParamRef) Reset() { *m = ParamRef{} } func (*ParamRef) ProtoMessage() {} func (*ParamRef) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{9} + return fileDescriptor_7f7c65a4f012fb19, []int{18} } func (m *ParamRef) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -329,7 +582,7 @@ var xxx_messageInfo_ParamRef proto.InternalMessageInfo func (m *ServiceReference) Reset() { *m = ServiceReference{} } func (*ServiceReference) ProtoMessage() {} func (*ServiceReference) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{10} + return fileDescriptor_7f7c65a4f012fb19, []int{19} } func (m *ServiceReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -357,7 +610,7 @@ var xxx_messageInfo_ServiceReference proto.InternalMessageInfo func (m *TypeChecking) Reset() { *m = TypeChecking{} } func (*TypeChecking) ProtoMessage() {} func (*TypeChecking) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{11} + return fileDescriptor_7f7c65a4f012fb19, []int{20} } func (m *TypeChecking) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -385,7 +638,7 @@ var xxx_messageInfo_TypeChecking proto.InternalMessageInfo func (m *ValidatingAdmissionPolicy) Reset() { *m = ValidatingAdmissionPolicy{} } func (*ValidatingAdmissionPolicy) ProtoMessage() {} func (*ValidatingAdmissionPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{12} + return fileDescriptor_7f7c65a4f012fb19, []int{21} } func (m *ValidatingAdmissionPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -413,7 +666,7 @@ var xxx_messageInfo_ValidatingAdmissionPolicy proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyBinding) Reset() { *m = ValidatingAdmissionPolicyBinding{} } func (*ValidatingAdmissionPolicyBinding) ProtoMessage() {} func (*ValidatingAdmissionPolicyBinding) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{13} + return fileDescriptor_7f7c65a4f012fb19, []int{22} } func (m *ValidatingAdmissionPolicyBinding) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -441,7 +694,7 @@ var xxx_messageInfo_ValidatingAdmissionPolicyBinding proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyBindingList) Reset() { *m = ValidatingAdmissionPolicyBindingList{} } func (*ValidatingAdmissionPolicyBindingList) ProtoMessage() {} func (*ValidatingAdmissionPolicyBindingList) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{14} + return fileDescriptor_7f7c65a4f012fb19, []int{23} } func (m *ValidatingAdmissionPolicyBindingList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -469,7 +722,7 @@ var xxx_messageInfo_ValidatingAdmissionPolicyBindingList proto.InternalMessageIn func (m *ValidatingAdmissionPolicyBindingSpec) Reset() { *m = ValidatingAdmissionPolicyBindingSpec{} } func (*ValidatingAdmissionPolicyBindingSpec) ProtoMessage() {} func (*ValidatingAdmissionPolicyBindingSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{15} + return fileDescriptor_7f7c65a4f012fb19, []int{24} } func (m *ValidatingAdmissionPolicyBindingSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -497,7 +750,7 @@ var xxx_messageInfo_ValidatingAdmissionPolicyBindingSpec proto.InternalMessageIn func (m *ValidatingAdmissionPolicyList) Reset() { *m = ValidatingAdmissionPolicyList{} } func (*ValidatingAdmissionPolicyList) ProtoMessage() {} func (*ValidatingAdmissionPolicyList) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{16} + return fileDescriptor_7f7c65a4f012fb19, []int{25} } func (m *ValidatingAdmissionPolicyList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -525,7 +778,7 @@ var xxx_messageInfo_ValidatingAdmissionPolicyList proto.InternalMessageInfo func (m *ValidatingAdmissionPolicySpec) Reset() { *m = ValidatingAdmissionPolicySpec{} } func (*ValidatingAdmissionPolicySpec) ProtoMessage() {} func (*ValidatingAdmissionPolicySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{17} + return fileDescriptor_7f7c65a4f012fb19, []int{26} } func (m *ValidatingAdmissionPolicySpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -553,7 +806,7 @@ var xxx_messageInfo_ValidatingAdmissionPolicySpec proto.InternalMessageInfo func (m *ValidatingAdmissionPolicyStatus) Reset() { *m = ValidatingAdmissionPolicyStatus{} } func (*ValidatingAdmissionPolicyStatus) ProtoMessage() {} func (*ValidatingAdmissionPolicyStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{18} + return fileDescriptor_7f7c65a4f012fb19, []int{27} } func (m *ValidatingAdmissionPolicyStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -581,7 +834,7 @@ var xxx_messageInfo_ValidatingAdmissionPolicyStatus proto.InternalMessageInfo func (m *ValidatingWebhook) Reset() { *m = ValidatingWebhook{} } func (*ValidatingWebhook) ProtoMessage() {} func (*ValidatingWebhook) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{19} + return fileDescriptor_7f7c65a4f012fb19, []int{28} } func (m *ValidatingWebhook) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -609,7 +862,7 @@ var xxx_messageInfo_ValidatingWebhook proto.InternalMessageInfo func (m *ValidatingWebhookConfiguration) Reset() { *m = ValidatingWebhookConfiguration{} } func (*ValidatingWebhookConfiguration) ProtoMessage() {} func (*ValidatingWebhookConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{20} + return fileDescriptor_7f7c65a4f012fb19, []int{29} } func (m *ValidatingWebhookConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -637,7 +890,7 @@ var xxx_messageInfo_ValidatingWebhookConfiguration proto.InternalMessageInfo func (m *ValidatingWebhookConfigurationList) Reset() { *m = ValidatingWebhookConfigurationList{} } func (*ValidatingWebhookConfigurationList) ProtoMessage() {} func (*ValidatingWebhookConfigurationList) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{21} + return fileDescriptor_7f7c65a4f012fb19, []int{30} } func (m *ValidatingWebhookConfigurationList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -665,7 +918,7 @@ var xxx_messageInfo_ValidatingWebhookConfigurationList proto.InternalMessageInfo func (m *Validation) Reset() { *m = Validation{} } func (*Validation) ProtoMessage() {} func (*Validation) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{22} + return fileDescriptor_7f7c65a4f012fb19, []int{31} } func (m *Validation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -693,7 +946,7 @@ var xxx_messageInfo_Validation proto.InternalMessageInfo func (m *Variable) Reset() { *m = Variable{} } func (*Variable) ProtoMessage() {} func (*Variable) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{23} + return fileDescriptor_7f7c65a4f012fb19, []int{32} } func (m *Variable) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -721,7 +974,7 @@ var xxx_messageInfo_Variable proto.InternalMessageInfo func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} } func (*WebhookClientConfig) ProtoMessage() {} func (*WebhookClientConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_7f7c65a4f012fb19, []int{24} + return fileDescriptor_7f7c65a4f012fb19, []int{33} } func (m *WebhookClientConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -747,13 +1000,22 @@ func (m *WebhookClientConfig) XXX_DiscardUnknown() { var xxx_messageInfo_WebhookClientConfig proto.InternalMessageInfo func init() { + proto.RegisterType((*ApplyConfiguration)(nil), "k8s.io.api.admissionregistration.v1beta1.ApplyConfiguration") proto.RegisterType((*AuditAnnotation)(nil), "k8s.io.api.admissionregistration.v1beta1.AuditAnnotation") proto.RegisterType((*ExpressionWarning)(nil), "k8s.io.api.admissionregistration.v1beta1.ExpressionWarning") + proto.RegisterType((*JSONPatch)(nil), "k8s.io.api.admissionregistration.v1beta1.JSONPatch") proto.RegisterType((*MatchCondition)(nil), "k8s.io.api.admissionregistration.v1beta1.MatchCondition") proto.RegisterType((*MatchResources)(nil), "k8s.io.api.admissionregistration.v1beta1.MatchResources") + proto.RegisterType((*MutatingAdmissionPolicy)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingAdmissionPolicy") + proto.RegisterType((*MutatingAdmissionPolicyBinding)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingAdmissionPolicyBinding") + proto.RegisterType((*MutatingAdmissionPolicyBindingList)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingAdmissionPolicyBindingList") + proto.RegisterType((*MutatingAdmissionPolicyBindingSpec)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingAdmissionPolicyBindingSpec") + proto.RegisterType((*MutatingAdmissionPolicyList)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingAdmissionPolicyList") + proto.RegisterType((*MutatingAdmissionPolicySpec)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingAdmissionPolicySpec") proto.RegisterType((*MutatingWebhook)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhook") proto.RegisterType((*MutatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration") proto.RegisterType((*MutatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList") + proto.RegisterType((*Mutation)(nil), "k8s.io.api.admissionregistration.v1beta1.Mutation") proto.RegisterType((*NamedRuleWithOperations)(nil), "k8s.io.api.admissionregistration.v1beta1.NamedRuleWithOperations") proto.RegisterType((*ParamKind)(nil), "k8s.io.api.admissionregistration.v1beta1.ParamKind") proto.RegisterType((*ParamRef)(nil), "k8s.io.api.admissionregistration.v1beta1.ParamRef") @@ -779,130 +1041,174 @@ func init() { } var fileDescriptor_7f7c65a4f012fb19 = []byte{ - // 1957 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x1a, 0x4d, 0x6f, 0x1b, 0xc7, - 0xd5, 0x2b, 0x52, 0x12, 0xf9, 0xa8, 0x2f, 0x4e, 0x9c, 0x8a, 0x76, 0x1c, 0x52, 0x58, 0x04, 0x85, - 0x0c, 0xb4, 0x64, 0xac, 0x04, 0x89, 0xeb, 0xa0, 0x28, 0x44, 0xc5, 0x76, 0xed, 0x58, 0xb2, 0x30, - 0x4a, 0x24, 0xa0, 0x4d, 0x00, 0x8f, 0x76, 0x87, 0xe4, 0x96, 0xe4, 0xee, 0x76, 0x67, 0x49, 0x5b, - 0x2d, 0xd0, 0x16, 0xe8, 0x21, 0xd7, 0x02, 0xbd, 0x14, 0xe8, 0xa9, 0x7f, 0xa1, 0xf7, 0x02, 0xed, - 0xcd, 0xc7, 0xdc, 0x6a, 0xa0, 0x28, 0x51, 0xb1, 0x87, 0x9e, 0x7a, 0xe8, 0xa1, 0x3d, 0xe8, 0xd2, - 0x62, 0x66, 0x67, 0x3f, 0xb9, 0xb4, 0x56, 0xaa, 0xac, 0x5c, 0x7c, 0xd3, 0xbe, 0xcf, 0x79, 0x6f, - 0xde, 0xd7, 0x3c, 0x0a, 0x6e, 0x77, 0x6f, 0xb3, 0xba, 0x61, 0x35, 0x88, 0x6d, 0x34, 0x88, 0xde, - 0x37, 0x18, 0x33, 0x2c, 0xd3, 0xa1, 0x6d, 0x83, 0xb9, 0x0e, 0x71, 0x0d, 0xcb, 0x6c, 0x0c, 0x6f, - 0x1d, 0x52, 0x97, 0xdc, 0x6a, 0xb4, 0xa9, 0x49, 0x1d, 0xe2, 0x52, 0xbd, 0x6e, 0x3b, 0x96, 0x6b, - 0xa1, 0x75, 0x8f, 0xb3, 0x4e, 0x6c, 0xa3, 0x9e, 0xca, 0x59, 0x97, 0x9c, 0xd7, 0xbf, 0xdd, 0x36, - 0xdc, 0xce, 0xe0, 0xb0, 0xae, 0x59, 0xfd, 0x46, 0xdb, 0x6a, 0x5b, 0x0d, 0x21, 0xe0, 0x70, 0xd0, - 0x12, 0x5f, 0xe2, 0x43, 0xfc, 0xe5, 0x09, 0xbe, 0xfe, 0x5e, 0x86, 0x23, 0x25, 0x4f, 0x73, 0xfd, - 0xfd, 0x90, 0xa9, 0x4f, 0xb4, 0x8e, 0x61, 0x52, 0xe7, 0xa8, 0x61, 0x77, 0xdb, 0x1c, 0xc0, 0x1a, - 0x7d, 0xea, 0x92, 0x34, 0xae, 0xc6, 0x34, 0x2e, 0x67, 0x60, 0xba, 0x46, 0x9f, 0x4e, 0x30, 0x7c, - 0x70, 0x1a, 0x03, 0xd3, 0x3a, 0xb4, 0x4f, 0x92, 0x7c, 0x2a, 0x83, 0xe5, 0xcd, 0x81, 0x6e, 0xb8, - 0x9b, 0xa6, 0x69, 0xb9, 0xc2, 0x08, 0xf4, 0x36, 0xe4, 0xba, 0xf4, 0xa8, 0xa2, 0xac, 0x29, 0xeb, - 0xc5, 0x66, 0xe9, 0xf9, 0xa8, 0x76, 0x65, 0x3c, 0xaa, 0xe5, 0x3e, 0xa1, 0x47, 0x98, 0xc3, 0xd1, - 0x26, 0x2c, 0x0f, 0x49, 0x6f, 0x40, 0xef, 0x3e, 0xb3, 0x1d, 0x2a, 0x5c, 0x50, 0x99, 0x11, 0xa4, - 0xab, 0x92, 0x74, 0x79, 0x3f, 0x8e, 0xc6, 0x49, 0x7a, 0xb5, 0x07, 0xe5, 0xf0, 0xeb, 0x80, 0x38, - 0xa6, 0x61, 0xb6, 0xd1, 0xb7, 0xa0, 0xd0, 0x32, 0x68, 0x4f, 0xc7, 0xb4, 0x25, 0x05, 0xae, 0x48, - 0x81, 0x85, 0x7b, 0x12, 0x8e, 0x03, 0x0a, 0x74, 0x13, 0xe6, 0x9f, 0x7a, 0x8c, 0x95, 0x9c, 0x20, - 0x5e, 0x96, 0xc4, 0xf3, 0x52, 0x1e, 0xf6, 0xf1, 0x6a, 0x0b, 0x96, 0xb6, 0x89, 0xab, 0x75, 0xb6, - 0x2c, 0x53, 0x37, 0x84, 0x85, 0x6b, 0x90, 0x37, 0x49, 0x9f, 0x4a, 0x13, 0x17, 0x24, 0x67, 0x7e, - 0x87, 0xf4, 0x29, 0x16, 0x18, 0xb4, 0x01, 0x40, 0x93, 0xf6, 0x21, 0x49, 0x07, 0x11, 0xd3, 0x22, - 0x54, 0xea, 0x9f, 0xf3, 0x52, 0x11, 0xa6, 0xcc, 0x1a, 0x38, 0x1a, 0x65, 0xe8, 0x19, 0x94, 0xb9, - 0x38, 0x66, 0x13, 0x8d, 0xee, 0xd1, 0x1e, 0xd5, 0x5c, 0xcb, 0x11, 0x5a, 0x4b, 0x1b, 0xef, 0xd5, - 0xc3, 0x30, 0x0d, 0x6e, 0xac, 0x6e, 0x77, 0xdb, 0x1c, 0xc0, 0xea, 0x3c, 0x30, 0xea, 0xc3, 0x5b, - 0xf5, 0x47, 0xe4, 0x90, 0xf6, 0x7c, 0xd6, 0xe6, 0x9b, 0xe3, 0x51, 0xad, 0xbc, 0x93, 0x94, 0x88, - 0x27, 0x95, 0x20, 0x0b, 0x96, 0xac, 0xc3, 0x1f, 0x51, 0xcd, 0x0d, 0xd4, 0xce, 0x9c, 0x5f, 0x2d, - 0x1a, 0x8f, 0x6a, 0x4b, 0x8f, 0x63, 0xe2, 0x70, 0x42, 0x3c, 0xfa, 0x19, 0x2c, 0x3a, 0xd2, 0x6e, - 0x3c, 0xe8, 0x51, 0x56, 0xc9, 0xad, 0xe5, 0xd6, 0x4b, 0x1b, 0x9b, 0xf5, 0xac, 0xd9, 0x58, 0xe7, - 0x76, 0xe9, 0x9c, 0xf7, 0xc0, 0x70, 0x3b, 0x8f, 0x6d, 0xea, 0xa1, 0x59, 0xf3, 0x4d, 0xe9, 0xf7, - 0x45, 0x1c, 0x95, 0x8f, 0xe3, 0xea, 0xd0, 0xaf, 0x15, 0xb8, 0x4a, 0x9f, 0x69, 0xbd, 0x81, 0x4e, - 0x63, 0x74, 0x95, 0xfc, 0x45, 0x9d, 0xe3, 0x86, 0x3c, 0xc7, 0xd5, 0xbb, 0x29, 0x6a, 0x70, 0xaa, - 0x72, 0xf4, 0x31, 0x94, 0xfa, 0x3c, 0x24, 0x76, 0xad, 0x9e, 0xa1, 0x1d, 0x55, 0xe6, 0x45, 0x20, - 0xa9, 0xe3, 0x51, 0xad, 0xb4, 0x1d, 0x82, 0x4f, 0x46, 0xb5, 0xe5, 0xc8, 0xe7, 0xa7, 0x47, 0x36, - 0xc5, 0x51, 0x36, 0xf5, 0x4f, 0x05, 0x58, 0xde, 0x1e, 0xf0, 0xf4, 0x34, 0xdb, 0x07, 0xf4, 0xb0, - 0x63, 0x59, 0xdd, 0x0c, 0x31, 0xfc, 0x14, 0x16, 0xb4, 0x9e, 0x41, 0x4d, 0x77, 0xcb, 0x32, 0x5b, - 0x46, 0x5b, 0x06, 0xc0, 0x77, 0xb3, 0x3b, 0x42, 0xaa, 0xda, 0x8a, 0x08, 0x69, 0x5e, 0x95, 0x8a, - 0x16, 0xa2, 0x50, 0x1c, 0x53, 0x84, 0x3e, 0x87, 0x59, 0x27, 0x12, 0x02, 0x1f, 0x66, 0xd1, 0x58, - 0x4f, 0x71, 0xf8, 0xa2, 0xd4, 0x35, 0xeb, 0x79, 0xd8, 0x13, 0x8a, 0x1e, 0xc1, 0x62, 0x8b, 0x18, - 0xbd, 0x81, 0x43, 0xa5, 0x53, 0xf3, 0xc2, 0x03, 0xdf, 0xe4, 0x11, 0x72, 0x2f, 0x8a, 0x38, 0x19, - 0xd5, 0xca, 0x31, 0x80, 0x70, 0x6c, 0x9c, 0x39, 0x79, 0x41, 0xc5, 0x73, 0x5d, 0x50, 0x7a, 0x9e, - 0xcf, 0x7e, 0x3d, 0x79, 0x5e, 0x7a, 0xb5, 0x79, 0xfe, 0x31, 0x94, 0x98, 0xa1, 0xd3, 0xbb, 0xad, - 0x16, 0xd5, 0x5c, 0x56, 0x99, 0x0b, 0x1d, 0xb6, 0x17, 0x82, 0xb9, 0xc3, 0xc2, 0xcf, 0xad, 0x1e, - 0x61, 0x0c, 0x47, 0xd9, 0xd0, 0x1d, 0x58, 0xe2, 0x5d, 0xc9, 0x1a, 0xb8, 0x7b, 0x54, 0xb3, 0x4c, - 0x9d, 0x89, 0xd4, 0x98, 0xf5, 0x4e, 0xf0, 0x69, 0x0c, 0x83, 0x13, 0x94, 0xe8, 0x33, 0x58, 0x0d, - 0xa2, 0x08, 0xd3, 0xa1, 0x41, 0x9f, 0xee, 0x53, 0x87, 0x7f, 0xb0, 0x4a, 0x61, 0x2d, 0xb7, 0x5e, - 0x6c, 0xbe, 0x35, 0x1e, 0xd5, 0x56, 0x37, 0xd3, 0x49, 0xf0, 0x34, 0x5e, 0xf4, 0x04, 0x90, 0x43, - 0x0d, 0x73, 0x68, 0x69, 0x22, 0xfc, 0x64, 0x40, 0x80, 0xb0, 0xef, 0xdd, 0xf1, 0xa8, 0x86, 0xf0, - 0x04, 0xf6, 0x64, 0x54, 0xfb, 0xc6, 0x24, 0x54, 0x84, 0x47, 0x8a, 0x2c, 0xf4, 0x53, 0x58, 0xee, - 0xc7, 0x1a, 0x11, 0xab, 0x2c, 0x88, 0x0c, 0xb9, 0x9d, 0x3d, 0x27, 0xe3, 0x9d, 0x2c, 0xec, 0xb9, - 0x71, 0x38, 0xc3, 0x49, 0x4d, 0xea, 0x5f, 0x15, 0xb8, 0x91, 0xa8, 0x21, 0x5e, 0xba, 0x0e, 0x3c, - 0x0d, 0xe8, 0x09, 0x14, 0x78, 0x54, 0xe8, 0xc4, 0x25, 0xb2, 0x45, 0xbd, 0x9b, 0x2d, 0x86, 0xbc, - 0x80, 0xd9, 0xa6, 0x2e, 0x09, 0x5b, 0x64, 0x08, 0xc3, 0x81, 0x54, 0xf4, 0x43, 0x28, 0x48, 0xcd, - 0xac, 0x32, 0x23, 0x0c, 0xff, 0xce, 0x19, 0x0c, 0x8f, 0x9f, 0xbd, 0x99, 0xe7, 0xaa, 0x70, 0x20, - 0x50, 0xfd, 0xa7, 0x02, 0x6b, 0x2f, 0xb3, 0xef, 0x91, 0xc1, 0x5c, 0xf4, 0xf9, 0x84, 0x8d, 0xf5, - 0x8c, 0x79, 0x62, 0x30, 0xcf, 0xc2, 0x60, 0x26, 0xf1, 0x21, 0x11, 0xfb, 0xba, 0x30, 0x6b, 0xb8, - 0xb4, 0xef, 0x1b, 0x77, 0xef, 0xdc, 0xc6, 0xc5, 0x0e, 0x1e, 0x96, 0xc1, 0x07, 0x5c, 0x38, 0xf6, - 0x74, 0xa8, 0x2f, 0x14, 0x58, 0x9d, 0xd2, 0xa9, 0xd0, 0x87, 0x61, 0x2f, 0x16, 0x45, 0xa4, 0xa2, - 0x88, 0xbc, 0x28, 0x47, 0x9b, 0xa8, 0x40, 0xe0, 0x38, 0x1d, 0xfa, 0xa5, 0x02, 0xc8, 0x99, 0x90, - 0x27, 0x3b, 0xc7, 0xb9, 0xeb, 0xf8, 0x75, 0x69, 0x00, 0x9a, 0xc4, 0xe1, 0x14, 0x75, 0x2a, 0x81, - 0xe2, 0x2e, 0x71, 0x48, 0xff, 0x13, 0xc3, 0xd4, 0xf9, 0x24, 0x46, 0x6c, 0x43, 0x66, 0xa9, 0xec, - 0x76, 0x41, 0x98, 0x6d, 0xee, 0x3e, 0x90, 0x18, 0x1c, 0xa1, 0xe2, 0xbd, 0xb1, 0x6b, 0x98, 0xba, - 0x9c, 0xdb, 0x82, 0xde, 0xc8, 0xe5, 0x61, 0x81, 0x51, 0x7f, 0x3f, 0x03, 0x05, 0xa1, 0x83, 0xcf, - 0x92, 0xa7, 0xb7, 0xd2, 0x06, 0x14, 0x83, 0xd2, 0x2b, 0xa5, 0x96, 0x25, 0x59, 0x31, 0x28, 0xd3, - 0x38, 0xa4, 0x41, 0x5f, 0x40, 0x81, 0xf9, 0x05, 0x39, 0x77, 0xfe, 0x82, 0xbc, 0xc0, 0x23, 0x2d, - 0x28, 0xc5, 0x81, 0x48, 0xe4, 0xc2, 0xaa, 0xcd, 0x4f, 0x4f, 0x5d, 0xea, 0xec, 0x58, 0xee, 0x3d, - 0x6b, 0x60, 0xea, 0x9b, 0x1a, 0xf7, 0x9e, 0xec, 0x86, 0x77, 0x78, 0x09, 0xdc, 0x4d, 0x27, 0x39, - 0x19, 0xd5, 0xde, 0x9a, 0x82, 0x12, 0xa5, 0x6b, 0x9a, 0x68, 0xf5, 0x77, 0x0a, 0xac, 0xec, 0x51, - 0x67, 0x68, 0x68, 0x14, 0xd3, 0x16, 0x75, 0xa8, 0xa9, 0x25, 0x5c, 0xa3, 0x64, 0x70, 0x8d, 0xef, - 0xed, 0x99, 0xa9, 0xde, 0xbe, 0x01, 0x79, 0x9b, 0xb8, 0x1d, 0x39, 0xd8, 0x17, 0x38, 0x76, 0x97, - 0xb8, 0x1d, 0x2c, 0xa0, 0x02, 0x6b, 0x39, 0xae, 0x30, 0x74, 0x56, 0x62, 0x2d, 0xc7, 0xc5, 0x02, - 0xaa, 0xfe, 0x46, 0x81, 0x05, 0x6e, 0xc5, 0x56, 0x87, 0x6a, 0x5d, 0xfe, 0xac, 0xf8, 0x52, 0x01, - 0x44, 0x93, 0x8f, 0x0d, 0x2f, 0x23, 0x4a, 0x1b, 0x1f, 0x65, 0x4f, 0xd1, 0x89, 0x07, 0x4b, 0x18, - 0xd6, 0x13, 0x28, 0x86, 0x53, 0x54, 0xaa, 0x7f, 0x99, 0x81, 0x6b, 0xfb, 0xa4, 0x67, 0xe8, 0x22, - 0xd5, 0x83, 0xfe, 0x24, 0x9b, 0xc3, 0xab, 0x2f, 0xbf, 0x06, 0xe4, 0x99, 0x4d, 0x35, 0x99, 0xcd, - 0xf7, 0xb3, 0x9b, 0x3e, 0xf5, 0xd0, 0x7b, 0x36, 0xd5, 0xc2, 0x1b, 0xe4, 0x5f, 0x58, 0xa8, 0x40, - 0x3f, 0x86, 0x39, 0xe6, 0x12, 0x77, 0xc0, 0x64, 0xf0, 0x3f, 0xb8, 0x08, 0x65, 0x42, 0x60, 0x73, - 0x49, 0xaa, 0x9b, 0xf3, 0xbe, 0xb1, 0x54, 0xa4, 0xfe, 0x47, 0x81, 0xb5, 0xa9, 0xbc, 0x4d, 0xc3, - 0xd4, 0x79, 0x30, 0xbc, 0x7a, 0x27, 0xdb, 0x31, 0x27, 0xef, 0x5c, 0x80, 0xdd, 0xf2, 0xec, 0xd3, - 0x7c, 0xad, 0xfe, 0x5b, 0x81, 0x77, 0x4e, 0x63, 0xbe, 0x84, 0xe6, 0x67, 0xc5, 0x9b, 0xdf, 0xc3, - 0x8b, 0xb3, 0x7c, 0x4a, 0x03, 0xfc, 0x32, 0x77, 0xba, 0xdd, 0xdc, 0x4d, 0xbc, 0x83, 0xd8, 0x02, - 0xb8, 0x13, 0x16, 0xf9, 0xe0, 0x12, 0x77, 0x03, 0x0c, 0x8e, 0x50, 0x71, 0x5f, 0xd9, 0xb2, 0x3d, - 0xc8, 0xab, 0xdc, 0xc8, 0x6e, 0x90, 0xdf, 0x58, 0xbc, 0xf2, 0xed, 0x7f, 0xe1, 0x40, 0x22, 0x72, - 0x61, 0xa9, 0x1f, 0x5b, 0x14, 0xc8, 0x34, 0x39, 0xeb, 0x1c, 0x18, 0xf0, 0x7b, 0x73, 0x73, 0x1c, - 0x86, 0x13, 0x3a, 0xd0, 0x01, 0x94, 0x87, 0xd2, 0x5f, 0x96, 0xe9, 0x95, 0x74, 0xef, 0x75, 0x5c, - 0x6c, 0xde, 0xe4, 0xef, 0x8d, 0xfd, 0x24, 0xf2, 0x64, 0x54, 0x5b, 0x49, 0x02, 0xf1, 0xa4, 0x0c, - 0xf5, 0x1f, 0x0a, 0xbc, 0x3d, 0xf5, 0x26, 0x2e, 0x21, 0xf4, 0x3a, 0xf1, 0xd0, 0xdb, 0xba, 0x88, - 0xd0, 0x4b, 0x8f, 0xb9, 0xdf, 0xce, 0xbd, 0xc4, 0x52, 0x11, 0x6c, 0x4f, 0xa0, 0x68, 0xfb, 0xb3, - 0x4b, 0xca, 0xa6, 0x27, 0x4b, 0xe4, 0x70, 0xd6, 0xe6, 0x22, 0xef, 0x9f, 0xc1, 0x27, 0x0e, 0x85, - 0xa2, 0x9f, 0xc0, 0x8a, 0x3f, 0xdb, 0x73, 0x7e, 0xc3, 0x74, 0xfd, 0x01, 0xed, 0xfc, 0xe1, 0x73, - 0x75, 0x3c, 0xaa, 0xad, 0x6c, 0x27, 0xa4, 0xe2, 0x09, 0x3d, 0xa8, 0x0b, 0xa5, 0xf0, 0xfa, 0xfd, - 0xf7, 0xfd, 0xfb, 0x67, 0xf7, 0xb7, 0x65, 0x36, 0xdf, 0x90, 0x0e, 0x2e, 0x85, 0x30, 0x86, 0xa3, - 0xd2, 0x2f, 0xf8, 0xa1, 0xff, 0x73, 0x58, 0x21, 0xf1, 0x45, 0x27, 0xab, 0xcc, 0x9e, 0xf5, 0x11, - 0x92, 0x58, 0x95, 0x36, 0x2b, 0xd2, 0x88, 0x95, 0x04, 0x82, 0xe1, 0x09, 0x65, 0x69, 0xaf, 0xbf, - 0xb9, 0xcb, 0x7a, 0xfd, 0x21, 0x0d, 0x8a, 0x43, 0xe2, 0x18, 0xe4, 0xb0, 0x47, 0xf9, 0x53, 0x3b, - 0x77, 0xb6, 0x82, 0xb6, 0x2f, 0x59, 0xc3, 0xc9, 0xce, 0x87, 0x30, 0x1c, 0xca, 0x55, 0xff, 0x38, - 0x03, 0xb5, 0x53, 0xda, 0x37, 0x7a, 0x08, 0xc8, 0x3a, 0x64, 0xd4, 0x19, 0x52, 0xfd, 0xbe, 0xb7, - 0x8a, 0xf6, 0xc7, 0xfa, 0x5c, 0x38, 0x50, 0x3d, 0x9e, 0xa0, 0xc0, 0x29, 0x5c, 0xa8, 0x07, 0x0b, - 0x6e, 0x64, 0xd4, 0x93, 0x59, 0xf0, 0x41, 0x76, 0xbb, 0xa2, 0x83, 0x62, 0x73, 0x65, 0x3c, 0xaa, - 0xc5, 0x46, 0x47, 0x1c, 0x93, 0x8e, 0x34, 0x00, 0x2d, 0xbc, 0x3a, 0x2f, 0xf4, 0x1b, 0xd9, 0xaa, - 0x58, 0x78, 0x63, 0x41, 0xdf, 0x89, 0x5c, 0x56, 0x44, 0xac, 0x7a, 0x3c, 0x0f, 0xe5, 0xd0, 0x85, - 0xaf, 0x77, 0x7d, 0xaf, 0x77, 0x7d, 0x2f, 0xdd, 0xf5, 0xc1, 0xeb, 0x5d, 0xdf, 0xb9, 0x76, 0x7d, - 0x29, 0xb5, 0xb8, 0x74, 0x69, 0x9b, 0xb8, 0x63, 0x05, 0xaa, 0x13, 0x39, 0x7e, 0xd9, 0xbb, 0xb8, - 0x2f, 0x26, 0x76, 0x71, 0x1f, 0x9d, 0x67, 0x6c, 0x9a, 0xb6, 0x8d, 0xfb, 0x97, 0x02, 0xea, 0xcb, - 0x6d, 0xbc, 0x84, 0xb9, 0xb0, 0x1f, 0x9f, 0x0b, 0xbf, 0xff, 0x7f, 0x18, 0x98, 0x65, 0x23, 0xf7, - 0x5f, 0x05, 0x20, 0x1c, 0x66, 0xd0, 0x3b, 0x10, 0xf9, 0xa1, 0x50, 0x96, 0x6e, 0xcf, 0x4d, 0x11, - 0x38, 0xba, 0x09, 0xf3, 0x7d, 0xca, 0x18, 0x69, 0xfb, 0x0b, 0x91, 0xe0, 0x77, 0xcc, 0x6d, 0x0f, - 0x8c, 0x7d, 0x3c, 0x3a, 0x80, 0x39, 0x87, 0x12, 0x66, 0x99, 0x72, 0x31, 0xf2, 0x3d, 0xfe, 0x0a, - 0xc6, 0x02, 0x72, 0x32, 0xaa, 0xdd, 0xca, 0xf2, 0x3b, 0x73, 0x5d, 0x3e, 0x9a, 0x05, 0x13, 0x96, - 0xe2, 0xd0, 0x7d, 0x28, 0x4b, 0x1d, 0x91, 0x03, 0x7b, 0x95, 0xf6, 0x9a, 0x3c, 0x4d, 0x79, 0x3b, - 0x49, 0x80, 0x27, 0x79, 0xd4, 0x87, 0x50, 0xf0, 0x07, 0x03, 0x54, 0x81, 0x7c, 0xe4, 0xbd, 0xe5, - 0x19, 0x2e, 0x20, 0x09, 0xc7, 0xcc, 0xa4, 0x3b, 0x46, 0xfd, 0x83, 0x02, 0x6f, 0xa4, 0x34, 0x25, - 0x74, 0x0d, 0x72, 0x03, 0xa7, 0x27, 0x5d, 0x30, 0x3f, 0x1e, 0xd5, 0x72, 0x9f, 0xe1, 0x47, 0x98, - 0xc3, 0x10, 0x81, 0x79, 0xe6, 0xad, 0xa7, 0x64, 0x30, 0xdd, 0xc9, 0x7e, 0xe3, 0xc9, 0xbd, 0x56, - 0xb3, 0xc4, 0xef, 0xc0, 0x87, 0xfa, 0x72, 0xd1, 0x3a, 0x14, 0x34, 0xd2, 0x1c, 0x98, 0x7a, 0xcf, - 0xbb, 0xaf, 0x05, 0xef, 0x8d, 0xb7, 0xb5, 0xe9, 0xc1, 0x70, 0x80, 0x6d, 0xee, 0x3c, 0x3f, 0xae, - 0x5e, 0xf9, 0xea, 0xb8, 0x7a, 0xe5, 0xc5, 0x71, 0xf5, 0xca, 0x2f, 0xc6, 0x55, 0xe5, 0xf9, 0xb8, - 0xaa, 0x7c, 0x35, 0xae, 0x2a, 0x2f, 0xc6, 0x55, 0xe5, 0x6f, 0xe3, 0xaa, 0xf2, 0xab, 0xbf, 0x57, - 0xaf, 0xfc, 0x60, 0x3d, 0xeb, 0x7f, 0x39, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x6f, 0xf2, 0xe8, - 0x4a, 0x10, 0x21, 0x00, 0x00, + // 2215 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0x4d, 0x6c, 0x1b, 0xc7, + 0x15, 0xf6, 0x92, 0x92, 0x45, 0x3e, 0xca, 0x92, 0x38, 0x71, 0x2a, 0xfa, 0x8f, 0x14, 0x16, 0x41, + 0x21, 0x03, 0x2d, 0x59, 0x2b, 0x41, 0xe2, 0x3a, 0x29, 0x02, 0xae, 0x62, 0x3b, 0x76, 0x24, 0x59, + 0x18, 0x39, 0x52, 0xd1, 0x26, 0x40, 0x56, 0xcb, 0x21, 0xb9, 0x11, 0xb9, 0xcb, 0xee, 0x2c, 0x65, + 0xab, 0x05, 0xda, 0x02, 0x2d, 0x90, 0x1e, 0x0b, 0xf4, 0x52, 0xa0, 0xa7, 0xde, 0x7b, 0x69, 0xef, + 0x05, 0x7a, 0xf4, 0x31, 0xb7, 0x1a, 0x28, 0x4a, 0x54, 0x4c, 0xd1, 0x9e, 0x7a, 0x48, 0x81, 0xf6, + 0xa0, 0x4b, 0x8b, 0x99, 0x9d, 0xfd, 0xdf, 0x95, 0x56, 0xb2, 0x2c, 0x17, 0x85, 0x6f, 0xda, 0xf7, + 0xe6, 0xbd, 0x37, 0xef, 0xcd, 0x9b, 0xf7, 0xbe, 0x79, 0x22, 0xdc, 0xdc, 0xb9, 0x49, 0xeb, 0xba, + 0xd9, 0x50, 0x07, 0x7a, 0x43, 0x6d, 0xf5, 0x75, 0x4a, 0x75, 0xd3, 0xb0, 0x48, 0x47, 0xa7, 0xb6, + 0xa5, 0xda, 0xba, 0x69, 0x34, 0x76, 0x6f, 0x6c, 0x13, 0x5b, 0xbd, 0xd1, 0xe8, 0x10, 0x83, 0x58, + 0xaa, 0x4d, 0x5a, 0xf5, 0x81, 0x65, 0xda, 0x26, 0x5a, 0x74, 0x24, 0xeb, 0xea, 0x40, 0xaf, 0x27, + 0x4a, 0xd6, 0x85, 0xe4, 0xe5, 0xaf, 0x77, 0x74, 0xbb, 0x3b, 0xdc, 0xae, 0x6b, 0x66, 0xbf, 0xd1, + 0x31, 0x3b, 0x66, 0x83, 0x2b, 0xd8, 0x1e, 0xb6, 0xf9, 0x17, 0xff, 0xe0, 0x7f, 0x39, 0x8a, 0x2f, + 0xbf, 0x9e, 0x61, 0x4b, 0xd1, 0xdd, 0x5c, 0x7e, 0xc3, 0x17, 0xea, 0xab, 0x5a, 0x57, 0x37, 0x88, + 0xb5, 0xd7, 0x18, 0xec, 0x74, 0x18, 0x81, 0x36, 0xfa, 0xc4, 0x56, 0x93, 0xa4, 0x1a, 0x69, 0x52, + 0xd6, 0xd0, 0xb0, 0xf5, 0x3e, 0x89, 0x09, 0xbc, 0x79, 0x94, 0x00, 0xd5, 0xba, 0xa4, 0xaf, 0x46, + 0xe5, 0xe4, 0xf7, 0x01, 0x35, 0x07, 0x83, 0xde, 0xde, 0xb2, 0x69, 0xb4, 0xf5, 0xce, 0xd0, 0xf1, + 0x03, 0x2d, 0x01, 0x90, 0xc7, 0x03, 0x8b, 0x70, 0x0f, 0x2b, 0xd2, 0x82, 0xb4, 0x58, 0x54, 0xd0, + 0x93, 0x51, 0xed, 0xdc, 0x78, 0x54, 0x83, 0xdb, 0x1e, 0x07, 0x07, 0x56, 0xc9, 0x14, 0x66, 0x9b, + 0xc3, 0x96, 0x6e, 0x37, 0x0d, 0xc3, 0xb4, 0x1d, 0x35, 0xd7, 0x20, 0xbf, 0x43, 0xf6, 0x84, 0x7c, + 0x49, 0xc8, 0xe7, 0x3f, 0x20, 0x7b, 0x98, 0xd1, 0x51, 0x13, 0x66, 0x77, 0xd5, 0xde, 0x90, 0xf8, + 0x0a, 0x2b, 0x39, 0xbe, 0x74, 0x5e, 0x2c, 0x9d, 0xdd, 0x0c, 0xb3, 0x71, 0x74, 0xbd, 0xdc, 0x83, + 0xb2, 0xff, 0xb5, 0xa5, 0x5a, 0x86, 0x6e, 0x74, 0xd0, 0xd7, 0xa0, 0xd0, 0xd6, 0x49, 0xaf, 0x85, + 0x49, 0x5b, 0x28, 0x9c, 0x13, 0x0a, 0x0b, 0x77, 0x04, 0x1d, 0x7b, 0x2b, 0xd0, 0x75, 0x98, 0x7a, + 0xe4, 0x08, 0x56, 0xf2, 0x7c, 0xf1, 0xac, 0x58, 0x3c, 0x25, 0xf4, 0x61, 0x97, 0x2f, 0xbf, 0x0b, + 0xc5, 0xfb, 0x1b, 0x0f, 0xd6, 0xd6, 0x55, 0x5b, 0xeb, 0x9e, 0x28, 0x46, 0x6d, 0x98, 0x59, 0x65, + 0xc2, 0xcb, 0xa6, 0xd1, 0xd2, 0x79, 0x88, 0x16, 0x60, 0xc2, 0x50, 0xfb, 0x44, 0xc8, 0x4f, 0x0b, + 0xf9, 0x89, 0x35, 0xb5, 0x4f, 0x30, 0xe7, 0x44, 0xec, 0xe4, 0x32, 0xd9, 0xf9, 0xe3, 0x84, 0x30, + 0x84, 0x09, 0x35, 0x87, 0x96, 0x46, 0x28, 0x7a, 0x0c, 0x65, 0xa6, 0x8e, 0x0e, 0x54, 0x8d, 0x6c, + 0x90, 0x1e, 0xd1, 0x6c, 0xd3, 0xe2, 0x56, 0x4b, 0x4b, 0xaf, 0xd7, 0xfd, 0x1b, 0xe3, 0x25, 0x4f, + 0x7d, 0xb0, 0xd3, 0x61, 0x04, 0x5a, 0x67, 0x39, 0x5a, 0xdf, 0xbd, 0x51, 0x5f, 0x51, 0xb7, 0x49, + 0xcf, 0x15, 0x55, 0x5e, 0x1d, 0x8f, 0x6a, 0xe5, 0xb5, 0xa8, 0x46, 0x1c, 0x37, 0x82, 0x4c, 0x98, + 0x31, 0xb7, 0x3f, 0x25, 0x9a, 0xed, 0x99, 0xcd, 0x9d, 0xdc, 0x2c, 0x1a, 0x8f, 0x6a, 0x33, 0x0f, + 0x42, 0xea, 0x70, 0x44, 0x3d, 0xfa, 0x21, 0x5c, 0xb0, 0x84, 0xdf, 0x78, 0xd8, 0x23, 0xb4, 0x92, + 0x5f, 0xc8, 0x2f, 0x96, 0x96, 0x9a, 0xf5, 0xac, 0x85, 0xa1, 0xce, 0xfc, 0x6a, 0x31, 0xd9, 0x2d, + 0xdd, 0xee, 0x3e, 0x18, 0x10, 0x87, 0x4d, 0x95, 0x57, 0x45, 0xdc, 0x2f, 0xe0, 0xa0, 0x7e, 0x1c, + 0x36, 0x87, 0x7e, 0x21, 0xc1, 0x45, 0xf2, 0x58, 0xeb, 0x0d, 0x5b, 0x24, 0xb4, 0xae, 0x32, 0x71, + 0x5a, 0xfb, 0xb8, 0x2a, 0xf6, 0x71, 0xf1, 0x76, 0x82, 0x19, 0x9c, 0x68, 0x1c, 0xbd, 0x07, 0xa5, + 0x3e, 0x4b, 0x89, 0x75, 0xb3, 0xa7, 0x6b, 0x7b, 0x95, 0x29, 0x9e, 0x48, 0xf2, 0x78, 0x54, 0x2b, + 0xad, 0xfa, 0xe4, 0x83, 0x51, 0x6d, 0x36, 0xf0, 0xf9, 0x70, 0x6f, 0x40, 0x70, 0x50, 0x4c, 0xfe, + 0xab, 0x04, 0xf3, 0xab, 0x43, 0x76, 0xbf, 0x8d, 0x4e, 0xd3, 0xdd, 0xbb, 0xc3, 0x43, 0x9f, 0x40, + 0x81, 0x1d, 0x5a, 0x4b, 0xb5, 0x55, 0x91, 0x59, 0xdf, 0xc8, 0x76, 0xc4, 0xce, 0x79, 0xae, 0x12, + 0x5b, 0xf5, 0x33, 0xdb, 0xa7, 0x61, 0x4f, 0x2b, 0xea, 0xc0, 0x04, 0x1d, 0x10, 0x4d, 0x24, 0xd0, + 0xed, 0xec, 0x81, 0x4c, 0xd9, 0xf2, 0xc6, 0x80, 0x68, 0xfe, 0xa5, 0x63, 0x5f, 0x98, 0x1b, 0x90, + 0xff, 0x29, 0x41, 0x35, 0x45, 0x46, 0xd1, 0x8d, 0x16, 0xab, 0x32, 0xcf, 0xdf, 0x5b, 0x23, 0xe4, + 0xed, 0xca, 0x33, 0x7b, 0x2b, 0x76, 0x9e, 0xea, 0xf4, 0x97, 0x12, 0xc8, 0x87, 0x8b, 0xae, 0xe8, + 0xd4, 0x46, 0x1f, 0xc5, 0x1c, 0xaf, 0x67, 0xbc, 0xc9, 0x3a, 0x75, 0xdc, 0xf6, 0xca, 0xb1, 0x4b, + 0x09, 0x38, 0xdd, 0x87, 0x49, 0xdd, 0x26, 0x7d, 0x5a, 0xc9, 0xf1, 0xcb, 0xf2, 0xfe, 0x69, 0x79, + 0xad, 0x5c, 0x10, 0x46, 0x27, 0xef, 0x31, 0xf5, 0xd8, 0xb1, 0x22, 0xff, 0x26, 0x77, 0x94, 0xcf, + 0x2c, 0x40, 0xac, 0x08, 0x0f, 0x38, 0x71, 0xcd, 0x2f, 0xd6, 0xde, 0xe1, 0xad, 0x7b, 0x1c, 0x1c, + 0x58, 0xc5, 0xe2, 0x34, 0x50, 0x2d, 0xb5, 0xef, 0xb6, 0xa1, 0xd2, 0xd2, 0x52, 0x76, 0x67, 0xd6, + 0x85, 0xa4, 0x32, 0xcd, 0xe2, 0xe4, 0x7e, 0x61, 0x4f, 0x23, 0xb2, 0x61, 0xa6, 0x1f, 0xaa, 0xf0, + 0xbc, 0x7b, 0x95, 0x96, 0x6e, 0x1e, 0x23, 0x60, 0x21, 0x79, 0xa7, 0xb4, 0x86, 0x69, 0x38, 0x62, + 0x43, 0xfe, 0x42, 0x82, 0x2b, 0x29, 0xe1, 0x3a, 0x83, 0xdc, 0x68, 0x87, 0x73, 0xa3, 0xf9, 0xec, + 0xb9, 0x91, 0x9c, 0x14, 0xbf, 0x3a, 0x9f, 0xea, 0x25, 0xcf, 0x86, 0x4f, 0xa0, 0xc8, 0xcf, 0xe1, + 0x03, 0xdd, 0x68, 0x25, 0xf4, 0xd0, 0x2c, 0x47, 0xcb, 0x44, 0x95, 0x0b, 0xe3, 0x51, 0xad, 0xe8, + 0x7d, 0x62, 0x5f, 0x29, 0xfa, 0x3e, 0xcc, 0xf5, 0x05, 0x50, 0x60, 0xf2, 0xba, 0x61, 0x53, 0x91, + 0x43, 0x27, 0x3f, 0xdf, 0x8b, 0xe3, 0x51, 0x6d, 0x6e, 0x35, 0xa2, 0x15, 0xc7, 0xec, 0x20, 0x0d, + 0x8a, 0xbb, 0xaa, 0xa5, 0xab, 0xdb, 0x7e, 0xeb, 0x3c, 0x46, 0xe2, 0x6e, 0x0a, 0x51, 0xa5, 0x2c, + 0x42, 0x5b, 0x74, 0x29, 0x14, 0xfb, 0x7a, 0x99, 0x91, 0xfe, 0xd0, 0x81, 0x89, 0x6e, 0x5f, 0x5c, + 0x3a, 0xee, 0x71, 0x9a, 0x86, 0x6f, 0xc4, 0xa5, 0x50, 0xec, 0xeb, 0x45, 0x2b, 0x70, 0xa1, 0xad, + 0xea, 0xbd, 0xa1, 0x45, 0x44, 0xd3, 0x9b, 0xe4, 0x17, 0xf7, 0xab, 0xac, 0x83, 0xdf, 0x09, 0x32, + 0x0e, 0x46, 0xb5, 0x72, 0x88, 0xc0, 0x1b, 0x5f, 0x58, 0x18, 0xfd, 0x00, 0x66, 0xfb, 0x21, 0xf0, + 0x46, 0x2b, 0xe7, 0xf9, 0xc6, 0x8f, 0x7b, 0x24, 0x9e, 0x02, 0x1f, 0xe8, 0x86, 0xe9, 0x14, 0x47, + 0x2d, 0xa1, 0x9f, 0x49, 0x80, 0x2c, 0xa2, 0x1b, 0xbb, 0xa6, 0xc6, 0x35, 0x86, 0xba, 0xf8, 0xb7, + 0x85, 0x1a, 0x84, 0x63, 0x2b, 0x0e, 0x46, 0xb5, 0x5b, 0x19, 0x9e, 0x2d, 0xf5, 0xb8, 0x24, 0x0f, + 0x41, 0x82, 0x4d, 0xf9, 0x6f, 0x05, 0x98, 0x75, 0x6f, 0xc7, 0x16, 0xd9, 0xee, 0x9a, 0xe6, 0x4e, + 0x06, 0x18, 0xfb, 0x08, 0xa6, 0xb5, 0x9e, 0x4e, 0x0c, 0xdb, 0x79, 0x69, 0x88, 0x6c, 0xfe, 0x56, + 0xf6, 0xd0, 0x09, 0x53, 0xcb, 0x01, 0x25, 0xca, 0x45, 0x61, 0x68, 0x3a, 0x48, 0xc5, 0x21, 0x43, + 0xe8, 0x23, 0x98, 0xb4, 0x02, 0x28, 0xf0, 0xad, 0x2c, 0x16, 0xeb, 0x09, 0x98, 0xcb, 0x2b, 0x15, + 0x0e, 0xc8, 0x72, 0x94, 0xc6, 0x53, 0x6c, 0xe2, 0x59, 0x52, 0x2c, 0x82, 0xd1, 0x8a, 0x27, 0xc2, + 0x68, 0xc9, 0x50, 0x7f, 0xf2, 0xc5, 0x40, 0xfd, 0xd2, 0xf3, 0x85, 0xfa, 0xef, 0x41, 0x89, 0xea, + 0x2d, 0x72, 0xbb, 0xdd, 0x26, 0x9a, 0xcd, 0xee, 0xa3, 0x17, 0xb0, 0x0d, 0x9f, 0xcc, 0x02, 0xe6, + 0x7f, 0x2e, 0xf7, 0x54, 0x4a, 0x71, 0x50, 0x0c, 0xdd, 0x82, 0x19, 0xf6, 0x46, 0x36, 0x87, 0xf6, + 0x06, 0xd1, 0x4c, 0xa3, 0x45, 0xf9, 0xbd, 0x9a, 0x74, 0x76, 0xf0, 0x30, 0xc4, 0xc1, 0x91, 0x95, + 0xe8, 0x43, 0x98, 0xf7, 0xb2, 0x08, 0x93, 0x5d, 0x9d, 0x3c, 0xda, 0x24, 0x16, 0xe5, 0xd5, 0xa1, + 0xb0, 0x90, 0x5f, 0x2c, 0x2a, 0x57, 0xc6, 0xa3, 0xda, 0x7c, 0x33, 0x79, 0x09, 0x4e, 0x93, 0x45, + 0x3f, 0x4d, 0xbe, 0xef, 0xc0, 0x1d, 0x7c, 0x78, 0x56, 0x77, 0x3d, 0xa9, 0xe6, 0x4d, 0x9f, 0x55, + 0xcd, 0x93, 0xff, 0x2c, 0xc1, 0xd5, 0x48, 0xa1, 0x09, 0x8f, 0x29, 0x9e, 0x3f, 0x04, 0xff, 0x2e, + 0x14, 0x84, 0x65, 0x17, 0x74, 0x7c, 0xf3, 0xf8, 0xa0, 0x43, 0x68, 0x50, 0x26, 0x98, 0x29, 0xec, + 0x29, 0x94, 0xff, 0x21, 0xc1, 0xc2, 0x61, 0xfe, 0x9d, 0x01, 0xa2, 0xda, 0x09, 0x23, 0xaa, 0x3b, + 0x27, 0x76, 0x2e, 0xb4, 0xf1, 0x14, 0x58, 0xf5, 0xdb, 0x1c, 0x14, 0xdc, 0x3e, 0x8d, 0xde, 0x61, + 0x18, 0xca, 0xd6, 0xba, 0x2c, 0xf5, 0xc4, 0x54, 0xa3, 0xea, 0x36, 0xf3, 0x75, 0x97, 0x71, 0x10, + 0xfc, 0xc0, 0xbe, 0x00, 0xbf, 0x1e, 0x6a, 0x6c, 0x6e, 0x25, 0x20, 0xf0, 0x3b, 0xd9, 0xbd, 0x88, + 0xcf, 0xbe, 0x94, 0xaf, 0xb0, 0xcb, 0x15, 0xa7, 0xe3, 0x04, 0x7b, 0x0c, 0x08, 0x7e, 0x4a, 0x4d, + 0x83, 0x6f, 0x91, 0x57, 0xfe, 0x63, 0x01, 0x41, 0x6f, 0x96, 0xe4, 0x00, 0x41, 0xef, 0x13, 0xfb, + 0x4a, 0xe5, 0xa7, 0x12, 0xcc, 0xa7, 0x4c, 0x01, 0xd0, 0x5b, 0xfe, 0x9c, 0x83, 0x57, 0xe7, 0x8a, + 0xc4, 0x0b, 0x4e, 0x39, 0x38, 0xa0, 0xe0, 0x0c, 0x1c, 0x5e, 0x87, 0x7e, 0xc2, 0x8a, 0x4b, 0x4c, + 0x9f, 0x68, 0xc9, 0x27, 0x6e, 0x90, 0x97, 0x3d, 0x14, 0x12, 0xe3, 0xe1, 0x04, 0x73, 0xb2, 0x0a, + 0x3e, 0xf6, 0x65, 0x0f, 0x2c, 0x75, 0xa0, 0x8b, 0xf2, 0x17, 0x7d, 0x60, 0x35, 0xd7, 0xef, 0x09, + 0x0e, 0x0e, 0xac, 0x62, 0xa0, 0x63, 0x87, 0x21, 0xf0, 0x5c, 0x18, 0x74, 0x70, 0x2c, 0xcd, 0x39, + 0xf2, 0xef, 0x72, 0xe0, 0xbd, 0x9d, 0x32, 0x60, 0x94, 0x06, 0x14, 0xbd, 0x9e, 0x26, 0xb4, 0x7a, + 0x00, 0xd3, 0xeb, 0x7f, 0xd8, 0x5f, 0x83, 0x3e, 0x86, 0x02, 0x75, 0x3b, 0x5d, 0xfe, 0xe4, 0x9d, + 0x8e, 0xbf, 0xf1, 0xbc, 0x1e, 0xe7, 0xa9, 0x44, 0x36, 0xcc, 0xf3, 0x27, 0x01, 0xb1, 0x89, 0xb5, + 0x66, 0xda, 0x77, 0xcc, 0xa1, 0xd1, 0x6a, 0x6a, 0x3c, 0xd3, 0x1d, 0x98, 0x71, 0x8b, 0xf5, 0x96, + 0xf5, 0xe4, 0x25, 0x07, 0xa3, 0xda, 0x95, 0x14, 0x16, 0xbf, 0x4d, 0x69, 0xaa, 0xe5, 0x5f, 0x4b, + 0x30, 0xb7, 0x41, 0xac, 0x5d, 0x5d, 0x23, 0x98, 0xb4, 0x89, 0x45, 0x0c, 0x2d, 0x12, 0x1a, 0x29, + 0x43, 0x68, 0xdc, 0x68, 0xe7, 0x52, 0xa3, 0x7d, 0x15, 0x26, 0x06, 0xaa, 0xdd, 0x15, 0x53, 0xd7, + 0x02, 0xe3, 0xae, 0xab, 0x76, 0x17, 0x73, 0x2a, 0xe7, 0x9a, 0x96, 0xcd, 0x1d, 0x9d, 0x14, 0x5c, + 0xd3, 0xb2, 0x31, 0xa7, 0xca, 0xbf, 0x94, 0x60, 0x9a, 0x79, 0xb1, 0xdc, 0x25, 0xda, 0x8e, 0x6e, + 0x74, 0xd0, 0x67, 0x12, 0x20, 0x12, 0x9d, 0x04, 0x3b, 0x37, 0xa2, 0xb4, 0xf4, 0x76, 0xf6, 0x3b, + 0x19, 0x9b, 0x26, 0xfb, 0x69, 0x1d, 0x63, 0x51, 0x9c, 0x60, 0x52, 0xfe, 0x53, 0x0e, 0x2e, 0x6d, + 0xaa, 0x3d, 0xbd, 0xf5, 0x82, 0x66, 0x64, 0x7a, 0x68, 0x6a, 0x74, 0xf7, 0x38, 0x2f, 0xb7, 0x94, + 0x4d, 0xa7, 0x0d, 0x8c, 0xd0, 0xf7, 0xe0, 0x3c, 0xb5, 0x55, 0x7b, 0xe8, 0xce, 0x1e, 0xee, 0x9d, + 0x86, 0x31, 0xae, 0x50, 0x99, 0x11, 0xe6, 0xce, 0x3b, 0xdf, 0x58, 0x18, 0x92, 0xff, 0x2d, 0xc1, + 0x42, 0xaa, 0xec, 0xd9, 0x8d, 0xe6, 0x06, 0xa1, 0x20, 0xaf, 0x9d, 0x82, 0xdf, 0x47, 0x0d, 0xe7, + 0xfe, 0x25, 0xc1, 0x6b, 0x47, 0x09, 0x9f, 0x01, 0x60, 0x30, 0xc3, 0x80, 0xe1, 0xfe, 0xe9, 0x79, + 0x9e, 0x02, 0x1a, 0x3e, 0xcb, 0x1f, 0xed, 0xf7, 0xcb, 0x11, 0x5d, 0xe0, 0x1f, 0x3d, 0x5b, 0x50, + 0xde, 0x15, 0xf1, 0x32, 0x0d, 0xa7, 0xa4, 0x3b, 0x13, 0x96, 0xa2, 0x72, 0x9d, 0x3d, 0xe4, 0x36, + 0xa3, 0xcc, 0x83, 0x51, 0x6d, 0x2e, 0x4a, 0xc4, 0x71, 0x1d, 0xf2, 0xdf, 0x25, 0xb8, 0x96, 0x7a, + 0x12, 0x67, 0x90, 0x7a, 0xdd, 0x70, 0xea, 0x2d, 0x9f, 0x46, 0xea, 0xa5, 0xce, 0xff, 0xae, 0x1d, + 0x5a, 0x0d, 0xff, 0xcf, 0x27, 0x80, 0x3b, 0x50, 0xf2, 0x8f, 0xdf, 0x1d, 0x9c, 0xbc, 0x71, 0xfc, + 0x78, 0x9b, 0x86, 0xf2, 0x8a, 0x08, 0x70, 0xc9, 0xa7, 0x51, 0x1c, 0xd4, 0x7e, 0xca, 0x13, 0x94, + 0x1f, 0xc1, 0x9c, 0x1a, 0xfe, 0x2f, 0x34, 0xad, 0x4c, 0x1e, 0xf7, 0xe1, 0x16, 0xf9, 0x3f, 0xb6, + 0x52, 0x11, 0x4e, 0xcc, 0x45, 0x18, 0x14, 0xc7, 0x8c, 0xbd, 0xd8, 0x29, 0x61, 0x68, 0x74, 0x3b, + 0xf5, 0x7c, 0x46, 0xb7, 0xf2, 0x1f, 0x72, 0x50, 0x3b, 0xa2, 0x7d, 0xa3, 0xfb, 0x80, 0xcc, 0x6d, + 0x4a, 0xac, 0x5d, 0xd2, 0xba, 0xeb, 0xfc, 0xe2, 0xc0, 0x85, 0xf5, 0x79, 0x1f, 0x50, 0x3d, 0x88, + 0xad, 0xc0, 0x09, 0x52, 0xa8, 0x07, 0xd3, 0x76, 0x00, 0xea, 0x89, 0x5b, 0xf0, 0x66, 0x76, 0xbf, + 0x82, 0x40, 0x51, 0x99, 0x1b, 0x8f, 0x6a, 0x21, 0xe8, 0x88, 0x43, 0xda, 0x91, 0x06, 0xa0, 0xf9, + 0x47, 0xe7, 0xa4, 0x7e, 0x23, 0x5b, 0x15, 0xf3, 0x4f, 0xcc, 0xeb, 0x3b, 0x81, 0xc3, 0x0a, 0xa8, + 0x95, 0xf7, 0xa7, 0xa0, 0xec, 0x87, 0xf0, 0xe5, 0x10, 0xf5, 0xe5, 0x10, 0xf5, 0xd0, 0x21, 0x2a, + 0xbc, 0x1c, 0xa2, 0x9e, 0x68, 0x88, 0x9a, 0x50, 0x8b, 0x4b, 0x67, 0x36, 0xbd, 0xdc, 0x97, 0xa0, + 0x1a, 0xbb, 0xe3, 0x67, 0x3d, 0xbf, 0xfc, 0x38, 0x36, 0xbf, 0x7c, 0xfb, 0x24, 0xb0, 0x29, 0x6d, + 0x82, 0xf9, 0xa5, 0x04, 0xf2, 0xe1, 0x3e, 0xfe, 0x4f, 0xff, 0x62, 0xe0, 0xf0, 0xad, 0xa7, 0x80, + 0xc3, 0xff, 0x48, 0x00, 0x3e, 0x98, 0x41, 0xaf, 0x41, 0xe0, 0x47, 0x58, 0xa2, 0x74, 0x3b, 0x61, + 0x0a, 0xd0, 0xd1, 0x75, 0x98, 0xea, 0x13, 0x4a, 0xd5, 0x8e, 0x3b, 0x10, 0xf1, 0x7e, 0x64, 0xb6, + 0xea, 0x90, 0xb1, 0xcb, 0x47, 0x5b, 0x70, 0xde, 0x22, 0x2a, 0x15, 0xd3, 0xcc, 0xa2, 0xf2, 0x2e, + 0x7b, 0x05, 0x63, 0x4e, 0x39, 0x18, 0xd5, 0x6e, 0x64, 0xf9, 0x39, 0x61, 0x5d, 0x3c, 0x9a, 0xb9, + 0x10, 0x16, 0xea, 0xd0, 0x5d, 0x28, 0x0b, 0x1b, 0x81, 0x0d, 0x3b, 0x95, 0xf6, 0x92, 0xd8, 0x4d, + 0x79, 0x35, 0xba, 0x00, 0xc7, 0x65, 0xe4, 0xfb, 0x50, 0x70, 0x81, 0x01, 0xaa, 0xc0, 0x44, 0xe0, + 0xbd, 0xe5, 0x38, 0xce, 0x29, 0x91, 0xc0, 0xe4, 0x92, 0x03, 0x23, 0xff, 0x5e, 0x82, 0x57, 0x12, + 0x9a, 0x12, 0xba, 0x04, 0xf9, 0xa1, 0xd5, 0x13, 0x21, 0x98, 0x1a, 0x8f, 0x6a, 0xf9, 0x0f, 0xf1, + 0x0a, 0x66, 0x34, 0xa4, 0xc2, 0x14, 0x75, 0xc6, 0x53, 0x22, 0x99, 0x6e, 0x65, 0x3f, 0xf1, 0xe8, + 0x5c, 0x4b, 0x29, 0xb1, 0x33, 0x70, 0xa9, 0xae, 0x5e, 0xb4, 0x08, 0x05, 0x4d, 0x55, 0x86, 0x46, + 0xab, 0xe7, 0x9c, 0xd7, 0xb4, 0xf3, 0xc6, 0x5b, 0x6e, 0x3a, 0x34, 0xec, 0x71, 0x95, 0xb5, 0x27, + 0xfb, 0xd5, 0x73, 0x9f, 0xef, 0x57, 0xcf, 0x3d, 0xdd, 0xaf, 0x9e, 0xfb, 0xf1, 0xb8, 0x2a, 0x3d, + 0x19, 0x57, 0xa5, 0xcf, 0xc7, 0x55, 0xe9, 0xe9, 0xb8, 0x2a, 0xfd, 0x65, 0x5c, 0x95, 0x7e, 0xfe, + 0x45, 0xf5, 0xdc, 0x77, 0x16, 0xb3, 0xfe, 0x98, 0xf5, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x13, + 0x7c, 0x49, 0xa4, 0xf7, 0x2a, 0x00, 0x00, +} + +func (m *ApplyConfiguration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplyConfiguration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplyConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Expression) + copy(dAtA[i:], m.Expression) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func (m *AuditAnnotation) Marshal() (dAtA []byte, err error) { @@ -971,6 +1277,34 @@ func (m *ExpressionWarning) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *JSONPatch) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JSONPatch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JSONPatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Expression) + copy(dAtA[i:], m.Expression) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *MatchCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1086,7 +1420,7 @@ func (m *MatchResources) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MutatingWebhook) Marshal() (dAtA []byte, err error) { +func (m *MutatingAdmissionPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1096,112 +1430,18 @@ func (m *MutatingWebhook) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MutatingWebhook) MarshalTo(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicy) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MutatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.MatchConditions) > 0 { - for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - } - if m.ObjectSelector != nil { - { - size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.ReinvocationPolicy != nil { - i -= len(*m.ReinvocationPolicy) - copy(dAtA[i:], *m.ReinvocationPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReinvocationPolicy))) - i-- - dAtA[i] = 0x52 - } - if m.MatchPolicy != nil { - i -= len(*m.MatchPolicy) - copy(dAtA[i:], *m.MatchPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) - i-- - dAtA[i] = 0x4a - } - if len(m.AdmissionReviewVersions) > 0 { - for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AdmissionReviewVersions[iNdEx]) - copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx]))) - i-- - dAtA[i] = 0x42 - } - } - if m.TimeoutSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) - i-- - dAtA[i] = 0x38 - } - if m.SideEffects != nil { - i -= len(*m.SideEffects) - copy(dAtA[i:], *m.SideEffects) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) - i-- - dAtA[i] = 0x32 - } - if m.NamespaceSelector != nil { - { - size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.FailurePolicy != nil { - i -= len(*m.FailurePolicy) - copy(dAtA[i:], *m.FailurePolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) - i-- - dAtA[i] = 0x22 - } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } { - size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1210,15 +1450,20 @@ func (m *MutatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *MutatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { +func (m *MutatingAdmissionPolicyBinding) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1228,30 +1473,26 @@ func (m *MutatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MutatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicyBinding) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MutatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicyBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Webhooks) > 0 { - for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 { size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -1265,7 +1506,7 @@ func (m *MutatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *MutatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { +func (m *MutatingAdmissionPolicyBindingList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1275,12 +1516,12 @@ func (m *MutatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MutatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicyBindingList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MutatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicyBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1312,7 +1553,7 @@ func (m *MutatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *NamedRuleWithOperations) Marshal() (dAtA []byte, err error) { +func (m *MutatingAdmissionPolicyBindingSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1322,39 +1563,49 @@ func (m *NamedRuleWithOperations) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *NamedRuleWithOperations) MarshalTo(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicyBindingSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *NamedRuleWithOperations) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicyBindingSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size, err := m.RuleWithOperations.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.MatchResources != nil { + { + size, err := m.MatchResources.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a } - i-- - dAtA[i] = 0x12 - if len(m.ResourceNames) > 0 { - for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ResourceNames[iNdEx]) - copy(dAtA[i:], m.ResourceNames[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceNames[iNdEx]))) - i-- - dAtA[i] = 0xa + if m.ParamRef != nil { + { + size, err := m.ParamRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } + i -= len(m.PolicyName) + copy(dAtA[i:], m.PolicyName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PolicyName))) + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *ParamKind) Marshal() (dAtA []byte, err error) { +func (m *MutatingAdmissionPolicyList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1364,30 +1615,44 @@ func (m *ParamKind) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ParamKind) MarshalTo(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicyList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ParamKind) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x12 - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *ParamRef) Marshal() (dAtA []byte, err error) { +func (m *MutatingAdmissionPolicySpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1397,26 +1662,73 @@ func (m *ParamRef) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ParamRef) MarshalTo(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicySpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ParamRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MutatingAdmissionPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ParameterNotFoundAction != nil { - i -= len(*m.ParameterNotFoundAction) - copy(dAtA[i:], *m.ParameterNotFoundAction) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ParameterNotFoundAction))) + i -= len(m.ReinvocationPolicy) + copy(dAtA[i:], m.ReinvocationPolicy) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ReinvocationPolicy))) + i-- + dAtA[i] = 0x3a + if len(m.MatchConditions) > 0 { + for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.FailurePolicy != nil { + i -= len(*m.FailurePolicy) + copy(dAtA[i:], *m.FailurePolicy) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x2a } - if m.Selector != nil { + if len(m.Mutations) > 0 { + for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Variables) > 0 { + for iNdEx := len(m.Variables) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Variables[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.MatchConstraints != nil { { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.MatchConstraints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1424,67 +1736,24 @@ func (m *ParamRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a - } - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Port != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) - i-- - dAtA[i] = 0x20 + dAtA[i] = 0x12 } - if m.Path != nil { - i -= len(*m.Path) - copy(dAtA[i:], *m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path))) + if m.ParamKind != nil { + { + size, err := m.ParamKind.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *TypeChecking) Marshal() (dAtA []byte, err error) { +func (m *MutatingWebhook) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1494,20 +1763,20 @@ func (m *TypeChecking) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TypeChecking) MarshalTo(dAtA []byte) (int, error) { +func (m *MutatingWebhook) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *TypeChecking) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MutatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ExpressionWarnings) > 0 { - for iNdEx := len(m.ExpressionWarnings) - 1; iNdEx >= 0; iNdEx-- { + if len(m.MatchConditions) > 0 { + for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.ExpressionWarnings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1515,54 +1784,91 @@ func (m *TypeChecking) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x62 } } - return len(dAtA) - i, nil -} - -func (m *ValidatingAdmissionPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.ObjectSelector != nil { + { + size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a } - return dAtA[:n], nil -} - -func (m *ValidatingAdmissionPolicy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatingAdmissionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.ReinvocationPolicy != nil { + i -= len(*m.ReinvocationPolicy) + copy(dAtA[i:], *m.ReinvocationPolicy) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReinvocationPolicy))) + i-- + dAtA[i] = 0x52 + } + if m.MatchPolicy != nil { + i -= len(*m.MatchPolicy) + copy(dAtA[i:], *m.MatchPolicy) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) + i-- + dAtA[i] = 0x4a + } + if len(m.AdmissionReviewVersions) > 0 { + for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AdmissionReviewVersions[iNdEx]) + copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx]))) + i-- + dAtA[i] = 0x42 } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.TimeoutSeconds != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) + i-- + dAtA[i] = 0x38 + } + if m.SideEffects != nil { + i -= len(*m.SideEffects) + copy(dAtA[i:], *m.SideEffects) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) + i-- + dAtA[i] = 0x32 + } + if m.NamespaceSelector != nil { + { + size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.FailurePolicy != nil { + i -= len(*m.FailurePolicy) + copy(dAtA[i:], *m.FailurePolicy) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Rules) > 0 { + for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x12 { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1570,11 +1876,16 @@ func (m *ValidatingAdmissionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, erro i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *ValidatingAdmissionPolicyBinding) Marshal() (dAtA []byte, err error) { +func (m *MutatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1584,26 +1895,30 @@ func (m *ValidatingAdmissionPolicyBinding) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ValidatingAdmissionPolicyBinding) MarshalTo(dAtA []byte) (int, error) { +func (m *MutatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatingAdmissionPolicyBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MutatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Webhooks) > 0 { + for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x12 { size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -1617,7 +1932,7 @@ func (m *ValidatingAdmissionPolicyBinding) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *ValidatingAdmissionPolicyBindingList) Marshal() (dAtA []byte, err error) { +func (m *MutatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1627,12 +1942,12 @@ func (m *ValidatingAdmissionPolicyBindingList) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *ValidatingAdmissionPolicyBindingList) MarshalTo(dAtA []byte) (int, error) { +func (m *MutatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatingAdmissionPolicyBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MutatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1664,7 +1979,7 @@ func (m *ValidatingAdmissionPolicyBindingList) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *ValidatingAdmissionPolicyBindingSpec) Marshal() (dAtA []byte, err error) { +func (m *Mutation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1674,28 +1989,19 @@ func (m *ValidatingAdmissionPolicyBindingSpec) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *ValidatingAdmissionPolicyBindingSpec) MarshalTo(dAtA []byte) (int, error) { +func (m *Mutation) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatingAdmissionPolicyBindingSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Mutation) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ValidationActions) > 0 { - for iNdEx := len(m.ValidationActions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ValidationActions[iNdEx]) - copy(dAtA[i:], m.ValidationActions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ValidationActions[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if m.MatchResources != nil { + if m.JSONPatch != nil { { - size, err := m.MatchResources.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.JSONPatch.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1703,11 +2009,11 @@ func (m *ValidatingAdmissionPolicyBindingSpec) MarshalToSizedBuffer(dAtA []byte) i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } - if m.ParamRef != nil { + if m.ApplyConfiguration != nil { { - size, err := m.ParamRef.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ApplyConfiguration.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1715,17 +2021,17 @@ func (m *ValidatingAdmissionPolicyBindingSpec) MarshalToSizedBuffer(dAtA []byte) i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } - i -= len(m.PolicyName) - copy(dAtA[i:], m.PolicyName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PolicyName))) + i -= len(m.PatchType) + copy(dAtA[i:], m.PatchType) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PatchType))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 return len(dAtA) - i, nil } -func (m *ValidatingAdmissionPolicyList) Marshal() (dAtA []byte, err error) { +func (m *NamedRuleWithOperations) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1735,32 +2041,18 @@ func (m *ValidatingAdmissionPolicyList) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ValidatingAdmissionPolicyList) MarshalTo(dAtA []byte) (int, error) { +func (m *NamedRuleWithOperations) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatingAdmissionPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *NamedRuleWithOperations) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.RuleWithOperations.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1768,11 +2060,20 @@ func (m *ValidatingAdmissionPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + if len(m.ResourceNames) > 0 { + for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceNames[iNdEx]) + copy(dAtA[i:], m.ResourceNames[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceNames[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } return len(dAtA) - i, nil } -func (m *ValidatingAdmissionPolicySpec) Marshal() (dAtA []byte, err error) { +func (m *ParamKind) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1782,94 +2083,59 @@ func (m *ValidatingAdmissionPolicySpec) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ValidatingAdmissionPolicySpec) MarshalTo(dAtA []byte) (int, error) { +func (m *ParamKind) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatingAdmissionPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ParamKind) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Variables) > 0 { - for iNdEx := len(m.Variables) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Variables[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if len(m.MatchConditions) > 0 { - for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.AuditAnnotations) > 0 { - for iNdEx := len(m.AuditAnnotations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AuditAnnotations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0x12 + i -= len(m.APIVersion) + copy(dAtA[i:], m.APIVersion) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ParamRef) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if m.FailurePolicy != nil { - i -= len(*m.FailurePolicy) - copy(dAtA[i:], *m.FailurePolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) + return dAtA[:n], nil +} + +func (m *ParamRef) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParamRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ParameterNotFoundAction != nil { + i -= len(*m.ParameterNotFoundAction) + copy(dAtA[i:], *m.ParameterNotFoundAction) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ParameterNotFoundAction))) i-- dAtA[i] = 0x22 } - if len(m.Validations) > 0 { - for iNdEx := len(m.Validations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Validations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.MatchConstraints != nil { - { - size, err := m.MatchConstraints.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ParamKind != nil { + if m.Selector != nil { { - size, err := m.ParamKind.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1877,12 +2143,22 @@ func (m *ValidatingAdmissionPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x1a } + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *ValidatingAdmissionPolicyStatus) Marshal() (dAtA []byte, err error) { +func (m *ServiceReference) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1892,49 +2168,42 @@ func (m *ValidatingAdmissionPolicyStatus) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ValidatingAdmissionPolicyStatus) MarshalTo(dAtA []byte) (int, error) { +func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatingAdmissionPolicyStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ServiceReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + if m.Port != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) + i-- + dAtA[i] = 0x20 } - if m.TypeChecking != nil { - { - size, err := m.TypeChecking.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } + if m.Path != nil { + i -= len(*m.Path) + copy(dAtA[i:], *m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x12 + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *ValidatingWebhook) Marshal() (dAtA []byte, err error) { +func (m *TypeChecking) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1944,20 +2213,20 @@ func (m *ValidatingWebhook) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ValidatingWebhook) MarshalTo(dAtA []byte) (int, error) { +func (m *TypeChecking) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TypeChecking) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.MatchConditions) > 0 { - for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { + if len(m.ExpressionWarnings) > 0 { + for iNdEx := len(m.ExpressionWarnings) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ExpressionWarnings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1965,84 +2234,44 @@ func (m *ValidatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x5a - } - } - if m.ObjectSelector != nil { - { - size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) + dAtA[i] = 0xa } - i-- - dAtA[i] = 0x52 } - if m.MatchPolicy != nil { - i -= len(*m.MatchPolicy) - copy(dAtA[i:], *m.MatchPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) - i-- - dAtA[i] = 0x4a + return len(dAtA) - i, nil +} + +func (m *ValidatingAdmissionPolicy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if len(m.AdmissionReviewVersions) > 0 { - for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AdmissionReviewVersions[iNdEx]) - copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx]))) - i-- - dAtA[i] = 0x42 - } - } - if m.TimeoutSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) - i-- - dAtA[i] = 0x38 - } - if m.SideEffects != nil { - i -= len(*m.SideEffects) - copy(dAtA[i:], *m.SideEffects) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) - i-- - dAtA[i] = 0x32 - } - if m.NamespaceSelector != nil { - { - size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.FailurePolicy != nil { - i -= len(*m.FailurePolicy) - copy(dAtA[i:], *m.FailurePolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) - i-- - dAtA[i] = 0x22 - } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + return dAtA[:n], nil +} + +func (m *ValidatingAdmissionPolicy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatingAdmissionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a { - size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2051,15 +2280,20 @@ func (m *ValidatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *ValidatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { +func (m *ValidatingAdmissionPolicyBinding) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2069,30 +2303,26 @@ func (m *ValidatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ValidatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { +func (m *ValidatingAdmissionPolicyBinding) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ValidatingAdmissionPolicyBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Webhooks) > 0 { - for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 { size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -2106,7 +2336,7 @@ func (m *ValidatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *ValidatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { +func (m *ValidatingAdmissionPolicyBindingList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2116,12 +2346,12 @@ func (m *ValidatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *ValidatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { +func (m *ValidatingAdmissionPolicyBindingList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ValidatingAdmissionPolicyBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2153,7 +2383,7 @@ func (m *ValidatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *Validation) Marshal() (dAtA []byte, err error) { +func (m *ValidatingAdmissionPolicyBindingSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2163,42 +2393,58 @@ func (m *Validation) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Validation) MarshalTo(dAtA []byte) (int, error) { +func (m *ValidatingAdmissionPolicyBindingSpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Validation) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ValidatingAdmissionPolicyBindingSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - i -= len(m.MessageExpression) - copy(dAtA[i:], m.MessageExpression) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MessageExpression))) - i-- - dAtA[i] = 0x22 - if m.Reason != nil { - i -= len(*m.Reason) - copy(dAtA[i:], *m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Reason))) + if len(m.ValidationActions) > 0 { + for iNdEx := len(m.ValidationActions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ValidationActions[iNdEx]) + copy(dAtA[i:], m.ValidationActions[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ValidationActions[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if m.MatchResources != nil { + { + size, err := m.MatchResources.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x1a } - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - i -= len(m.Expression) - copy(dAtA[i:], m.Expression) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) + if m.ParamRef != nil { + { + size, err := m.ParamRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(m.PolicyName) + copy(dAtA[i:], m.PolicyName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PolicyName))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *Variable) Marshal() (dAtA []byte, err error) { +func (m *ValidatingAdmissionPolicyList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2208,30 +2454,44 @@ func (m *Variable) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Variable) MarshalTo(dAtA []byte) (int, error) { +func (m *ValidatingAdmissionPolicyList) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Variable) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ValidatingAdmissionPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - i -= len(m.Expression) - copy(dAtA[i:], m.Expression) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) { +func (m *ValidatingAdmissionPolicySpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2241,335 +2501,636 @@ func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) { +func (m *ValidatingAdmissionPolicySpec) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *WebhookClientConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ValidatingAdmissionPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.URL != nil { - i -= len(*m.URL) - copy(dAtA[i:], *m.URL) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL))) - i-- - dAtA[i] = 0x1a - } - if m.CABundle != nil { - i -= len(m.CABundle) - copy(dAtA[i:], m.CABundle) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) - i-- - dAtA[i] = 0x12 - } - if m.Service != nil { - { - size, err := m.Service.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Variables) > 0 { + for iNdEx := len(m.Variables) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Variables[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ } - dAtA[offset] = uint8(v) - return base -} -func (m *AuditAnnotation) Size() (n int) { - if m == nil { - return 0 + if len(m.MatchConditions) > 0 { + for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ValueExpression) - n += 1 + l + sovGenerated(uint64(l)) - return n + if len(m.AuditAnnotations) > 0 { + for iNdEx := len(m.AuditAnnotations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AuditAnnotations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.FailurePolicy != nil { + i -= len(*m.FailurePolicy) + copy(dAtA[i:], *m.FailurePolicy) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Validations) > 0 { + for iNdEx := len(m.Validations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Validations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.MatchConstraints != nil { + { + size, err := m.MatchConstraints.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.ParamKind != nil { + { + size, err := m.ParamKind.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *ExpressionWarning) Size() (n int) { - if m == nil { - return 0 +func (m *ValidatingAdmissionPolicyStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - l = len(m.FieldRef) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Warning) - n += 1 + l + sovGenerated(uint64(l)) - return n + return dAtA[:n], nil } -func (m *MatchCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Expression) - n += 1 + l + sovGenerated(uint64(l)) - return n +func (m *ValidatingAdmissionPolicyStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MatchResources) Size() (n int) { - if m == nil { - return 0 - } +func (m *ValidatingAdmissionPolicyStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.NamespaceSelector != nil { - l = m.NamespaceSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ObjectSelector != nil { - l = m.ObjectSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.ResourceRules) > 0 { - for _, e := range m.ResourceRules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } } - if len(m.ExcludeResourceRules) > 0 { - for _, e := range m.ExcludeResourceRules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) + if m.TypeChecking != nil { + { + size, err := m.TypeChecking.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - if m.MatchPolicy != nil { - l = len(*m.MatchPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - return n + i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil } -func (m *MutatingWebhook) Size() (n int) { - if m == nil { - return 0 +func (m *ValidatingWebhook) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *ValidatingWebhook) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.ClientConfig.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) + if len(m.MatchConditions) > 0 { + for iNdEx := len(m.MatchConditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MatchConditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a } } - if m.FailurePolicy != nil { - l = len(*m.FailurePolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NamespaceSelector != nil { - l = m.NamespaceSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.SideEffects != nil { - l = len(*m.SideEffects) - n += 1 + l + sovGenerated(uint64(l)) + if m.ObjectSelector != nil { + { + size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 } - if m.TimeoutSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) + if m.MatchPolicy != nil { + i -= len(*m.MatchPolicy) + copy(dAtA[i:], *m.MatchPolicy) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) + i-- + dAtA[i] = 0x4a } if len(m.AdmissionReviewVersions) > 0 { - for _, s := range m.AdmissionReviewVersions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) + for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AdmissionReviewVersions[iNdEx]) + copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx]))) + i-- + dAtA[i] = 0x42 } } - if m.MatchPolicy != nil { - l = len(*m.MatchPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ReinvocationPolicy != nil { - l = len(*m.ReinvocationPolicy) - n += 1 + l + sovGenerated(uint64(l)) + if m.TimeoutSeconds != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) + i-- + dAtA[i] = 0x38 } - if m.ObjectSelector != nil { - l = m.ObjectSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) + if m.SideEffects != nil { + i -= len(*m.SideEffects) + copy(dAtA[i:], *m.SideEffects) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) + i-- + dAtA[i] = 0x32 } - if len(m.MatchConditions) > 0 { - for _, e := range m.MatchConditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) + if m.NamespaceSelector != nil { + { + size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x2a } - return n -} - -func (m *MutatingWebhookConfiguration) Size() (n int) { - if m == nil { - return 0 + if m.FailurePolicy != nil { + i -= len(*m.FailurePolicy) + copy(dAtA[i:], *m.FailurePolicy) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) + i-- + dAtA[i] = 0x22 } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Webhooks) > 0 { - for _, e := range m.Webhooks { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) + if len(m.Rules) > 0 { + for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } } - return n -} - -func (m *MutatingWebhookConfigurationList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) + { + size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) } - return n + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } -func (m *NamedRuleWithOperations) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ResourceNames) > 0 { - for _, s := range m.ResourceNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } +func (m *ValidatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - l = m.RuleWithOperations.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n + return dAtA[:n], nil } -func (m *ParamKind) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - return n +func (m *ValidatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ParamRef) Size() (n int) { - if m == nil { - return 0 - } +func (m *ValidatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) + if len(m.Webhooks) > 0 { + for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - if m.ParameterNotFoundAction != nil { - l = len(*m.ParameterNotFoundAction) - n += 1 + l + sovGenerated(uint64(l)) + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) } - return n + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } -func (m *ServiceReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.Path != nil { - l = len(*m.Path) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Port != nil { - n += 1 + sovGenerated(uint64(*m.Port)) +func (m *ValidatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *TypeChecking) Size() (n int) { - if m == nil { - return 0 - } +func (m *ValidatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.ExpressionWarnings) > 0 { - for _, e := range m.ExpressionWarnings { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } } - return n + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } -func (m *ValidatingAdmissionPolicy) Size() (n int) { - if m == nil { - return 0 +func (m *Validation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n + return dAtA[:n], nil } -func (m *ValidatingAdmissionPolicyBinding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() +func (m *Validation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Validation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.MessageExpression) + copy(dAtA[i:], m.MessageExpression) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.MessageExpression))) + i-- + dAtA[i] = 0x22 + if m.Reason != nil { + i -= len(*m.Reason) + copy(dAtA[i:], *m.Reason) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Reason))) + i-- + dAtA[i] = 0x1a + } + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x12 + i -= len(m.Expression) + copy(dAtA[i:], m.Expression) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Variable) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Variable) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Variable) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Expression) + copy(dAtA[i:], m.Expression) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WebhookClientConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.URL != nil { + i -= len(*m.URL) + copy(dAtA[i:], *m.URL) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL))) + i-- + dAtA[i] = 0x1a + } + if m.CABundle != nil { + i -= len(m.CABundle) + copy(dAtA[i:], m.CABundle) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) + i-- + dAtA[i] = 0x12 + } + if m.Service != nil { + { + size, err := m.Service.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + offset -= sovGenerated(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ApplyConfiguration) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Expression) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *AuditAnnotation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ValueExpression) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ExpressionWarning) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FieldRef) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Warning) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *JSONPatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Expression) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *MatchCondition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Expression) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *MatchResources) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NamespaceSelector != nil { + l = m.NamespaceSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ObjectSelector != nil { + l = m.ObjectSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.ResourceRules) > 0 { + for _, e := range m.ResourceRules { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.ExcludeResourceRules) > 0 { + for _, e := range m.ExcludeResourceRules { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.MatchPolicy != nil { + l = len(*m.MatchPolicy) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *MutatingAdmissionPolicy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() n += 1 + l + sovGenerated(uint64(l)) l = m.Spec.Size() n += 1 + l + sovGenerated(uint64(l)) return n } -func (m *ValidatingAdmissionPolicyBindingList) Size() (n int) { +func (m *MutatingAdmissionPolicyBinding) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *MutatingAdmissionPolicyBindingList) Size() (n int) { if m == nil { return 0 } @@ -2586,7 +3147,7 @@ func (m *ValidatingAdmissionPolicyBindingList) Size() (n int) { return n } -func (m *ValidatingAdmissionPolicyBindingSpec) Size() (n int) { +func (m *MutatingAdmissionPolicyBindingSpec) Size() (n int) { if m == nil { return 0 } @@ -2602,16 +3163,10 @@ func (m *ValidatingAdmissionPolicyBindingSpec) Size() (n int) { l = m.MatchResources.Size() n += 1 + l + sovGenerated(uint64(l)) } - if len(m.ValidationActions) > 0 { - for _, s := range m.ValidationActions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } return n } -func (m *ValidatingAdmissionPolicyList) Size() (n int) { +func (m *MutatingAdmissionPolicyList) Size() (n int) { if m == nil { return 0 } @@ -2628,7 +3183,7 @@ func (m *ValidatingAdmissionPolicyList) Size() (n int) { return n } -func (m *ValidatingAdmissionPolicySpec) Size() (n int) { +func (m *MutatingAdmissionPolicySpec) Size() (n int) { if m == nil { return 0 } @@ -2642,8 +3197,14 @@ func (m *ValidatingAdmissionPolicySpec) Size() (n int) { l = m.MatchConstraints.Size() n += 1 + l + sovGenerated(uint64(l)) } - if len(m.Validations) > 0 { - for _, e := range m.Validations { + if len(m.Variables) > 0 { + for _, e := range m.Variables { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Mutations) > 0 { + for _, e := range m.Mutations { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } @@ -2652,48 +3213,18 @@ func (m *ValidatingAdmissionPolicySpec) Size() (n int) { l = len(*m.FailurePolicy) n += 1 + l + sovGenerated(uint64(l)) } - if len(m.AuditAnnotations) > 0 { - for _, e := range m.AuditAnnotations { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } if len(m.MatchConditions) > 0 { for _, e := range m.MatchConditions { l = e.Size() n += 1 + l + sovGenerated(uint64(l)) } } - if len(m.Variables) > 0 { - for _, e := range m.Variables { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ValidatingAdmissionPolicyStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - if m.TypeChecking != nil { - l = m.TypeChecking.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } + l = len(m.ReinvocationPolicy) + n += 1 + l + sovGenerated(uint64(l)) return n } -func (m *ValidatingWebhook) Size() (n int) { +func (m *MutatingWebhook) Size() (n int) { if m == nil { return 0 } @@ -2734,6 +3265,10 @@ func (m *ValidatingWebhook) Size() (n int) { l = len(*m.MatchPolicy) n += 1 + l + sovGenerated(uint64(l)) } + if m.ReinvocationPolicy != nil { + l = len(*m.ReinvocationPolicy) + n += 1 + l + sovGenerated(uint64(l)) + } if m.ObjectSelector != nil { l = m.ObjectSelector.Size() n += 1 + l + sovGenerated(uint64(l)) @@ -2747,7 +3282,7 @@ func (m *ValidatingWebhook) Size() (n int) { return n } -func (m *ValidatingWebhookConfiguration) Size() (n int) { +func (m *MutatingWebhookConfiguration) Size() (n int) { if m == nil { return 0 } @@ -2764,7 +3299,7 @@ func (m *ValidatingWebhookConfiguration) Size() (n int) { return n } -func (m *ValidatingWebhookConfigurationList) Size() (n int) { +func (m *MutatingWebhookConfigurationList) Size() (n int) { if m == nil { return 0 } @@ -2781,476 +3316,1911 @@ func (m *ValidatingWebhookConfigurationList) Size() (n int) { return n } -func (m *Validation) Size() (n int) { +func (m *Mutation) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Expression) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) + l = len(m.PatchType) n += 1 + l + sovGenerated(uint64(l)) - if m.Reason != nil { - l = len(*m.Reason) + if m.ApplyConfiguration != nil { + l = m.ApplyConfiguration.Size() n += 1 + l + sovGenerated(uint64(l)) } - l = len(m.MessageExpression) + if m.JSONPatch != nil { + l = m.JSONPatch.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *NamedRuleWithOperations) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceNames) > 0 { + for _, s := range m.ResourceNames { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.RuleWithOperations.Size() n += 1 + l + sovGenerated(uint64(l)) return n } -func (m *Variable) Size() (n int) { +func (m *ParamKind) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Name) + l = len(m.APIVersion) n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Expression) + l = len(m.Kind) n += 1 + l + sovGenerated(uint64(l)) return n } -func (m *WebhookClientConfig) Size() (n int) { +func (m *ParamRef) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Service != nil { - l = m.Service.Size() + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + if m.Selector != nil { + l = m.Selector.Size() n += 1 + l + sovGenerated(uint64(l)) } - if m.CABundle != nil { - l = len(m.CABundle) + if m.ParameterNotFoundAction != nil { + l = len(*m.ParameterNotFoundAction) n += 1 + l + sovGenerated(uint64(l)) } - if m.URL != nil { - l = len(*m.URL) + return n +} + +func (m *ServiceReference) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if m.Path != nil { + l = len(*m.Path) n += 1 + l + sovGenerated(uint64(l)) } + if m.Port != nil { + n += 1 + sovGenerated(uint64(*m.Port)) + } return n } -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func (m *TypeChecking) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ExpressionWarnings) > 0 { + for _, e := range m.ExpressionWarnings { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n } -func (this *AuditAnnotation) String() string { - if this == nil { - return "nil" + +func (m *ValidatingAdmissionPolicy) Size() (n int) { + if m == nil { + return 0 } - s := strings.Join([]string{`&AuditAnnotation{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `ValueExpression:` + fmt.Sprintf("%v", this.ValueExpression) + `,`, - `}`, - }, "") - return s + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n } -func (this *ExpressionWarning) String() string { - if this == nil { - return "nil" + +func (m *ValidatingAdmissionPolicyBinding) Size() (n int) { + if m == nil { + return 0 } - s := strings.Join([]string{`&ExpressionWarning{`, - `FieldRef:` + fmt.Sprintf("%v", this.FieldRef) + `,`, - `Warning:` + fmt.Sprintf("%v", this.Warning) + `,`, - `}`, - }, "") - return s + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n } -func (this *MatchCondition) String() string { - if this == nil { - return "nil" + +func (m *ValidatingAdmissionPolicyBindingList) Size() (n int) { + if m == nil { + return 0 } - s := strings.Join([]string{`&MatchCondition{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, - `}`, - }, "") - return s + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n } -func (this *MatchResources) String() string { - if this == nil { - return "nil" + +func (m *ValidatingAdmissionPolicyBindingSpec) Size() (n int) { + if m == nil { + return 0 } - repeatedStringForResourceRules := "[]NamedRuleWithOperations{" - for _, f := range this.ResourceRules { - repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "NamedRuleWithOperations", "NamedRuleWithOperations", 1), `&`, ``, 1) + "," + var l int + _ = l + l = len(m.PolicyName) + n += 1 + l + sovGenerated(uint64(l)) + if m.ParamRef != nil { + l = m.ParamRef.Size() + n += 1 + l + sovGenerated(uint64(l)) } - repeatedStringForResourceRules += "}" - repeatedStringForExcludeResourceRules := "[]NamedRuleWithOperations{" - for _, f := range this.ExcludeResourceRules { - repeatedStringForExcludeResourceRules += strings.Replace(strings.Replace(f.String(), "NamedRuleWithOperations", "NamedRuleWithOperations", 1), `&`, ``, 1) + "," + if m.MatchResources != nil { + l = m.MatchResources.Size() + n += 1 + l + sovGenerated(uint64(l)) } - repeatedStringForExcludeResourceRules += "}" - s := strings.Join([]string{`&MatchResources{`, - `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `ResourceRules:` + repeatedStringForResourceRules + `,`, - `ExcludeResourceRules:` + repeatedStringForExcludeResourceRules + `,`, - `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, - `}`, - }, "") - return s + if len(m.ValidationActions) > 0 { + for _, s := range m.ValidationActions { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n } -func (this *MutatingWebhook) String() string { - if this == nil { - return "nil" + +func (m *ValidatingAdmissionPolicyList) Size() (n int) { + if m == nil { + return 0 } - repeatedStringForRules := "[]RuleWithOperations{" - for _, f := range this.Rules { - repeatedStringForRules += fmt.Sprintf("%v", f) + "," + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } } - repeatedStringForRules += "}" - repeatedStringForMatchConditions := "[]MatchCondition{" - for _, f := range this.MatchConditions { - repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForMatchConditions += "}" - s := strings.Join([]string{`&MutatingWebhook{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, - `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, - `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, - `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, - `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, - `ReinvocationPolicy:` + valueToStringGenerated(this.ReinvocationPolicy) + `,`, - `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `MatchConditions:` + repeatedStringForMatchConditions + `,`, - `}`, - }, "") - return s + return n } -func (this *MutatingWebhookConfiguration) String() string { - if this == nil { - return "nil" + +func (m *ValidatingAdmissionPolicySpec) Size() (n int) { + if m == nil { + return 0 } - repeatedStringForWebhooks := "[]MutatingWebhook{" - for _, f := range this.Webhooks { - repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "MutatingWebhook", "MutatingWebhook", 1), `&`, ``, 1) + "," + var l int + _ = l + if m.ParamKind != nil { + l = m.ParamKind.Size() + n += 1 + l + sovGenerated(uint64(l)) } - repeatedStringForWebhooks += "}" - s := strings.Join([]string{`&MutatingWebhookConfiguration{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Webhooks:` + repeatedStringForWebhooks + `,`, - `}`, - }, "") - return s -} -func (this *MutatingWebhookConfigurationList) String() string { - if this == nil { - return "nil" + if m.MatchConstraints != nil { + l = m.MatchConstraints.Size() + n += 1 + l + sovGenerated(uint64(l)) } - repeatedStringForItems := "[]MutatingWebhookConfiguration{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "MutatingWebhookConfiguration", "MutatingWebhookConfiguration", 1), `&`, ``, 1) + "," + if len(m.Validations) > 0 { + for _, e := range m.Validations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } } - repeatedStringForItems += "}" - s := strings.Join([]string{`&MutatingWebhookConfigurationList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *NamedRuleWithOperations) String() string { - if this == nil { - return "nil" + if m.FailurePolicy != nil { + l = len(*m.FailurePolicy) + n += 1 + l + sovGenerated(uint64(l)) } - s := strings.Join([]string{`&NamedRuleWithOperations{`, - `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, - `RuleWithOperations:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RuleWithOperations), "RuleWithOperations", "v11.RuleWithOperations", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ParamKind) String() string { - if this == nil { - return "nil" + if len(m.AuditAnnotations) > 0 { + for _, e := range m.AuditAnnotations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } } - s := strings.Join([]string{`&ParamKind{`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `}`, - }, "") - return s -} -func (this *ParamRef) String() string { - if this == nil { - return "nil" + if len(m.MatchConditions) > 0 { + for _, e := range m.MatchConditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } } - s := strings.Join([]string{`&ParamRef{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `ParameterNotFoundAction:` + valueToStringGenerated(this.ParameterNotFoundAction) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceReference) String() string { - if this == nil { - return "nil" + if len(m.Variables) > 0 { + for _, e := range m.Variables { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } } - s := strings.Join([]string{`&ServiceReference{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Path:` + valueToStringGenerated(this.Path) + `,`, - `Port:` + valueToStringGenerated(this.Port) + `,`, - `}`, - }, "") - return s + return n } -func (this *TypeChecking) String() string { - if this == nil { - return "nil" + +func (m *ValidatingAdmissionPolicyStatus) Size() (n int) { + if m == nil { + return 0 } - repeatedStringForExpressionWarnings := "[]ExpressionWarning{" - for _, f := range this.ExpressionWarnings { - repeatedStringForExpressionWarnings += strings.Replace(strings.Replace(f.String(), "ExpressionWarning", "ExpressionWarning", 1), `&`, ``, 1) + "," + var l int + _ = l + n += 1 + sovGenerated(uint64(m.ObservedGeneration)) + if m.TypeChecking != nil { + l = m.TypeChecking.Size() + n += 1 + l + sovGenerated(uint64(l)) } - repeatedStringForExpressionWarnings += "}" - s := strings.Join([]string{`&TypeChecking{`, - `ExpressionWarnings:` + repeatedStringForExpressionWarnings + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingAdmissionPolicy) String() string { - if this == nil { - return "nil" + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } } - s := strings.Join([]string{`&ValidatingAdmissionPolicy{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ValidatingAdmissionPolicySpec", "ValidatingAdmissionPolicySpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ValidatingAdmissionPolicyStatus", "ValidatingAdmissionPolicyStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s + return n } -func (this *ValidatingAdmissionPolicyBinding) String() string { - if this == nil { - return "nil" + +func (m *ValidatingWebhook) Size() (n int) { + if m == nil { + return 0 } - s := strings.Join([]string{`&ValidatingAdmissionPolicyBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ValidatingAdmissionPolicyBindingSpec", "ValidatingAdmissionPolicyBindingSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingAdmissionPolicyBindingList) String() string { - if this == nil { - return "nil" + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = m.ClientConfig.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } } - repeatedStringForItems := "[]ValidatingAdmissionPolicyBinding{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingAdmissionPolicyBinding", "ValidatingAdmissionPolicyBinding", 1), `&`, ``, 1) + "," + if m.FailurePolicy != nil { + l = len(*m.FailurePolicy) + n += 1 + l + sovGenerated(uint64(l)) } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ValidatingAdmissionPolicyBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingAdmissionPolicyBindingSpec) String() string { - if this == nil { - return "nil" + if m.NamespaceSelector != nil { + l = m.NamespaceSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) } - s := strings.Join([]string{`&ValidatingAdmissionPolicyBindingSpec{`, - `PolicyName:` + fmt.Sprintf("%v", this.PolicyName) + `,`, - `ParamRef:` + strings.Replace(this.ParamRef.String(), "ParamRef", "ParamRef", 1) + `,`, - `MatchResources:` + strings.Replace(this.MatchResources.String(), "MatchResources", "MatchResources", 1) + `,`, - `ValidationActions:` + fmt.Sprintf("%v", this.ValidationActions) + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingAdmissionPolicyList) String() string { - if this == nil { - return "nil" + if m.SideEffects != nil { + l = len(*m.SideEffects) + n += 1 + l + sovGenerated(uint64(l)) } - repeatedStringForItems := "[]ValidatingAdmissionPolicy{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingAdmissionPolicy", "ValidatingAdmissionPolicy", 1), `&`, ``, 1) + "," + if m.TimeoutSeconds != nil { + n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ValidatingAdmissionPolicyList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingAdmissionPolicySpec) String() string { - if this == nil { - return "nil" + if len(m.AdmissionReviewVersions) > 0 { + for _, s := range m.AdmissionReviewVersions { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } } - repeatedStringForValidations := "[]Validation{" - for _, f := range this.Validations { - repeatedStringForValidations += strings.Replace(strings.Replace(f.String(), "Validation", "Validation", 1), `&`, ``, 1) + "," + if m.MatchPolicy != nil { + l = len(*m.MatchPolicy) + n += 1 + l + sovGenerated(uint64(l)) } - repeatedStringForValidations += "}" - repeatedStringForAuditAnnotations := "[]AuditAnnotation{" - for _, f := range this.AuditAnnotations { - repeatedStringForAuditAnnotations += strings.Replace(strings.Replace(f.String(), "AuditAnnotation", "AuditAnnotation", 1), `&`, ``, 1) + "," + if m.ObjectSelector != nil { + l = m.ObjectSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) } - repeatedStringForAuditAnnotations += "}" - repeatedStringForMatchConditions := "[]MatchCondition{" - for _, f := range this.MatchConditions { - repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," + if len(m.MatchConditions) > 0 { + for _, e := range m.MatchConditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } } - repeatedStringForMatchConditions += "}" - repeatedStringForVariables := "[]Variable{" - for _, f := range this.Variables { - repeatedStringForVariables += strings.Replace(strings.Replace(f.String(), "Variable", "Variable", 1), `&`, ``, 1) + "," + return n +} + +func (m *ValidatingWebhookConfiguration) Size() (n int) { + if m == nil { + return 0 } - repeatedStringForVariables += "}" - s := strings.Join([]string{`&ValidatingAdmissionPolicySpec{`, - `ParamKind:` + strings.Replace(this.ParamKind.String(), "ParamKind", "ParamKind", 1) + `,`, - `MatchConstraints:` + strings.Replace(this.MatchConstraints.String(), "MatchResources", "MatchResources", 1) + `,`, - `Validations:` + repeatedStringForValidations + `,`, - `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, - `AuditAnnotations:` + repeatedStringForAuditAnnotations + `,`, - `MatchConditions:` + repeatedStringForMatchConditions + `,`, - `Variables:` + repeatedStringForVariables + `,`, + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Webhooks) > 0 { + for _, e := range m.Webhooks { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ValidatingWebhookConfigurationList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Validation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Expression) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + if m.Reason != nil { + l = len(*m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.MessageExpression) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Variable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Expression) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *WebhookClientConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Service != nil { + l = m.Service.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.CABundle != nil { + l = len(m.CABundle) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.URL != nil { + l = len(*m.URL) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func sovGenerated(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *ApplyConfiguration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ApplyConfiguration{`, + `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, `}`, }, "") return s } -func (this *ValidatingAdmissionPolicyStatus) String() string { +func (this *AuditAnnotation) String() string { if this == nil { return "nil" } - repeatedStringForConditions := "[]Condition{" - for _, f := range this.Conditions { - repeatedStringForConditions += fmt.Sprintf("%v", f) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&ValidatingAdmissionPolicyStatus{`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `TypeChecking:` + strings.Replace(this.TypeChecking.String(), "TypeChecking", "TypeChecking", 1) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, + s := strings.Join([]string{`&AuditAnnotation{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `ValueExpression:` + fmt.Sprintf("%v", this.ValueExpression) + `,`, `}`, }, "") return s } -func (this *ValidatingWebhook) String() string { +func (this *ExpressionWarning) String() string { if this == nil { return "nil" } - repeatedStringForRules := "[]RuleWithOperations{" - for _, f := range this.Rules { - repeatedStringForRules += fmt.Sprintf("%v", f) + "," + s := strings.Join([]string{`&ExpressionWarning{`, + `FieldRef:` + fmt.Sprintf("%v", this.FieldRef) + `,`, + `Warning:` + fmt.Sprintf("%v", this.Warning) + `,`, + `}`, + }, "") + return s +} +func (this *JSONPatch) String() string { + if this == nil { + return "nil" } - repeatedStringForRules += "}" - repeatedStringForMatchConditions := "[]MatchCondition{" - for _, f := range this.MatchConditions { - repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," + s := strings.Join([]string{`&JSONPatch{`, + `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, + `}`, + }, "") + return s +} +func (this *MatchCondition) String() string { + if this == nil { + return "nil" } - repeatedStringForMatchConditions += "}" - s := strings.Join([]string{`&ValidatingWebhook{`, + s := strings.Join([]string{`&MatchCondition{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, + `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, + `}`, + }, "") + return s +} +func (this *MatchResources) String() string { + if this == nil { + return "nil" + } + repeatedStringForResourceRules := "[]NamedRuleWithOperations{" + for _, f := range this.ResourceRules { + repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "NamedRuleWithOperations", "NamedRuleWithOperations", 1), `&`, ``, 1) + "," + } + repeatedStringForResourceRules += "}" + repeatedStringForExcludeResourceRules := "[]NamedRuleWithOperations{" + for _, f := range this.ExcludeResourceRules { + repeatedStringForExcludeResourceRules += strings.Replace(strings.Replace(f.String(), "NamedRuleWithOperations", "NamedRuleWithOperations", 1), `&`, ``, 1) + "," + } + repeatedStringForExcludeResourceRules += "}" + s := strings.Join([]string{`&MatchResources{`, `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, - `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, - `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, - `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `MatchConditions:` + repeatedStringForMatchConditions + `,`, + `ResourceRules:` + repeatedStringForResourceRules + `,`, + `ExcludeResourceRules:` + repeatedStringForExcludeResourceRules + `,`, + `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, `}`, }, "") return s } -func (this *ValidatingWebhookConfiguration) String() string { +func (this *MutatingAdmissionPolicy) String() string { if this == nil { return "nil" } - repeatedStringForWebhooks := "[]ValidatingWebhook{" - for _, f := range this.Webhooks { - repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "ValidatingWebhook", "ValidatingWebhook", 1), `&`, ``, 1) + "," + s := strings.Join([]string{`&MutatingAdmissionPolicy{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "MutatingAdmissionPolicySpec", "MutatingAdmissionPolicySpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *MutatingAdmissionPolicyBinding) String() string { + if this == nil { + return "nil" } - repeatedStringForWebhooks += "}" - s := strings.Join([]string{`&ValidatingWebhookConfiguration{`, + s := strings.Join([]string{`&MutatingAdmissionPolicyBinding{`, `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Webhooks:` + repeatedStringForWebhooks + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "MutatingAdmissionPolicyBindingSpec", "MutatingAdmissionPolicyBindingSpec", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } -func (this *ValidatingWebhookConfigurationList) String() string { +func (this *MutatingAdmissionPolicyBindingList) String() string { if this == nil { return "nil" } - repeatedStringForItems := "[]ValidatingWebhookConfiguration{" + repeatedStringForItems := "[]MutatingAdmissionPolicyBinding{" for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingWebhookConfiguration", "ValidatingWebhookConfiguration", 1), `&`, ``, 1) + "," + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "MutatingAdmissionPolicyBinding", "MutatingAdmissionPolicyBinding", 1), `&`, ``, 1) + "," } repeatedStringForItems += "}" - s := strings.Join([]string{`&ValidatingWebhookConfigurationList{`, + s := strings.Join([]string{`&MutatingAdmissionPolicyBindingList{`, `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + repeatedStringForItems + `,`, `}`, }, "") return s } -func (this *Validation) String() string { +func (this *MutatingAdmissionPolicyBindingSpec) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&Validation{`, - `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Reason:` + valueToStringGenerated(this.Reason) + `,`, - `MessageExpression:` + fmt.Sprintf("%v", this.MessageExpression) + `,`, + s := strings.Join([]string{`&MutatingAdmissionPolicyBindingSpec{`, + `PolicyName:` + fmt.Sprintf("%v", this.PolicyName) + `,`, + `ParamRef:` + strings.Replace(this.ParamRef.String(), "ParamRef", "ParamRef", 1) + `,`, + `MatchResources:` + strings.Replace(this.MatchResources.String(), "MatchResources", "MatchResources", 1) + `,`, `}`, }, "") return s } -func (this *Variable) String() string { +func (this *MutatingAdmissionPolicyList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]MutatingAdmissionPolicy{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "MutatingAdmissionPolicy", "MutatingAdmissionPolicy", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&MutatingAdmissionPolicyList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *MutatingAdmissionPolicySpec) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&Variable{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, - `}`, - }, "") - return s -} -func (this *WebhookClientConfig) String() string { - if this == nil { - return "nil" + repeatedStringForVariables := "[]Variable{" + for _, f := range this.Variables { + repeatedStringForVariables += strings.Replace(strings.Replace(f.String(), "Variable", "Variable", 1), `&`, ``, 1) + "," + } + repeatedStringForVariables += "}" + repeatedStringForMutations := "[]Mutation{" + for _, f := range this.Mutations { + repeatedStringForMutations += strings.Replace(strings.Replace(f.String(), "Mutation", "Mutation", 1), `&`, ``, 1) + "," + } + repeatedStringForMutations += "}" + repeatedStringForMatchConditions := "[]MatchCondition{" + for _, f := range this.MatchConditions { + repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," + } + repeatedStringForMatchConditions += "}" + s := strings.Join([]string{`&MutatingAdmissionPolicySpec{`, + `ParamKind:` + strings.Replace(this.ParamKind.String(), "ParamKind", "ParamKind", 1) + `,`, + `MatchConstraints:` + strings.Replace(this.MatchConstraints.String(), "MatchResources", "MatchResources", 1) + `,`, + `Variables:` + repeatedStringForVariables + `,`, + `Mutations:` + repeatedStringForMutations + `,`, + `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, + `MatchConditions:` + repeatedStringForMatchConditions + `,`, + `ReinvocationPolicy:` + fmt.Sprintf("%v", this.ReinvocationPolicy) + `,`, + `}`, + }, "") + return s +} +func (this *MutatingWebhook) String() string { + if this == nil { + return "nil" + } + repeatedStringForRules := "[]RuleWithOperations{" + for _, f := range this.Rules { + repeatedStringForRules += fmt.Sprintf("%v", f) + "," + } + repeatedStringForRules += "}" + repeatedStringForMatchConditions := "[]MatchCondition{" + for _, f := range this.MatchConditions { + repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," + } + repeatedStringForMatchConditions += "}" + s := strings.Join([]string{`&MutatingWebhook{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, + `Rules:` + repeatedStringForRules + `,`, + `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, + `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, + `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, + `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, + `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, + `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, + `ReinvocationPolicy:` + valueToStringGenerated(this.ReinvocationPolicy) + `,`, + `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, + `MatchConditions:` + repeatedStringForMatchConditions + `,`, + `}`, + }, "") + return s +} +func (this *MutatingWebhookConfiguration) String() string { + if this == nil { + return "nil" + } + repeatedStringForWebhooks := "[]MutatingWebhook{" + for _, f := range this.Webhooks { + repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "MutatingWebhook", "MutatingWebhook", 1), `&`, ``, 1) + "," + } + repeatedStringForWebhooks += "}" + s := strings.Join([]string{`&MutatingWebhookConfiguration{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Webhooks:` + repeatedStringForWebhooks + `,`, + `}`, + }, "") + return s +} +func (this *MutatingWebhookConfigurationList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]MutatingWebhookConfiguration{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "MutatingWebhookConfiguration", "MutatingWebhookConfiguration", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&MutatingWebhookConfigurationList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *Mutation) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Mutation{`, + `PatchType:` + fmt.Sprintf("%v", this.PatchType) + `,`, + `ApplyConfiguration:` + strings.Replace(this.ApplyConfiguration.String(), "ApplyConfiguration", "ApplyConfiguration", 1) + `,`, + `JSONPatch:` + strings.Replace(this.JSONPatch.String(), "JSONPatch", "JSONPatch", 1) + `,`, + `}`, + }, "") + return s +} +func (this *NamedRuleWithOperations) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NamedRuleWithOperations{`, + `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, + `RuleWithOperations:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RuleWithOperations), "RuleWithOperations", "v11.RuleWithOperations", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ParamKind) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ParamKind{`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `}`, + }, "") + return s +} +func (this *ParamRef) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ParamRef{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, + `ParameterNotFoundAction:` + valueToStringGenerated(this.ParameterNotFoundAction) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceReference{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Path:` + valueToStringGenerated(this.Path) + `,`, + `Port:` + valueToStringGenerated(this.Port) + `,`, + `}`, + }, "") + return s +} +func (this *TypeChecking) String() string { + if this == nil { + return "nil" + } + repeatedStringForExpressionWarnings := "[]ExpressionWarning{" + for _, f := range this.ExpressionWarnings { + repeatedStringForExpressionWarnings += strings.Replace(strings.Replace(f.String(), "ExpressionWarning", "ExpressionWarning", 1), `&`, ``, 1) + "," + } + repeatedStringForExpressionWarnings += "}" + s := strings.Join([]string{`&TypeChecking{`, + `ExpressionWarnings:` + repeatedStringForExpressionWarnings + `,`, + `}`, + }, "") + return s +} +func (this *ValidatingAdmissionPolicy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ValidatingAdmissionPolicy{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ValidatingAdmissionPolicySpec", "ValidatingAdmissionPolicySpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ValidatingAdmissionPolicyStatus", "ValidatingAdmissionPolicyStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ValidatingAdmissionPolicyBinding) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ValidatingAdmissionPolicyBinding{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ValidatingAdmissionPolicyBindingSpec", "ValidatingAdmissionPolicyBindingSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ValidatingAdmissionPolicyBindingList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]ValidatingAdmissionPolicyBinding{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingAdmissionPolicyBinding", "ValidatingAdmissionPolicyBinding", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&ValidatingAdmissionPolicyBindingList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *ValidatingAdmissionPolicyBindingSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ValidatingAdmissionPolicyBindingSpec{`, + `PolicyName:` + fmt.Sprintf("%v", this.PolicyName) + `,`, + `ParamRef:` + strings.Replace(this.ParamRef.String(), "ParamRef", "ParamRef", 1) + `,`, + `MatchResources:` + strings.Replace(this.MatchResources.String(), "MatchResources", "MatchResources", 1) + `,`, + `ValidationActions:` + fmt.Sprintf("%v", this.ValidationActions) + `,`, + `}`, + }, "") + return s +} +func (this *ValidatingAdmissionPolicyList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]ValidatingAdmissionPolicy{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingAdmissionPolicy", "ValidatingAdmissionPolicy", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&ValidatingAdmissionPolicyList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *ValidatingAdmissionPolicySpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForValidations := "[]Validation{" + for _, f := range this.Validations { + repeatedStringForValidations += strings.Replace(strings.Replace(f.String(), "Validation", "Validation", 1), `&`, ``, 1) + "," + } + repeatedStringForValidations += "}" + repeatedStringForAuditAnnotations := "[]AuditAnnotation{" + for _, f := range this.AuditAnnotations { + repeatedStringForAuditAnnotations += strings.Replace(strings.Replace(f.String(), "AuditAnnotation", "AuditAnnotation", 1), `&`, ``, 1) + "," + } + repeatedStringForAuditAnnotations += "}" + repeatedStringForMatchConditions := "[]MatchCondition{" + for _, f := range this.MatchConditions { + repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," + } + repeatedStringForMatchConditions += "}" + repeatedStringForVariables := "[]Variable{" + for _, f := range this.Variables { + repeatedStringForVariables += strings.Replace(strings.Replace(f.String(), "Variable", "Variable", 1), `&`, ``, 1) + "," + } + repeatedStringForVariables += "}" + s := strings.Join([]string{`&ValidatingAdmissionPolicySpec{`, + `ParamKind:` + strings.Replace(this.ParamKind.String(), "ParamKind", "ParamKind", 1) + `,`, + `MatchConstraints:` + strings.Replace(this.MatchConstraints.String(), "MatchResources", "MatchResources", 1) + `,`, + `Validations:` + repeatedStringForValidations + `,`, + `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, + `AuditAnnotations:` + repeatedStringForAuditAnnotations + `,`, + `MatchConditions:` + repeatedStringForMatchConditions + `,`, + `Variables:` + repeatedStringForVariables + `,`, + `}`, + }, "") + return s +} +func (this *ValidatingAdmissionPolicyStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForConditions := "[]Condition{" + for _, f := range this.Conditions { + repeatedStringForConditions += fmt.Sprintf("%v", f) + "," + } + repeatedStringForConditions += "}" + s := strings.Join([]string{`&ValidatingAdmissionPolicyStatus{`, + `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `TypeChecking:` + strings.Replace(this.TypeChecking.String(), "TypeChecking", "TypeChecking", 1) + `,`, + `Conditions:` + repeatedStringForConditions + `,`, + `}`, + }, "") + return s +} +func (this *ValidatingWebhook) String() string { + if this == nil { + return "nil" + } + repeatedStringForRules := "[]RuleWithOperations{" + for _, f := range this.Rules { + repeatedStringForRules += fmt.Sprintf("%v", f) + "," + } + repeatedStringForRules += "}" + repeatedStringForMatchConditions := "[]MatchCondition{" + for _, f := range this.MatchConditions { + repeatedStringForMatchConditions += strings.Replace(strings.Replace(f.String(), "MatchCondition", "MatchCondition", 1), `&`, ``, 1) + "," + } + repeatedStringForMatchConditions += "}" + s := strings.Join([]string{`&ValidatingWebhook{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, + `Rules:` + repeatedStringForRules + `,`, + `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, + `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, + `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, + `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, + `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, + `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, + `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, + `MatchConditions:` + repeatedStringForMatchConditions + `,`, + `}`, + }, "") + return s +} +func (this *ValidatingWebhookConfiguration) String() string { + if this == nil { + return "nil" + } + repeatedStringForWebhooks := "[]ValidatingWebhook{" + for _, f := range this.Webhooks { + repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "ValidatingWebhook", "ValidatingWebhook", 1), `&`, ``, 1) + "," + } + repeatedStringForWebhooks += "}" + s := strings.Join([]string{`&ValidatingWebhookConfiguration{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Webhooks:` + repeatedStringForWebhooks + `,`, + `}`, + }, "") + return s +} +func (this *ValidatingWebhookConfigurationList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]ValidatingWebhookConfiguration{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingWebhookConfiguration", "ValidatingWebhookConfiguration", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&ValidatingWebhookConfigurationList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *Validation) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Validation{`, + `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Reason:` + valueToStringGenerated(this.Reason) + `,`, + `MessageExpression:` + fmt.Sprintf("%v", this.MessageExpression) + `,`, + `}`, + }, "") + return s +} +func (this *Variable) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Variable{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, + `}`, + }, "") + return s +} +func (this *WebhookClientConfig) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WebhookClientConfig{`, + `Service:` + strings.Replace(this.Service.String(), "ServiceReference", "ServiceReference", 1) + `,`, + `CABundle:` + valueToStringGenerated(this.CABundle) + `,`, + `URL:` + valueToStringGenerated(this.URL) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *ApplyConfiguration) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplyConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplyConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Expression = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuditAnnotation) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AuditAnnotation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuditAnnotation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueExpression", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValueExpression = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExpressionWarning) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExpressionWarning: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExpressionWarning: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FieldRef", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FieldRef = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Warning", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Warning = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JSONPatch) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: JSONPatch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: JSONPatch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Expression = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MatchCondition) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MatchCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MatchCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Expression = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MatchResources) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MatchResources: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MatchResources: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NamespaceSelector == nil { + m.NamespaceSelector = &v1.LabelSelector{} + } + if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ObjectSelector == nil { + m.ObjectSelector = &v1.LabelSelector{} + } + if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceRules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceRules = append(m.ResourceRules, NamedRuleWithOperations{}) + if err := m.ResourceRules[len(m.ResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeResourceRules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExcludeResourceRules = append(m.ExcludeResourceRules, NamedRuleWithOperations{}) + if err := m.ExcludeResourceRules[len(m.ExcludeResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := MatchPolicyType(dAtA[iNdEx:postIndex]) + m.MatchPolicy = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MutatingAdmissionPolicy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MutatingAdmissionPolicy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MutatingAdmissionPolicy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF } - s := strings.Join([]string{`&WebhookClientConfig{`, - `Service:` + strings.Replace(this.Service.String(), "ServiceReference", "ServiceReference", 1) + `,`, - `CABundle:` + valueToStringGenerated(this.CABundle) + `,`, - `URL:` + valueToStringGenerated(this.URL) + `,`, - `}`, - }, "") - return s + return nil } -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" +func (m *MutatingAdmissionPolicyBinding) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MutatingAdmissionPolicyBinding: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MutatingAdmissionPolicyBinding: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil } -func (m *AuditAnnotation) Unmarshal(dAtA []byte) error { +func (m *MutatingAdmissionPolicyBindingList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3273,17 +5243,17 @@ func (m *AuditAnnotation) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AuditAnnotation: wiretype end group for non-group") + return fmt.Errorf("proto: MutatingAdmissionPolicyBindingList: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AuditAnnotation: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MutatingAdmissionPolicyBindingList: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -3293,29 +5263,30 @@ func (m *AuditAnnotation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = string(dAtA[iNdEx:postIndex]) + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueExpression", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -3325,23 +5296,25 @@ func (m *AuditAnnotation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.ValueExpression = string(dAtA[iNdEx:postIndex]) + m.Items = append(m.Items, MutatingAdmissionPolicyBinding{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -3364,7 +5337,7 @@ func (m *AuditAnnotation) Unmarshal(dAtA []byte) error { } return nil } -func (m *ExpressionWarning) Unmarshal(dAtA []byte) error { +func (m *MutatingAdmissionPolicyBindingSpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3387,15 +5360,15 @@ func (m *ExpressionWarning) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExpressionWarning: wiretype end group for non-group") + return fmt.Errorf("proto: MutatingAdmissionPolicyBindingSpec: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExpressionWarning: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MutatingAdmissionPolicyBindingSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldRef", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PolicyName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3423,13 +5396,49 @@ func (m *ExpressionWarning) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.FieldRef = string(dAtA[iNdEx:postIndex]) + m.PolicyName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParamRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ParamRef == nil { + m.ParamRef = &ParamRef{} + } + if err := m.ParamRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Warning", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MatchResources", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -3439,23 +5448,27 @@ func (m *ExpressionWarning) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.Warning = string(dAtA[iNdEx:postIndex]) + if m.MatchResources == nil { + m.MatchResources = &MatchResources{} + } + if err := m.MatchResources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -3478,7 +5491,7 @@ func (m *ExpressionWarning) Unmarshal(dAtA []byte) error { } return nil } -func (m *MatchCondition) Unmarshal(dAtA []byte) error { +func (m *MutatingAdmissionPolicyList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3501,17 +5514,17 @@ func (m *MatchCondition) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MatchCondition: wiretype end group for non-group") + return fmt.Errorf("proto: MutatingAdmissionPolicyList: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MatchCondition: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MutatingAdmissionPolicyList: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -3521,29 +5534,30 @@ func (m *MatchCondition) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -3553,23 +5567,25 @@ func (m *MatchCondition) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.Expression = string(dAtA[iNdEx:postIndex]) + m.Items = append(m.Items, MutatingAdmissionPolicy{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -3592,7 +5608,7 @@ func (m *MatchCondition) Unmarshal(dAtA []byte) error { } return nil } -func (m *MatchResources) Unmarshal(dAtA []byte) error { +func (m *MutatingAdmissionPolicySpec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3615,15 +5631,15 @@ func (m *MatchResources) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MatchResources: wiretype end group for non-group") + return fmt.Errorf("proto: MutatingAdmissionPolicySpec: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MatchResources: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MutatingAdmissionPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ParamKind", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3650,16 +5666,16 @@ func (m *MatchResources) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NamespaceSelector == nil { - m.NamespaceSelector = &v1.LabelSelector{} + if m.ParamKind == nil { + m.ParamKind = &ParamKind{} } - if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ParamKind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MatchConstraints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3686,16 +5702,16 @@ func (m *MatchResources) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ObjectSelector == nil { - m.ObjectSelector = &v1.LabelSelector{} + if m.MatchConstraints == nil { + m.MatchConstraints = &MatchResources{} } - if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.MatchConstraints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Variables", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3722,14 +5738,14 @@ func (m *MatchResources) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceRules = append(m.ResourceRules, NamedRuleWithOperations{}) - if err := m.ResourceRules[len(m.ResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Variables = append(m.Variables, Variable{}) + if err := m.Variables[len(m.Variables)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExcludeResourceRules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Mutations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3756,14 +5772,81 @@ func (m *MatchResources) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ExcludeResourceRules = append(m.ExcludeResourceRules, NamedRuleWithOperations{}) - if err := m.ExcludeResourceRules[len(m.ExcludeResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Mutations = append(m.Mutations, Mutation{}) + if err := m.Mutations[len(m.Mutations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := FailurePolicyType(dAtA[iNdEx:postIndex]) + m.FailurePolicy = &s + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchConditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MatchConditions = append(m.MatchConditions, MatchCondition{}) + if err := m.MatchConditions[len(m.MatchConditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReinvocationPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3791,8 +5874,7 @@ func (m *MatchResources) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - s := MatchPolicyType(dAtA[iNdEx:postIndex]) - m.MatchPolicy = &s + m.ReinvocationPolicy = k8s_io_api_admissionregistration_v1.ReinvocationPolicyType(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4160,7 +6242,7 @@ func (m *MutatingWebhook) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - s := ReinvocationPolicyType(dAtA[iNdEx:postIndex]) + s := k8s_io_api_admissionregistration_v1.ReinvocationPolicyType(dAtA[iNdEx:postIndex]) m.ReinvocationPolicy = &s iNdEx = postIndex case 11: @@ -4488,6 +6570,160 @@ func (m *MutatingWebhookConfigurationList) Unmarshal(dAtA []byte) error { } return nil } +func (m *Mutation) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Mutation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Mutation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PatchType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PatchType = PatchType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApplyConfiguration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApplyConfiguration == nil { + m.ApplyConfiguration = &ApplyConfiguration{} + } + if err := m.ApplyConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JSONPatch", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.JSONPatch == nil { + m.JSONPatch = &JSONPatch{} + } + if err := m.JSONPatch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *NamedRuleWithOperations) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto b/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto index 30f99f64d0..fb47a20056 100644 --- a/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto +++ b/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto @@ -29,6 +29,51 @@ import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/admissionregistration/v1beta1"; +// ApplyConfiguration defines the desired configuration values of an object. +message ApplyConfiguration { + // expression will be evaluated by CEL to create an apply configuration. + // ref: https://github.com/google/cel-spec + // + // Apply configurations are declared in CEL using object initialization. For example, this CEL expression + // returns an apply configuration to set a single field: + // + // Object{ + // spec: Object.spec{ + // serviceAccountName: "example" + // } + // } + // + // Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of + // values not included in the apply configuration. + // + // CEL expressions have access to the object types needed to create apply configurations: + // + // - 'Object' - CEL type of the resource object. + // - 'Object.' - CEL type of object field (such as 'Object.spec') + // - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') + // + // CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: + // + // - 'object' - The object from the incoming request. The value is null for DELETE requests. + // - 'oldObject' - The existing object. The value is null for CREATE requests. + // - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). + // - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. + // - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. + // - 'variables' - Map of composited variables, from its name to its lazily evaluated value. + // For example, a variable named 'foo' can be accessed as 'variables.foo'. + // - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + // - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + // request resource. + // + // The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the + // object. No other metadata properties are accessible. + // + // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. + // Required. + optional string expression = 1; +} + // AuditAnnotation describes how to produce an audit annotation for an API request. message AuditAnnotation { // key specifies the audit annotation key. The audit annotation keys of @@ -79,6 +124,75 @@ message ExpressionWarning { optional string warning = 3; } +// JSONPatch defines a JSON Patch. +message JSONPatch { + // expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). + // ref: https://github.com/google/cel-spec + // + // expression must return an array of JSONPatch values. + // + // For example, this CEL expression returns a JSON patch to conditionally modify a value: + // + // [ + // JSONPatch{op: "test", path: "/spec/example", value: "Red"}, + // JSONPatch{op: "replace", path: "/spec/example", value: "Green"} + // ] + // + // To define an object for the patch value, use Object types. For example: + // + // [ + // JSONPatch{ + // op: "add", + // path: "/spec/selector", + // value: Object.spec.selector{matchLabels: {"environment": "test"}} + // } + // ] + // + // To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example: + // + // [ + // JSONPatch{ + // op: "add", + // path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"), + // value: "test" + // }, + // ] + // + // CEL expressions have access to the types needed to create JSON patches and objects: + // + // - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. + // See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, + // integer, array, map or object. If set, the 'path' and 'from' fields must be set to a + // [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL + // function may be used to escape path keys containing '/' and '~'. + // - 'Object' - CEL type of the resource object. + // - 'Object.' - CEL type of object field (such as 'Object.spec') + // - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') + // + // CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: + // + // - 'object' - The object from the incoming request. The value is null for DELETE requests. + // - 'oldObject' - The existing object. The value is null for CREATE requests. + // - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). + // - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. + // - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. + // - 'variables' - Map of composited variables, from its name to its lazily evaluated value. + // For example, a variable named 'foo' can be accessed as 'variables.foo'. + // - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + // - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + // request resource. + // + // CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) + // as well as: + // + // - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). + // + // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. + // Required. + optional string expression = 1; +} + // MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. message MatchCondition { // Name is an identifier for this match condition, used for strategic merging of MatchConditions, @@ -203,6 +317,173 @@ message MatchResources { optional string matchPolicy = 7; } +// MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. +message MutatingAdmissionPolicy { + // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + // Specification of the desired behavior of the MutatingAdmissionPolicy. + optional MutatingAdmissionPolicySpec spec = 2; +} + +// MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. +// MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators +// configure policies for clusters. +// +// For a given admission request, each binding will cause its policy to be +// evaluated N times, where N is 1 for policies/bindings that don't use +// params, otherwise N is the number of parameters selected by the binding. +// Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). +// +// Adding/removing policies, bindings, or params can not affect whether a +// given (policy, binding, param) combination is within its own CEL budget. +message MutatingAdmissionPolicyBinding { + // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + // Specification of the desired behavior of the MutatingAdmissionPolicyBinding. + optional MutatingAdmissionPolicyBindingSpec spec = 2; +} + +// MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. +message MutatingAdmissionPolicyBindingList { + // Standard list metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + // List of PolicyBinding. + repeated MutatingAdmissionPolicyBinding items = 2; +} + +// MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. +message MutatingAdmissionPolicyBindingSpec { + // policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. + // If the referenced resource does not exist, this binding is considered invalid and will be ignored + // Required. + optional string policyName = 1; + + // paramRef specifies the parameter resource used to configure the admission control policy. + // It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. + // If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. + // If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. + // +optional + optional ParamRef paramRef = 2; + + // matchResources limits what resources match this binding and may be mutated by it. + // Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and + // matchConditions before the resource may be mutated. + // When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints + // and matchConditions must match for the resource to be mutated. + // Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. + // Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. + // The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. + // '*' matches CREATE, UPDATE and CONNECT. + // +optional + optional MatchResources matchResources = 3; +} + +// MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. +message MutatingAdmissionPolicyList { + // Standard list metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + // List of ValidatingAdmissionPolicy. + repeated MutatingAdmissionPolicy items = 2; +} + +// MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. +message MutatingAdmissionPolicySpec { + // paramKind specifies the kind of resources used to parameterize this policy. + // If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. + // If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. + // If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null. + // +optional + optional ParamKind paramKind = 1; + + // matchConstraints specifies what resources this policy is designed to validate. + // The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints. + // However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API + // MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. + // The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. + // '*' matches CREATE, UPDATE and CONNECT. + // Required. + optional MatchResources matchConstraints = 2; + + // variables contain definitions of variables that can be used in composition of other expressions. + // Each variable is defined as a named CEL expression. + // The variables defined here will be available under `variables` in other expressions of the policy + // except matchConditions because matchConditions are evaluated before the rest of the policy. + // + // The expression of a variable can refer to other variables defined earlier in the list but not those after. + // Thus, variables must be sorted by the order of first appearance and acyclic. + // +listType=atomic + // +optional + repeated Variable variables = 3; + + // mutations contain operations to perform on matching objects. + // mutations may not be empty; a minimum of one mutation is required. + // mutations are evaluated in order, and are reinvoked according to + // the reinvocationPolicy. + // The mutations of a policy are invoked for each binding of this policy + // and reinvocation of mutations occurs on a per binding basis. + // + // +listType=atomic + // +optional + repeated Mutation mutations = 4; + + // failurePolicy defines how to handle failures for the admission policy. Failures can + // occur from CEL expression parse errors, type check errors, runtime errors and invalid + // or mis-configured policy definitions or bindings. + // + // A policy is invalid if paramKind refers to a non-existent Kind. + // A binding is invalid if paramRef.name refers to a non-existent resource. + // + // failurePolicy does not define how validations that evaluate to false are handled. + // + // Allowed values are Ignore or Fail. Defaults to Fail. + // +optional + optional string failurePolicy = 5; + + // matchConditions is a list of conditions that must be met for a request to be validated. + // Match conditions filter requests that have already been matched by the matchConstraints. + // An empty list of matchConditions matches all requests. + // There are a maximum of 64 match conditions allowed. + // + // If a parameter object is provided, it can be accessed via the `params` handle in the same + // manner as validation expressions. + // + // The exact matching logic is (in order): + // 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. + // 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. + // 3. If any matchCondition evaluates to an error (but none are FALSE): + // - If failurePolicy=Fail, reject the request + // - If failurePolicy=Ignore, the policy is skipped + // + // +patchMergeKey=name + // +patchStrategy=merge + // +listType=map + // +listMapKey=name + // +optional + repeated MatchCondition matchConditions = 6; + + // reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding + // as part of a single admission evaluation. + // Allowed values are "Never" and "IfNeeded". + // + // Never: These mutations will not be called more than once per binding in a single admission evaluation. + // + // IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of + // order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only + // reinvoked when mutations change the object after this mutation is invoked. + // Required. + optional string reinvocationPolicy = 7; +} + // MutatingWebhook describes an admission webhook and the resources and operations it applies to. message MutatingWebhook { // The name of the admission webhook. @@ -401,6 +682,26 @@ message MutatingWebhookConfigurationList { repeated MutatingWebhookConfiguration items = 2; } +// Mutation specifies the CEL expression which is used to apply the Mutation. +message Mutation { + // patchType indicates the patch strategy used. + // Allowed values are "ApplyConfiguration" and "JSONPatch". + // Required. + // + // +unionDiscriminator + optional string patchType = 2; + + // applyConfiguration defines the desired configuration values of an object. + // The configuration is applied to the admission object using + // [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). + // A CEL expression is used to create apply configuration. + optional ApplyConfiguration applyConfiguration = 3; + + // jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. + // A CEL expression is used to create the JSON patch. + optional JSONPatch jsonPatch = 4; +} + // NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. // +structType=atomic message NamedRuleWithOperations { diff --git a/vendor/k8s.io/api/admissionregistration/v1beta1/register.go b/vendor/k8s.io/api/admissionregistration/v1beta1/register.go index 363233a2f9..be64c4a5fa 100644 --- a/vendor/k8s.io/api/admissionregistration/v1beta1/register.go +++ b/vendor/k8s.io/api/admissionregistration/v1beta1/register.go @@ -54,6 +54,10 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ValidatingAdmissionPolicyList{}, &ValidatingAdmissionPolicyBinding{}, &ValidatingAdmissionPolicyBindingList{}, + &MutatingAdmissionPolicy{}, + &MutatingAdmissionPolicyList{}, + &MutatingAdmissionPolicyBinding{}, + &MutatingAdmissionPolicyBindingList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil diff --git a/vendor/k8s.io/api/admissionregistration/v1beta1/types.go b/vendor/k8s.io/api/admissionregistration/v1beta1/types.go index 0f59031239..cffdda82c9 100644 --- a/vendor/k8s.io/api/admissionregistration/v1beta1/types.go +++ b/vendor/k8s.io/api/admissionregistration/v1beta1/types.go @@ -1073,7 +1073,7 @@ type MutatingWebhook struct { } // ReinvocationPolicyType specifies what type of policy the admission hook uses. -type ReinvocationPolicyType string +type ReinvocationPolicyType = v1.ReinvocationPolicyType const ( // NeverReinvocationPolicy indicates that the webhook must not be called more than once in a @@ -1197,3 +1197,332 @@ type MatchCondition struct { // Required. Expression string `json:"expression" protobuf:"bytes,2,opt,name=expression"` } + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:prerelease-lifecycle-gen:introduced=1.34 + +// MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. +type MutatingAdmissionPolicy struct { + metav1.TypeMeta `json:",inline"` + // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // Specification of the desired behavior of the MutatingAdmissionPolicy. + Spec MutatingAdmissionPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:prerelease-lifecycle-gen:introduced=1.34 + +// MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. +type MutatingAdmissionPolicyList struct { + metav1.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + // +optional + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // List of ValidatingAdmissionPolicy. + Items []MutatingAdmissionPolicy `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. +type MutatingAdmissionPolicySpec struct { + // paramKind specifies the kind of resources used to parameterize this policy. + // If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. + // If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. + // If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null. + // +optional + ParamKind *ParamKind `json:"paramKind,omitempty" protobuf:"bytes,1,rep,name=paramKind"` + + // matchConstraints specifies what resources this policy is designed to validate. + // The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints. + // However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API + // MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. + // The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. + // '*' matches CREATE, UPDATE and CONNECT. + // Required. + MatchConstraints *MatchResources `json:"matchConstraints,omitempty" protobuf:"bytes,2,rep,name=matchConstraints"` + + // variables contain definitions of variables that can be used in composition of other expressions. + // Each variable is defined as a named CEL expression. + // The variables defined here will be available under `variables` in other expressions of the policy + // except matchConditions because matchConditions are evaluated before the rest of the policy. + // + // The expression of a variable can refer to other variables defined earlier in the list but not those after. + // Thus, variables must be sorted by the order of first appearance and acyclic. + // +listType=atomic + // +optional + Variables []Variable `json:"variables,omitempty" protobuf:"bytes,3,rep,name=variables"` + + // mutations contain operations to perform on matching objects. + // mutations may not be empty; a minimum of one mutation is required. + // mutations are evaluated in order, and are reinvoked according to + // the reinvocationPolicy. + // The mutations of a policy are invoked for each binding of this policy + // and reinvocation of mutations occurs on a per binding basis. + // + // +listType=atomic + // +optional + Mutations []Mutation `json:"mutations,omitempty" protobuf:"bytes,4,rep,name=mutations"` + + // failurePolicy defines how to handle failures for the admission policy. Failures can + // occur from CEL expression parse errors, type check errors, runtime errors and invalid + // or mis-configured policy definitions or bindings. + // + // A policy is invalid if paramKind refers to a non-existent Kind. + // A binding is invalid if paramRef.name refers to a non-existent resource. + // + // failurePolicy does not define how validations that evaluate to false are handled. + // + // Allowed values are Ignore or Fail. Defaults to Fail. + // +optional + FailurePolicy *FailurePolicyType `json:"failurePolicy,omitempty" protobuf:"bytes,5,opt,name=failurePolicy,casttype=FailurePolicyType"` + + // matchConditions is a list of conditions that must be met for a request to be validated. + // Match conditions filter requests that have already been matched by the matchConstraints. + // An empty list of matchConditions matches all requests. + // There are a maximum of 64 match conditions allowed. + // + // If a parameter object is provided, it can be accessed via the `params` handle in the same + // manner as validation expressions. + // + // The exact matching logic is (in order): + // 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. + // 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. + // 3. If any matchCondition evaluates to an error (but none are FALSE): + // - If failurePolicy=Fail, reject the request + // - If failurePolicy=Ignore, the policy is skipped + // + // +patchMergeKey=name + // +patchStrategy=merge + // +listType=map + // +listMapKey=name + // +optional + MatchConditions []MatchCondition `json:"matchConditions,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,6,rep,name=matchConditions"` + + // reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding + // as part of a single admission evaluation. + // Allowed values are "Never" and "IfNeeded". + // + // Never: These mutations will not be called more than once per binding in a single admission evaluation. + // + // IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of + // order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only + // reinvoked when mutations change the object after this mutation is invoked. + // Required. + ReinvocationPolicy ReinvocationPolicyType `json:"reinvocationPolicy,omitempty" protobuf:"bytes,7,opt,name=reinvocationPolicy,casttype=ReinvocationPolicyType"` +} + +// Mutation specifies the CEL expression which is used to apply the Mutation. +type Mutation struct { + // patchType indicates the patch strategy used. + // Allowed values are "ApplyConfiguration" and "JSONPatch". + // Required. + // + // +unionDiscriminator + PatchType PatchType `json:"patchType" protobuf:"bytes,2,opt,name=patchType,casttype=PatchType"` + + // applyConfiguration defines the desired configuration values of an object. + // The configuration is applied to the admission object using + // [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). + // A CEL expression is used to create apply configuration. + ApplyConfiguration *ApplyConfiguration `json:"applyConfiguration,omitempty" protobuf:"bytes,3,opt,name=applyConfiguration"` + + // jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. + // A CEL expression is used to create the JSON patch. + JSONPatch *JSONPatch `json:"jsonPatch,omitempty" protobuf:"bytes,4,opt,name=jsonPatch"` +} + +// PatchType specifies the type of patch operation for a mutation. +// +enum +type PatchType string + +const ( + // ApplyConfiguration indicates that the mutation is using apply configuration to mutate the object. + PatchTypeApplyConfiguration PatchType = "ApplyConfiguration" + // JSONPatch indicates that the object is mutated through JSON Patch. + PatchTypeJSONPatch PatchType = "JSONPatch" +) + +// ApplyConfiguration defines the desired configuration values of an object. +type ApplyConfiguration struct { + // expression will be evaluated by CEL to create an apply configuration. + // ref: https://github.com/google/cel-spec + // + // Apply configurations are declared in CEL using object initialization. For example, this CEL expression + // returns an apply configuration to set a single field: + // + // Object{ + // spec: Object.spec{ + // serviceAccountName: "example" + // } + // } + // + // Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of + // values not included in the apply configuration. + // + // CEL expressions have access to the object types needed to create apply configurations: + // + // - 'Object' - CEL type of the resource object. + // - 'Object.' - CEL type of object field (such as 'Object.spec') + // - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') + // + // CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: + // + // - 'object' - The object from the incoming request. The value is null for DELETE requests. + // - 'oldObject' - The existing object. The value is null for CREATE requests. + // - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). + // - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. + // - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. + // - 'variables' - Map of composited variables, from its name to its lazily evaluated value. + // For example, a variable named 'foo' can be accessed as 'variables.foo'. + // - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + // - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + // request resource. + // + // The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the + // object. No other metadata properties are accessible. + // + // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. + // Required. + Expression string `json:"expression,omitempty" protobuf:"bytes,1,opt,name=expression"` +} + +// JSONPatch defines a JSON Patch. +type JSONPatch struct { + // expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). + // ref: https://github.com/google/cel-spec + // + // expression must return an array of JSONPatch values. + // + // For example, this CEL expression returns a JSON patch to conditionally modify a value: + // + // [ + // JSONPatch{op: "test", path: "/spec/example", value: "Red"}, + // JSONPatch{op: "replace", path: "/spec/example", value: "Green"} + // ] + // + // To define an object for the patch value, use Object types. For example: + // + // [ + // JSONPatch{ + // op: "add", + // path: "/spec/selector", + // value: Object.spec.selector{matchLabels: {"environment": "test"}} + // } + // ] + // + // To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example: + // + // [ + // JSONPatch{ + // op: "add", + // path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"), + // value: "test" + // }, + // ] + // + // CEL expressions have access to the types needed to create JSON patches and objects: + // + // - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. + // See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, + // integer, array, map or object. If set, the 'path' and 'from' fields must be set to a + // [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL + // function may be used to escape path keys containing '/' and '~'. + // - 'Object' - CEL type of the resource object. + // - 'Object.' - CEL type of object field (such as 'Object.spec') + // - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') + // + // CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: + // + // - 'object' - The object from the incoming request. The value is null for DELETE requests. + // - 'oldObject' - The existing object. The value is null for CREATE requests. + // - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). + // - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. + // - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. + // - 'variables' - Map of composited variables, from its name to its lazily evaluated value. + // For example, a variable named 'foo' can be accessed as 'variables.foo'. + // - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + // - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + // request resource. + // + // CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) + // as well as: + // + // - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). + // + // + // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. + // Required. + Expression string `json:"expression,omitempty" protobuf:"bytes,1,opt,name=expression"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:prerelease-lifecycle-gen:introduced=1.34 + +// MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. +// MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators +// configure policies for clusters. +// +// For a given admission request, each binding will cause its policy to be +// evaluated N times, where N is 1 for policies/bindings that don't use +// params, otherwise N is the number of parameters selected by the binding. +// Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). +// +// Adding/removing policies, bindings, or params can not affect whether a +// given (policy, binding, param) combination is within its own CEL budget. +type MutatingAdmissionPolicyBinding struct { + metav1.TypeMeta `json:",inline"` + // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // Specification of the desired behavior of the MutatingAdmissionPolicyBinding. + Spec MutatingAdmissionPolicyBindingSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:prerelease-lifecycle-gen:introduced=1.34 + +// MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. +type MutatingAdmissionPolicyBindingList struct { + metav1.TypeMeta `json:",inline"` + // Standard list metadata. + // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + // +optional + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // List of PolicyBinding. + Items []MutatingAdmissionPolicyBinding `json:"items" protobuf:"bytes,2,rep,name=items"` +} + +// MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. +type MutatingAdmissionPolicyBindingSpec struct { + // policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. + // If the referenced resource does not exist, this binding is considered invalid and will be ignored + // Required. + PolicyName string `json:"policyName,omitempty" protobuf:"bytes,1,rep,name=policyName"` + + // paramRef specifies the parameter resource used to configure the admission control policy. + // It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. + // If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. + // If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. + // +optional + ParamRef *ParamRef `json:"paramRef,omitempty" protobuf:"bytes,2,rep,name=paramRef"` + + // matchResources limits what resources match this binding and may be mutated by it. + // Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and + // matchConditions before the resource may be mutated. + // When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints + // and matchConditions must match for the resource to be mutated. + // Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. + // Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. + // The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. + // '*' matches CREATE, UPDATE and CONNECT. + // +optional + MatchResources *MatchResources `json:"matchResources,omitempty" protobuf:"bytes,3,rep,name=matchResources"` +} diff --git a/vendor/k8s.io/api/admissionregistration/v1beta1/types_swagger_doc_generated.go b/vendor/k8s.io/api/admissionregistration/v1beta1/types_swagger_doc_generated.go index cc1509b539..1a97c94729 100644 --- a/vendor/k8s.io/api/admissionregistration/v1beta1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/api/admissionregistration/v1beta1/types_swagger_doc_generated.go @@ -27,6 +27,15 @@ package v1beta1 // Those methods can be generated by using hack/update-codegen.sh // AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. +var map_ApplyConfiguration = map[string]string{ + "": "ApplyConfiguration defines the desired configuration values of an object.", + "expression": "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec\n\nApply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:\n\n\tObject{\n\t spec: Object.spec{\n\t serviceAccountName: \"example\"\n\t }\n\t}\n\nApply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.\n\nCEL expressions have access to the object types needed to create apply configurations:\n\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", +} + +func (ApplyConfiguration) SwaggerDoc() map[string]string { + return map_ApplyConfiguration +} + var map_AuditAnnotation = map[string]string{ "": "AuditAnnotation describes how to produce an audit annotation for an API request.", "key": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", @@ -47,6 +56,15 @@ func (ExpressionWarning) SwaggerDoc() map[string]string { return map_ExpressionWarning } +var map_JSONPatch = map[string]string{ + "": "JSONPatch defines a JSON Patch.", + "expression": "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec\n\nexpression must return an array of JSONPatch values.\n\nFor example, this CEL expression returns a JSON patch to conditionally modify a value:\n\n\t [\n\t JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"},\n\t JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"}\n\t ]\n\nTo define an object for the patch value, use Object types. For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/spec/selector\",\n\t value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}}\n\t }\n\t ]\n\nTo use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"),\n\t value: \"test\"\n\t },\n\t ]\n\nCEL expressions have access to the types needed to create JSON patches and objects:\n\n- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.\n See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,\n integer, array, map or object. If set, the 'path' and 'from' fields must be set to a\n [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL\n function may be used to escape path keys containing '/' and '~'.\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nCEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:\n\n- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", +} + +func (JSONPatch) SwaggerDoc() map[string]string { + return map_JSONPatch +} + var map_MatchCondition = map[string]string{ "": "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", "name": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", @@ -70,6 +88,72 @@ func (MatchResources) SwaggerDoc() map[string]string { return map_MatchResources } +var map_MutatingAdmissionPolicy = map[string]string{ + "": "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.", + "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", + "spec": "Specification of the desired behavior of the MutatingAdmissionPolicy.", +} + +func (MutatingAdmissionPolicy) SwaggerDoc() map[string]string { + return map_MutatingAdmissionPolicy +} + +var map_MutatingAdmissionPolicyBinding = map[string]string{ + "": "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).\n\nAdding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", + "spec": "Specification of the desired behavior of the MutatingAdmissionPolicyBinding.", +} + +func (MutatingAdmissionPolicyBinding) SwaggerDoc() map[string]string { + return map_MutatingAdmissionPolicyBinding +} + +var map_MutatingAdmissionPolicyBindingList = map[string]string{ + "": "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.", + "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "items": "List of PolicyBinding.", +} + +func (MutatingAdmissionPolicyBindingList) SwaggerDoc() map[string]string { + return map_MutatingAdmissionPolicyBindingList +} + +var map_MutatingAdmissionPolicyBindingSpec = map[string]string{ + "": "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.", + "policyName": "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "paramRef": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.", + "matchResources": "matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT.", +} + +func (MutatingAdmissionPolicyBindingSpec) SwaggerDoc() map[string]string { + return map_MutatingAdmissionPolicyBindingSpec +} + +var map_MutatingAdmissionPolicyList = map[string]string{ + "": "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.", + "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "items": "List of ValidatingAdmissionPolicy.", +} + +func (MutatingAdmissionPolicyList) SwaggerDoc() map[string]string { + return map_MutatingAdmissionPolicyList +} + +var map_MutatingAdmissionPolicySpec = map[string]string{ + "": "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.", + "paramKind": "paramKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.", + "matchConstraints": "matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required.", + "variables": "variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic.", + "mutations": "mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.", + "failurePolicy": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "matchConditions": "matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "reinvocationPolicy": "reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: These mutations will not be called more than once per binding in a single admission evaluation.\n\nIfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.", +} + +func (MutatingAdmissionPolicySpec) SwaggerDoc() map[string]string { + return map_MutatingAdmissionPolicySpec +} + var map_MutatingWebhook = map[string]string{ "": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", "name": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", @@ -110,6 +194,17 @@ func (MutatingWebhookConfigurationList) SwaggerDoc() map[string]string { return map_MutatingWebhookConfigurationList } +var map_Mutation = map[string]string{ + "": "Mutation specifies the CEL expression which is used to apply the Mutation.", + "patchType": "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.", + "applyConfiguration": "applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.", + "jsonPatch": "jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.", +} + +func (Mutation) SwaggerDoc() map[string]string { + return map_Mutation +} + var map_NamedRuleWithOperations = map[string]string{ "": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", "resourceNames": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", diff --git a/vendor/k8s.io/api/admissionregistration/v1beta1/zz_generated.deepcopy.go b/vendor/k8s.io/api/admissionregistration/v1beta1/zz_generated.deepcopy.go index 4c10b1d113..3749a3d141 100644 --- a/vendor/k8s.io/api/admissionregistration/v1beta1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/api/admissionregistration/v1beta1/zz_generated.deepcopy.go @@ -27,6 +27,22 @@ import ( runtime "k8s.io/apimachinery/pkg/runtime" ) +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ApplyConfiguration) DeepCopyInto(out *ApplyConfiguration) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplyConfiguration. +func (in *ApplyConfiguration) DeepCopy() *ApplyConfiguration { + if in == nil { + return nil + } + out := new(ApplyConfiguration) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuditAnnotation) DeepCopyInto(out *AuditAnnotation) { *out = *in @@ -59,6 +75,22 @@ func (in *ExpressionWarning) DeepCopy() *ExpressionWarning { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *JSONPatch) DeepCopyInto(out *JSONPatch) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JSONPatch. +func (in *JSONPatch) DeepCopy() *JSONPatch { + if in == nil { + return nil + } + out := new(JSONPatch) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MatchCondition) DeepCopyInto(out *MatchCondition) { *out = *in @@ -120,6 +152,200 @@ func (in *MatchResources) DeepCopy() *MatchResources { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MutatingAdmissionPolicy) DeepCopyInto(out *MutatingAdmissionPolicy) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingAdmissionPolicy. +func (in *MutatingAdmissionPolicy) DeepCopy() *MutatingAdmissionPolicy { + if in == nil { + return nil + } + out := new(MutatingAdmissionPolicy) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MutatingAdmissionPolicy) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MutatingAdmissionPolicyBinding) DeepCopyInto(out *MutatingAdmissionPolicyBinding) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingAdmissionPolicyBinding. +func (in *MutatingAdmissionPolicyBinding) DeepCopy() *MutatingAdmissionPolicyBinding { + if in == nil { + return nil + } + out := new(MutatingAdmissionPolicyBinding) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MutatingAdmissionPolicyBinding) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MutatingAdmissionPolicyBindingList) DeepCopyInto(out *MutatingAdmissionPolicyBindingList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]MutatingAdmissionPolicyBinding, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingAdmissionPolicyBindingList. +func (in *MutatingAdmissionPolicyBindingList) DeepCopy() *MutatingAdmissionPolicyBindingList { + if in == nil { + return nil + } + out := new(MutatingAdmissionPolicyBindingList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MutatingAdmissionPolicyBindingList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MutatingAdmissionPolicyBindingSpec) DeepCopyInto(out *MutatingAdmissionPolicyBindingSpec) { + *out = *in + if in.ParamRef != nil { + in, out := &in.ParamRef, &out.ParamRef + *out = new(ParamRef) + (*in).DeepCopyInto(*out) + } + if in.MatchResources != nil { + in, out := &in.MatchResources, &out.MatchResources + *out = new(MatchResources) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingAdmissionPolicyBindingSpec. +func (in *MutatingAdmissionPolicyBindingSpec) DeepCopy() *MutatingAdmissionPolicyBindingSpec { + if in == nil { + return nil + } + out := new(MutatingAdmissionPolicyBindingSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MutatingAdmissionPolicyList) DeepCopyInto(out *MutatingAdmissionPolicyList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]MutatingAdmissionPolicy, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingAdmissionPolicyList. +func (in *MutatingAdmissionPolicyList) DeepCopy() *MutatingAdmissionPolicyList { + if in == nil { + return nil + } + out := new(MutatingAdmissionPolicyList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MutatingAdmissionPolicyList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MutatingAdmissionPolicySpec) DeepCopyInto(out *MutatingAdmissionPolicySpec) { + *out = *in + if in.ParamKind != nil { + in, out := &in.ParamKind, &out.ParamKind + *out = new(ParamKind) + **out = **in + } + if in.MatchConstraints != nil { + in, out := &in.MatchConstraints, &out.MatchConstraints + *out = new(MatchResources) + (*in).DeepCopyInto(*out) + } + if in.Variables != nil { + in, out := &in.Variables, &out.Variables + *out = make([]Variable, len(*in)) + copy(*out, *in) + } + if in.Mutations != nil { + in, out := &in.Mutations, &out.Mutations + *out = make([]Mutation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.FailurePolicy != nil { + in, out := &in.FailurePolicy, &out.FailurePolicy + *out = new(FailurePolicyType) + **out = **in + } + if in.MatchConditions != nil { + in, out := &in.MatchConditions, &out.MatchConditions + *out = make([]MatchCondition, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingAdmissionPolicySpec. +func (in *MutatingAdmissionPolicySpec) DeepCopy() *MutatingAdmissionPolicySpec { + if in == nil { + return nil + } + out := new(MutatingAdmissionPolicySpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MutatingWebhook) DeepCopyInto(out *MutatingWebhook) { *out = *in @@ -168,7 +394,7 @@ func (in *MutatingWebhook) DeepCopyInto(out *MutatingWebhook) { } if in.ReinvocationPolicy != nil { in, out := &in.ReinvocationPolicy, &out.ReinvocationPolicy - *out = new(ReinvocationPolicyType) + *out = new(admissionregistrationv1.ReinvocationPolicyType) **out = **in } if in.MatchConditions != nil { @@ -255,6 +481,32 @@ func (in *MutatingWebhookConfigurationList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Mutation) DeepCopyInto(out *Mutation) { + *out = *in + if in.ApplyConfiguration != nil { + in, out := &in.ApplyConfiguration, &out.ApplyConfiguration + *out = new(ApplyConfiguration) + **out = **in + } + if in.JSONPatch != nil { + in, out := &in.JSONPatch, &out.JSONPatch + *out = new(JSONPatch) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mutation. +func (in *Mutation) DeepCopy() *Mutation { + if in == nil { + return nil + } + out := new(Mutation) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NamedRuleWithOperations) DeepCopyInto(out *NamedRuleWithOperations) { *out = *in diff --git a/vendor/k8s.io/api/admissionregistration/v1beta1/zz_generated.prerelease-lifecycle.go b/vendor/k8s.io/api/admissionregistration/v1beta1/zz_generated.prerelease-lifecycle.go index c1be5122a8..4fc0596b34 100644 --- a/vendor/k8s.io/api/admissionregistration/v1beta1/zz_generated.prerelease-lifecycle.go +++ b/vendor/k8s.io/api/admissionregistration/v1beta1/zz_generated.prerelease-lifecycle.go @@ -25,6 +25,78 @@ import ( schema "k8s.io/apimachinery/pkg/runtime/schema" ) +// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. +func (in *MutatingAdmissionPolicy) APILifecycleIntroduced() (major, minor int) { + return 1, 34 +} + +// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. +func (in *MutatingAdmissionPolicy) APILifecycleDeprecated() (major, minor int) { + return 1, 37 +} + +// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. +func (in *MutatingAdmissionPolicy) APILifecycleRemoved() (major, minor int) { + return 1, 40 +} + +// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. +func (in *MutatingAdmissionPolicyBinding) APILifecycleIntroduced() (major, minor int) { + return 1, 34 +} + +// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. +func (in *MutatingAdmissionPolicyBinding) APILifecycleDeprecated() (major, minor int) { + return 1, 37 +} + +// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. +func (in *MutatingAdmissionPolicyBinding) APILifecycleRemoved() (major, minor int) { + return 1, 40 +} + +// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. +func (in *MutatingAdmissionPolicyBindingList) APILifecycleIntroduced() (major, minor int) { + return 1, 34 +} + +// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. +func (in *MutatingAdmissionPolicyBindingList) APILifecycleDeprecated() (major, minor int) { + return 1, 37 +} + +// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. +func (in *MutatingAdmissionPolicyBindingList) APILifecycleRemoved() (major, minor int) { + return 1, 40 +} + +// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. +func (in *MutatingAdmissionPolicyList) APILifecycleIntroduced() (major, minor int) { + return 1, 34 +} + +// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. +func (in *MutatingAdmissionPolicyList) APILifecycleDeprecated() (major, minor int) { + return 1, 37 +} + +// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. +func (in *MutatingAdmissionPolicyList) APILifecycleRemoved() (major, minor int) { + return 1, 40 +} + // APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. func (in *MutatingWebhookConfiguration) APILifecycleIntroduced() (major, minor int) { diff --git a/vendor/k8s.io/api/apps/v1/generated.proto b/vendor/k8s.io/api/apps/v1/generated.proto index 38c8997e99..5885a62225 100644 --- a/vendor/k8s.io/api/apps/v1/generated.proto +++ b/vendor/k8s.io/api/apps/v1/generated.proto @@ -530,7 +530,7 @@ message RollingUpdateDaemonSet { // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated - // pod is immediatedly created on that node without considering surge limits. + // pod is immediately created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may diff --git a/vendor/k8s.io/api/apps/v1/types.go b/vendor/k8s.io/api/apps/v1/types.go index 1362d875d8..4cf54cc99b 100644 --- a/vendor/k8s.io/api/apps/v1/types.go +++ b/vendor/k8s.io/api/apps/v1/types.go @@ -635,7 +635,7 @@ type RollingUpdateDaemonSet struct { // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated - // pod is immediatedly created on that node without considering surge limits. + // pod is immediately created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may diff --git a/vendor/k8s.io/api/apps/v1/types_swagger_doc_generated.go b/vendor/k8s.io/api/apps/v1/types_swagger_doc_generated.go index f44ba7bc33..ac54033fd6 100644 --- a/vendor/k8s.io/api/apps/v1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/api/apps/v1/types_swagger_doc_generated.go @@ -265,7 +265,7 @@ func (ReplicaSetStatus) SwaggerDoc() map[string]string { var map_RollingUpdateDaemonSet = map[string]string{ "": "Spec to control the desired behavior of daemon set rolling update.", "maxUnavailable": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", - "maxSurge": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", + "maxSurge": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", } func (RollingUpdateDaemonSet) SwaggerDoc() map[string]string { diff --git a/vendor/k8s.io/api/apps/v1beta1/generated.proto b/vendor/k8s.io/api/apps/v1beta1/generated.proto index 0601efc3c4..b61dc490db 100644 --- a/vendor/k8s.io/api/apps/v1beta1/generated.proto +++ b/vendor/k8s.io/api/apps/v1beta1/generated.proto @@ -316,6 +316,9 @@ message Scale { message ScaleSpec { // replicas is the number of observed instances of the scaled object. // +optional + // +k8s:optional + // +default=0 + // +k8s:minimum=0 optional int32 replicas = 1; } diff --git a/vendor/k8s.io/api/apps/v1beta1/types.go b/vendor/k8s.io/api/apps/v1beta1/types.go index 5530c990da..cd140be12f 100644 --- a/vendor/k8s.io/api/apps/v1beta1/types.go +++ b/vendor/k8s.io/api/apps/v1beta1/types.go @@ -33,6 +33,9 @@ const ( type ScaleSpec struct { // replicas is the number of observed instances of the scaled object. // +optional + // +k8s:optional + // +default=0 + // +k8s:minimum=0 Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` } @@ -60,6 +63,7 @@ type ScaleStatus struct { // +k8s:prerelease-lifecycle-gen:deprecated=1.8 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=autoscaling,v1,Scale +// +k8s:isSubresource=/scale // Scale represents a scaling request for a resource. type Scale struct { diff --git a/vendor/k8s.io/api/apps/v1beta2/generated.proto b/vendor/k8s.io/api/apps/v1beta2/generated.proto index 68c463e257..37c6d5ae1b 100644 --- a/vendor/k8s.io/api/apps/v1beta2/generated.proto +++ b/vendor/k8s.io/api/apps/v1beta2/generated.proto @@ -536,7 +536,7 @@ message RollingUpdateDaemonSet { // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated - // pod is immediatedly created on that node without considering surge limits. + // pod is immediately created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may @@ -614,6 +614,9 @@ message Scale { message ScaleSpec { // desired number of instances for the scaled object. // +optional + // +k8s:optional + // +default=0 + // +k8s:minimum=0 optional int32 replicas = 1; } diff --git a/vendor/k8s.io/api/apps/v1beta2/types.go b/vendor/k8s.io/api/apps/v1beta2/types.go index 491afc59f5..e9dc85df05 100644 --- a/vendor/k8s.io/api/apps/v1beta2/types.go +++ b/vendor/k8s.io/api/apps/v1beta2/types.go @@ -35,6 +35,9 @@ const ( type ScaleSpec struct { // desired number of instances for the scaled object. // +optional + // +k8s:optional + // +default=0 + // +k8s:minimum=0 Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` } @@ -63,6 +66,7 @@ type ScaleStatus struct { // +k8s:prerelease-lifecycle-gen:deprecated=1.9 // +k8s:prerelease-lifecycle-gen:removed=1.16 // +k8s:prerelease-lifecycle-gen:replacement=autoscaling,v1,Scale +// +k8s:isSubresource=/scale // Scale represents a scaling request for a resource. type Scale struct { @@ -681,7 +685,7 @@ type RollingUpdateDaemonSet struct { // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated - // pod is immediatedly created on that node without considering surge limits. + // pod is immediately created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may diff --git a/vendor/k8s.io/api/apps/v1beta2/types_swagger_doc_generated.go b/vendor/k8s.io/api/apps/v1beta2/types_swagger_doc_generated.go index 4089434151..34d80af58d 100644 --- a/vendor/k8s.io/api/apps/v1beta2/types_swagger_doc_generated.go +++ b/vendor/k8s.io/api/apps/v1beta2/types_swagger_doc_generated.go @@ -265,7 +265,7 @@ func (ReplicaSetStatus) SwaggerDoc() map[string]string { var map_RollingUpdateDaemonSet = map[string]string{ "": "Spec to control the desired behavior of daemon set rolling update.", "maxUnavailable": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", - "maxSurge": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", + "maxSurge": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", } func (RollingUpdateDaemonSet) SwaggerDoc() map[string]string { diff --git a/vendor/k8s.io/api/authorization/v1/generated.proto b/vendor/k8s.io/api/authorization/v1/generated.proto index 37b05b8552..ff529c969e 100644 --- a/vendor/k8s.io/api/authorization/v1/generated.proto +++ b/vendor/k8s.io/api/authorization/v1/generated.proto @@ -167,16 +167,10 @@ message ResourceAttributes { optional string name = 7; // fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it. - // - // This field is alpha-level. To use this field, you must enable the - // `AuthorizeWithSelectors` feature gate (disabled by default). // +optional optional FieldSelectorAttributes fieldSelector = 8; // labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it. - // - // This field is alpha-level. To use this field, you must enable the - // `AuthorizeWithSelectors` feature gate (disabled by default). // +optional optional LabelSelectorAttributes labelSelector = 9; } diff --git a/vendor/k8s.io/api/authorization/v1/types.go b/vendor/k8s.io/api/authorization/v1/types.go index 36f5fa4107..251e776b02 100644 --- a/vendor/k8s.io/api/authorization/v1/types.go +++ b/vendor/k8s.io/api/authorization/v1/types.go @@ -119,15 +119,9 @@ type ResourceAttributes struct { // +optional Name string `json:"name,omitempty" protobuf:"bytes,7,opt,name=name"` // fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it. - // - // This field is alpha-level. To use this field, you must enable the - // `AuthorizeWithSelectors` feature gate (disabled by default). // +optional FieldSelector *FieldSelectorAttributes `json:"fieldSelector,omitempty" protobuf:"bytes,8,opt,name=fieldSelector"` // labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it. - // - // This field is alpha-level. To use this field, you must enable the - // `AuthorizeWithSelectors` feature gate (disabled by default). // +optional LabelSelector *LabelSelectorAttributes `json:"labelSelector,omitempty" protobuf:"bytes,9,opt,name=labelSelector"` } diff --git a/vendor/k8s.io/api/authorization/v1/types_swagger_doc_generated.go b/vendor/k8s.io/api/authorization/v1/types_swagger_doc_generated.go index dc6b8a89ec..29d0aa8463 100644 --- a/vendor/k8s.io/api/authorization/v1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/api/authorization/v1/types_swagger_doc_generated.go @@ -87,8 +87,8 @@ var map_ResourceAttributes = map[string]string{ "resource": "Resource is one of the existing resource types. \"*\" means all.", "subresource": "Subresource is one of the existing resource types. \"\" means none.", "name": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", - "fieldSelector": "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default).", - "labelSelector": "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default).", + "fieldSelector": "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.", + "labelSelector": "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.", } func (ResourceAttributes) SwaggerDoc() map[string]string { diff --git a/vendor/k8s.io/api/autoscaling/v1/generated.proto b/vendor/k8s.io/api/autoscaling/v1/generated.proto index 68c35b6b22..a17d7989db 100644 --- a/vendor/k8s.io/api/autoscaling/v1/generated.proto +++ b/vendor/k8s.io/api/autoscaling/v1/generated.proto @@ -472,6 +472,9 @@ message Scale { message ScaleSpec { // replicas is the desired number of instances for the scaled object. // +optional + // +k8s:optional + // +default=0 + // +k8s:minimum=0 optional int32 replicas = 1; } diff --git a/vendor/k8s.io/api/autoscaling/v1/types.go b/vendor/k8s.io/api/autoscaling/v1/types.go index 85c609e5c7..e1e8809fe9 100644 --- a/vendor/k8s.io/api/autoscaling/v1/types.go +++ b/vendor/k8s.io/api/autoscaling/v1/types.go @@ -117,6 +117,7 @@ type HorizontalPodAutoscalerList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.2 +// +k8s:isSubresource=/scale // Scale represents a scaling request for a resource. type Scale struct { @@ -138,6 +139,9 @@ type Scale struct { type ScaleSpec struct { // replicas is the desired number of instances for the scaled object. // +optional + // +k8s:optional + // +default=0 + // +k8s:minimum=0 Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` } diff --git a/vendor/k8s.io/api/batch/v1/generated.proto b/vendor/k8s.io/api/batch/v1/generated.proto index d3aeae0adb..c0ce8cef26 100644 --- a/vendor/k8s.io/api/batch/v1/generated.proto +++ b/vendor/k8s.io/api/batch/v1/generated.proto @@ -226,7 +226,8 @@ message JobSpec { optional SuccessPolicy successPolicy = 16; // Specifies the number of retries before marking this job failed. - // Defaults to 6 + // Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. + // When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647. // +optional optional int32 backoffLimit = 7; @@ -329,8 +330,6 @@ message JobSpec { // // When using podFailurePolicy, Failed is the the only allowed value. // TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. - // This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. - // This is on by default. // +optional optional string podReplacementPolicy = 14; @@ -570,7 +569,7 @@ message PodFailurePolicyRule { message SuccessPolicy { // rules represents the list of alternative rules for the declaring the Jobs // as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, - // the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. + // the "SuccessCriteriaMet" condition is added, and the lingering pods are removed. // The terminal state for such a Job has the "Complete" condition. // Additionally, these rules are evaluated in order; Once the Job meets one of the rules, // other rules are ignored. At most 20 elements are allowed. diff --git a/vendor/k8s.io/api/batch/v1/types.go b/vendor/k8s.io/api/batch/v1/types.go index 6c0007c21e..9183c073d2 100644 --- a/vendor/k8s.io/api/batch/v1/types.go +++ b/vendor/k8s.io/api/batch/v1/types.go @@ -257,7 +257,7 @@ type PodFailurePolicy struct { type SuccessPolicy struct { // rules represents the list of alternative rules for the declaring the Jobs // as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, - // the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. + // the "SuccessCriteriaMet" condition is added, and the lingering pods are removed. // The terminal state for such a Job has the "Complete" condition. // Additionally, these rules are evaluated in order; Once the Job meets one of the rules, // other rules are ignored. At most 20 elements are allowed. @@ -347,7 +347,8 @@ type JobSpec struct { SuccessPolicy *SuccessPolicy `json:"successPolicy,omitempty" protobuf:"bytes,16,opt,name=successPolicy"` // Specifies the number of retries before marking this job failed. - // Defaults to 6 + // Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. + // When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647. // +optional BackoffLimit *int32 `json:"backoffLimit,omitempty" protobuf:"varint,7,opt,name=backoffLimit"` @@ -455,8 +456,6 @@ type JobSpec struct { // // When using podFailurePolicy, Failed is the the only allowed value. // TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. - // This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. - // This is on by default. // +optional PodReplacementPolicy *PodReplacementPolicy `json:"podReplacementPolicy,omitempty" protobuf:"bytes,14,opt,name=podReplacementPolicy,casttype=podReplacementPolicy"` diff --git a/vendor/k8s.io/api/batch/v1/types_swagger_doc_generated.go b/vendor/k8s.io/api/batch/v1/types_swagger_doc_generated.go index ffd4e4f5fe..451f4609f2 100644 --- a/vendor/k8s.io/api/batch/v1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/api/batch/v1/types_swagger_doc_generated.go @@ -117,7 +117,7 @@ var map_JobSpec = map[string]string{ "activeDeadlineSeconds": "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", "podFailurePolicy": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.", "successPolicy": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.", - "backoffLimit": "Specifies the number of retries before marking this job failed. Defaults to 6", + "backoffLimit": "Specifies the number of retries before marking this job failed. Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647.", "backoffLimitPerIndex": "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable.", "maxFailedIndexes": "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5.", "selector": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", @@ -126,7 +126,7 @@ var map_JobSpec = map[string]string{ "ttlSecondsAfterFinished": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", "completionMode": "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", "suspend": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", - "podReplacementPolicy": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.", + "podReplacementPolicy": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.", "managedBy": "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.\n\nThis field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).", } @@ -206,7 +206,7 @@ func (PodFailurePolicyRule) SwaggerDoc() map[string]string { var map_SuccessPolicy = map[string]string{ "": "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.", - "rules": "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", + "rules": "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SuccessCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", } func (SuccessPolicy) SwaggerDoc() map[string]string { diff --git a/vendor/k8s.io/api/certificates/v1/generated.proto b/vendor/k8s.io/api/certificates/v1/generated.proto index dac7c7f5f2..24528fc8bc 100644 --- a/vendor/k8s.io/api/certificates/v1/generated.proto +++ b/vendor/k8s.io/api/certificates/v1/generated.proto @@ -39,6 +39,8 @@ option go_package = "k8s.io/api/certificates/v1"; // This API can be used to request client certificates to authenticate to kube-apiserver // (with the "kubernetes.io/kube-apiserver-client" signerName), // or to obtain certificates from custom non-Kubernetes signers. +// +k8s:supportsSubresource=/status +// +k8s:supportsSubresource=/approval message CertificateSigningRequest { // +optional optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -203,6 +205,11 @@ message CertificateSigningRequestStatus { // +listType=map // +listMapKey=type // +optional + // +k8s:listType=map + // +k8s:listMapKey=type + // +k8s:optional + // +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + // +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember repeated CertificateSigningRequestCondition conditions = 1; // certificate is populated with an issued certificate by the signer after an Approved condition is present. diff --git a/vendor/k8s.io/api/certificates/v1/types.go b/vendor/k8s.io/api/certificates/v1/types.go index ba8009840d..71203e80d5 100644 --- a/vendor/k8s.io/api/certificates/v1/types.go +++ b/vendor/k8s.io/api/certificates/v1/types.go @@ -39,6 +39,8 @@ import ( // This API can be used to request client certificates to authenticate to kube-apiserver // (with the "kubernetes.io/kube-apiserver-client" signerName), // or to obtain certificates from custom non-Kubernetes signers. +// +k8s:supportsSubresource=/status +// +k8s:supportsSubresource=/approval type CertificateSigningRequest struct { metav1.TypeMeta `json:",inline"` // +optional @@ -178,6 +180,11 @@ type CertificateSigningRequestStatus struct { // +listType=map // +listMapKey=type // +optional + // +k8s:listType=map + // +k8s:listMapKey=type + // +k8s:optional + // +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + // +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember Conditions []CertificateSigningRequestCondition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` // certificate is populated with an issued certificate by the signer after an Approved condition is present. diff --git a/vendor/k8s.io/api/certificates/v1alpha1/generated.pb.go b/vendor/k8s.io/api/certificates/v1alpha1/generated.pb.go index a62a400596..c260f0436d 100644 --- a/vendor/k8s.io/api/certificates/v1alpha1/generated.pb.go +++ b/vendor/k8s.io/api/certificates/v1alpha1/generated.pb.go @@ -25,11 +25,14 @@ import ( io "io" proto "github.com/gogo/protobuf/proto" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" math_bits "math/bits" reflect "reflect" strings "strings" + + k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" ) // Reference imports to suppress errors if they are not otherwise used. @@ -127,10 +130,126 @@ func (m *ClusterTrustBundleSpec) XXX_DiscardUnknown() { var xxx_messageInfo_ClusterTrustBundleSpec proto.InternalMessageInfo +func (m *PodCertificateRequest) Reset() { *m = PodCertificateRequest{} } +func (*PodCertificateRequest) ProtoMessage() {} +func (*PodCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f73d5fe56c015bb8, []int{3} +} +func (m *PodCertificateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PodCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PodCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PodCertificateRequest.Merge(m, src) +} +func (m *PodCertificateRequest) XXX_Size() int { + return m.Size() +} +func (m *PodCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PodCertificateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PodCertificateRequest proto.InternalMessageInfo + +func (m *PodCertificateRequestList) Reset() { *m = PodCertificateRequestList{} } +func (*PodCertificateRequestList) ProtoMessage() {} +func (*PodCertificateRequestList) Descriptor() ([]byte, []int) { + return fileDescriptor_f73d5fe56c015bb8, []int{4} +} +func (m *PodCertificateRequestList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PodCertificateRequestList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PodCertificateRequestList) XXX_Merge(src proto.Message) { + xxx_messageInfo_PodCertificateRequestList.Merge(m, src) +} +func (m *PodCertificateRequestList) XXX_Size() int { + return m.Size() +} +func (m *PodCertificateRequestList) XXX_DiscardUnknown() { + xxx_messageInfo_PodCertificateRequestList.DiscardUnknown(m) +} + +var xxx_messageInfo_PodCertificateRequestList proto.InternalMessageInfo + +func (m *PodCertificateRequestSpec) Reset() { *m = PodCertificateRequestSpec{} } +func (*PodCertificateRequestSpec) ProtoMessage() {} +func (*PodCertificateRequestSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_f73d5fe56c015bb8, []int{5} +} +func (m *PodCertificateRequestSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PodCertificateRequestSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PodCertificateRequestSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_PodCertificateRequestSpec.Merge(m, src) +} +func (m *PodCertificateRequestSpec) XXX_Size() int { + return m.Size() +} +func (m *PodCertificateRequestSpec) XXX_DiscardUnknown() { + xxx_messageInfo_PodCertificateRequestSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_PodCertificateRequestSpec proto.InternalMessageInfo + +func (m *PodCertificateRequestStatus) Reset() { *m = PodCertificateRequestStatus{} } +func (*PodCertificateRequestStatus) ProtoMessage() {} +func (*PodCertificateRequestStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_f73d5fe56c015bb8, []int{6} +} +func (m *PodCertificateRequestStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PodCertificateRequestStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PodCertificateRequestStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_PodCertificateRequestStatus.Merge(m, src) +} +func (m *PodCertificateRequestStatus) XXX_Size() int { + return m.Size() +} +func (m *PodCertificateRequestStatus) XXX_DiscardUnknown() { + xxx_messageInfo_PodCertificateRequestStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_PodCertificateRequestStatus proto.InternalMessageInfo + func init() { proto.RegisterType((*ClusterTrustBundle)(nil), "k8s.io.api.certificates.v1alpha1.ClusterTrustBundle") proto.RegisterType((*ClusterTrustBundleList)(nil), "k8s.io.api.certificates.v1alpha1.ClusterTrustBundleList") proto.RegisterType((*ClusterTrustBundleSpec)(nil), "k8s.io.api.certificates.v1alpha1.ClusterTrustBundleSpec") + proto.RegisterType((*PodCertificateRequest)(nil), "k8s.io.api.certificates.v1alpha1.PodCertificateRequest") + proto.RegisterType((*PodCertificateRequestList)(nil), "k8s.io.api.certificates.v1alpha1.PodCertificateRequestList") + proto.RegisterType((*PodCertificateRequestSpec)(nil), "k8s.io.api.certificates.v1alpha1.PodCertificateRequestSpec") + proto.RegisterType((*PodCertificateRequestStatus)(nil), "k8s.io.api.certificates.v1alpha1.PodCertificateRequestStatus") } func init() { @@ -138,35 +257,65 @@ func init() { } var fileDescriptor_f73d5fe56c015bb8 = []byte{ - // 437 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x6a, 0xdb, 0x40, - 0x10, 0xc6, 0xb5, 0x69, 0x02, 0xc9, 0xba, 0x85, 0xa2, 0x42, 0x31, 0x3e, 0x6c, 0x8c, 0x4f, 0xb9, - 0x74, 0x37, 0x36, 0x69, 0xc9, 0x59, 0x85, 0x42, 0xa1, 0x7f, 0x40, 0xe9, 0xa5, 0xa1, 0x87, 0xae, - 0xd7, 0x13, 0x79, 0x6b, 0x4b, 0x5a, 0x76, 0x57, 0x86, 0xde, 0x0a, 0x7d, 0x81, 0x3e, 0x96, 0x8f, - 0x69, 0x4f, 0x39, 0x85, 0x5a, 0x7d, 0x91, 0xb2, 0x6b, 0xd9, 0x12, 0x55, 0x8b, 0x4b, 0x6e, 0x9a, - 0xd1, 0xfc, 0xbe, 0x6f, 0xbe, 0x11, 0xc2, 0xa7, 0xb3, 0x73, 0x43, 0x65, 0xce, 0xb8, 0x92, 0x4c, - 0x80, 0xb6, 0xf2, 0x4a, 0x0a, 0x6e, 0xc1, 0xb0, 0xc5, 0x90, 0xcf, 0xd5, 0x94, 0x0f, 0x59, 0x02, - 0x19, 0x68, 0x6e, 0x61, 0x42, 0x95, 0xce, 0x6d, 0x1e, 0xf6, 0xd7, 0x04, 0xe5, 0x4a, 0xd2, 0x26, - 0x41, 0x37, 0x44, 0xef, 0x49, 0x22, 0xed, 0xb4, 0x18, 0x53, 0x91, 0xa7, 0x2c, 0xc9, 0x93, 0x9c, - 0x79, 0x70, 0x5c, 0x5c, 0xf9, 0xca, 0x17, 0xfe, 0x69, 0x2d, 0xd8, 0x3b, 0xab, 0x57, 0x48, 0xb9, - 0x98, 0xca, 0x0c, 0xf4, 0x67, 0xa6, 0x66, 0x89, 0x6b, 0x18, 0x96, 0x82, 0xe5, 0x6c, 0xd1, 0x5a, - 0xa3, 0xc7, 0xfe, 0x45, 0xe9, 0x22, 0xb3, 0x32, 0x85, 0x16, 0xf0, 0x6c, 0x17, 0x60, 0xc4, 0x14, - 0x52, 0xfe, 0x27, 0x37, 0xf8, 0x81, 0x70, 0xf8, 0x7c, 0x5e, 0x18, 0x0b, 0xfa, 0x9d, 0x2e, 0x8c, - 0x8d, 0x8a, 0x6c, 0x32, 0x87, 0xf0, 0x23, 0x3e, 0x74, 0xab, 0x4d, 0xb8, 0xe5, 0x5d, 0xd4, 0x47, - 0x27, 0x9d, 0xd1, 0x29, 0xad, 0x2f, 0xb3, 0x75, 0xa0, 0x6a, 0x96, 0xb8, 0x86, 0xa1, 0x6e, 0x9a, - 0x2e, 0x86, 0xf4, 0xed, 0xf8, 0x13, 0x08, 0xfb, 0x1a, 0x2c, 0x8f, 0xc2, 0xe5, 0xed, 0x71, 0x50, - 0xde, 0x1e, 0xe3, 0xba, 0x17, 0x6f, 0x55, 0xc3, 0x4b, 0xbc, 0x6f, 0x14, 0x88, 0xee, 0x9e, 0x57, - 0x3f, 0xa7, 0xbb, 0xee, 0x4e, 0xdb, 0x5b, 0x5e, 0x28, 0x10, 0xd1, 0xfd, 0xca, 0x65, 0xdf, 0x55, - 0xb1, 0xd7, 0x1c, 0x7c, 0x47, 0xf8, 0x71, 0x7b, 0xfc, 0x95, 0x34, 0x36, 0xfc, 0xd0, 0x0a, 0x46, - 0xff, 0x2f, 0x98, 0xa3, 0x7d, 0xac, 0x87, 0x95, 0xe1, 0xe1, 0xa6, 0xd3, 0x08, 0xf5, 0x1e, 0x1f, - 0x48, 0x0b, 0xa9, 0xe9, 0xee, 0xf5, 0xef, 0x9d, 0x74, 0x46, 0x67, 0x77, 0x49, 0x15, 0x3d, 0xa8, - 0x0c, 0x0e, 0x5e, 0x3a, 0xa9, 0x78, 0xad, 0x38, 0xf8, 0xfa, 0xd7, 0x4c, 0x2e, 0x74, 0x38, 0xc2, - 0xd8, 0xc8, 0x24, 0x03, 0xfd, 0x86, 0xa7, 0xe0, 0x53, 0x1d, 0xd5, 0xc7, 0xbf, 0xd8, 0xbe, 0x89, - 0x1b, 0x53, 0xe1, 0x53, 0xdc, 0xb1, 0xb5, 0x8c, 0xff, 0x0a, 0x47, 0xd1, 0xa3, 0x0a, 0xea, 0x34, - 0x1c, 0xe2, 0xe6, 0x5c, 0xf4, 0x62, 0xb9, 0x22, 0xc1, 0xf5, 0x8a, 0x04, 0x37, 0x2b, 0x12, 0x7c, - 0x29, 0x09, 0x5a, 0x96, 0x04, 0x5d, 0x97, 0x04, 0xdd, 0x94, 0x04, 0xfd, 0x2c, 0x09, 0xfa, 0xf6, - 0x8b, 0x04, 0x97, 0xfd, 0x5d, 0xbf, 0xdd, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x1c, 0xcb, - 0xdd, 0x99, 0x03, 0x00, 0x00, + // 918 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x96, 0xcf, 0x6f, 0xe3, 0x44, + 0x14, 0xc7, 0xe3, 0xb6, 0x69, 0x9b, 0x49, 0x5b, 0xda, 0x61, 0x17, 0x99, 0x22, 0x39, 0x21, 0x07, + 0x54, 0x90, 0xb0, 0xb7, 0xa5, 0xb0, 0x2b, 0x10, 0x48, 0x75, 0x0a, 0x52, 0xe9, 0x6e, 0x36, 0x9a, + 0x74, 0xf9, 0xb1, 0x5a, 0x24, 0x1c, 0xe7, 0x25, 0x19, 0x1a, 0x7b, 0x8c, 0x67, 0x5c, 0xb5, 0x37, + 0x24, 0xfe, 0x01, 0xfe, 0x23, 0xae, 0x3d, 0x2e, 0x5c, 0xd8, 0x53, 0xa0, 0xe6, 0x6f, 0xe0, 0xb2, + 0x27, 0xe4, 0xb1, 0x9d, 0x5f, 0x4e, 0xb6, 0xd9, 0x1e, 0x7a, 0xcb, 0xbc, 0x79, 0xdf, 0xcf, 0xfb, + 0xbe, 0x99, 0x37, 0x56, 0xd0, 0xbd, 0xd3, 0x07, 0x5c, 0xa7, 0xcc, 0xb0, 0x3c, 0x6a, 0xd8, 0xe0, + 0x0b, 0xda, 0xa6, 0xb6, 0x25, 0x80, 0x1b, 0x67, 0xbb, 0x56, 0xcf, 0xeb, 0x5a, 0xbb, 0x46, 0x07, + 0x5c, 0xf0, 0x2d, 0x01, 0x2d, 0xdd, 0xf3, 0x99, 0x60, 0xb8, 0x1c, 0x2b, 0x74, 0xcb, 0xa3, 0xfa, + 0xa8, 0x42, 0x4f, 0x15, 0xdb, 0x1f, 0x76, 0xa8, 0xe8, 0x06, 0x4d, 0xdd, 0x66, 0x8e, 0xd1, 0x61, + 0x1d, 0x66, 0x48, 0x61, 0x33, 0x68, 0xcb, 0x95, 0x5c, 0xc8, 0x5f, 0x31, 0x70, 0x7b, 0x7f, 0x68, + 0xc1, 0xb1, 0xec, 0x2e, 0x75, 0xc1, 0xbf, 0x30, 0xbc, 0xd3, 0x4e, 0x14, 0xe0, 0x86, 0x03, 0xc2, + 0x32, 0xce, 0x32, 0x36, 0xb6, 0x8d, 0x59, 0x2a, 0x3f, 0x70, 0x05, 0x75, 0x20, 0x23, 0xf8, 0xe4, + 0x3a, 0x01, 0xb7, 0xbb, 0xe0, 0x58, 0x93, 0xba, 0xca, 0x9f, 0x0a, 0xc2, 0xd5, 0x5e, 0xc0, 0x05, + 0xf8, 0x27, 0x7e, 0xc0, 0x85, 0x19, 0xb8, 0xad, 0x1e, 0xe0, 0x1f, 0xd1, 0x6a, 0x64, 0xad, 0x65, + 0x09, 0x4b, 0x55, 0xca, 0xca, 0x4e, 0x71, 0xef, 0x9e, 0x3e, 0x3c, 0x99, 0x41, 0x05, 0xdd, 0x3b, + 0xed, 0x44, 0x01, 0xae, 0x47, 0xd9, 0xfa, 0xd9, 0xae, 0xfe, 0xb8, 0xf9, 0x13, 0xd8, 0xe2, 0x11, + 0x08, 0xcb, 0xc4, 0x97, 0xfd, 0x52, 0x2e, 0xec, 0x97, 0xd0, 0x30, 0x46, 0x06, 0x54, 0xfc, 0x14, + 0x2d, 0x71, 0x0f, 0x6c, 0x75, 0x41, 0xd2, 0x1f, 0xe8, 0xd7, 0x9d, 0xbb, 0x9e, 0x75, 0xd9, 0xf0, + 0xc0, 0x36, 0xd7, 0x92, 0x2a, 0x4b, 0xd1, 0x8a, 0x48, 0x66, 0xe5, 0x0f, 0x05, 0xbd, 0x95, 0x4d, + 0x7f, 0x48, 0xb9, 0xc0, 0xcf, 0x32, 0x8d, 0xe9, 0xf3, 0x35, 0x16, 0xa9, 0x65, 0x5b, 0x9b, 0x49, + 0xc1, 0xd5, 0x34, 0x32, 0xd2, 0xd4, 0xf7, 0x28, 0x4f, 0x05, 0x38, 0x5c, 0x5d, 0x28, 0x2f, 0xee, + 0x14, 0xf7, 0xf6, 0x6f, 0xd2, 0x95, 0xb9, 0x9e, 0x14, 0xc8, 0x1f, 0x45, 0x28, 0x12, 0x13, 0x2b, + 0xbf, 0x4e, 0xed, 0x29, 0x6a, 0x1a, 0xef, 0x21, 0xc4, 0x69, 0xc7, 0x05, 0xbf, 0x66, 0x39, 0x20, + 0xbb, 0x2a, 0x0c, 0x0f, 0xbf, 0x31, 0xd8, 0x21, 0x23, 0x59, 0xf8, 0x63, 0x54, 0x14, 0x43, 0x8c, + 0xbc, 0x85, 0x82, 0xf9, 0x66, 0x22, 0x2a, 0x8e, 0x54, 0x20, 0xa3, 0x79, 0x95, 0xdf, 0x17, 0xd0, + 0xdd, 0x3a, 0x6b, 0x55, 0x87, 0xbd, 0x10, 0xf8, 0x39, 0x00, 0x2e, 0x6e, 0x61, 0x62, 0x7e, 0x18, + 0x9b, 0x98, 0xcf, 0xae, 0x3f, 0xdb, 0xa9, 0x46, 0x67, 0x0d, 0x0d, 0x06, 0xb4, 0xcc, 0x85, 0x25, + 0x02, 0xae, 0x2e, 0xca, 0x02, 0x9f, 0xdf, 0xb4, 0x80, 0x84, 0x98, 0x1b, 0x49, 0x89, 0xe5, 0x78, + 0x4d, 0x12, 0x78, 0xe5, 0x2f, 0x05, 0xbd, 0x3d, 0x55, 0x77, 0x0b, 0xe3, 0xf9, 0x6c, 0x7c, 0x3c, + 0xef, 0xdf, 0xb0, 0xc3, 0x19, 0x13, 0xfa, 0x5f, 0x7e, 0x46, 0x67, 0x37, 0x1e, 0xd2, 0xf7, 0xd1, + 0x8a, 0xc7, 0x5a, 0x52, 0x10, 0x0f, 0xe8, 0x1b, 0x89, 0x60, 0xa5, 0x1e, 0x87, 0x49, 0xba, 0x8f, + 0x8f, 0xd1, 0xb2, 0xc7, 0x5a, 0x4f, 0x8e, 0x0e, 0xe5, 0xed, 0x15, 0xcc, 0x8f, 0xd2, 0xe3, 0xaf, + 0xcb, 0xe8, 0xcb, 0x7e, 0xe9, 0xdd, 0x59, 0x5f, 0x48, 0x71, 0xe1, 0x01, 0xd7, 0x9f, 0x1c, 0x1d, + 0x92, 0x04, 0x81, 0xbf, 0x46, 0x98, 0x83, 0x7f, 0x46, 0x6d, 0x38, 0xb0, 0x6d, 0x16, 0xb8, 0x42, + 0x5a, 0x58, 0x92, 0xe0, 0xed, 0x04, 0x8c, 0x1b, 0x99, 0x0c, 0x32, 0x45, 0x85, 0x7b, 0x68, 0x6b, + 0x3c, 0x1a, 0x79, 0xcc, 0x4b, 0xd4, 0x17, 0x09, 0x6a, 0xab, 0x31, 0x99, 0x30, 0x9f, 0xdd, 0x2c, + 0x18, 0x7f, 0x83, 0x56, 0x5d, 0xd6, 0x02, 0xe9, 0x77, 0x59, 0x16, 0xf9, 0x34, 0x9d, 0x87, 0x5a, + 0x12, 0x7f, 0xd9, 0x2f, 0xbd, 0xf7, 0x6a, 0x76, 0x9a, 0x49, 0x06, 0x2c, 0x5c, 0x43, 0x2b, 0xd1, + 0xef, 0xc8, 0xfb, 0x8a, 0xc4, 0xee, 0xa7, 0x37, 0x51, 0x8b, 0xc3, 0xf3, 0x39, 0x4e, 0x21, 0xf8, + 0x21, 0xba, 0xe3, 0x58, 0xe7, 0x5f, 0x9e, 0x7b, 0xd4, 0xb7, 0x04, 0x65, 0x6e, 0x03, 0x6c, 0xe6, + 0xb6, 0xb8, 0xba, 0x5a, 0x56, 0x76, 0xf2, 0xa6, 0x1a, 0xf6, 0x4b, 0x77, 0x1e, 0x4d, 0xd9, 0x27, + 0x53, 0x55, 0xf8, 0x3e, 0x5a, 0xf7, 0x4e, 0xe9, 0x79, 0x3d, 0x68, 0xf6, 0xa8, 0x7d, 0x0c, 0x17, + 0x6a, 0xa1, 0xac, 0xec, 0xac, 0x99, 0x5b, 0x61, 0xbf, 0xb4, 0x5e, 0x3f, 0x3e, 0xfa, 0x6e, 0xb0, + 0x41, 0xc6, 0xf3, 0x70, 0x15, 0x6d, 0x79, 0x3e, 0x63, 0xed, 0xc7, 0xed, 0x3a, 0xe3, 0x1c, 0x38, + 0xa7, 0xcc, 0x55, 0x91, 0x14, 0xdf, 0x8d, 0x2e, 0xa6, 0x3e, 0xb9, 0x49, 0xb2, 0xf9, 0x95, 0xbf, + 0x17, 0xd1, 0x3b, 0xaf, 0xf8, 0x12, 0x60, 0x1b, 0xa1, 0xc8, 0x26, 0x8d, 0x1c, 0x73, 0x55, 0x91, + 0x4f, 0xcf, 0x98, 0xef, 0x55, 0x57, 0x53, 0xdd, 0xf0, 0xa9, 0x0c, 0x42, 0x9c, 0x8c, 0x60, 0xf1, + 0x21, 0xda, 0x1c, 0x79, 0xc1, 0xd5, 0xae, 0x45, 0xdd, 0xe4, 0xcd, 0xa8, 0x89, 0x72, 0xb3, 0x3a, + 0xb1, 0x4f, 0x32, 0x0a, 0xfc, 0x2d, 0x2a, 0xb8, 0x4c, 0x98, 0xd0, 0x66, 0x7e, 0x3c, 0xef, 0xc5, + 0xbd, 0x0f, 0xe6, 0x73, 0x7a, 0x42, 0x1d, 0x30, 0xd7, 0xc3, 0x7e, 0xa9, 0x50, 0x4b, 0x01, 0x64, + 0xc8, 0xc2, 0x6d, 0xb4, 0xd1, 0x84, 0x0e, 0x75, 0x09, 0xb4, 0x7d, 0xe0, 0xdd, 0x03, 0x21, 0x9f, + 0xc0, 0xeb, 0xd1, 0x71, 0xd8, 0x2f, 0x6d, 0x98, 0x63, 0x14, 0x32, 0x41, 0xc5, 0x27, 0xd1, 0xfc, + 0x8b, 0x83, 0xb6, 0x00, 0x5f, 0xce, 0xff, 0xeb, 0x55, 0x58, 0x8b, 0xdf, 0x49, 0xac, 0x27, 0x03, + 0x92, 0xf9, 0xd5, 0xe5, 0x95, 0x96, 0x7b, 0x7e, 0xa5, 0xe5, 0x5e, 0x5c, 0x69, 0xb9, 0x5f, 0x42, + 0x4d, 0xb9, 0x0c, 0x35, 0xe5, 0x79, 0xa8, 0x29, 0x2f, 0x42, 0x4d, 0xf9, 0x27, 0xd4, 0x94, 0xdf, + 0xfe, 0xd5, 0x72, 0x4f, 0xcb, 0xd7, 0xfd, 0xd9, 0xfc, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x6c, + 0x5a, 0xc4, 0x8f, 0x0a, 0x00, 0x00, } func (m *ClusterTrustBundle) Marshal() (dAtA []byte, err error) { @@ -292,6 +441,261 @@ func (m *ClusterTrustBundleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *PodCertificateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PodCertificateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PodCertificateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PodCertificateRequestList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PodCertificateRequestList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PodCertificateRequestList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PodCertificateRequestSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PodCertificateRequestSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PodCertificateRequestSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ProofOfPossession != nil { + i -= len(m.ProofOfPossession) + copy(dAtA[i:], m.ProofOfPossession) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProofOfPossession))) + i-- + dAtA[i] = 0x52 + } + if m.PKIXPublicKey != nil { + i -= len(m.PKIXPublicKey) + copy(dAtA[i:], m.PKIXPublicKey) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PKIXPublicKey))) + i-- + dAtA[i] = 0x4a + } + if m.MaxExpirationSeconds != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.MaxExpirationSeconds)) + i-- + dAtA[i] = 0x40 + } + i -= len(m.NodeUID) + copy(dAtA[i:], m.NodeUID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeUID))) + i-- + dAtA[i] = 0x3a + i -= len(m.NodeName) + copy(dAtA[i:], m.NodeName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName))) + i-- + dAtA[i] = 0x32 + i -= len(m.ServiceAccountUID) + copy(dAtA[i:], m.ServiceAccountUID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountUID))) + i-- + dAtA[i] = 0x2a + i -= len(m.ServiceAccountName) + copy(dAtA[i:], m.ServiceAccountName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountName))) + i-- + dAtA[i] = 0x22 + i -= len(m.PodUID) + copy(dAtA[i:], m.PodUID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodUID))) + i-- + dAtA[i] = 0x1a + i -= len(m.PodName) + copy(dAtA[i:], m.PodName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodName))) + i-- + dAtA[i] = 0x12 + i -= len(m.SignerName) + copy(dAtA[i:], m.SignerName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SignerName))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PodCertificateRequestStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PodCertificateRequestStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PodCertificateRequestStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NotAfter != nil { + { + size, err := m.NotAfter.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.BeginRefreshAt != nil { + { + size, err := m.BeginRefreshAt.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.NotBefore != nil { + { + size, err := m.NotBefore.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + i -= len(m.CertificateChain) + copy(dAtA[i:], m.CertificateChain) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CertificateChain))) + i-- + dAtA[i] = 0x12 + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { offset -= sovGenerated(v) base := offset @@ -346,25 +750,120 @@ func (m *ClusterTrustBundleSpec) Size() (n int) { return n } -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ClusterTrustBundle) String() string { - if this == nil { - return "nil" +func (m *PodCertificateRequest) Size() (n int) { + if m == nil { + return 0 } - s := strings.Join([]string{`&ClusterTrustBundle{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ClusterTrustBundleSpec", "ClusterTrustBundleSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterTrustBundleList) String() string { - if this == nil { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PodCertificateRequestList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *PodCertificateRequestSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SignerName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.PodName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.PodUID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ServiceAccountName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ServiceAccountUID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.NodeName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.NodeUID) + n += 1 + l + sovGenerated(uint64(l)) + if m.MaxExpirationSeconds != nil { + n += 1 + sovGenerated(uint64(*m.MaxExpirationSeconds)) + } + if m.PKIXPublicKey != nil { + l = len(m.PKIXPublicKey) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ProofOfPossession != nil { + l = len(m.ProofOfPossession) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *PodCertificateRequestStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.CertificateChain) + n += 1 + l + sovGenerated(uint64(l)) + if m.NotBefore != nil { + l = m.NotBefore.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.BeginRefreshAt != nil { + l = m.BeginRefreshAt.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.NotAfter != nil { + l = m.NotAfter.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func sovGenerated(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *ClusterTrustBundle) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClusterTrustBundle{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ClusterTrustBundleSpec", "ClusterTrustBundleSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ClusterTrustBundleList) String() string { + if this == nil { return "nil" } repeatedStringForItems := "[]ClusterTrustBundle{" @@ -390,6 +889,72 @@ func (this *ClusterTrustBundleSpec) String() string { }, "") return s } +func (this *PodCertificateRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodCertificateRequest{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodCertificateRequestSpec", "PodCertificateRequestSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodCertificateRequestStatus", "PodCertificateRequestStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodCertificateRequestList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]PodCertificateRequest{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodCertificateRequest", "PodCertificateRequest", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&PodCertificateRequestList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *PodCertificateRequestSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodCertificateRequestSpec{`, + `SignerName:` + fmt.Sprintf("%v", this.SignerName) + `,`, + `PodName:` + fmt.Sprintf("%v", this.PodName) + `,`, + `PodUID:` + fmt.Sprintf("%v", this.PodUID) + `,`, + `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`, + `ServiceAccountUID:` + fmt.Sprintf("%v", this.ServiceAccountUID) + `,`, + `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`, + `NodeUID:` + fmt.Sprintf("%v", this.NodeUID) + `,`, + `MaxExpirationSeconds:` + valueToStringGenerated(this.MaxExpirationSeconds) + `,`, + `PKIXPublicKey:` + valueToStringGenerated(this.PKIXPublicKey) + `,`, + `ProofOfPossession:` + valueToStringGenerated(this.ProofOfPossession) + `,`, + `}`, + }, "") + return s +} +func (this *PodCertificateRequestStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForConditions := "[]Condition{" + for _, f := range this.Conditions { + repeatedStringForConditions += fmt.Sprintf("%v", f) + "," + } + repeatedStringForConditions += "}" + s := strings.Join([]string{`&PodCertificateRequestStatus{`, + `Conditions:` + repeatedStringForConditions + `,`, + `CertificateChain:` + fmt.Sprintf("%v", this.CertificateChain) + `,`, + `NotBefore:` + strings.Replace(fmt.Sprintf("%v", this.NotBefore), "Time", "v1.Time", 1) + `,`, + `BeginRefreshAt:` + strings.Replace(fmt.Sprintf("%v", this.BeginRefreshAt), "Time", "v1.Time", 1) + `,`, + `NotAfter:` + strings.Replace(fmt.Sprintf("%v", this.NotAfter), "Time", "v1.Time", 1) + `,`, + `}`, + }, "") + return s +} func valueToStringGenerated(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { @@ -745,6 +1310,858 @@ func (m *ClusterTrustBundleSpec) Unmarshal(dAtA []byte) error { } return nil } +func (m *PodCertificateRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodCertificateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodCertificateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodCertificateRequestList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodCertificateRequestList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodCertificateRequestList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, PodCertificateRequest{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodCertificateRequestSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodCertificateRequestSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodCertificateRequestSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PodName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodUID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PodUID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServiceAccountName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountUID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServiceAccountUID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NodeName = k8s_io_apimachinery_pkg_types.NodeName(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeUID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NodeUID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxExpirationSeconds", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxExpirationSeconds = &v + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PKIXPublicKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PKIXPublicKey = append(m.PKIXPublicKey[:0], dAtA[iNdEx:postIndex]...) + if m.PKIXPublicKey == nil { + m.PKIXPublicKey = []byte{} + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofOfPossession", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProofOfPossession = append(m.ProofOfPossession[:0], dAtA[iNdEx:postIndex]...) + if m.ProofOfPossession == nil { + m.ProofOfPossession = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodCertificateRequestStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodCertificateRequestStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodCertificateRequestStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, v1.Condition{}) + if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CertificateChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CertificateChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NotBefore", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NotBefore == nil { + m.NotBefore = &v1.Time{} + } + if err := m.NotBefore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeginRefreshAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BeginRefreshAt == nil { + m.BeginRefreshAt = &v1.Time{} + } + if err := m.BeginRefreshAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NotAfter", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NotAfter == nil { + m.NotAfter = &v1.Time{} + } + if err := m.NotAfter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipGenerated(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/vendor/k8s.io/api/certificates/v1alpha1/generated.proto b/vendor/k8s.io/api/certificates/v1alpha1/generated.proto index 7155f778cf..194bdbc14f 100644 --- a/vendor/k8s.io/api/certificates/v1alpha1/generated.proto +++ b/vendor/k8s.io/api/certificates/v1alpha1/generated.proto @@ -101,3 +101,208 @@ message ClusterTrustBundleSpec { optional string trustBundle = 2; } +// PodCertificateRequest encodes a pod requesting a certificate from a given +// signer. +// +// Kubelets use this API to implement podCertificate projected volumes +message PodCertificateRequest { + // metadata contains the object metadata. + // + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + // spec contains the details about the certificate being requested. + optional PodCertificateRequestSpec spec = 2; + + // status contains the issued certificate, and a standard set of conditions. + // +optional + optional PodCertificateRequestStatus status = 3; +} + +// PodCertificateRequestList is a collection of PodCertificateRequest objects +message PodCertificateRequestList { + // metadata contains the list metadata. + // + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + // items is a collection of PodCertificateRequest objects + repeated PodCertificateRequest items = 2; +} + +// PodCertificateRequestSpec describes the certificate request. All fields are +// immutable after creation. +message PodCertificateRequestSpec { + // signerName indicates the requested signer. + // + // All signer names beginning with `kubernetes.io` are reserved for use by + // the Kubernetes project. There is currently one well-known signer + // documented by the Kubernetes project, + // `kubernetes.io/kube-apiserver-client-pod`, which will issue client + // certificates understood by kube-apiserver. It is currently + // unimplemented. + // + // +required + optional string signerName = 1; + + // podName is the name of the pod into which the certificate will be mounted. + // + // +required + optional string podName = 2; + + // podUID is the UID of the pod into which the certificate will be mounted. + // + // +required + optional string podUID = 3; + + // serviceAccountName is the name of the service account the pod is running as. + // + // +required + optional string serviceAccountName = 4; + + // serviceAccountUID is the UID of the service account the pod is running as. + // + // +required + optional string serviceAccountUID = 5; + + // nodeName is the name of the node the pod is assigned to. + // + // +required + optional string nodeName = 6; + + // nodeUID is the UID of the node the pod is assigned to. + // + // +required + optional string nodeUID = 7; + + // maxExpirationSeconds is the maximum lifetime permitted for the + // certificate. + // + // If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver + // will reject values shorter than 3600 (1 hour). The maximum allowable + // value is 7862400 (91 days). + // + // The signer implementation is then free to issue a certificate with any + // lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 + // seconds (1 hour). This constraint is enforced by kube-apiserver. + // `kubernetes.io` signers will never issue certificates with a lifetime + // longer than 24 hours. + // + // +optional + // +default=86400 + optional int32 maxExpirationSeconds = 8; + + // pkixPublicKey is the PKIX-serialized public key the signer will issue the + // certificate to. + // + // The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, + // or ED25519. Note that this list may be expanded in the future. + // + // Signer implementations do not need to support all key types supported by + // kube-apiserver and kubelet. If a signer does not support the key type + // used for a given PodCertificateRequest, it must deny the request by + // setting a status.conditions entry with a type of "Denied" and a reason of + // "UnsupportedKeyType". It may also suggest a key type that it does support + // in the message field. + // + // +required + optional bytes pkixPublicKey = 9; + + // proofOfPossession proves that the requesting kubelet holds the private + // key corresponding to pkixPublicKey. + // + // It is contructed by signing the ASCII bytes of the pod's UID using + // `pkixPublicKey`. + // + // kube-apiserver validates the proof of possession during creation of the + // PodCertificateRequest. + // + // If the key is an RSA key, then the signature is over the ASCII bytes of + // the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang + // function crypto/rsa.SignPSS with nil options). + // + // If the key is an ECDSA key, then the signature is as described by [SEC 1, + // Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the + // golang library function crypto/ecdsa.SignASN1) + // + // If the key is an ED25519 key, the the signature is as described by the + // [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by + // the golang library crypto/ed25519.Sign). + // + // +required + optional bytes proofOfPossession = 10; +} + +// PodCertificateRequestStatus describes the status of the request, and holds +// the certificate data if the request is issued. +message PodCertificateRequestStatus { + // conditions applied to the request. + // + // The types "Issued", "Denied", and "Failed" have special handling. At + // most one of these conditions may be present, and they must have status + // "True". + // + // If the request is denied with `Reason=UnsupportedKeyType`, the signer may + // suggest a key type that will work in the message field. + // + // +patchMergeKey=type + // +patchStrategy=merge + // +listType=map + // +listMapKey=type + // +optional + repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + + // certificateChain is populated with an issued certificate by the signer. + // This field is set via the /status subresource. Once populated, this field + // is immutable. + // + // If the certificate signing request is denied, a condition of type + // "Denied" is added and this field remains empty. If the signer cannot + // issue the certificate, a condition of type "Failed" is added and this + // field remains empty. + // + // Validation requirements: + // 1. certificateChain must consist of one or more PEM-formatted certificates. + // 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as + // described in section 4 of RFC5280. + // + // If more than one block is present, and the definition of the requested + // spec.signerName does not indicate otherwise, the first block is the + // issued certificate, and subsequent blocks should be treated as + // intermediate certificates and presented in TLS handshakes. When + // projecting the chain into a pod volume, kubelet will drop any data + // in-between the PEM blocks, as well as any PEM block headers. + // + // +optional + optional string certificateChain = 2; + + // notBefore is the time at which the certificate becomes valid. The value + // must be the same as the notBefore value in the leaf certificate in + // certificateChain. This field is set via the /status subresource. Once + // populated, it is immutable. The signer must set this field at the same + // time it sets certificateChain. + // + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time notBefore = 4; + + // beginRefreshAt is the time at which the kubelet should begin trying to + // refresh the certificate. This field is set via the /status subresource, + // and must be set at the same time as certificateChain. Once populated, + // this field is immutable. + // + // This field is only a hint. Kubelet may start refreshing before or after + // this time if necessary. + // + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time beginRefreshAt = 5; + + // notAfter is the time at which the certificate expires. The value must be + // the same as the notAfter value in the leaf certificate in + // certificateChain. This field is set via the /status subresource. Once + // populated, it is immutable. The signer must set this field at the same + // time it sets certificateChain. + // + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time notAfter = 6; +} + diff --git a/vendor/k8s.io/api/certificates/v1alpha1/register.go b/vendor/k8s.io/api/certificates/v1alpha1/register.go index 7288ed9a3e..ae541e15c1 100644 --- a/vendor/k8s.io/api/certificates/v1alpha1/register.go +++ b/vendor/k8s.io/api/certificates/v1alpha1/register.go @@ -53,6 +53,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &ClusterTrustBundle{}, &ClusterTrustBundleList{}, + &PodCertificateRequest{}, + &PodCertificateRequestList{}, ) // Add the watch version that applies diff --git a/vendor/k8s.io/api/certificates/v1alpha1/types.go b/vendor/k8s.io/api/certificates/v1alpha1/types.go index beef02599d..a5cb3809e7 100644 --- a/vendor/k8s.io/api/certificates/v1alpha1/types.go +++ b/vendor/k8s.io/api/certificates/v1alpha1/types.go @@ -18,6 +18,7 @@ package v1alpha1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" ) // +genclient @@ -106,3 +107,233 @@ type ClusterTrustBundleList struct { // items is a collection of ClusterTrustBundle objects Items []ClusterTrustBundle `json:"items" protobuf:"bytes,2,rep,name=items"` } + +// +genclient +// +k8s:prerelease-lifecycle-gen:introduced=1.34 +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// PodCertificateRequest encodes a pod requesting a certificate from a given +// signer. +// +// Kubelets use this API to implement podCertificate projected volumes +type PodCertificateRequest struct { + metav1.TypeMeta `json:",inline"` + + // metadata contains the object metadata. + // + // +optional + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // spec contains the details about the certificate being requested. + Spec PodCertificateRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` + + // status contains the issued certificate, and a standard set of conditions. + // +optional + Status PodCertificateRequestStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// PodCertificateRequestSpec describes the certificate request. All fields are +// immutable after creation. +type PodCertificateRequestSpec struct { + // signerName indicates the requested signer. + // + // All signer names beginning with `kubernetes.io` are reserved for use by + // the Kubernetes project. There is currently one well-known signer + // documented by the Kubernetes project, + // `kubernetes.io/kube-apiserver-client-pod`, which will issue client + // certificates understood by kube-apiserver. It is currently + // unimplemented. + // + // +required + SignerName string `json:"signerName" protobuf:"bytes,1,opt,name=signerName"` + + // podName is the name of the pod into which the certificate will be mounted. + // + // +required + PodName string `json:"podName" protobuf:"bytes,2,opt,name=podName"` + // podUID is the UID of the pod into which the certificate will be mounted. + // + // +required + PodUID types.UID `json:"podUID" protobuf:"bytes,3,opt,name=podUID"` + + // serviceAccountName is the name of the service account the pod is running as. + // + // +required + ServiceAccountName string `json:"serviceAccountName" protobuf:"bytes,4,opt,name=serviceAccountName"` + // serviceAccountUID is the UID of the service account the pod is running as. + // + // +required + ServiceAccountUID types.UID `json:"serviceAccountUID" protobuf:"bytes,5,opt,name=serviceAccountUID"` + + // nodeName is the name of the node the pod is assigned to. + // + // +required + NodeName types.NodeName `json:"nodeName" protobuf:"bytes,6,opt,name=nodeName"` + // nodeUID is the UID of the node the pod is assigned to. + // + // +required + NodeUID types.UID `json:"nodeUID" protobuf:"bytes,7,opt,name=nodeUID"` + + // maxExpirationSeconds is the maximum lifetime permitted for the + // certificate. + // + // If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver + // will reject values shorter than 3600 (1 hour). The maximum allowable + // value is 7862400 (91 days). + // + // The signer implementation is then free to issue a certificate with any + // lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 + // seconds (1 hour). This constraint is enforced by kube-apiserver. + // `kubernetes.io` signers will never issue certificates with a lifetime + // longer than 24 hours. + // + // +optional + // +default=86400 + MaxExpirationSeconds *int32 `json:"maxExpirationSeconds,omitempty" protobuf:"varint,8,opt,name=maxExpirationSeconds"` + + // pkixPublicKey is the PKIX-serialized public key the signer will issue the + // certificate to. + // + // The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, + // or ED25519. Note that this list may be expanded in the future. + // + // Signer implementations do not need to support all key types supported by + // kube-apiserver and kubelet. If a signer does not support the key type + // used for a given PodCertificateRequest, it must deny the request by + // setting a status.conditions entry with a type of "Denied" and a reason of + // "UnsupportedKeyType". It may also suggest a key type that it does support + // in the message field. + // + // +required + PKIXPublicKey []byte `json:"pkixPublicKey" protobuf:"bytes,9,opt,name=pkixPublicKey"` + + // proofOfPossession proves that the requesting kubelet holds the private + // key corresponding to pkixPublicKey. + // + // It is contructed by signing the ASCII bytes of the pod's UID using + // `pkixPublicKey`. + // + // kube-apiserver validates the proof of possession during creation of the + // PodCertificateRequest. + // + // If the key is an RSA key, then the signature is over the ASCII bytes of + // the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang + // function crypto/rsa.SignPSS with nil options). + // + // If the key is an ECDSA key, then the signature is as described by [SEC 1, + // Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the + // golang library function crypto/ecdsa.SignASN1) + // + // If the key is an ED25519 key, the the signature is as described by the + // [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by + // the golang library crypto/ed25519.Sign). + // + // +required + ProofOfPossession []byte `json:"proofOfPossession" protobuf:"bytes,10,opt,name=proofOfPossession"` +} + +// PodCertificateRequestStatus describes the status of the request, and holds +// the certificate data if the request is issued. +type PodCertificateRequestStatus struct { + // conditions applied to the request. + // + // The types "Issued", "Denied", and "Failed" have special handling. At + // most one of these conditions may be present, and they must have status + // "True". + // + // If the request is denied with `Reason=UnsupportedKeyType`, the signer may + // suggest a key type that will work in the message field. + // + // +patchMergeKey=type + // +patchStrategy=merge + // +listType=map + // +listMapKey=type + // +optional + Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` + + // certificateChain is populated with an issued certificate by the signer. + // This field is set via the /status subresource. Once populated, this field + // is immutable. + // + // If the certificate signing request is denied, a condition of type + // "Denied" is added and this field remains empty. If the signer cannot + // issue the certificate, a condition of type "Failed" is added and this + // field remains empty. + // + // Validation requirements: + // 1. certificateChain must consist of one or more PEM-formatted certificates. + // 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as + // described in section 4 of RFC5280. + // + // If more than one block is present, and the definition of the requested + // spec.signerName does not indicate otherwise, the first block is the + // issued certificate, and subsequent blocks should be treated as + // intermediate certificates and presented in TLS handshakes. When + // projecting the chain into a pod volume, kubelet will drop any data + // in-between the PEM blocks, as well as any PEM block headers. + // + // +optional + CertificateChain string `json:"certificateChain,omitempty" protobuf:"bytes,2,opt,name=certificateChain"` + + // notBefore is the time at which the certificate becomes valid. The value + // must be the same as the notBefore value in the leaf certificate in + // certificateChain. This field is set via the /status subresource. Once + // populated, it is immutable. The signer must set this field at the same + // time it sets certificateChain. + // + // +optional + NotBefore *metav1.Time `json:"notBefore,omitempty" protobuf:"bytes,4,opt,name=notBefore"` + + // beginRefreshAt is the time at which the kubelet should begin trying to + // refresh the certificate. This field is set via the /status subresource, + // and must be set at the same time as certificateChain. Once populated, + // this field is immutable. + // + // This field is only a hint. Kubelet may start refreshing before or after + // this time if necessary. + // + // +optional + BeginRefreshAt *metav1.Time `json:"beginRefreshAt,omitempty" protobuf:"bytes,5,opt,name=beginRefreshAt"` + + // notAfter is the time at which the certificate expires. The value must be + // the same as the notAfter value in the leaf certificate in + // certificateChain. This field is set via the /status subresource. Once + // populated, it is immutable. The signer must set this field at the same + // time it sets certificateChain. + // + // +optional + NotAfter *metav1.Time `json:"notAfter,omitempty" protobuf:"bytes,6,opt,name=notAfter"` +} + +// Well-known condition types for PodCertificateRequests +const ( + // Denied indicates the request was denied by the signer. + PodCertificateRequestConditionTypeDenied string = "Denied" + // Failed indicates the signer failed to issue the certificate. + PodCertificateRequestConditionTypeFailed string = "Failed" + // Issued indicates the certificate has been issued. + PodCertificateRequestConditionTypeIssued string = "Issued" +) + +// Well-known condition reasons for PodCertificateRequests +const ( + // UnsupportedKeyType should be set on "Denied" conditions when the signer + // doesn't support the key type of publicKey. + PodCertificateRequestConditionUnsupportedKeyType string = "UnsupportedKeyType" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:prerelease-lifecycle-gen:introduced=1.34 + +// PodCertificateRequestList is a collection of PodCertificateRequest objects +type PodCertificateRequestList struct { + metav1.TypeMeta `json:",inline"` + + // metadata contains the list metadata. + // + // +optional + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // items is a collection of PodCertificateRequest objects + Items []PodCertificateRequest `json:"items" protobuf:"bytes,2,rep,name=items"` +} diff --git a/vendor/k8s.io/api/certificates/v1alpha1/types_swagger_doc_generated.go b/vendor/k8s.io/api/certificates/v1alpha1/types_swagger_doc_generated.go index bff649e3cb..d29f2d8505 100644 --- a/vendor/k8s.io/api/certificates/v1alpha1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/api/certificates/v1alpha1/types_swagger_doc_generated.go @@ -57,4 +57,56 @@ func (ClusterTrustBundleSpec) SwaggerDoc() map[string]string { return map_ClusterTrustBundleSpec } +var map_PodCertificateRequest = map[string]string{ + "": "PodCertificateRequest encodes a pod requesting a certificate from a given signer.\n\nKubelets use this API to implement podCertificate projected volumes", + "metadata": "metadata contains the object metadata.", + "spec": "spec contains the details about the certificate being requested.", + "status": "status contains the issued certificate, and a standard set of conditions.", +} + +func (PodCertificateRequest) SwaggerDoc() map[string]string { + return map_PodCertificateRequest +} + +var map_PodCertificateRequestList = map[string]string{ + "": "PodCertificateRequestList is a collection of PodCertificateRequest objects", + "metadata": "metadata contains the list metadata.", + "items": "items is a collection of PodCertificateRequest objects", +} + +func (PodCertificateRequestList) SwaggerDoc() map[string]string { + return map_PodCertificateRequestList +} + +var map_PodCertificateRequestSpec = map[string]string{ + "": "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.", + "signerName": "signerName indicates the requested signer.\n\nAll signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented.", + "podName": "podName is the name of the pod into which the certificate will be mounted.", + "podUID": "podUID is the UID of the pod into which the certificate will be mounted.", + "serviceAccountName": "serviceAccountName is the name of the service account the pod is running as.", + "serviceAccountUID": "serviceAccountUID is the UID of the service account the pod is running as.", + "nodeName": "nodeName is the name of the node the pod is assigned to.", + "nodeUID": "nodeUID is the UID of the node the pod is assigned to.", + "maxExpirationSeconds": "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nIf omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days).\n\nThe signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours.", + "pkixPublicKey": "pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to.\n\nThe key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future.\n\nSigner implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field.", + "proofOfPossession": "proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey.\n\nIt is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`.\n\nkube-apiserver validates the proof of possession during creation of the PodCertificateRequest.\n\nIf the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options).\n\nIf the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1)\n\nIf the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign).", +} + +func (PodCertificateRequestSpec) SwaggerDoc() map[string]string { + return map_PodCertificateRequestSpec +} + +var map_PodCertificateRequestStatus = map[string]string{ + "": "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.", + "conditions": "conditions applied to the request.\n\nThe types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\".\n\nIf the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.", + "certificateChain": "certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificateChain must consist of one or more PEM-formatted certificates.\n 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as\n described in section 4 of RFC5280.\n\nIf more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers.", + "notBefore": "notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", + "beginRefreshAt": "beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable.\n\nThis field is only a hint. Kubelet may start refreshing before or after this time if necessary.", + "notAfter": "notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", +} + +func (PodCertificateRequestStatus) SwaggerDoc() map[string]string { + return map_PodCertificateRequestStatus +} + // AUTO-GENERATED FUNCTIONS END HERE diff --git a/vendor/k8s.io/api/certificates/v1alpha1/zz_generated.deepcopy.go b/vendor/k8s.io/api/certificates/v1alpha1/zz_generated.deepcopy.go index 30a4dc1e80..25bc0ed6cb 100644 --- a/vendor/k8s.io/api/certificates/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/api/certificates/v1alpha1/zz_generated.deepcopy.go @@ -22,6 +22,7 @@ limitations under the License. package v1alpha1 import ( + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -100,3 +101,130 @@ func (in *ClusterTrustBundleSpec) DeepCopy() *ClusterTrustBundleSpec { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PodCertificateRequest) DeepCopyInto(out *PodCertificateRequest) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCertificateRequest. +func (in *PodCertificateRequest) DeepCopy() *PodCertificateRequest { + if in == nil { + return nil + } + out := new(PodCertificateRequest) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PodCertificateRequest) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PodCertificateRequestList) DeepCopyInto(out *PodCertificateRequestList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PodCertificateRequest, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCertificateRequestList. +func (in *PodCertificateRequestList) DeepCopy() *PodCertificateRequestList { + if in == nil { + return nil + } + out := new(PodCertificateRequestList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PodCertificateRequestList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PodCertificateRequestSpec) DeepCopyInto(out *PodCertificateRequestSpec) { + *out = *in + if in.MaxExpirationSeconds != nil { + in, out := &in.MaxExpirationSeconds, &out.MaxExpirationSeconds + *out = new(int32) + **out = **in + } + if in.PKIXPublicKey != nil { + in, out := &in.PKIXPublicKey, &out.PKIXPublicKey + *out = make([]byte, len(*in)) + copy(*out, *in) + } + if in.ProofOfPossession != nil { + in, out := &in.ProofOfPossession, &out.ProofOfPossession + *out = make([]byte, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCertificateRequestSpec. +func (in *PodCertificateRequestSpec) DeepCopy() *PodCertificateRequestSpec { + if in == nil { + return nil + } + out := new(PodCertificateRequestSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PodCertificateRequestStatus) DeepCopyInto(out *PodCertificateRequestStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]v1.Condition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.NotBefore != nil { + in, out := &in.NotBefore, &out.NotBefore + *out = (*in).DeepCopy() + } + if in.BeginRefreshAt != nil { + in, out := &in.BeginRefreshAt, &out.BeginRefreshAt + *out = (*in).DeepCopy() + } + if in.NotAfter != nil { + in, out := &in.NotAfter, &out.NotAfter + *out = (*in).DeepCopy() + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCertificateRequestStatus. +func (in *PodCertificateRequestStatus) DeepCopy() *PodCertificateRequestStatus { + if in == nil { + return nil + } + out := new(PodCertificateRequestStatus) + in.DeepCopyInto(out) + return out +} diff --git a/vendor/k8s.io/api/certificates/v1alpha1/zz_generated.prerelease-lifecycle.go b/vendor/k8s.io/api/certificates/v1alpha1/zz_generated.prerelease-lifecycle.go index 3121a87d08..edbfce79bc 100644 --- a/vendor/k8s.io/api/certificates/v1alpha1/zz_generated.prerelease-lifecycle.go +++ b/vendor/k8s.io/api/certificates/v1alpha1/zz_generated.prerelease-lifecycle.go @@ -56,3 +56,39 @@ func (in *ClusterTrustBundleList) APILifecycleDeprecated() (major, minor int) { func (in *ClusterTrustBundleList) APILifecycleRemoved() (major, minor int) { return 1, 37 } + +// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. +func (in *PodCertificateRequest) APILifecycleIntroduced() (major, minor int) { + return 1, 34 +} + +// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. +func (in *PodCertificateRequest) APILifecycleDeprecated() (major, minor int) { + return 1, 37 +} + +// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. +func (in *PodCertificateRequest) APILifecycleRemoved() (major, minor int) { + return 1, 40 +} + +// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. +func (in *PodCertificateRequestList) APILifecycleIntroduced() (major, minor int) { + return 1, 34 +} + +// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. +func (in *PodCertificateRequestList) APILifecycleDeprecated() (major, minor int) { + return 1, 37 +} + +// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. +// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. +func (in *PodCertificateRequestList) APILifecycleRemoved() (major, minor int) { + return 1, 40 +} diff --git a/vendor/k8s.io/api/certificates/v1beta1/generated.proto b/vendor/k8s.io/api/certificates/v1beta1/generated.proto index 7c48270f65..4c9385c196 100644 --- a/vendor/k8s.io/api/certificates/v1beta1/generated.proto +++ b/vendor/k8s.io/api/certificates/v1beta1/generated.proto @@ -30,6 +30,8 @@ import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; option go_package = "k8s.io/api/certificates/v1beta1"; // Describes a certificate signing request +// +k8s:supportsSubresource=/status +// +k8s:supportsSubresource=/approval message CertificateSigningRequest { // +optional optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -182,6 +184,11 @@ message CertificateSigningRequestStatus { // +listType=map // +listMapKey=type // +optional + // +k8s:listType=map + // +k8s:listMapKey=type + // +k8s:optional + // +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + // +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember repeated CertificateSigningRequestCondition conditions = 1; // If request was approved, the controller will place the issued certificate here. diff --git a/vendor/k8s.io/api/certificates/v1beta1/types.go b/vendor/k8s.io/api/certificates/v1beta1/types.go index 1ce104807d..fadb7e082e 100644 --- a/vendor/k8s.io/api/certificates/v1beta1/types.go +++ b/vendor/k8s.io/api/certificates/v1beta1/types.go @@ -31,6 +31,8 @@ import ( // +k8s:prerelease-lifecycle-gen:replacement=certificates.k8s.io,v1,CertificateSigningRequest // Describes a certificate signing request +// +k8s:supportsSubresource=/status +// +k8s:supportsSubresource=/approval type CertificateSigningRequest struct { metav1.TypeMeta `json:",inline"` // +optional @@ -175,6 +177,11 @@ type CertificateSigningRequestStatus struct { // +listType=map // +listMapKey=type // +optional + // +k8s:listType=map + // +k8s:listMapKey=type + // +k8s:optional + // +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + // +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember Conditions []CertificateSigningRequestCondition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` // If request was approved, the controller will place the issued certificate here. diff --git a/vendor/k8s.io/api/core/v1/generated.pb.go b/vendor/k8s.io/api/core/v1/generated.pb.go index a4b8f58429..e1a297b985 100644 --- a/vendor/k8s.io/api/core/v1/generated.pb.go +++ b/vendor/k8s.io/api/core/v1/generated.pb.go @@ -861,10 +861,38 @@ func (m *Container) XXX_DiscardUnknown() { var xxx_messageInfo_Container proto.InternalMessageInfo +func (m *ContainerExtendedResourceRequest) Reset() { *m = ContainerExtendedResourceRequest{} } +func (*ContainerExtendedResourceRequest) ProtoMessage() {} +func (*ContainerExtendedResourceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_6c07b07c062484ab, []int{29} +} +func (m *ContainerExtendedResourceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContainerExtendedResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ContainerExtendedResourceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContainerExtendedResourceRequest.Merge(m, src) +} +func (m *ContainerExtendedResourceRequest) XXX_Size() int { + return m.Size() +} +func (m *ContainerExtendedResourceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ContainerExtendedResourceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ContainerExtendedResourceRequest proto.InternalMessageInfo + func (m *ContainerImage) Reset() { *m = ContainerImage{} } func (*ContainerImage) ProtoMessage() {} func (*ContainerImage) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{29} + return fileDescriptor_6c07b07c062484ab, []int{30} } func (m *ContainerImage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -892,7 +920,7 @@ var xxx_messageInfo_ContainerImage proto.InternalMessageInfo func (m *ContainerPort) Reset() { *m = ContainerPort{} } func (*ContainerPort) ProtoMessage() {} func (*ContainerPort) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{30} + return fileDescriptor_6c07b07c062484ab, []int{31} } func (m *ContainerPort) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -920,7 +948,7 @@ var xxx_messageInfo_ContainerPort proto.InternalMessageInfo func (m *ContainerResizePolicy) Reset() { *m = ContainerResizePolicy{} } func (*ContainerResizePolicy) ProtoMessage() {} func (*ContainerResizePolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{31} + return fileDescriptor_6c07b07c062484ab, []int{32} } func (m *ContainerResizePolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -945,10 +973,66 @@ func (m *ContainerResizePolicy) XXX_DiscardUnknown() { var xxx_messageInfo_ContainerResizePolicy proto.InternalMessageInfo +func (m *ContainerRestartRule) Reset() { *m = ContainerRestartRule{} } +func (*ContainerRestartRule) ProtoMessage() {} +func (*ContainerRestartRule) Descriptor() ([]byte, []int) { + return fileDescriptor_6c07b07c062484ab, []int{33} +} +func (m *ContainerRestartRule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContainerRestartRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ContainerRestartRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContainerRestartRule.Merge(m, src) +} +func (m *ContainerRestartRule) XXX_Size() int { + return m.Size() +} +func (m *ContainerRestartRule) XXX_DiscardUnknown() { + xxx_messageInfo_ContainerRestartRule.DiscardUnknown(m) +} + +var xxx_messageInfo_ContainerRestartRule proto.InternalMessageInfo + +func (m *ContainerRestartRuleOnExitCodes) Reset() { *m = ContainerRestartRuleOnExitCodes{} } +func (*ContainerRestartRuleOnExitCodes) ProtoMessage() {} +func (*ContainerRestartRuleOnExitCodes) Descriptor() ([]byte, []int) { + return fileDescriptor_6c07b07c062484ab, []int{34} +} +func (m *ContainerRestartRuleOnExitCodes) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContainerRestartRuleOnExitCodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ContainerRestartRuleOnExitCodes) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContainerRestartRuleOnExitCodes.Merge(m, src) +} +func (m *ContainerRestartRuleOnExitCodes) XXX_Size() int { + return m.Size() +} +func (m *ContainerRestartRuleOnExitCodes) XXX_DiscardUnknown() { + xxx_messageInfo_ContainerRestartRuleOnExitCodes.DiscardUnknown(m) +} + +var xxx_messageInfo_ContainerRestartRuleOnExitCodes proto.InternalMessageInfo + func (m *ContainerState) Reset() { *m = ContainerState{} } func (*ContainerState) ProtoMessage() {} func (*ContainerState) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{32} + return fileDescriptor_6c07b07c062484ab, []int{35} } func (m *ContainerState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -976,7 +1060,7 @@ var xxx_messageInfo_ContainerState proto.InternalMessageInfo func (m *ContainerStateRunning) Reset() { *m = ContainerStateRunning{} } func (*ContainerStateRunning) ProtoMessage() {} func (*ContainerStateRunning) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{33} + return fileDescriptor_6c07b07c062484ab, []int{36} } func (m *ContainerStateRunning) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1004,7 +1088,7 @@ var xxx_messageInfo_ContainerStateRunning proto.InternalMessageInfo func (m *ContainerStateTerminated) Reset() { *m = ContainerStateTerminated{} } func (*ContainerStateTerminated) ProtoMessage() {} func (*ContainerStateTerminated) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{34} + return fileDescriptor_6c07b07c062484ab, []int{37} } func (m *ContainerStateTerminated) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1032,7 +1116,7 @@ var xxx_messageInfo_ContainerStateTerminated proto.InternalMessageInfo func (m *ContainerStateWaiting) Reset() { *m = ContainerStateWaiting{} } func (*ContainerStateWaiting) ProtoMessage() {} func (*ContainerStateWaiting) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{35} + return fileDescriptor_6c07b07c062484ab, []int{38} } func (m *ContainerStateWaiting) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1060,7 +1144,7 @@ var xxx_messageInfo_ContainerStateWaiting proto.InternalMessageInfo func (m *ContainerStatus) Reset() { *m = ContainerStatus{} } func (*ContainerStatus) ProtoMessage() {} func (*ContainerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{36} + return fileDescriptor_6c07b07c062484ab, []int{39} } func (m *ContainerStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1088,7 +1172,7 @@ var xxx_messageInfo_ContainerStatus proto.InternalMessageInfo func (m *ContainerUser) Reset() { *m = ContainerUser{} } func (*ContainerUser) ProtoMessage() {} func (*ContainerUser) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{37} + return fileDescriptor_6c07b07c062484ab, []int{40} } func (m *ContainerUser) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1116,7 +1200,7 @@ var xxx_messageInfo_ContainerUser proto.InternalMessageInfo func (m *DaemonEndpoint) Reset() { *m = DaemonEndpoint{} } func (*DaemonEndpoint) ProtoMessage() {} func (*DaemonEndpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{38} + return fileDescriptor_6c07b07c062484ab, []int{41} } func (m *DaemonEndpoint) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1144,7 +1228,7 @@ var xxx_messageInfo_DaemonEndpoint proto.InternalMessageInfo func (m *DownwardAPIProjection) Reset() { *m = DownwardAPIProjection{} } func (*DownwardAPIProjection) ProtoMessage() {} func (*DownwardAPIProjection) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{39} + return fileDescriptor_6c07b07c062484ab, []int{42} } func (m *DownwardAPIProjection) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1172,7 +1256,7 @@ var xxx_messageInfo_DownwardAPIProjection proto.InternalMessageInfo func (m *DownwardAPIVolumeFile) Reset() { *m = DownwardAPIVolumeFile{} } func (*DownwardAPIVolumeFile) ProtoMessage() {} func (*DownwardAPIVolumeFile) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{40} + return fileDescriptor_6c07b07c062484ab, []int{43} } func (m *DownwardAPIVolumeFile) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1200,7 +1284,7 @@ var xxx_messageInfo_DownwardAPIVolumeFile proto.InternalMessageInfo func (m *DownwardAPIVolumeSource) Reset() { *m = DownwardAPIVolumeSource{} } func (*DownwardAPIVolumeSource) ProtoMessage() {} func (*DownwardAPIVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{41} + return fileDescriptor_6c07b07c062484ab, []int{44} } func (m *DownwardAPIVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1228,7 +1312,7 @@ var xxx_messageInfo_DownwardAPIVolumeSource proto.InternalMessageInfo func (m *EmptyDirVolumeSource) Reset() { *m = EmptyDirVolumeSource{} } func (*EmptyDirVolumeSource) ProtoMessage() {} func (*EmptyDirVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{42} + return fileDescriptor_6c07b07c062484ab, []int{45} } func (m *EmptyDirVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1256,7 +1340,7 @@ var xxx_messageInfo_EmptyDirVolumeSource proto.InternalMessageInfo func (m *EndpointAddress) Reset() { *m = EndpointAddress{} } func (*EndpointAddress) ProtoMessage() {} func (*EndpointAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{43} + return fileDescriptor_6c07b07c062484ab, []int{46} } func (m *EndpointAddress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1284,7 +1368,7 @@ var xxx_messageInfo_EndpointAddress proto.InternalMessageInfo func (m *EndpointPort) Reset() { *m = EndpointPort{} } func (*EndpointPort) ProtoMessage() {} func (*EndpointPort) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{44} + return fileDescriptor_6c07b07c062484ab, []int{47} } func (m *EndpointPort) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1312,7 +1396,7 @@ var xxx_messageInfo_EndpointPort proto.InternalMessageInfo func (m *EndpointSubset) Reset() { *m = EndpointSubset{} } func (*EndpointSubset) ProtoMessage() {} func (*EndpointSubset) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{45} + return fileDescriptor_6c07b07c062484ab, []int{48} } func (m *EndpointSubset) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1340,7 +1424,7 @@ var xxx_messageInfo_EndpointSubset proto.InternalMessageInfo func (m *Endpoints) Reset() { *m = Endpoints{} } func (*Endpoints) ProtoMessage() {} func (*Endpoints) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{46} + return fileDescriptor_6c07b07c062484ab, []int{49} } func (m *Endpoints) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1368,7 +1452,7 @@ var xxx_messageInfo_Endpoints proto.InternalMessageInfo func (m *EndpointsList) Reset() { *m = EndpointsList{} } func (*EndpointsList) ProtoMessage() {} func (*EndpointsList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{47} + return fileDescriptor_6c07b07c062484ab, []int{50} } func (m *EndpointsList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1396,7 +1480,7 @@ var xxx_messageInfo_EndpointsList proto.InternalMessageInfo func (m *EnvFromSource) Reset() { *m = EnvFromSource{} } func (*EnvFromSource) ProtoMessage() {} func (*EnvFromSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{48} + return fileDescriptor_6c07b07c062484ab, []int{51} } func (m *EnvFromSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1424,7 +1508,7 @@ var xxx_messageInfo_EnvFromSource proto.InternalMessageInfo func (m *EnvVar) Reset() { *m = EnvVar{} } func (*EnvVar) ProtoMessage() {} func (*EnvVar) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{49} + return fileDescriptor_6c07b07c062484ab, []int{52} } func (m *EnvVar) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1452,7 +1536,7 @@ var xxx_messageInfo_EnvVar proto.InternalMessageInfo func (m *EnvVarSource) Reset() { *m = EnvVarSource{} } func (*EnvVarSource) ProtoMessage() {} func (*EnvVarSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{50} + return fileDescriptor_6c07b07c062484ab, []int{53} } func (m *EnvVarSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1480,7 +1564,7 @@ var xxx_messageInfo_EnvVarSource proto.InternalMessageInfo func (m *EphemeralContainer) Reset() { *m = EphemeralContainer{} } func (*EphemeralContainer) ProtoMessage() {} func (*EphemeralContainer) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{51} + return fileDescriptor_6c07b07c062484ab, []int{54} } func (m *EphemeralContainer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1508,7 +1592,7 @@ var xxx_messageInfo_EphemeralContainer proto.InternalMessageInfo func (m *EphemeralContainerCommon) Reset() { *m = EphemeralContainerCommon{} } func (*EphemeralContainerCommon) ProtoMessage() {} func (*EphemeralContainerCommon) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{52} + return fileDescriptor_6c07b07c062484ab, []int{55} } func (m *EphemeralContainerCommon) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1536,7 +1620,7 @@ var xxx_messageInfo_EphemeralContainerCommon proto.InternalMessageInfo func (m *EphemeralVolumeSource) Reset() { *m = EphemeralVolumeSource{} } func (*EphemeralVolumeSource) ProtoMessage() {} func (*EphemeralVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{53} + return fileDescriptor_6c07b07c062484ab, []int{56} } func (m *EphemeralVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1564,7 +1648,7 @@ var xxx_messageInfo_EphemeralVolumeSource proto.InternalMessageInfo func (m *Event) Reset() { *m = Event{} } func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{54} + return fileDescriptor_6c07b07c062484ab, []int{57} } func (m *Event) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1592,7 +1676,7 @@ var xxx_messageInfo_Event proto.InternalMessageInfo func (m *EventList) Reset() { *m = EventList{} } func (*EventList) ProtoMessage() {} func (*EventList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{55} + return fileDescriptor_6c07b07c062484ab, []int{58} } func (m *EventList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1620,7 +1704,7 @@ var xxx_messageInfo_EventList proto.InternalMessageInfo func (m *EventSeries) Reset() { *m = EventSeries{} } func (*EventSeries) ProtoMessage() {} func (*EventSeries) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{56} + return fileDescriptor_6c07b07c062484ab, []int{59} } func (m *EventSeries) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1648,7 +1732,7 @@ var xxx_messageInfo_EventSeries proto.InternalMessageInfo func (m *EventSource) Reset() { *m = EventSource{} } func (*EventSource) ProtoMessage() {} func (*EventSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{57} + return fileDescriptor_6c07b07c062484ab, []int{60} } func (m *EventSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1676,7 +1760,7 @@ var xxx_messageInfo_EventSource proto.InternalMessageInfo func (m *ExecAction) Reset() { *m = ExecAction{} } func (*ExecAction) ProtoMessage() {} func (*ExecAction) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{58} + return fileDescriptor_6c07b07c062484ab, []int{61} } func (m *ExecAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1704,7 +1788,7 @@ var xxx_messageInfo_ExecAction proto.InternalMessageInfo func (m *FCVolumeSource) Reset() { *m = FCVolumeSource{} } func (*FCVolumeSource) ProtoMessage() {} func (*FCVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{59} + return fileDescriptor_6c07b07c062484ab, []int{62} } func (m *FCVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1729,10 +1813,38 @@ func (m *FCVolumeSource) XXX_DiscardUnknown() { var xxx_messageInfo_FCVolumeSource proto.InternalMessageInfo +func (m *FileKeySelector) Reset() { *m = FileKeySelector{} } +func (*FileKeySelector) ProtoMessage() {} +func (*FileKeySelector) Descriptor() ([]byte, []int) { + return fileDescriptor_6c07b07c062484ab, []int{63} +} +func (m *FileKeySelector) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FileKeySelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *FileKeySelector) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileKeySelector.Merge(m, src) +} +func (m *FileKeySelector) XXX_Size() int { + return m.Size() +} +func (m *FileKeySelector) XXX_DiscardUnknown() { + xxx_messageInfo_FileKeySelector.DiscardUnknown(m) +} + +var xxx_messageInfo_FileKeySelector proto.InternalMessageInfo + func (m *FlexPersistentVolumeSource) Reset() { *m = FlexPersistentVolumeSource{} } func (*FlexPersistentVolumeSource) ProtoMessage() {} func (*FlexPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{60} + return fileDescriptor_6c07b07c062484ab, []int{64} } func (m *FlexPersistentVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1760,7 +1872,7 @@ var xxx_messageInfo_FlexPersistentVolumeSource proto.InternalMessageInfo func (m *FlexVolumeSource) Reset() { *m = FlexVolumeSource{} } func (*FlexVolumeSource) ProtoMessage() {} func (*FlexVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{61} + return fileDescriptor_6c07b07c062484ab, []int{65} } func (m *FlexVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1788,7 +1900,7 @@ var xxx_messageInfo_FlexVolumeSource proto.InternalMessageInfo func (m *FlockerVolumeSource) Reset() { *m = FlockerVolumeSource{} } func (*FlockerVolumeSource) ProtoMessage() {} func (*FlockerVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{62} + return fileDescriptor_6c07b07c062484ab, []int{66} } func (m *FlockerVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1816,7 +1928,7 @@ var xxx_messageInfo_FlockerVolumeSource proto.InternalMessageInfo func (m *GCEPersistentDiskVolumeSource) Reset() { *m = GCEPersistentDiskVolumeSource{} } func (*GCEPersistentDiskVolumeSource) ProtoMessage() {} func (*GCEPersistentDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{63} + return fileDescriptor_6c07b07c062484ab, []int{67} } func (m *GCEPersistentDiskVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1844,7 +1956,7 @@ var xxx_messageInfo_GCEPersistentDiskVolumeSource proto.InternalMessageInfo func (m *GRPCAction) Reset() { *m = GRPCAction{} } func (*GRPCAction) ProtoMessage() {} func (*GRPCAction) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{64} + return fileDescriptor_6c07b07c062484ab, []int{68} } func (m *GRPCAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1872,7 +1984,7 @@ var xxx_messageInfo_GRPCAction proto.InternalMessageInfo func (m *GitRepoVolumeSource) Reset() { *m = GitRepoVolumeSource{} } func (*GitRepoVolumeSource) ProtoMessage() {} func (*GitRepoVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{65} + return fileDescriptor_6c07b07c062484ab, []int{69} } func (m *GitRepoVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1900,7 +2012,7 @@ var xxx_messageInfo_GitRepoVolumeSource proto.InternalMessageInfo func (m *GlusterfsPersistentVolumeSource) Reset() { *m = GlusterfsPersistentVolumeSource{} } func (*GlusterfsPersistentVolumeSource) ProtoMessage() {} func (*GlusterfsPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{66} + return fileDescriptor_6c07b07c062484ab, []int{70} } func (m *GlusterfsPersistentVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1928,7 +2040,7 @@ var xxx_messageInfo_GlusterfsPersistentVolumeSource proto.InternalMessageInfo func (m *GlusterfsVolumeSource) Reset() { *m = GlusterfsVolumeSource{} } func (*GlusterfsVolumeSource) ProtoMessage() {} func (*GlusterfsVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{67} + return fileDescriptor_6c07b07c062484ab, []int{71} } func (m *GlusterfsVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1956,7 +2068,7 @@ var xxx_messageInfo_GlusterfsVolumeSource proto.InternalMessageInfo func (m *HTTPGetAction) Reset() { *m = HTTPGetAction{} } func (*HTTPGetAction) ProtoMessage() {} func (*HTTPGetAction) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{68} + return fileDescriptor_6c07b07c062484ab, []int{72} } func (m *HTTPGetAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1984,7 +2096,7 @@ var xxx_messageInfo_HTTPGetAction proto.InternalMessageInfo func (m *HTTPHeader) Reset() { *m = HTTPHeader{} } func (*HTTPHeader) ProtoMessage() {} func (*HTTPHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{69} + return fileDescriptor_6c07b07c062484ab, []int{73} } func (m *HTTPHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2012,7 +2124,7 @@ var xxx_messageInfo_HTTPHeader proto.InternalMessageInfo func (m *HostAlias) Reset() { *m = HostAlias{} } func (*HostAlias) ProtoMessage() {} func (*HostAlias) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{70} + return fileDescriptor_6c07b07c062484ab, []int{74} } func (m *HostAlias) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2040,7 +2152,7 @@ var xxx_messageInfo_HostAlias proto.InternalMessageInfo func (m *HostIP) Reset() { *m = HostIP{} } func (*HostIP) ProtoMessage() {} func (*HostIP) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{71} + return fileDescriptor_6c07b07c062484ab, []int{75} } func (m *HostIP) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2068,7 +2180,7 @@ var xxx_messageInfo_HostIP proto.InternalMessageInfo func (m *HostPathVolumeSource) Reset() { *m = HostPathVolumeSource{} } func (*HostPathVolumeSource) ProtoMessage() {} func (*HostPathVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{72} + return fileDescriptor_6c07b07c062484ab, []int{76} } func (m *HostPathVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2096,7 +2208,7 @@ var xxx_messageInfo_HostPathVolumeSource proto.InternalMessageInfo func (m *ISCSIPersistentVolumeSource) Reset() { *m = ISCSIPersistentVolumeSource{} } func (*ISCSIPersistentVolumeSource) ProtoMessage() {} func (*ISCSIPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{73} + return fileDescriptor_6c07b07c062484ab, []int{77} } func (m *ISCSIPersistentVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2124,7 +2236,7 @@ var xxx_messageInfo_ISCSIPersistentVolumeSource proto.InternalMessageInfo func (m *ISCSIVolumeSource) Reset() { *m = ISCSIVolumeSource{} } func (*ISCSIVolumeSource) ProtoMessage() {} func (*ISCSIVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{74} + return fileDescriptor_6c07b07c062484ab, []int{78} } func (m *ISCSIVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2152,7 +2264,7 @@ var xxx_messageInfo_ISCSIVolumeSource proto.InternalMessageInfo func (m *ImageVolumeSource) Reset() { *m = ImageVolumeSource{} } func (*ImageVolumeSource) ProtoMessage() {} func (*ImageVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{75} + return fileDescriptor_6c07b07c062484ab, []int{79} } func (m *ImageVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2180,7 +2292,7 @@ var xxx_messageInfo_ImageVolumeSource proto.InternalMessageInfo func (m *KeyToPath) Reset() { *m = KeyToPath{} } func (*KeyToPath) ProtoMessage() {} func (*KeyToPath) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{76} + return fileDescriptor_6c07b07c062484ab, []int{80} } func (m *KeyToPath) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2208,7 +2320,7 @@ var xxx_messageInfo_KeyToPath proto.InternalMessageInfo func (m *Lifecycle) Reset() { *m = Lifecycle{} } func (*Lifecycle) ProtoMessage() {} func (*Lifecycle) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{77} + return fileDescriptor_6c07b07c062484ab, []int{81} } func (m *Lifecycle) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2236,7 +2348,7 @@ var xxx_messageInfo_Lifecycle proto.InternalMessageInfo func (m *LifecycleHandler) Reset() { *m = LifecycleHandler{} } func (*LifecycleHandler) ProtoMessage() {} func (*LifecycleHandler) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{78} + return fileDescriptor_6c07b07c062484ab, []int{82} } func (m *LifecycleHandler) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2264,7 +2376,7 @@ var xxx_messageInfo_LifecycleHandler proto.InternalMessageInfo func (m *LimitRange) Reset() { *m = LimitRange{} } func (*LimitRange) ProtoMessage() {} func (*LimitRange) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{79} + return fileDescriptor_6c07b07c062484ab, []int{83} } func (m *LimitRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2292,7 +2404,7 @@ var xxx_messageInfo_LimitRange proto.InternalMessageInfo func (m *LimitRangeItem) Reset() { *m = LimitRangeItem{} } func (*LimitRangeItem) ProtoMessage() {} func (*LimitRangeItem) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{80} + return fileDescriptor_6c07b07c062484ab, []int{84} } func (m *LimitRangeItem) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2320,7 +2432,7 @@ var xxx_messageInfo_LimitRangeItem proto.InternalMessageInfo func (m *LimitRangeList) Reset() { *m = LimitRangeList{} } func (*LimitRangeList) ProtoMessage() {} func (*LimitRangeList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{81} + return fileDescriptor_6c07b07c062484ab, []int{85} } func (m *LimitRangeList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2348,7 +2460,7 @@ var xxx_messageInfo_LimitRangeList proto.InternalMessageInfo func (m *LimitRangeSpec) Reset() { *m = LimitRangeSpec{} } func (*LimitRangeSpec) ProtoMessage() {} func (*LimitRangeSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{82} + return fileDescriptor_6c07b07c062484ab, []int{86} } func (m *LimitRangeSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2376,7 +2488,7 @@ var xxx_messageInfo_LimitRangeSpec proto.InternalMessageInfo func (m *LinuxContainerUser) Reset() { *m = LinuxContainerUser{} } func (*LinuxContainerUser) ProtoMessage() {} func (*LinuxContainerUser) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{83} + return fileDescriptor_6c07b07c062484ab, []int{87} } func (m *LinuxContainerUser) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2404,7 +2516,7 @@ var xxx_messageInfo_LinuxContainerUser proto.InternalMessageInfo func (m *List) Reset() { *m = List{} } func (*List) ProtoMessage() {} func (*List) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{84} + return fileDescriptor_6c07b07c062484ab, []int{88} } func (m *List) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2432,7 +2544,7 @@ var xxx_messageInfo_List proto.InternalMessageInfo func (m *LoadBalancerIngress) Reset() { *m = LoadBalancerIngress{} } func (*LoadBalancerIngress) ProtoMessage() {} func (*LoadBalancerIngress) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{85} + return fileDescriptor_6c07b07c062484ab, []int{89} } func (m *LoadBalancerIngress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2460,7 +2572,7 @@ var xxx_messageInfo_LoadBalancerIngress proto.InternalMessageInfo func (m *LoadBalancerStatus) Reset() { *m = LoadBalancerStatus{} } func (*LoadBalancerStatus) ProtoMessage() {} func (*LoadBalancerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{86} + return fileDescriptor_6c07b07c062484ab, []int{90} } func (m *LoadBalancerStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2488,7 +2600,7 @@ var xxx_messageInfo_LoadBalancerStatus proto.InternalMessageInfo func (m *LocalObjectReference) Reset() { *m = LocalObjectReference{} } func (*LocalObjectReference) ProtoMessage() {} func (*LocalObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{87} + return fileDescriptor_6c07b07c062484ab, []int{91} } func (m *LocalObjectReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2516,7 +2628,7 @@ var xxx_messageInfo_LocalObjectReference proto.InternalMessageInfo func (m *LocalVolumeSource) Reset() { *m = LocalVolumeSource{} } func (*LocalVolumeSource) ProtoMessage() {} func (*LocalVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{88} + return fileDescriptor_6c07b07c062484ab, []int{92} } func (m *LocalVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2544,7 +2656,7 @@ var xxx_messageInfo_LocalVolumeSource proto.InternalMessageInfo func (m *ModifyVolumeStatus) Reset() { *m = ModifyVolumeStatus{} } func (*ModifyVolumeStatus) ProtoMessage() {} func (*ModifyVolumeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{89} + return fileDescriptor_6c07b07c062484ab, []int{93} } func (m *ModifyVolumeStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2572,7 +2684,7 @@ var xxx_messageInfo_ModifyVolumeStatus proto.InternalMessageInfo func (m *NFSVolumeSource) Reset() { *m = NFSVolumeSource{} } func (*NFSVolumeSource) ProtoMessage() {} func (*NFSVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{90} + return fileDescriptor_6c07b07c062484ab, []int{94} } func (m *NFSVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2600,7 +2712,7 @@ var xxx_messageInfo_NFSVolumeSource proto.InternalMessageInfo func (m *Namespace) Reset() { *m = Namespace{} } func (*Namespace) ProtoMessage() {} func (*Namespace) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{91} + return fileDescriptor_6c07b07c062484ab, []int{95} } func (m *Namespace) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2628,7 +2740,7 @@ var xxx_messageInfo_Namespace proto.InternalMessageInfo func (m *NamespaceCondition) Reset() { *m = NamespaceCondition{} } func (*NamespaceCondition) ProtoMessage() {} func (*NamespaceCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{92} + return fileDescriptor_6c07b07c062484ab, []int{96} } func (m *NamespaceCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2656,7 +2768,7 @@ var xxx_messageInfo_NamespaceCondition proto.InternalMessageInfo func (m *NamespaceList) Reset() { *m = NamespaceList{} } func (*NamespaceList) ProtoMessage() {} func (*NamespaceList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{93} + return fileDescriptor_6c07b07c062484ab, []int{97} } func (m *NamespaceList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2684,7 +2796,7 @@ var xxx_messageInfo_NamespaceList proto.InternalMessageInfo func (m *NamespaceSpec) Reset() { *m = NamespaceSpec{} } func (*NamespaceSpec) ProtoMessage() {} func (*NamespaceSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{94} + return fileDescriptor_6c07b07c062484ab, []int{98} } func (m *NamespaceSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2712,7 +2824,7 @@ var xxx_messageInfo_NamespaceSpec proto.InternalMessageInfo func (m *NamespaceStatus) Reset() { *m = NamespaceStatus{} } func (*NamespaceStatus) ProtoMessage() {} func (*NamespaceStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{95} + return fileDescriptor_6c07b07c062484ab, []int{99} } func (m *NamespaceStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2740,7 +2852,7 @@ var xxx_messageInfo_NamespaceStatus proto.InternalMessageInfo func (m *Node) Reset() { *m = Node{} } func (*Node) ProtoMessage() {} func (*Node) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{96} + return fileDescriptor_6c07b07c062484ab, []int{100} } func (m *Node) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2768,7 +2880,7 @@ var xxx_messageInfo_Node proto.InternalMessageInfo func (m *NodeAddress) Reset() { *m = NodeAddress{} } func (*NodeAddress) ProtoMessage() {} func (*NodeAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{97} + return fileDescriptor_6c07b07c062484ab, []int{101} } func (m *NodeAddress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2796,7 +2908,7 @@ var xxx_messageInfo_NodeAddress proto.InternalMessageInfo func (m *NodeAffinity) Reset() { *m = NodeAffinity{} } func (*NodeAffinity) ProtoMessage() {} func (*NodeAffinity) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{98} + return fileDescriptor_6c07b07c062484ab, []int{102} } func (m *NodeAffinity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2824,7 +2936,7 @@ var xxx_messageInfo_NodeAffinity proto.InternalMessageInfo func (m *NodeCondition) Reset() { *m = NodeCondition{} } func (*NodeCondition) ProtoMessage() {} func (*NodeCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{99} + return fileDescriptor_6c07b07c062484ab, []int{103} } func (m *NodeCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2852,7 +2964,7 @@ var xxx_messageInfo_NodeCondition proto.InternalMessageInfo func (m *NodeConfigSource) Reset() { *m = NodeConfigSource{} } func (*NodeConfigSource) ProtoMessage() {} func (*NodeConfigSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{100} + return fileDescriptor_6c07b07c062484ab, []int{104} } func (m *NodeConfigSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2880,7 +2992,7 @@ var xxx_messageInfo_NodeConfigSource proto.InternalMessageInfo func (m *NodeConfigStatus) Reset() { *m = NodeConfigStatus{} } func (*NodeConfigStatus) ProtoMessage() {} func (*NodeConfigStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{101} + return fileDescriptor_6c07b07c062484ab, []int{105} } func (m *NodeConfigStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2908,7 +3020,7 @@ var xxx_messageInfo_NodeConfigStatus proto.InternalMessageInfo func (m *NodeDaemonEndpoints) Reset() { *m = NodeDaemonEndpoints{} } func (*NodeDaemonEndpoints) ProtoMessage() {} func (*NodeDaemonEndpoints) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{102} + return fileDescriptor_6c07b07c062484ab, []int{106} } func (m *NodeDaemonEndpoints) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2936,7 +3048,7 @@ var xxx_messageInfo_NodeDaemonEndpoints proto.InternalMessageInfo func (m *NodeFeatures) Reset() { *m = NodeFeatures{} } func (*NodeFeatures) ProtoMessage() {} func (*NodeFeatures) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{103} + return fileDescriptor_6c07b07c062484ab, []int{107} } func (m *NodeFeatures) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2964,7 +3076,7 @@ var xxx_messageInfo_NodeFeatures proto.InternalMessageInfo func (m *NodeList) Reset() { *m = NodeList{} } func (*NodeList) ProtoMessage() {} func (*NodeList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{104} + return fileDescriptor_6c07b07c062484ab, []int{108} } func (m *NodeList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2992,7 +3104,7 @@ var xxx_messageInfo_NodeList proto.InternalMessageInfo func (m *NodeProxyOptions) Reset() { *m = NodeProxyOptions{} } func (*NodeProxyOptions) ProtoMessage() {} func (*NodeProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{105} + return fileDescriptor_6c07b07c062484ab, []int{109} } func (m *NodeProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3020,7 +3132,7 @@ var xxx_messageInfo_NodeProxyOptions proto.InternalMessageInfo func (m *NodeRuntimeHandler) Reset() { *m = NodeRuntimeHandler{} } func (*NodeRuntimeHandler) ProtoMessage() {} func (*NodeRuntimeHandler) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{106} + return fileDescriptor_6c07b07c062484ab, []int{110} } func (m *NodeRuntimeHandler) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3048,7 +3160,7 @@ var xxx_messageInfo_NodeRuntimeHandler proto.InternalMessageInfo func (m *NodeRuntimeHandlerFeatures) Reset() { *m = NodeRuntimeHandlerFeatures{} } func (*NodeRuntimeHandlerFeatures) ProtoMessage() {} func (*NodeRuntimeHandlerFeatures) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{107} + return fileDescriptor_6c07b07c062484ab, []int{111} } func (m *NodeRuntimeHandlerFeatures) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3076,7 +3188,7 @@ var xxx_messageInfo_NodeRuntimeHandlerFeatures proto.InternalMessageInfo func (m *NodeSelector) Reset() { *m = NodeSelector{} } func (*NodeSelector) ProtoMessage() {} func (*NodeSelector) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{108} + return fileDescriptor_6c07b07c062484ab, []int{112} } func (m *NodeSelector) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3104,7 +3216,7 @@ var xxx_messageInfo_NodeSelector proto.InternalMessageInfo func (m *NodeSelectorRequirement) Reset() { *m = NodeSelectorRequirement{} } func (*NodeSelectorRequirement) ProtoMessage() {} func (*NodeSelectorRequirement) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{109} + return fileDescriptor_6c07b07c062484ab, []int{113} } func (m *NodeSelectorRequirement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3132,7 +3244,7 @@ var xxx_messageInfo_NodeSelectorRequirement proto.InternalMessageInfo func (m *NodeSelectorTerm) Reset() { *m = NodeSelectorTerm{} } func (*NodeSelectorTerm) ProtoMessage() {} func (*NodeSelectorTerm) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{110} + return fileDescriptor_6c07b07c062484ab, []int{114} } func (m *NodeSelectorTerm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3160,7 +3272,7 @@ var xxx_messageInfo_NodeSelectorTerm proto.InternalMessageInfo func (m *NodeSpec) Reset() { *m = NodeSpec{} } func (*NodeSpec) ProtoMessage() {} func (*NodeSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{111} + return fileDescriptor_6c07b07c062484ab, []int{115} } func (m *NodeSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3188,7 +3300,7 @@ var xxx_messageInfo_NodeSpec proto.InternalMessageInfo func (m *NodeStatus) Reset() { *m = NodeStatus{} } func (*NodeStatus) ProtoMessage() {} func (*NodeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{112} + return fileDescriptor_6c07b07c062484ab, []int{116} } func (m *NodeStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3216,7 +3328,7 @@ var xxx_messageInfo_NodeStatus proto.InternalMessageInfo func (m *NodeSwapStatus) Reset() { *m = NodeSwapStatus{} } func (*NodeSwapStatus) ProtoMessage() {} func (*NodeSwapStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{113} + return fileDescriptor_6c07b07c062484ab, []int{117} } func (m *NodeSwapStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3244,7 +3356,7 @@ var xxx_messageInfo_NodeSwapStatus proto.InternalMessageInfo func (m *NodeSystemInfo) Reset() { *m = NodeSystemInfo{} } func (*NodeSystemInfo) ProtoMessage() {} func (*NodeSystemInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{114} + return fileDescriptor_6c07b07c062484ab, []int{118} } func (m *NodeSystemInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3272,7 +3384,7 @@ var xxx_messageInfo_NodeSystemInfo proto.InternalMessageInfo func (m *ObjectFieldSelector) Reset() { *m = ObjectFieldSelector{} } func (*ObjectFieldSelector) ProtoMessage() {} func (*ObjectFieldSelector) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{115} + return fileDescriptor_6c07b07c062484ab, []int{119} } func (m *ObjectFieldSelector) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3300,7 +3412,7 @@ var xxx_messageInfo_ObjectFieldSelector proto.InternalMessageInfo func (m *ObjectReference) Reset() { *m = ObjectReference{} } func (*ObjectReference) ProtoMessage() {} func (*ObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{116} + return fileDescriptor_6c07b07c062484ab, []int{120} } func (m *ObjectReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3328,7 +3440,7 @@ var xxx_messageInfo_ObjectReference proto.InternalMessageInfo func (m *PersistentVolume) Reset() { *m = PersistentVolume{} } func (*PersistentVolume) ProtoMessage() {} func (*PersistentVolume) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{117} + return fileDescriptor_6c07b07c062484ab, []int{121} } func (m *PersistentVolume) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3356,7 +3468,7 @@ var xxx_messageInfo_PersistentVolume proto.InternalMessageInfo func (m *PersistentVolumeClaim) Reset() { *m = PersistentVolumeClaim{} } func (*PersistentVolumeClaim) ProtoMessage() {} func (*PersistentVolumeClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{118} + return fileDescriptor_6c07b07c062484ab, []int{122} } func (m *PersistentVolumeClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3384,7 +3496,7 @@ var xxx_messageInfo_PersistentVolumeClaim proto.InternalMessageInfo func (m *PersistentVolumeClaimCondition) Reset() { *m = PersistentVolumeClaimCondition{} } func (*PersistentVolumeClaimCondition) ProtoMessage() {} func (*PersistentVolumeClaimCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{119} + return fileDescriptor_6c07b07c062484ab, []int{123} } func (m *PersistentVolumeClaimCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3412,7 +3524,7 @@ var xxx_messageInfo_PersistentVolumeClaimCondition proto.InternalMessageInfo func (m *PersistentVolumeClaimList) Reset() { *m = PersistentVolumeClaimList{} } func (*PersistentVolumeClaimList) ProtoMessage() {} func (*PersistentVolumeClaimList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{120} + return fileDescriptor_6c07b07c062484ab, []int{124} } func (m *PersistentVolumeClaimList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3440,7 +3552,7 @@ var xxx_messageInfo_PersistentVolumeClaimList proto.InternalMessageInfo func (m *PersistentVolumeClaimSpec) Reset() { *m = PersistentVolumeClaimSpec{} } func (*PersistentVolumeClaimSpec) ProtoMessage() {} func (*PersistentVolumeClaimSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{121} + return fileDescriptor_6c07b07c062484ab, []int{125} } func (m *PersistentVolumeClaimSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3468,7 +3580,7 @@ var xxx_messageInfo_PersistentVolumeClaimSpec proto.InternalMessageInfo func (m *PersistentVolumeClaimStatus) Reset() { *m = PersistentVolumeClaimStatus{} } func (*PersistentVolumeClaimStatus) ProtoMessage() {} func (*PersistentVolumeClaimStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{122} + return fileDescriptor_6c07b07c062484ab, []int{126} } func (m *PersistentVolumeClaimStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3496,7 +3608,7 @@ var xxx_messageInfo_PersistentVolumeClaimStatus proto.InternalMessageInfo func (m *PersistentVolumeClaimTemplate) Reset() { *m = PersistentVolumeClaimTemplate{} } func (*PersistentVolumeClaimTemplate) ProtoMessage() {} func (*PersistentVolumeClaimTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{123} + return fileDescriptor_6c07b07c062484ab, []int{127} } func (m *PersistentVolumeClaimTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3524,7 +3636,7 @@ var xxx_messageInfo_PersistentVolumeClaimTemplate proto.InternalMessageInfo func (m *PersistentVolumeClaimVolumeSource) Reset() { *m = PersistentVolumeClaimVolumeSource{} } func (*PersistentVolumeClaimVolumeSource) ProtoMessage() {} func (*PersistentVolumeClaimVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{124} + return fileDescriptor_6c07b07c062484ab, []int{128} } func (m *PersistentVolumeClaimVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3552,7 +3664,7 @@ var xxx_messageInfo_PersistentVolumeClaimVolumeSource proto.InternalMessageInfo func (m *PersistentVolumeList) Reset() { *m = PersistentVolumeList{} } func (*PersistentVolumeList) ProtoMessage() {} func (*PersistentVolumeList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{125} + return fileDescriptor_6c07b07c062484ab, []int{129} } func (m *PersistentVolumeList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3580,7 +3692,7 @@ var xxx_messageInfo_PersistentVolumeList proto.InternalMessageInfo func (m *PersistentVolumeSource) Reset() { *m = PersistentVolumeSource{} } func (*PersistentVolumeSource) ProtoMessage() {} func (*PersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{126} + return fileDescriptor_6c07b07c062484ab, []int{130} } func (m *PersistentVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3608,7 +3720,7 @@ var xxx_messageInfo_PersistentVolumeSource proto.InternalMessageInfo func (m *PersistentVolumeSpec) Reset() { *m = PersistentVolumeSpec{} } func (*PersistentVolumeSpec) ProtoMessage() {} func (*PersistentVolumeSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{127} + return fileDescriptor_6c07b07c062484ab, []int{131} } func (m *PersistentVolumeSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3636,7 +3748,7 @@ var xxx_messageInfo_PersistentVolumeSpec proto.InternalMessageInfo func (m *PersistentVolumeStatus) Reset() { *m = PersistentVolumeStatus{} } func (*PersistentVolumeStatus) ProtoMessage() {} func (*PersistentVolumeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{128} + return fileDescriptor_6c07b07c062484ab, []int{132} } func (m *PersistentVolumeStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3664,7 +3776,7 @@ var xxx_messageInfo_PersistentVolumeStatus proto.InternalMessageInfo func (m *PhotonPersistentDiskVolumeSource) Reset() { *m = PhotonPersistentDiskVolumeSource{} } func (*PhotonPersistentDiskVolumeSource) ProtoMessage() {} func (*PhotonPersistentDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{129} + return fileDescriptor_6c07b07c062484ab, []int{133} } func (m *PhotonPersistentDiskVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3692,7 +3804,7 @@ var xxx_messageInfo_PhotonPersistentDiskVolumeSource proto.InternalMessageInfo func (m *Pod) Reset() { *m = Pod{} } func (*Pod) ProtoMessage() {} func (*Pod) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{130} + return fileDescriptor_6c07b07c062484ab, []int{134} } func (m *Pod) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3720,7 +3832,7 @@ var xxx_messageInfo_Pod proto.InternalMessageInfo func (m *PodAffinity) Reset() { *m = PodAffinity{} } func (*PodAffinity) ProtoMessage() {} func (*PodAffinity) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{131} + return fileDescriptor_6c07b07c062484ab, []int{135} } func (m *PodAffinity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3748,7 +3860,7 @@ var xxx_messageInfo_PodAffinity proto.InternalMessageInfo func (m *PodAffinityTerm) Reset() { *m = PodAffinityTerm{} } func (*PodAffinityTerm) ProtoMessage() {} func (*PodAffinityTerm) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{132} + return fileDescriptor_6c07b07c062484ab, []int{136} } func (m *PodAffinityTerm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3776,7 +3888,7 @@ var xxx_messageInfo_PodAffinityTerm proto.InternalMessageInfo func (m *PodAntiAffinity) Reset() { *m = PodAntiAffinity{} } func (*PodAntiAffinity) ProtoMessage() {} func (*PodAntiAffinity) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{133} + return fileDescriptor_6c07b07c062484ab, []int{137} } func (m *PodAntiAffinity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3804,7 +3916,7 @@ var xxx_messageInfo_PodAntiAffinity proto.InternalMessageInfo func (m *PodAttachOptions) Reset() { *m = PodAttachOptions{} } func (*PodAttachOptions) ProtoMessage() {} func (*PodAttachOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{134} + return fileDescriptor_6c07b07c062484ab, []int{138} } func (m *PodAttachOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3829,10 +3941,38 @@ func (m *PodAttachOptions) XXX_DiscardUnknown() { var xxx_messageInfo_PodAttachOptions proto.InternalMessageInfo +func (m *PodCertificateProjection) Reset() { *m = PodCertificateProjection{} } +func (*PodCertificateProjection) ProtoMessage() {} +func (*PodCertificateProjection) Descriptor() ([]byte, []int) { + return fileDescriptor_6c07b07c062484ab, []int{139} +} +func (m *PodCertificateProjection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PodCertificateProjection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PodCertificateProjection) XXX_Merge(src proto.Message) { + xxx_messageInfo_PodCertificateProjection.Merge(m, src) +} +func (m *PodCertificateProjection) XXX_Size() int { + return m.Size() +} +func (m *PodCertificateProjection) XXX_DiscardUnknown() { + xxx_messageInfo_PodCertificateProjection.DiscardUnknown(m) +} + +var xxx_messageInfo_PodCertificateProjection proto.InternalMessageInfo + func (m *PodCondition) Reset() { *m = PodCondition{} } func (*PodCondition) ProtoMessage() {} func (*PodCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{135} + return fileDescriptor_6c07b07c062484ab, []int{140} } func (m *PodCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3860,7 +4000,7 @@ var xxx_messageInfo_PodCondition proto.InternalMessageInfo func (m *PodDNSConfig) Reset() { *m = PodDNSConfig{} } func (*PodDNSConfig) ProtoMessage() {} func (*PodDNSConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{136} + return fileDescriptor_6c07b07c062484ab, []int{141} } func (m *PodDNSConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3888,7 +4028,7 @@ var xxx_messageInfo_PodDNSConfig proto.InternalMessageInfo func (m *PodDNSConfigOption) Reset() { *m = PodDNSConfigOption{} } func (*PodDNSConfigOption) ProtoMessage() {} func (*PodDNSConfigOption) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{137} + return fileDescriptor_6c07b07c062484ab, []int{142} } func (m *PodDNSConfigOption) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3916,7 +4056,7 @@ var xxx_messageInfo_PodDNSConfigOption proto.InternalMessageInfo func (m *PodExecOptions) Reset() { *m = PodExecOptions{} } func (*PodExecOptions) ProtoMessage() {} func (*PodExecOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{138} + return fileDescriptor_6c07b07c062484ab, []int{143} } func (m *PodExecOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3941,10 +4081,38 @@ func (m *PodExecOptions) XXX_DiscardUnknown() { var xxx_messageInfo_PodExecOptions proto.InternalMessageInfo +func (m *PodExtendedResourceClaimStatus) Reset() { *m = PodExtendedResourceClaimStatus{} } +func (*PodExtendedResourceClaimStatus) ProtoMessage() {} +func (*PodExtendedResourceClaimStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_6c07b07c062484ab, []int{144} +} +func (m *PodExtendedResourceClaimStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PodExtendedResourceClaimStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PodExtendedResourceClaimStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_PodExtendedResourceClaimStatus.Merge(m, src) +} +func (m *PodExtendedResourceClaimStatus) XXX_Size() int { + return m.Size() +} +func (m *PodExtendedResourceClaimStatus) XXX_DiscardUnknown() { + xxx_messageInfo_PodExtendedResourceClaimStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_PodExtendedResourceClaimStatus proto.InternalMessageInfo + func (m *PodIP) Reset() { *m = PodIP{} } func (*PodIP) ProtoMessage() {} func (*PodIP) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{139} + return fileDescriptor_6c07b07c062484ab, []int{145} } func (m *PodIP) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3972,7 +4140,7 @@ var xxx_messageInfo_PodIP proto.InternalMessageInfo func (m *PodList) Reset() { *m = PodList{} } func (*PodList) ProtoMessage() {} func (*PodList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{140} + return fileDescriptor_6c07b07c062484ab, []int{146} } func (m *PodList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4000,7 +4168,7 @@ var xxx_messageInfo_PodList proto.InternalMessageInfo func (m *PodLogOptions) Reset() { *m = PodLogOptions{} } func (*PodLogOptions) ProtoMessage() {} func (*PodLogOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{141} + return fileDescriptor_6c07b07c062484ab, []int{147} } func (m *PodLogOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4028,7 +4196,7 @@ var xxx_messageInfo_PodLogOptions proto.InternalMessageInfo func (m *PodOS) Reset() { *m = PodOS{} } func (*PodOS) ProtoMessage() {} func (*PodOS) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{142} + return fileDescriptor_6c07b07c062484ab, []int{148} } func (m *PodOS) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4056,7 +4224,7 @@ var xxx_messageInfo_PodOS proto.InternalMessageInfo func (m *PodPortForwardOptions) Reset() { *m = PodPortForwardOptions{} } func (*PodPortForwardOptions) ProtoMessage() {} func (*PodPortForwardOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{143} + return fileDescriptor_6c07b07c062484ab, []int{149} } func (m *PodPortForwardOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4084,7 +4252,7 @@ var xxx_messageInfo_PodPortForwardOptions proto.InternalMessageInfo func (m *PodProxyOptions) Reset() { *m = PodProxyOptions{} } func (*PodProxyOptions) ProtoMessage() {} func (*PodProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{144} + return fileDescriptor_6c07b07c062484ab, []int{150} } func (m *PodProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4112,7 +4280,7 @@ var xxx_messageInfo_PodProxyOptions proto.InternalMessageInfo func (m *PodReadinessGate) Reset() { *m = PodReadinessGate{} } func (*PodReadinessGate) ProtoMessage() {} func (*PodReadinessGate) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{145} + return fileDescriptor_6c07b07c062484ab, []int{151} } func (m *PodReadinessGate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4140,7 +4308,7 @@ var xxx_messageInfo_PodReadinessGate proto.InternalMessageInfo func (m *PodResourceClaim) Reset() { *m = PodResourceClaim{} } func (*PodResourceClaim) ProtoMessage() {} func (*PodResourceClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{146} + return fileDescriptor_6c07b07c062484ab, []int{152} } func (m *PodResourceClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4168,7 +4336,7 @@ var xxx_messageInfo_PodResourceClaim proto.InternalMessageInfo func (m *PodResourceClaimStatus) Reset() { *m = PodResourceClaimStatus{} } func (*PodResourceClaimStatus) ProtoMessage() {} func (*PodResourceClaimStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{147} + return fileDescriptor_6c07b07c062484ab, []int{153} } func (m *PodResourceClaimStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4196,7 +4364,7 @@ var xxx_messageInfo_PodResourceClaimStatus proto.InternalMessageInfo func (m *PodSchedulingGate) Reset() { *m = PodSchedulingGate{} } func (*PodSchedulingGate) ProtoMessage() {} func (*PodSchedulingGate) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{148} + return fileDescriptor_6c07b07c062484ab, []int{154} } func (m *PodSchedulingGate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4224,7 +4392,7 @@ var xxx_messageInfo_PodSchedulingGate proto.InternalMessageInfo func (m *PodSecurityContext) Reset() { *m = PodSecurityContext{} } func (*PodSecurityContext) ProtoMessage() {} func (*PodSecurityContext) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{149} + return fileDescriptor_6c07b07c062484ab, []int{155} } func (m *PodSecurityContext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4252,7 +4420,7 @@ var xxx_messageInfo_PodSecurityContext proto.InternalMessageInfo func (m *PodSignature) Reset() { *m = PodSignature{} } func (*PodSignature) ProtoMessage() {} func (*PodSignature) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{150} + return fileDescriptor_6c07b07c062484ab, []int{156} } func (m *PodSignature) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4280,7 +4448,7 @@ var xxx_messageInfo_PodSignature proto.InternalMessageInfo func (m *PodSpec) Reset() { *m = PodSpec{} } func (*PodSpec) ProtoMessage() {} func (*PodSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{151} + return fileDescriptor_6c07b07c062484ab, []int{157} } func (m *PodSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4308,7 +4476,7 @@ var xxx_messageInfo_PodSpec proto.InternalMessageInfo func (m *PodStatus) Reset() { *m = PodStatus{} } func (*PodStatus) ProtoMessage() {} func (*PodStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{152} + return fileDescriptor_6c07b07c062484ab, []int{158} } func (m *PodStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4336,7 +4504,7 @@ var xxx_messageInfo_PodStatus proto.InternalMessageInfo func (m *PodStatusResult) Reset() { *m = PodStatusResult{} } func (*PodStatusResult) ProtoMessage() {} func (*PodStatusResult) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{153} + return fileDescriptor_6c07b07c062484ab, []int{159} } func (m *PodStatusResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4364,7 +4532,7 @@ var xxx_messageInfo_PodStatusResult proto.InternalMessageInfo func (m *PodTemplate) Reset() { *m = PodTemplate{} } func (*PodTemplate) ProtoMessage() {} func (*PodTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{154} + return fileDescriptor_6c07b07c062484ab, []int{160} } func (m *PodTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4392,7 +4560,7 @@ var xxx_messageInfo_PodTemplate proto.InternalMessageInfo func (m *PodTemplateList) Reset() { *m = PodTemplateList{} } func (*PodTemplateList) ProtoMessage() {} func (*PodTemplateList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{155} + return fileDescriptor_6c07b07c062484ab, []int{161} } func (m *PodTemplateList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4420,7 +4588,7 @@ var xxx_messageInfo_PodTemplateList proto.InternalMessageInfo func (m *PodTemplateSpec) Reset() { *m = PodTemplateSpec{} } func (*PodTemplateSpec) ProtoMessage() {} func (*PodTemplateSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{156} + return fileDescriptor_6c07b07c062484ab, []int{162} } func (m *PodTemplateSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4448,7 +4616,7 @@ var xxx_messageInfo_PodTemplateSpec proto.InternalMessageInfo func (m *PortStatus) Reset() { *m = PortStatus{} } func (*PortStatus) ProtoMessage() {} func (*PortStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{157} + return fileDescriptor_6c07b07c062484ab, []int{163} } func (m *PortStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4476,7 +4644,7 @@ var xxx_messageInfo_PortStatus proto.InternalMessageInfo func (m *PortworxVolumeSource) Reset() { *m = PortworxVolumeSource{} } func (*PortworxVolumeSource) ProtoMessage() {} func (*PortworxVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{158} + return fileDescriptor_6c07b07c062484ab, []int{164} } func (m *PortworxVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4504,7 +4672,7 @@ var xxx_messageInfo_PortworxVolumeSource proto.InternalMessageInfo func (m *Preconditions) Reset() { *m = Preconditions{} } func (*Preconditions) ProtoMessage() {} func (*Preconditions) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{159} + return fileDescriptor_6c07b07c062484ab, []int{165} } func (m *Preconditions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4532,7 +4700,7 @@ var xxx_messageInfo_Preconditions proto.InternalMessageInfo func (m *PreferAvoidPodsEntry) Reset() { *m = PreferAvoidPodsEntry{} } func (*PreferAvoidPodsEntry) ProtoMessage() {} func (*PreferAvoidPodsEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{160} + return fileDescriptor_6c07b07c062484ab, []int{166} } func (m *PreferAvoidPodsEntry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4560,7 +4728,7 @@ var xxx_messageInfo_PreferAvoidPodsEntry proto.InternalMessageInfo func (m *PreferredSchedulingTerm) Reset() { *m = PreferredSchedulingTerm{} } func (*PreferredSchedulingTerm) ProtoMessage() {} func (*PreferredSchedulingTerm) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{161} + return fileDescriptor_6c07b07c062484ab, []int{167} } func (m *PreferredSchedulingTerm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4588,7 +4756,7 @@ var xxx_messageInfo_PreferredSchedulingTerm proto.InternalMessageInfo func (m *Probe) Reset() { *m = Probe{} } func (*Probe) ProtoMessage() {} func (*Probe) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{162} + return fileDescriptor_6c07b07c062484ab, []int{168} } func (m *Probe) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4616,7 +4784,7 @@ var xxx_messageInfo_Probe proto.InternalMessageInfo func (m *ProbeHandler) Reset() { *m = ProbeHandler{} } func (*ProbeHandler) ProtoMessage() {} func (*ProbeHandler) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{163} + return fileDescriptor_6c07b07c062484ab, []int{169} } func (m *ProbeHandler) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4644,7 +4812,7 @@ var xxx_messageInfo_ProbeHandler proto.InternalMessageInfo func (m *ProjectedVolumeSource) Reset() { *m = ProjectedVolumeSource{} } func (*ProjectedVolumeSource) ProtoMessage() {} func (*ProjectedVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{164} + return fileDescriptor_6c07b07c062484ab, []int{170} } func (m *ProjectedVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4672,7 +4840,7 @@ var xxx_messageInfo_ProjectedVolumeSource proto.InternalMessageInfo func (m *QuobyteVolumeSource) Reset() { *m = QuobyteVolumeSource{} } func (*QuobyteVolumeSource) ProtoMessage() {} func (*QuobyteVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{165} + return fileDescriptor_6c07b07c062484ab, []int{171} } func (m *QuobyteVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4700,7 +4868,7 @@ var xxx_messageInfo_QuobyteVolumeSource proto.InternalMessageInfo func (m *RBDPersistentVolumeSource) Reset() { *m = RBDPersistentVolumeSource{} } func (*RBDPersistentVolumeSource) ProtoMessage() {} func (*RBDPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{166} + return fileDescriptor_6c07b07c062484ab, []int{172} } func (m *RBDPersistentVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4728,7 +4896,7 @@ var xxx_messageInfo_RBDPersistentVolumeSource proto.InternalMessageInfo func (m *RBDVolumeSource) Reset() { *m = RBDVolumeSource{} } func (*RBDVolumeSource) ProtoMessage() {} func (*RBDVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{167} + return fileDescriptor_6c07b07c062484ab, []int{173} } func (m *RBDVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4756,7 +4924,7 @@ var xxx_messageInfo_RBDVolumeSource proto.InternalMessageInfo func (m *RangeAllocation) Reset() { *m = RangeAllocation{} } func (*RangeAllocation) ProtoMessage() {} func (*RangeAllocation) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{168} + return fileDescriptor_6c07b07c062484ab, []int{174} } func (m *RangeAllocation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4784,7 +4952,7 @@ var xxx_messageInfo_RangeAllocation proto.InternalMessageInfo func (m *ReplicationController) Reset() { *m = ReplicationController{} } func (*ReplicationController) ProtoMessage() {} func (*ReplicationController) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{169} + return fileDescriptor_6c07b07c062484ab, []int{175} } func (m *ReplicationController) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4812,7 +4980,7 @@ var xxx_messageInfo_ReplicationController proto.InternalMessageInfo func (m *ReplicationControllerCondition) Reset() { *m = ReplicationControllerCondition{} } func (*ReplicationControllerCondition) ProtoMessage() {} func (*ReplicationControllerCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{170} + return fileDescriptor_6c07b07c062484ab, []int{176} } func (m *ReplicationControllerCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4840,7 +5008,7 @@ var xxx_messageInfo_ReplicationControllerCondition proto.InternalMessageInfo func (m *ReplicationControllerList) Reset() { *m = ReplicationControllerList{} } func (*ReplicationControllerList) ProtoMessage() {} func (*ReplicationControllerList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{171} + return fileDescriptor_6c07b07c062484ab, []int{177} } func (m *ReplicationControllerList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4868,7 +5036,7 @@ var xxx_messageInfo_ReplicationControllerList proto.InternalMessageInfo func (m *ReplicationControllerSpec) Reset() { *m = ReplicationControllerSpec{} } func (*ReplicationControllerSpec) ProtoMessage() {} func (*ReplicationControllerSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{172} + return fileDescriptor_6c07b07c062484ab, []int{178} } func (m *ReplicationControllerSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4896,7 +5064,7 @@ var xxx_messageInfo_ReplicationControllerSpec proto.InternalMessageInfo func (m *ReplicationControllerStatus) Reset() { *m = ReplicationControllerStatus{} } func (*ReplicationControllerStatus) ProtoMessage() {} func (*ReplicationControllerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{173} + return fileDescriptor_6c07b07c062484ab, []int{179} } func (m *ReplicationControllerStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4924,7 +5092,7 @@ var xxx_messageInfo_ReplicationControllerStatus proto.InternalMessageInfo func (m *ResourceClaim) Reset() { *m = ResourceClaim{} } func (*ResourceClaim) ProtoMessage() {} func (*ResourceClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{174} + return fileDescriptor_6c07b07c062484ab, []int{180} } func (m *ResourceClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4952,7 +5120,7 @@ var xxx_messageInfo_ResourceClaim proto.InternalMessageInfo func (m *ResourceFieldSelector) Reset() { *m = ResourceFieldSelector{} } func (*ResourceFieldSelector) ProtoMessage() {} func (*ResourceFieldSelector) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{175} + return fileDescriptor_6c07b07c062484ab, []int{181} } func (m *ResourceFieldSelector) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4980,7 +5148,7 @@ var xxx_messageInfo_ResourceFieldSelector proto.InternalMessageInfo func (m *ResourceHealth) Reset() { *m = ResourceHealth{} } func (*ResourceHealth) ProtoMessage() {} func (*ResourceHealth) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{176} + return fileDescriptor_6c07b07c062484ab, []int{182} } func (m *ResourceHealth) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5008,7 +5176,7 @@ var xxx_messageInfo_ResourceHealth proto.InternalMessageInfo func (m *ResourceQuota) Reset() { *m = ResourceQuota{} } func (*ResourceQuota) ProtoMessage() {} func (*ResourceQuota) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{177} + return fileDescriptor_6c07b07c062484ab, []int{183} } func (m *ResourceQuota) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5036,7 +5204,7 @@ var xxx_messageInfo_ResourceQuota proto.InternalMessageInfo func (m *ResourceQuotaList) Reset() { *m = ResourceQuotaList{} } func (*ResourceQuotaList) ProtoMessage() {} func (*ResourceQuotaList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{178} + return fileDescriptor_6c07b07c062484ab, []int{184} } func (m *ResourceQuotaList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5064,7 +5232,7 @@ var xxx_messageInfo_ResourceQuotaList proto.InternalMessageInfo func (m *ResourceQuotaSpec) Reset() { *m = ResourceQuotaSpec{} } func (*ResourceQuotaSpec) ProtoMessage() {} func (*ResourceQuotaSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{179} + return fileDescriptor_6c07b07c062484ab, []int{185} } func (m *ResourceQuotaSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5092,7 +5260,7 @@ var xxx_messageInfo_ResourceQuotaSpec proto.InternalMessageInfo func (m *ResourceQuotaStatus) Reset() { *m = ResourceQuotaStatus{} } func (*ResourceQuotaStatus) ProtoMessage() {} func (*ResourceQuotaStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{180} + return fileDescriptor_6c07b07c062484ab, []int{186} } func (m *ResourceQuotaStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5120,7 +5288,7 @@ var xxx_messageInfo_ResourceQuotaStatus proto.InternalMessageInfo func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} } func (*ResourceRequirements) ProtoMessage() {} func (*ResourceRequirements) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{181} + return fileDescriptor_6c07b07c062484ab, []int{187} } func (m *ResourceRequirements) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5148,7 +5316,7 @@ var xxx_messageInfo_ResourceRequirements proto.InternalMessageInfo func (m *ResourceStatus) Reset() { *m = ResourceStatus{} } func (*ResourceStatus) ProtoMessage() {} func (*ResourceStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{182} + return fileDescriptor_6c07b07c062484ab, []int{188} } func (m *ResourceStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5176,7 +5344,7 @@ var xxx_messageInfo_ResourceStatus proto.InternalMessageInfo func (m *SELinuxOptions) Reset() { *m = SELinuxOptions{} } func (*SELinuxOptions) ProtoMessage() {} func (*SELinuxOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{183} + return fileDescriptor_6c07b07c062484ab, []int{189} } func (m *SELinuxOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5204,7 +5372,7 @@ var xxx_messageInfo_SELinuxOptions proto.InternalMessageInfo func (m *ScaleIOPersistentVolumeSource) Reset() { *m = ScaleIOPersistentVolumeSource{} } func (*ScaleIOPersistentVolumeSource) ProtoMessage() {} func (*ScaleIOPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{184} + return fileDescriptor_6c07b07c062484ab, []int{190} } func (m *ScaleIOPersistentVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5232,7 +5400,7 @@ var xxx_messageInfo_ScaleIOPersistentVolumeSource proto.InternalMessageInfo func (m *ScaleIOVolumeSource) Reset() { *m = ScaleIOVolumeSource{} } func (*ScaleIOVolumeSource) ProtoMessage() {} func (*ScaleIOVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{185} + return fileDescriptor_6c07b07c062484ab, []int{191} } func (m *ScaleIOVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5260,7 +5428,7 @@ var xxx_messageInfo_ScaleIOVolumeSource proto.InternalMessageInfo func (m *ScopeSelector) Reset() { *m = ScopeSelector{} } func (*ScopeSelector) ProtoMessage() {} func (*ScopeSelector) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{186} + return fileDescriptor_6c07b07c062484ab, []int{192} } func (m *ScopeSelector) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5288,7 +5456,7 @@ var xxx_messageInfo_ScopeSelector proto.InternalMessageInfo func (m *ScopedResourceSelectorRequirement) Reset() { *m = ScopedResourceSelectorRequirement{} } func (*ScopedResourceSelectorRequirement) ProtoMessage() {} func (*ScopedResourceSelectorRequirement) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{187} + return fileDescriptor_6c07b07c062484ab, []int{193} } func (m *ScopedResourceSelectorRequirement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5316,7 +5484,7 @@ var xxx_messageInfo_ScopedResourceSelectorRequirement proto.InternalMessageInfo func (m *SeccompProfile) Reset() { *m = SeccompProfile{} } func (*SeccompProfile) ProtoMessage() {} func (*SeccompProfile) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{188} + return fileDescriptor_6c07b07c062484ab, []int{194} } func (m *SeccompProfile) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5344,7 +5512,7 @@ var xxx_messageInfo_SeccompProfile proto.InternalMessageInfo func (m *Secret) Reset() { *m = Secret{} } func (*Secret) ProtoMessage() {} func (*Secret) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{189} + return fileDescriptor_6c07b07c062484ab, []int{195} } func (m *Secret) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5372,7 +5540,7 @@ var xxx_messageInfo_Secret proto.InternalMessageInfo func (m *SecretEnvSource) Reset() { *m = SecretEnvSource{} } func (*SecretEnvSource) ProtoMessage() {} func (*SecretEnvSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{190} + return fileDescriptor_6c07b07c062484ab, []int{196} } func (m *SecretEnvSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5400,7 +5568,7 @@ var xxx_messageInfo_SecretEnvSource proto.InternalMessageInfo func (m *SecretKeySelector) Reset() { *m = SecretKeySelector{} } func (*SecretKeySelector) ProtoMessage() {} func (*SecretKeySelector) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{191} + return fileDescriptor_6c07b07c062484ab, []int{197} } func (m *SecretKeySelector) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5428,7 +5596,7 @@ var xxx_messageInfo_SecretKeySelector proto.InternalMessageInfo func (m *SecretList) Reset() { *m = SecretList{} } func (*SecretList) ProtoMessage() {} func (*SecretList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{192} + return fileDescriptor_6c07b07c062484ab, []int{198} } func (m *SecretList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5456,7 +5624,7 @@ var xxx_messageInfo_SecretList proto.InternalMessageInfo func (m *SecretProjection) Reset() { *m = SecretProjection{} } func (*SecretProjection) ProtoMessage() {} func (*SecretProjection) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{193} + return fileDescriptor_6c07b07c062484ab, []int{199} } func (m *SecretProjection) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5484,7 +5652,7 @@ var xxx_messageInfo_SecretProjection proto.InternalMessageInfo func (m *SecretReference) Reset() { *m = SecretReference{} } func (*SecretReference) ProtoMessage() {} func (*SecretReference) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{194} + return fileDescriptor_6c07b07c062484ab, []int{200} } func (m *SecretReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5512,7 +5680,7 @@ var xxx_messageInfo_SecretReference proto.InternalMessageInfo func (m *SecretVolumeSource) Reset() { *m = SecretVolumeSource{} } func (*SecretVolumeSource) ProtoMessage() {} func (*SecretVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{195} + return fileDescriptor_6c07b07c062484ab, []int{201} } func (m *SecretVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5540,7 +5708,7 @@ var xxx_messageInfo_SecretVolumeSource proto.InternalMessageInfo func (m *SecurityContext) Reset() { *m = SecurityContext{} } func (*SecurityContext) ProtoMessage() {} func (*SecurityContext) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{196} + return fileDescriptor_6c07b07c062484ab, []int{202} } func (m *SecurityContext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5568,7 +5736,7 @@ var xxx_messageInfo_SecurityContext proto.InternalMessageInfo func (m *SerializedReference) Reset() { *m = SerializedReference{} } func (*SerializedReference) ProtoMessage() {} func (*SerializedReference) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{197} + return fileDescriptor_6c07b07c062484ab, []int{203} } func (m *SerializedReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5596,7 +5764,7 @@ var xxx_messageInfo_SerializedReference proto.InternalMessageInfo func (m *Service) Reset() { *m = Service{} } func (*Service) ProtoMessage() {} func (*Service) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{198} + return fileDescriptor_6c07b07c062484ab, []int{204} } func (m *Service) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5624,7 +5792,7 @@ var xxx_messageInfo_Service proto.InternalMessageInfo func (m *ServiceAccount) Reset() { *m = ServiceAccount{} } func (*ServiceAccount) ProtoMessage() {} func (*ServiceAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{199} + return fileDescriptor_6c07b07c062484ab, []int{205} } func (m *ServiceAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5652,7 +5820,7 @@ var xxx_messageInfo_ServiceAccount proto.InternalMessageInfo func (m *ServiceAccountList) Reset() { *m = ServiceAccountList{} } func (*ServiceAccountList) ProtoMessage() {} func (*ServiceAccountList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{200} + return fileDescriptor_6c07b07c062484ab, []int{206} } func (m *ServiceAccountList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5680,7 +5848,7 @@ var xxx_messageInfo_ServiceAccountList proto.InternalMessageInfo func (m *ServiceAccountTokenProjection) Reset() { *m = ServiceAccountTokenProjection{} } func (*ServiceAccountTokenProjection) ProtoMessage() {} func (*ServiceAccountTokenProjection) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{201} + return fileDescriptor_6c07b07c062484ab, []int{207} } func (m *ServiceAccountTokenProjection) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5708,7 +5876,7 @@ var xxx_messageInfo_ServiceAccountTokenProjection proto.InternalMessageInfo func (m *ServiceList) Reset() { *m = ServiceList{} } func (*ServiceList) ProtoMessage() {} func (*ServiceList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{202} + return fileDescriptor_6c07b07c062484ab, []int{208} } func (m *ServiceList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5736,7 +5904,7 @@ var xxx_messageInfo_ServiceList proto.InternalMessageInfo func (m *ServicePort) Reset() { *m = ServicePort{} } func (*ServicePort) ProtoMessage() {} func (*ServicePort) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{203} + return fileDescriptor_6c07b07c062484ab, []int{209} } func (m *ServicePort) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5764,7 +5932,7 @@ var xxx_messageInfo_ServicePort proto.InternalMessageInfo func (m *ServiceProxyOptions) Reset() { *m = ServiceProxyOptions{} } func (*ServiceProxyOptions) ProtoMessage() {} func (*ServiceProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{204} + return fileDescriptor_6c07b07c062484ab, []int{210} } func (m *ServiceProxyOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5792,7 +5960,7 @@ var xxx_messageInfo_ServiceProxyOptions proto.InternalMessageInfo func (m *ServiceSpec) Reset() { *m = ServiceSpec{} } func (*ServiceSpec) ProtoMessage() {} func (*ServiceSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{205} + return fileDescriptor_6c07b07c062484ab, []int{211} } func (m *ServiceSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5820,7 +5988,7 @@ var xxx_messageInfo_ServiceSpec proto.InternalMessageInfo func (m *ServiceStatus) Reset() { *m = ServiceStatus{} } func (*ServiceStatus) ProtoMessage() {} func (*ServiceStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{206} + return fileDescriptor_6c07b07c062484ab, []int{212} } func (m *ServiceStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5848,7 +6016,7 @@ var xxx_messageInfo_ServiceStatus proto.InternalMessageInfo func (m *SessionAffinityConfig) Reset() { *m = SessionAffinityConfig{} } func (*SessionAffinityConfig) ProtoMessage() {} func (*SessionAffinityConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{207} + return fileDescriptor_6c07b07c062484ab, []int{213} } func (m *SessionAffinityConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5876,7 +6044,7 @@ var xxx_messageInfo_SessionAffinityConfig proto.InternalMessageInfo func (m *SleepAction) Reset() { *m = SleepAction{} } func (*SleepAction) ProtoMessage() {} func (*SleepAction) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{208} + return fileDescriptor_6c07b07c062484ab, []int{214} } func (m *SleepAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5904,7 +6072,7 @@ var xxx_messageInfo_SleepAction proto.InternalMessageInfo func (m *StorageOSPersistentVolumeSource) Reset() { *m = StorageOSPersistentVolumeSource{} } func (*StorageOSPersistentVolumeSource) ProtoMessage() {} func (*StorageOSPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{209} + return fileDescriptor_6c07b07c062484ab, []int{215} } func (m *StorageOSPersistentVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5932,7 +6100,7 @@ var xxx_messageInfo_StorageOSPersistentVolumeSource proto.InternalMessageInfo func (m *StorageOSVolumeSource) Reset() { *m = StorageOSVolumeSource{} } func (*StorageOSVolumeSource) ProtoMessage() {} func (*StorageOSVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{210} + return fileDescriptor_6c07b07c062484ab, []int{216} } func (m *StorageOSVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5960,7 +6128,7 @@ var xxx_messageInfo_StorageOSVolumeSource proto.InternalMessageInfo func (m *Sysctl) Reset() { *m = Sysctl{} } func (*Sysctl) ProtoMessage() {} func (*Sysctl) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{211} + return fileDescriptor_6c07b07c062484ab, []int{217} } func (m *Sysctl) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5988,7 +6156,7 @@ var xxx_messageInfo_Sysctl proto.InternalMessageInfo func (m *TCPSocketAction) Reset() { *m = TCPSocketAction{} } func (*TCPSocketAction) ProtoMessage() {} func (*TCPSocketAction) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{212} + return fileDescriptor_6c07b07c062484ab, []int{218} } func (m *TCPSocketAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6016,7 +6184,7 @@ var xxx_messageInfo_TCPSocketAction proto.InternalMessageInfo func (m *Taint) Reset() { *m = Taint{} } func (*Taint) ProtoMessage() {} func (*Taint) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{213} + return fileDescriptor_6c07b07c062484ab, []int{219} } func (m *Taint) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6044,7 +6212,7 @@ var xxx_messageInfo_Taint proto.InternalMessageInfo func (m *Toleration) Reset() { *m = Toleration{} } func (*Toleration) ProtoMessage() {} func (*Toleration) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{214} + return fileDescriptor_6c07b07c062484ab, []int{220} } func (m *Toleration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6072,7 +6240,7 @@ var xxx_messageInfo_Toleration proto.InternalMessageInfo func (m *TopologySelectorLabelRequirement) Reset() { *m = TopologySelectorLabelRequirement{} } func (*TopologySelectorLabelRequirement) ProtoMessage() {} func (*TopologySelectorLabelRequirement) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{215} + return fileDescriptor_6c07b07c062484ab, []int{221} } func (m *TopologySelectorLabelRequirement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6100,7 +6268,7 @@ var xxx_messageInfo_TopologySelectorLabelRequirement proto.InternalMessageInfo func (m *TopologySelectorTerm) Reset() { *m = TopologySelectorTerm{} } func (*TopologySelectorTerm) ProtoMessage() {} func (*TopologySelectorTerm) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{216} + return fileDescriptor_6c07b07c062484ab, []int{222} } func (m *TopologySelectorTerm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6128,7 +6296,7 @@ var xxx_messageInfo_TopologySelectorTerm proto.InternalMessageInfo func (m *TopologySpreadConstraint) Reset() { *m = TopologySpreadConstraint{} } func (*TopologySpreadConstraint) ProtoMessage() {} func (*TopologySpreadConstraint) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{217} + return fileDescriptor_6c07b07c062484ab, []int{223} } func (m *TopologySpreadConstraint) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6156,7 +6324,7 @@ var xxx_messageInfo_TopologySpreadConstraint proto.InternalMessageInfo func (m *TypedLocalObjectReference) Reset() { *m = TypedLocalObjectReference{} } func (*TypedLocalObjectReference) ProtoMessage() {} func (*TypedLocalObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{218} + return fileDescriptor_6c07b07c062484ab, []int{224} } func (m *TypedLocalObjectReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6184,7 +6352,7 @@ var xxx_messageInfo_TypedLocalObjectReference proto.InternalMessageInfo func (m *TypedObjectReference) Reset() { *m = TypedObjectReference{} } func (*TypedObjectReference) ProtoMessage() {} func (*TypedObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{219} + return fileDescriptor_6c07b07c062484ab, []int{225} } func (m *TypedObjectReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6212,7 +6380,7 @@ var xxx_messageInfo_TypedObjectReference proto.InternalMessageInfo func (m *Volume) Reset() { *m = Volume{} } func (*Volume) ProtoMessage() {} func (*Volume) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{220} + return fileDescriptor_6c07b07c062484ab, []int{226} } func (m *Volume) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6240,7 +6408,7 @@ var xxx_messageInfo_Volume proto.InternalMessageInfo func (m *VolumeDevice) Reset() { *m = VolumeDevice{} } func (*VolumeDevice) ProtoMessage() {} func (*VolumeDevice) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{221} + return fileDescriptor_6c07b07c062484ab, []int{227} } func (m *VolumeDevice) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6268,7 +6436,7 @@ var xxx_messageInfo_VolumeDevice proto.InternalMessageInfo func (m *VolumeMount) Reset() { *m = VolumeMount{} } func (*VolumeMount) ProtoMessage() {} func (*VolumeMount) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{222} + return fileDescriptor_6c07b07c062484ab, []int{228} } func (m *VolumeMount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6296,7 +6464,7 @@ var xxx_messageInfo_VolumeMount proto.InternalMessageInfo func (m *VolumeMountStatus) Reset() { *m = VolumeMountStatus{} } func (*VolumeMountStatus) ProtoMessage() {} func (*VolumeMountStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{223} + return fileDescriptor_6c07b07c062484ab, []int{229} } func (m *VolumeMountStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6324,7 +6492,7 @@ var xxx_messageInfo_VolumeMountStatus proto.InternalMessageInfo func (m *VolumeNodeAffinity) Reset() { *m = VolumeNodeAffinity{} } func (*VolumeNodeAffinity) ProtoMessage() {} func (*VolumeNodeAffinity) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{224} + return fileDescriptor_6c07b07c062484ab, []int{230} } func (m *VolumeNodeAffinity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6352,7 +6520,7 @@ var xxx_messageInfo_VolumeNodeAffinity proto.InternalMessageInfo func (m *VolumeProjection) Reset() { *m = VolumeProjection{} } func (*VolumeProjection) ProtoMessage() {} func (*VolumeProjection) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{225} + return fileDescriptor_6c07b07c062484ab, []int{231} } func (m *VolumeProjection) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6380,7 +6548,7 @@ var xxx_messageInfo_VolumeProjection proto.InternalMessageInfo func (m *VolumeResourceRequirements) Reset() { *m = VolumeResourceRequirements{} } func (*VolumeResourceRequirements) ProtoMessage() {} func (*VolumeResourceRequirements) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{226} + return fileDescriptor_6c07b07c062484ab, []int{232} } func (m *VolumeResourceRequirements) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6408,7 +6576,7 @@ var xxx_messageInfo_VolumeResourceRequirements proto.InternalMessageInfo func (m *VolumeSource) Reset() { *m = VolumeSource{} } func (*VolumeSource) ProtoMessage() {} func (*VolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{227} + return fileDescriptor_6c07b07c062484ab, []int{233} } func (m *VolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6436,7 +6604,7 @@ var xxx_messageInfo_VolumeSource proto.InternalMessageInfo func (m *VsphereVirtualDiskVolumeSource) Reset() { *m = VsphereVirtualDiskVolumeSource{} } func (*VsphereVirtualDiskVolumeSource) ProtoMessage() {} func (*VsphereVirtualDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{228} + return fileDescriptor_6c07b07c062484ab, []int{234} } func (m *VsphereVirtualDiskVolumeSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6464,7 +6632,7 @@ var xxx_messageInfo_VsphereVirtualDiskVolumeSource proto.InternalMessageInfo func (m *WeightedPodAffinityTerm) Reset() { *m = WeightedPodAffinityTerm{} } func (*WeightedPodAffinityTerm) ProtoMessage() {} func (*WeightedPodAffinityTerm) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{229} + return fileDescriptor_6c07b07c062484ab, []int{235} } func (m *WeightedPodAffinityTerm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6492,7 +6660,7 @@ var xxx_messageInfo_WeightedPodAffinityTerm proto.InternalMessageInfo func (m *WindowsSecurityContextOptions) Reset() { *m = WindowsSecurityContextOptions{} } func (*WindowsSecurityContextOptions) ProtoMessage() {} func (*WindowsSecurityContextOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_6c07b07c062484ab, []int{230} + return fileDescriptor_6c07b07c062484ab, []int{236} } func (m *WindowsSecurityContextOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6551,9 +6719,12 @@ func init() { proto.RegisterType((*ConfigMapProjection)(nil), "k8s.io.api.core.v1.ConfigMapProjection") proto.RegisterType((*ConfigMapVolumeSource)(nil), "k8s.io.api.core.v1.ConfigMapVolumeSource") proto.RegisterType((*Container)(nil), "k8s.io.api.core.v1.Container") + proto.RegisterType((*ContainerExtendedResourceRequest)(nil), "k8s.io.api.core.v1.ContainerExtendedResourceRequest") proto.RegisterType((*ContainerImage)(nil), "k8s.io.api.core.v1.ContainerImage") proto.RegisterType((*ContainerPort)(nil), "k8s.io.api.core.v1.ContainerPort") proto.RegisterType((*ContainerResizePolicy)(nil), "k8s.io.api.core.v1.ContainerResizePolicy") + proto.RegisterType((*ContainerRestartRule)(nil), "k8s.io.api.core.v1.ContainerRestartRule") + proto.RegisterType((*ContainerRestartRuleOnExitCodes)(nil), "k8s.io.api.core.v1.ContainerRestartRuleOnExitCodes") proto.RegisterType((*ContainerState)(nil), "k8s.io.api.core.v1.ContainerState") proto.RegisterType((*ContainerStateRunning)(nil), "k8s.io.api.core.v1.ContainerStateRunning") proto.RegisterType((*ContainerStateTerminated)(nil), "k8s.io.api.core.v1.ContainerStateTerminated") @@ -6583,6 +6754,7 @@ func init() { proto.RegisterType((*EventSource)(nil), "k8s.io.api.core.v1.EventSource") proto.RegisterType((*ExecAction)(nil), "k8s.io.api.core.v1.ExecAction") proto.RegisterType((*FCVolumeSource)(nil), "k8s.io.api.core.v1.FCVolumeSource") + proto.RegisterType((*FileKeySelector)(nil), "k8s.io.api.core.v1.FileKeySelector") proto.RegisterType((*FlexPersistentVolumeSource)(nil), "k8s.io.api.core.v1.FlexPersistentVolumeSource") proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.core.v1.FlexPersistentVolumeSource.OptionsEntry") proto.RegisterType((*FlexVolumeSource)(nil), "k8s.io.api.core.v1.FlexVolumeSource") @@ -6671,10 +6843,12 @@ func init() { proto.RegisterType((*PodAffinityTerm)(nil), "k8s.io.api.core.v1.PodAffinityTerm") proto.RegisterType((*PodAntiAffinity)(nil), "k8s.io.api.core.v1.PodAntiAffinity") proto.RegisterType((*PodAttachOptions)(nil), "k8s.io.api.core.v1.PodAttachOptions") + proto.RegisterType((*PodCertificateProjection)(nil), "k8s.io.api.core.v1.PodCertificateProjection") proto.RegisterType((*PodCondition)(nil), "k8s.io.api.core.v1.PodCondition") proto.RegisterType((*PodDNSConfig)(nil), "k8s.io.api.core.v1.PodDNSConfig") proto.RegisterType((*PodDNSConfigOption)(nil), "k8s.io.api.core.v1.PodDNSConfigOption") proto.RegisterType((*PodExecOptions)(nil), "k8s.io.api.core.v1.PodExecOptions") + proto.RegisterType((*PodExtendedResourceClaimStatus)(nil), "k8s.io.api.core.v1.PodExtendedResourceClaimStatus") proto.RegisterType((*PodIP)(nil), "k8s.io.api.core.v1.PodIP") proto.RegisterType((*PodList)(nil), "k8s.io.api.core.v1.PodList") proto.RegisterType((*PodLogOptions)(nil), "k8s.io.api.core.v1.PodLogOptions") @@ -6787,1020 +6961,1049 @@ func init() { } var fileDescriptor_6c07b07c062484ab = []byte{ - // 16206 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0xbd, 0x69, 0x90, 0x1c, 0xc9, - 0x75, 0x30, 0xc6, 0xea, 0x9e, 0xf3, 0xcd, 0x9d, 0xb8, 0x06, 0xb3, 0x00, 0x1a, 0x5b, 0xbb, 0x8b, - 0xc5, 0x5e, 0x03, 0x62, 0x0f, 0x2e, 0xb8, 0xbb, 0x5c, 0xed, 0x9c, 0x40, 0x2f, 0x30, 0x83, 0xde, - 0xec, 0x01, 0x40, 0x2e, 0x97, 0x14, 0x0b, 0xdd, 0x39, 0x33, 0xc5, 0xe9, 0xae, 0xea, 0xad, 0xaa, - 0x1e, 0x60, 0x60, 0x2a, 0x24, 0x51, 0x16, 0x25, 0x52, 0x72, 0x04, 0x43, 0x21, 0x59, 0x0e, 0x4a, - 0xa1, 0x1f, 0xba, 0x65, 0x5a, 0xb2, 0x68, 0xc9, 0x92, 0x2c, 0xea, 0xb2, 0x2d, 0x47, 0xc8, 0xfe, - 0x21, 0x4b, 0x8a, 0x30, 0xa9, 0xb0, 0xc2, 0x23, 0x73, 0x6c, 0x87, 0x42, 0x3f, 0x2c, 0x29, 0x64, - 0xff, 0xb0, 0x27, 0xf4, 0x7d, 0xfc, 0x22, 0xcf, 0xca, 0xac, 0xa3, 0xbb, 0x07, 0x0b, 0x0c, 0x97, - 0x8c, 0xfd, 0xd7, 0x9d, 0xef, 0xe5, 0xcb, 0xac, 0x3c, 0x5f, 0xbe, 0x13, 0xec, 0xad, 0x4b, 0xe1, - 0xac, 0xeb, 0x5f, 0x70, 0x5a, 0xee, 0x85, 0x9a, 0x1f, 0x90, 0x0b, 0xdb, 0x17, 0x2f, 0x6c, 0x10, - 0x8f, 0x04, 0x4e, 0x44, 0xea, 0xb3, 0xad, 0xc0, 0x8f, 0x7c, 0x84, 0x38, 0xce, 0xac, 0xd3, 0x72, - 0x67, 0x29, 0xce, 0xec, 0xf6, 0xc5, 0x99, 0xe7, 0x36, 0xdc, 0x68, 0xb3, 0x7d, 0x7b, 0xb6, 0xe6, - 0x37, 0x2f, 0x6c, 0xf8, 0x1b, 0xfe, 0x05, 0x86, 0x7a, 0xbb, 0xbd, 0xce, 0xfe, 0xb1, 0x3f, 0xec, - 0x17, 0x27, 0x31, 0xf3, 0x62, 0xdc, 0x4c, 0xd3, 0xa9, 0x6d, 0xba, 0x1e, 0x09, 0x76, 0x2e, 0xb4, - 0xb6, 0x36, 0x58, 0xbb, 0x01, 0x09, 0xfd, 0x76, 0x50, 0x23, 0xc9, 0x86, 0x3b, 0xd6, 0x0a, 0x2f, - 0x34, 0x49, 0xe4, 0x64, 0x74, 0x77, 0xe6, 0x42, 0x5e, 0xad, 0xa0, 0xed, 0x45, 0x6e, 0x33, 0xdd, - 0xcc, 0x47, 0xba, 0x55, 0x08, 0x6b, 0x9b, 0xa4, 0xe9, 0xa4, 0xea, 0xbd, 0x90, 0x57, 0xaf, 0x1d, - 0xb9, 0x8d, 0x0b, 0xae, 0x17, 0x85, 0x51, 0x90, 0xac, 0x64, 0x7f, 0xd3, 0x82, 0xb3, 0x73, 0xb7, - 0xaa, 0x4b, 0x0d, 0x27, 0x8c, 0xdc, 0xda, 0x7c, 0xc3, 0xaf, 0x6d, 0x55, 0x23, 0x3f, 0x20, 0x37, - 0xfd, 0x46, 0xbb, 0x49, 0xaa, 0x6c, 0x20, 0xd0, 0xb3, 0x30, 0xb4, 0xcd, 0xfe, 0x97, 0x17, 0xa7, - 0xad, 0xb3, 0xd6, 0xf9, 0xe1, 0xf9, 0xc9, 0xbf, 0xd8, 0x2d, 0x7d, 0x68, 0x6f, 0xb7, 0x34, 0x74, - 0x53, 0x94, 0x63, 0x85, 0x81, 0xce, 0xc1, 0xc0, 0x7a, 0xb8, 0xb6, 0xd3, 0x22, 0xd3, 0x05, 0x86, - 0x3b, 0x2e, 0x70, 0x07, 0x96, 0xab, 0xb4, 0x14, 0x0b, 0x28, 0xba, 0x00, 0xc3, 0x2d, 0x27, 0x88, - 0xdc, 0xc8, 0xf5, 0xbd, 0xe9, 0xe2, 0x59, 0xeb, 0x7c, 0xff, 0xfc, 0x94, 0x40, 0x1d, 0xae, 0x48, - 0x00, 0x8e, 0x71, 0x68, 0x37, 0x02, 0xe2, 0xd4, 0xaf, 0x7b, 0x8d, 0x9d, 0xe9, 0xbe, 0xb3, 0xd6, - 0xf9, 0xa1, 0xb8, 0x1b, 0x58, 0x94, 0x63, 0x85, 0x61, 0x7f, 0xa5, 0x00, 0x43, 0x73, 0xeb, 0xeb, - 0xae, 0xe7, 0x46, 0x3b, 0xe8, 0x26, 0x8c, 0x7a, 0x7e, 0x9d, 0xc8, 0xff, 0xec, 0x2b, 0x46, 0x9e, - 0x3f, 0x3b, 0x9b, 0x5e, 0x4a, 0xb3, 0xab, 0x1a, 0xde, 0xfc, 0xe4, 0xde, 0x6e, 0x69, 0x54, 0x2f, - 0xc1, 0x06, 0x1d, 0x84, 0x61, 0xa4, 0xe5, 0xd7, 0x15, 0xd9, 0x02, 0x23, 0x5b, 0xca, 0x22, 0x5b, - 0x89, 0xd1, 0xe6, 0x27, 0xf6, 0x76, 0x4b, 0x23, 0x5a, 0x01, 0xd6, 0x89, 0xa0, 0xdb, 0x30, 0x41, - 0xff, 0x7a, 0x91, 0xab, 0xe8, 0x16, 0x19, 0xdd, 0xc7, 0xf2, 0xe8, 0x6a, 0xa8, 0xf3, 0x47, 0xf6, - 0x76, 0x4b, 0x13, 0x89, 0x42, 0x9c, 0x24, 0x68, 0xff, 0xa4, 0x05, 0x13, 0x73, 0xad, 0xd6, 0x5c, - 0xd0, 0xf4, 0x83, 0x4a, 0xe0, 0xaf, 0xbb, 0x0d, 0x82, 0x5e, 0x86, 0xbe, 0x88, 0xce, 0x1a, 0x9f, - 0xe1, 0xc7, 0xc4, 0xd0, 0xf6, 0xd1, 0xb9, 0xda, 0xdf, 0x2d, 0x1d, 0x49, 0xa0, 0xb3, 0xa9, 0x64, - 0x15, 0xd0, 0x1b, 0x30, 0xd9, 0xf0, 0x6b, 0x4e, 0x63, 0xd3, 0x0f, 0x23, 0x01, 0x15, 0x53, 0x7f, - 0x74, 0x6f, 0xb7, 0x34, 0x79, 0x2d, 0x01, 0xc3, 0x29, 0x6c, 0xfb, 0x1e, 0x8c, 0xcf, 0x45, 0x91, - 0x53, 0xdb, 0x24, 0x75, 0xbe, 0xa0, 0xd0, 0x8b, 0xd0, 0xe7, 0x39, 0x4d, 0xd9, 0x99, 0xb3, 0xb2, - 0x33, 0xab, 0x4e, 0x93, 0x76, 0x66, 0xf2, 0x86, 0xe7, 0xbe, 0xdb, 0x16, 0x8b, 0x94, 0x96, 0x61, - 0x86, 0x8d, 0x9e, 0x07, 0xa8, 0x93, 0x6d, 0xb7, 0x46, 0x2a, 0x4e, 0xb4, 0x29, 0xfa, 0x80, 0x44, - 0x5d, 0x58, 0x54, 0x10, 0xac, 0x61, 0xd9, 0x77, 0x61, 0x78, 0x6e, 0xdb, 0x77, 0xeb, 0x15, 0xbf, - 0x1e, 0xa2, 0x2d, 0x98, 0x68, 0x05, 0x64, 0x9d, 0x04, 0xaa, 0x68, 0xda, 0x3a, 0x5b, 0x3c, 0x3f, - 0xf2, 0xfc, 0xf9, 0xcc, 0xb1, 0x37, 0x51, 0x97, 0xbc, 0x28, 0xd8, 0x99, 0x3f, 0x21, 0xda, 0x9b, - 0x48, 0x40, 0x71, 0x92, 0xb2, 0xfd, 0xe7, 0x05, 0x38, 0x36, 0x77, 0xaf, 0x1d, 0x90, 0x45, 0x37, - 0xdc, 0x4a, 0x6e, 0xb8, 0xba, 0x1b, 0x6e, 0xad, 0xc6, 0x23, 0xa0, 0x56, 0xfa, 0xa2, 0x28, 0xc7, - 0x0a, 0x03, 0x3d, 0x07, 0x83, 0xf4, 0xf7, 0x0d, 0x5c, 0x16, 0x9f, 0x7c, 0x44, 0x20, 0x8f, 0x2c, - 0x3a, 0x91, 0xb3, 0xc8, 0x41, 0x58, 0xe2, 0xa0, 0x15, 0x18, 0xa9, 0xb1, 0xf3, 0x61, 0x63, 0xc5, - 0xaf, 0x13, 0xb6, 0xb6, 0x86, 0xe7, 0x9f, 0xa1, 0xe8, 0x0b, 0x71, 0xf1, 0xfe, 0x6e, 0x69, 0x9a, - 0xf7, 0x4d, 0x90, 0xd0, 0x60, 0x58, 0xaf, 0x8f, 0x6c, 0xb5, 0xdd, 0xfb, 0x18, 0x25, 0xc8, 0xd8, - 0xea, 0xe7, 0xb5, 0x9d, 0xdb, 0xcf, 0x76, 0xee, 0x68, 0xf6, 0xae, 0x45, 0x17, 0xa1, 0x6f, 0xcb, - 0xf5, 0xea, 0xd3, 0x03, 0x8c, 0xd6, 0x69, 0x3a, 0xe7, 0x57, 0x5d, 0xaf, 0xbe, 0xbf, 0x5b, 0x9a, - 0x32, 0xba, 0x43, 0x0b, 0x31, 0x43, 0xb5, 0xff, 0x1f, 0x0b, 0x4a, 0x0c, 0xb6, 0xec, 0x36, 0x48, - 0x85, 0x04, 0xa1, 0x1b, 0x46, 0xc4, 0x8b, 0x8c, 0x01, 0x7d, 0x1e, 0x20, 0x24, 0xb5, 0x80, 0x44, - 0xda, 0x90, 0xaa, 0x85, 0x51, 0x55, 0x10, 0xac, 0x61, 0xd1, 0xf3, 0x29, 0xdc, 0x74, 0x02, 0xb6, - 0xbe, 0xc4, 0xc0, 0xaa, 0xf3, 0xa9, 0x2a, 0x01, 0x38, 0xc6, 0x31, 0xce, 0xa7, 0x62, 0xb7, 0xf3, - 0x09, 0x7d, 0x0c, 0x26, 0xe2, 0xc6, 0xc2, 0x96, 0x53, 0x93, 0x03, 0xc8, 0x76, 0x70, 0xd5, 0x04, - 0xe1, 0x24, 0xae, 0xfd, 0x9f, 0x5b, 0x62, 0xf1, 0xd0, 0xaf, 0x7e, 0x9f, 0x7f, 0xab, 0xfd, 0x07, - 0x16, 0x0c, 0xce, 0xbb, 0x5e, 0xdd, 0xf5, 0x36, 0xd0, 0x67, 0x60, 0x88, 0x5e, 0x95, 0x75, 0x27, - 0x72, 0xc4, 0x31, 0xfc, 0x61, 0x6d, 0x6f, 0xa9, 0x9b, 0x6b, 0xb6, 0xb5, 0xb5, 0x41, 0x0b, 0xc2, - 0x59, 0x8a, 0x4d, 0x77, 0xdb, 0xf5, 0xdb, 0x9f, 0x25, 0xb5, 0x68, 0x85, 0x44, 0x4e, 0xfc, 0x39, - 0x71, 0x19, 0x56, 0x54, 0xd1, 0x55, 0x18, 0x88, 0x9c, 0x60, 0x83, 0x44, 0xe2, 0x3c, 0xce, 0x3c, - 0x37, 0x79, 0x4d, 0x4c, 0x77, 0x24, 0xf1, 0x6a, 0x24, 0xbe, 0xa5, 0xd6, 0x58, 0x55, 0x2c, 0x48, - 0xd8, 0xff, 0x6e, 0x10, 0x4e, 0x2e, 0x54, 0xcb, 0x39, 0xeb, 0xea, 0x1c, 0x0c, 0xd4, 0x03, 0x77, - 0x9b, 0x04, 0x62, 0x9c, 0x15, 0x95, 0x45, 0x56, 0x8a, 0x05, 0x14, 0x5d, 0x82, 0x51, 0x7e, 0x3f, - 0x5e, 0x71, 0xbc, 0x7a, 0x7c, 0x3c, 0x0a, 0xec, 0xd1, 0x9b, 0x1a, 0x0c, 0x1b, 0x98, 0x07, 0x5c, - 0x54, 0xe7, 0x12, 0x9b, 0x31, 0xef, 0xee, 0xfd, 0xa2, 0x05, 0x93, 0xbc, 0x99, 0xb9, 0x28, 0x0a, - 0xdc, 0xdb, 0xed, 0x88, 0x84, 0xd3, 0xfd, 0xec, 0xa4, 0x5b, 0xc8, 0x1a, 0xad, 0xdc, 0x11, 0x98, - 0xbd, 0x99, 0xa0, 0xc2, 0x0f, 0xc1, 0x69, 0xd1, 0xee, 0x64, 0x12, 0x8c, 0x53, 0xcd, 0xa2, 0x1f, - 0xb1, 0x60, 0xa6, 0xe6, 0x7b, 0x51, 0xe0, 0x37, 0x1a, 0x24, 0xa8, 0xb4, 0x6f, 0x37, 0xdc, 0x70, - 0x93, 0xaf, 0x53, 0x4c, 0xd6, 0xd9, 0x49, 0x90, 0x33, 0x87, 0x0a, 0x49, 0xcc, 0xe1, 0x99, 0xbd, - 0xdd, 0xd2, 0xcc, 0x42, 0x2e, 0x29, 0xdc, 0xa1, 0x19, 0xb4, 0x05, 0x88, 0xde, 0xec, 0xd5, 0xc8, - 0xd9, 0x20, 0x71, 0xe3, 0x83, 0xbd, 0x37, 0x7e, 0x7c, 0x6f, 0xb7, 0x84, 0x56, 0x53, 0x24, 0x70, - 0x06, 0x59, 0xf4, 0x2e, 0x1c, 0xa5, 0xa5, 0xa9, 0x6f, 0x1d, 0xea, 0xbd, 0xb9, 0xe9, 0xbd, 0xdd, - 0xd2, 0xd1, 0xd5, 0x0c, 0x22, 0x38, 0x93, 0x34, 0xfa, 0x21, 0x0b, 0x4e, 0xc6, 0x9f, 0xbf, 0x74, - 0xb7, 0xe5, 0x78, 0xf5, 0xb8, 0xe1, 0xe1, 0xde, 0x1b, 0xa6, 0x67, 0xf2, 0xc9, 0x85, 0x3c, 0x4a, - 0x38, 0xbf, 0x11, 0xe4, 0xc1, 0x11, 0xda, 0xb5, 0x64, 0xdb, 0xd0, 0x7b, 0xdb, 0x27, 0xf6, 0x76, - 0x4b, 0x47, 0x56, 0xd3, 0x34, 0x70, 0x16, 0xe1, 0x99, 0x05, 0x38, 0x96, 0xb9, 0x3a, 0xd1, 0x24, - 0x14, 0xb7, 0x08, 0x67, 0x02, 0x87, 0x31, 0xfd, 0x89, 0x8e, 0x42, 0xff, 0xb6, 0xd3, 0x68, 0x8b, - 0x8d, 0x89, 0xf9, 0x9f, 0x57, 0x0a, 0x97, 0x2c, 0xfb, 0x7f, 0x28, 0xc2, 0xc4, 0x42, 0xb5, 0x7c, - 0x5f, 0xbb, 0x5e, 0xbf, 0xf6, 0x0a, 0x1d, 0xaf, 0xbd, 0xf8, 0x12, 0x2d, 0xe6, 0x5e, 0xa2, 0x3f, - 0x98, 0xb1, 0x65, 0xfb, 0xd8, 0x96, 0xfd, 0x68, 0xce, 0x96, 0x7d, 0xc0, 0x1b, 0x75, 0x3b, 0x67, - 0xd5, 0xf6, 0xb3, 0x09, 0xcc, 0xe4, 0x90, 0x18, 0xef, 0x97, 0x3c, 0x6a, 0x0f, 0xb8, 0x74, 0x1f, - 0xcc, 0x3c, 0xd6, 0x60, 0x74, 0xc1, 0x69, 0x39, 0xb7, 0xdd, 0x86, 0x1b, 0xb9, 0x24, 0x44, 0x4f, - 0x42, 0xd1, 0xa9, 0xd7, 0x19, 0x77, 0x37, 0x3c, 0x7f, 0x6c, 0x6f, 0xb7, 0x54, 0x9c, 0xab, 0x53, - 0x36, 0x03, 0x14, 0xd6, 0x0e, 0xa6, 0x18, 0xe8, 0x69, 0xe8, 0xab, 0x07, 0x7e, 0x6b, 0xba, 0xc0, - 0x30, 0xe9, 0x2e, 0xef, 0x5b, 0x0c, 0xfc, 0x56, 0x02, 0x95, 0xe1, 0xd8, 0x7f, 0x56, 0x80, 0x53, - 0x0b, 0xa4, 0xb5, 0xb9, 0x5c, 0xcd, 0xb9, 0x2f, 0xce, 0xc3, 0x50, 0xd3, 0xf7, 0xdc, 0xc8, 0x0f, - 0x42, 0xd1, 0x34, 0x5b, 0x11, 0x2b, 0xa2, 0x0c, 0x2b, 0x28, 0x3a, 0x0b, 0x7d, 0xad, 0x98, 0x89, - 0x1d, 0x95, 0x0c, 0x30, 0x63, 0x5f, 0x19, 0x84, 0x62, 0xb4, 0x43, 0x12, 0x88, 0x15, 0xa3, 0x30, - 0x6e, 0x84, 0x24, 0xc0, 0x0c, 0x12, 0x73, 0x02, 0x94, 0x47, 0x10, 0x37, 0x42, 0x82, 0x13, 0xa0, - 0x10, 0xac, 0x61, 0xa1, 0x0a, 0x0c, 0x87, 0x89, 0x99, 0xed, 0x69, 0x6b, 0x8e, 0x31, 0x56, 0x41, - 0xcd, 0x64, 0x4c, 0xc4, 0xb8, 0xc1, 0x06, 0xba, 0xb2, 0x0a, 0x5f, 0x2f, 0x00, 0xe2, 0x43, 0xf8, - 0x5d, 0x36, 0x70, 0x37, 0xd2, 0x03, 0xd7, 0xfb, 0x96, 0x78, 0x50, 0xa3, 0xf7, 0xff, 0x5a, 0x70, - 0x6a, 0xc1, 0xf5, 0xea, 0x24, 0xc8, 0x59, 0x80, 0x0f, 0xe7, 0x29, 0x7f, 0x30, 0x26, 0xc5, 0x58, - 0x62, 0x7d, 0x0f, 0x60, 0x89, 0xd9, 0xff, 0x6c, 0x01, 0xe2, 0x9f, 0xfd, 0xbe, 0xfb, 0xd8, 0x1b, - 0xe9, 0x8f, 0x7d, 0x00, 0xcb, 0xc2, 0xbe, 0x06, 0xe3, 0x0b, 0x0d, 0x97, 0x78, 0x51, 0xb9, 0xb2, - 0xe0, 0x7b, 0xeb, 0xee, 0x06, 0x7a, 0x05, 0xc6, 0x23, 0xb7, 0x49, 0xfc, 0x76, 0x54, 0x25, 0x35, - 0xdf, 0x63, 0x2f, 0x57, 0xeb, 0x7c, 0xff, 0x3c, 0xda, 0xdb, 0x2d, 0x8d, 0xaf, 0x19, 0x10, 0x9c, - 0xc0, 0xb4, 0x7f, 0x95, 0x9e, 0x5b, 0x8d, 0x76, 0x18, 0x91, 0x60, 0x2d, 0x68, 0x87, 0xd1, 0x7c, - 0x9b, 0xf2, 0x9e, 0x95, 0xc0, 0xa7, 0xdd, 0x71, 0x7d, 0x0f, 0x9d, 0x32, 0x9e, 0xe3, 0x43, 0xf2, - 0x29, 0x2e, 0x9e, 0xdd, 0xb3, 0x00, 0xa1, 0xbb, 0xe1, 0x91, 0x40, 0x7b, 0x3e, 0x8c, 0xb3, 0xad, - 0xa2, 0x4a, 0xb1, 0x86, 0x81, 0x1a, 0x30, 0xd6, 0x70, 0x6e, 0x93, 0x46, 0x95, 0x34, 0x48, 0x2d, - 0xf2, 0x03, 0x21, 0xdf, 0x78, 0xa1, 0xb7, 0x77, 0xc0, 0x35, 0xbd, 0xea, 0xfc, 0xd4, 0xde, 0x6e, - 0x69, 0xcc, 0x28, 0xc2, 0x26, 0x71, 0x7a, 0x74, 0xf8, 0x2d, 0xfa, 0x15, 0x4e, 0x43, 0x7f, 0x7c, - 0x5e, 0x17, 0x65, 0x58, 0x41, 0xd5, 0xd1, 0xd1, 0x97, 0x77, 0x74, 0xd8, 0x7f, 0x47, 0x17, 0x9a, - 0xdf, 0x6c, 0xf9, 0x1e, 0xf1, 0xa2, 0x05, 0xdf, 0xab, 0x73, 0xc9, 0xd4, 0x2b, 0x86, 0xe8, 0xe4, - 0x5c, 0x42, 0x74, 0x72, 0x3c, 0x5d, 0x43, 0x93, 0x9e, 0x7c, 0x14, 0x06, 0xc2, 0xc8, 0x89, 0xda, - 0xa1, 0x18, 0xb8, 0x47, 0xe5, 0xb2, 0xab, 0xb2, 0xd2, 0xfd, 0xdd, 0xd2, 0x84, 0xaa, 0xc6, 0x8b, - 0xb0, 0xa8, 0x80, 0x9e, 0x82, 0xc1, 0x26, 0x09, 0x43, 0x67, 0x43, 0xb2, 0x0d, 0x13, 0xa2, 0xee, - 0xe0, 0x0a, 0x2f, 0xc6, 0x12, 0x8e, 0x1e, 0x83, 0x7e, 0x12, 0x04, 0x7e, 0x20, 0xbe, 0x6d, 0x4c, - 0x20, 0xf6, 0x2f, 0xd1, 0x42, 0xcc, 0x61, 0xf6, 0xff, 0x6c, 0xc1, 0x84, 0xea, 0x2b, 0x6f, 0xeb, - 0x10, 0x9e, 0x6b, 0x6f, 0x03, 0xd4, 0xe4, 0x07, 0x86, 0xec, 0x9a, 0x1d, 0x79, 0xfe, 0x5c, 0x26, - 0x47, 0x93, 0x1a, 0xc6, 0x98, 0xb2, 0x2a, 0x0a, 0xb1, 0x46, 0xcd, 0xfe, 0x63, 0x0b, 0x8e, 0x24, - 0xbe, 0xe8, 0x9a, 0x1b, 0x46, 0xe8, 0x9d, 0xd4, 0x57, 0xcd, 0xf6, 0xb8, 0xf8, 0xdc, 0x90, 0x7f, - 0x93, 0xda, 0xf3, 0xb2, 0x44, 0xfb, 0xa2, 0x2b, 0xd0, 0xef, 0x46, 0xa4, 0x29, 0x3f, 0xe6, 0xb1, - 0x8e, 0x1f, 0xc3, 0x7b, 0x15, 0xcf, 0x48, 0x99, 0xd6, 0xc4, 0x9c, 0x80, 0xfd, 0x67, 0x45, 0x18, - 0xe6, 0xfb, 0x7b, 0xc5, 0x69, 0x1d, 0xc2, 0x5c, 0x3c, 0x03, 0xc3, 0x6e, 0xb3, 0xd9, 0x8e, 0x9c, - 0xdb, 0xe2, 0xde, 0x1b, 0xe2, 0x67, 0x50, 0x59, 0x16, 0xe2, 0x18, 0x8e, 0xca, 0xd0, 0xc7, 0xba, - 0xc2, 0xbf, 0xf2, 0xc9, 0xec, 0xaf, 0x14, 0x7d, 0x9f, 0x5d, 0x74, 0x22, 0x87, 0xb3, 0x9c, 0x6a, - 0x5f, 0xd1, 0x22, 0xcc, 0x48, 0x20, 0x07, 0xe0, 0xb6, 0xeb, 0x39, 0xc1, 0x0e, 0x2d, 0x9b, 0x2e, - 0x32, 0x82, 0xcf, 0x75, 0x26, 0x38, 0xaf, 0xf0, 0x39, 0x59, 0xf5, 0x61, 0x31, 0x00, 0x6b, 0x44, - 0x67, 0x5e, 0x86, 0x61, 0x85, 0x7c, 0x10, 0xce, 0x71, 0xe6, 0x63, 0x30, 0x91, 0x68, 0xab, 0x5b, - 0xf5, 0x51, 0x9d, 0xf1, 0xfc, 0x43, 0x76, 0x64, 0x88, 0x5e, 0x2f, 0x79, 0xdb, 0xe2, 0x6e, 0xba, - 0x07, 0x47, 0x1b, 0x19, 0x47, 0xbe, 0x98, 0xd7, 0xde, 0xaf, 0x88, 0x53, 0xe2, 0xb3, 0x8f, 0x66, - 0x41, 0x71, 0x66, 0x1b, 0xc6, 0x89, 0x58, 0xe8, 0x74, 0x22, 0xd2, 0xf3, 0xee, 0xa8, 0xea, 0xfc, - 0x55, 0xb2, 0xa3, 0x0e, 0xd5, 0xef, 0x64, 0xf7, 0x4f, 0xf3, 0xd1, 0xe7, 0xc7, 0xe5, 0x88, 0x20, - 0x50, 0xbc, 0x4a, 0x76, 0xf8, 0x54, 0xe8, 0x5f, 0x57, 0xec, 0xf8, 0x75, 0x5f, 0xb3, 0x60, 0x4c, - 0x7d, 0xdd, 0x21, 0x9c, 0x0b, 0xf3, 0xe6, 0xb9, 0x70, 0xba, 0xe3, 0x02, 0xcf, 0x39, 0x11, 0xbe, - 0x5e, 0x80, 0x93, 0x0a, 0x87, 0x3e, 0xa2, 0xf8, 0x1f, 0xb1, 0xaa, 0x2e, 0xc0, 0xb0, 0xa7, 0xc4, - 0x89, 0x96, 0x29, 0xc7, 0x8b, 0x85, 0x89, 0x31, 0x0e, 0xbd, 0xf2, 0xbc, 0xf8, 0xd2, 0x1e, 0xd5, - 0xe5, 0xec, 0xe2, 0x72, 0x9f, 0x87, 0x62, 0xdb, 0xad, 0x8b, 0x0b, 0xe6, 0xc3, 0x72, 0xb4, 0x6f, - 0x94, 0x17, 0xf7, 0x77, 0x4b, 0x8f, 0xe6, 0xa9, 0x9c, 0xe8, 0xcd, 0x16, 0xce, 0xde, 0x28, 0x2f, - 0x62, 0x5a, 0x19, 0xcd, 0xc1, 0x84, 0xd4, 0xaa, 0xdd, 0xa4, 0x7c, 0xa9, 0xef, 0x89, 0x7b, 0x48, - 0x09, 0xcb, 0xb1, 0x09, 0xc6, 0x49, 0x7c, 0xb4, 0x08, 0x93, 0x5b, 0xed, 0xdb, 0xa4, 0x41, 0x22, - 0xfe, 0xc1, 0x57, 0x09, 0x17, 0x25, 0x0f, 0xc7, 0x4f, 0xd8, 0xab, 0x09, 0x38, 0x4e, 0xd5, 0xb0, - 0xbf, 0xcd, 0xee, 0x03, 0x31, 0x7a, 0x1a, 0x7f, 0xf3, 0x9d, 0x5c, 0xce, 0xbd, 0xac, 0x8a, 0xab, - 0x64, 0x67, 0xcd, 0xa7, 0x7c, 0x48, 0xf6, 0xaa, 0x30, 0xd6, 0x7c, 0x5f, 0xc7, 0x35, 0xff, 0xbb, - 0x05, 0x38, 0xa6, 0x46, 0xc0, 0xe0, 0x96, 0xbf, 0xdb, 0xc7, 0xe0, 0x22, 0x8c, 0xd4, 0xc9, 0xba, - 0xd3, 0x6e, 0x44, 0x4a, 0xaf, 0xd1, 0xcf, 0x55, 0x6d, 0x8b, 0x71, 0x31, 0xd6, 0x71, 0x0e, 0x30, - 0x6c, 0xbf, 0x39, 0xc6, 0x2e, 0xe2, 0xc8, 0xa1, 0x6b, 0x5c, 0xed, 0x1a, 0x2b, 0x77, 0xd7, 0x3c, - 0x06, 0xfd, 0x6e, 0x93, 0x32, 0x66, 0x05, 0x93, 0xdf, 0x2a, 0xd3, 0x42, 0xcc, 0x61, 0xe8, 0x09, - 0x18, 0xac, 0xf9, 0xcd, 0xa6, 0xe3, 0xd5, 0xd9, 0x95, 0x37, 0x3c, 0x3f, 0x42, 0x79, 0xb7, 0x05, - 0x5e, 0x84, 0x25, 0x8c, 0x32, 0xdf, 0x4e, 0xb0, 0xc1, 0x85, 0x3d, 0x82, 0xf9, 0x9e, 0x0b, 0x36, - 0x42, 0xcc, 0x4a, 0xe9, 0x5b, 0xf5, 0x8e, 0x1f, 0x6c, 0xb9, 0xde, 0xc6, 0xa2, 0x1b, 0x88, 0x2d, - 0xa1, 0xee, 0xc2, 0x5b, 0x0a, 0x82, 0x35, 0x2c, 0xb4, 0x0c, 0xfd, 0x2d, 0x3f, 0x88, 0xc2, 0xe9, - 0x01, 0x36, 0xdc, 0x8f, 0xe6, 0x1c, 0x44, 0xfc, 0x6b, 0x2b, 0x7e, 0x10, 0xc5, 0x1f, 0x40, 0xff, - 0x85, 0x98, 0x57, 0x47, 0xd7, 0x60, 0x90, 0x78, 0xdb, 0xcb, 0x81, 0xdf, 0x9c, 0x3e, 0x92, 0x4f, - 0x69, 0x89, 0xa3, 0xf0, 0x65, 0x16, 0xf3, 0xa8, 0xa2, 0x18, 0x4b, 0x12, 0xe8, 0xa3, 0x50, 0x24, - 0xde, 0xf6, 0xf4, 0x20, 0xa3, 0x34, 0x93, 0x43, 0xe9, 0xa6, 0x13, 0xc4, 0x67, 0xfe, 0x92, 0xb7, - 0x8d, 0x69, 0x1d, 0xf4, 0x09, 0x18, 0x96, 0x07, 0x46, 0x28, 0xa4, 0xa8, 0x99, 0x0b, 0x56, 0x1e, - 0x33, 0x98, 0xbc, 0xdb, 0x76, 0x03, 0xd2, 0x24, 0x5e, 0x14, 0xc6, 0x27, 0xa4, 0x84, 0x86, 0x38, - 0xa6, 0x86, 0x6a, 0x30, 0x1a, 0x90, 0xd0, 0xbd, 0x47, 0x2a, 0x7e, 0xc3, 0xad, 0xed, 0x4c, 0x9f, - 0x60, 0xdd, 0x7b, 0xaa, 0xe3, 0x90, 0x61, 0xad, 0x42, 0x2c, 0xe5, 0xd7, 0x4b, 0xb1, 0x41, 0x14, - 0xbd, 0x05, 0x63, 0x01, 0x09, 0x23, 0x27, 0x88, 0x44, 0x2b, 0xd3, 0x4a, 0x2b, 0x37, 0x86, 0x75, - 0x00, 0x7f, 0x4e, 0xc4, 0xcd, 0xc4, 0x10, 0x6c, 0x52, 0x40, 0x9f, 0x90, 0x2a, 0x87, 0x15, 0xbf, - 0xed, 0x45, 0xe1, 0xf4, 0x30, 0xeb, 0x77, 0xa6, 0x6e, 0xfa, 0x66, 0x8c, 0x97, 0xd4, 0x49, 0xf0, - 0xca, 0xd8, 0x20, 0x85, 0x3e, 0x05, 0x63, 0xfc, 0x3f, 0x57, 0xa9, 0x86, 0xd3, 0xc7, 0x18, 0xed, - 0xb3, 0xf9, 0xb4, 0x39, 0xe2, 0xfc, 0x31, 0x41, 0x7c, 0x4c, 0x2f, 0x0d, 0xb1, 0x49, 0x0d, 0x61, - 0x18, 0x6b, 0xb8, 0xdb, 0xc4, 0x23, 0x61, 0x58, 0x09, 0xfc, 0xdb, 0x44, 0x48, 0x88, 0x4f, 0x66, - 0xab, 0x60, 0xfd, 0xdb, 0x44, 0x3c, 0x02, 0xf5, 0x3a, 0xd8, 0x24, 0x81, 0x6e, 0xc0, 0x38, 0x7d, - 0x92, 0xbb, 0x31, 0xd1, 0x91, 0x6e, 0x44, 0xd9, 0xc3, 0x19, 0x1b, 0x95, 0x70, 0x82, 0x08, 0xba, - 0x0e, 0xa3, 0x6c, 0xcc, 0xdb, 0x2d, 0x4e, 0xf4, 0x78, 0x37, 0xa2, 0xcc, 0xa0, 0xa0, 0xaa, 0x55, - 0xc1, 0x06, 0x01, 0xf4, 0x26, 0x0c, 0x37, 0xdc, 0x75, 0x52, 0xdb, 0xa9, 0x35, 0xc8, 0xf4, 0x28, - 0xa3, 0x96, 0x79, 0x18, 0x5e, 0x93, 0x48, 0x9c, 0x3f, 0x57, 0x7f, 0x71, 0x5c, 0x1d, 0xdd, 0x84, - 0xe3, 0x11, 0x09, 0x9a, 0xae, 0xe7, 0xd0, 0x43, 0x4c, 0x3c, 0x09, 0x99, 0x66, 0x7c, 0x8c, 0xad, - 0xae, 0x33, 0x62, 0x36, 0x8e, 0xaf, 0x65, 0x62, 0xe1, 0x9c, 0xda, 0xe8, 0x2e, 0x4c, 0x67, 0x40, - 0xf8, 0xba, 0x3d, 0xca, 0x28, 0xbf, 0x26, 0x28, 0x4f, 0xaf, 0xe5, 0xe0, 0xed, 0x77, 0x80, 0xe1, - 0x5c, 0xea, 0xe8, 0x3a, 0x4c, 0xb0, 0x93, 0xb3, 0xd2, 0x6e, 0x34, 0x44, 0x83, 0xe3, 0xac, 0xc1, - 0x27, 0x24, 0x1f, 0x51, 0x36, 0xc1, 0xfb, 0xbb, 0x25, 0x88, 0xff, 0xe1, 0x64, 0x6d, 0x74, 0x9b, - 0x29, 0x61, 0xdb, 0x81, 0x1b, 0xed, 0xd0, 0x5d, 0x45, 0xee, 0x46, 0xd3, 0x13, 0x1d, 0x05, 0x52, - 0x3a, 0xaa, 0xd2, 0xd4, 0xea, 0x85, 0x38, 0x49, 0x90, 0x5e, 0x05, 0x61, 0x54, 0x77, 0xbd, 0xe9, - 0x49, 0xfe, 0x9e, 0x92, 0x27, 0x69, 0x95, 0x16, 0x62, 0x0e, 0x63, 0x0a, 0x58, 0xfa, 0xe3, 0x3a, - 0xbd, 0x71, 0xa7, 0x18, 0x62, 0xac, 0x80, 0x95, 0x00, 0x1c, 0xe3, 0x50, 0x26, 0x38, 0x8a, 0x76, - 0xa6, 0x11, 0x43, 0x55, 0x07, 0xe2, 0xda, 0xda, 0x27, 0x30, 0x2d, 0xb7, 0x6f, 0xc3, 0xb8, 0x3a, - 0x26, 0xd8, 0x98, 0xa0, 0x12, 0xf4, 0x33, 0xb6, 0x4f, 0x88, 0x4f, 0x87, 0x69, 0x17, 0x18, 0x4b, - 0x88, 0x79, 0x39, 0xeb, 0x82, 0x7b, 0x8f, 0xcc, 0xef, 0x44, 0x84, 0xcb, 0x22, 0x8a, 0x5a, 0x17, - 0x24, 0x00, 0xc7, 0x38, 0xf6, 0xbf, 0xe7, 0xec, 0x73, 0x7c, 0x4b, 0xf4, 0x70, 0x2f, 0x3e, 0x0b, - 0x43, 0xcc, 0xf0, 0xc3, 0x0f, 0xb8, 0x76, 0xb6, 0x3f, 0x66, 0x98, 0xaf, 0x88, 0x72, 0xac, 0x30, - 0xd0, 0xab, 0x30, 0x56, 0xd3, 0x1b, 0x10, 0x97, 0xba, 0x3a, 0x46, 0x8c, 0xd6, 0xb1, 0x89, 0x8b, - 0x2e, 0xc1, 0x10, 0xb3, 0x71, 0xaa, 0xf9, 0x0d, 0xc1, 0x6d, 0x4a, 0xce, 0x64, 0xa8, 0x22, 0xca, - 0xf7, 0xb5, 0xdf, 0x58, 0x61, 0xa3, 0x73, 0x30, 0x40, 0xbb, 0x50, 0xae, 0x88, 0xeb, 0x54, 0x49, - 0x02, 0xaf, 0xb0, 0x52, 0x2c, 0xa0, 0xf6, 0x1f, 0x5b, 0x8c, 0x97, 0x4a, 0x9f, 0xf9, 0xe8, 0x0a, - 0xbb, 0x34, 0xd8, 0x0d, 0xa2, 0x69, 0xe1, 0x1f, 0xd7, 0x6e, 0x02, 0x05, 0xdb, 0x4f, 0xfc, 0xc7, - 0x46, 0x4d, 0xf4, 0x76, 0xf2, 0x66, 0xe0, 0x0c, 0xc5, 0x8b, 0x72, 0x08, 0x92, 0xb7, 0xc3, 0x23, - 0xf1, 0x15, 0x47, 0xfb, 0xd3, 0xe9, 0x8a, 0xb0, 0x7f, 0xaa, 0xa0, 0xad, 0x92, 0x6a, 0xe4, 0x44, - 0x04, 0x55, 0x60, 0xf0, 0x8e, 0xe3, 0x46, 0xae, 0xb7, 0x21, 0xf8, 0xbe, 0xce, 0x17, 0x1d, 0xab, - 0x74, 0x8b, 0x57, 0xe0, 0xdc, 0x8b, 0xf8, 0x83, 0x25, 0x19, 0x4a, 0x31, 0x68, 0x7b, 0x1e, 0xa5, - 0x58, 0xe8, 0x95, 0x22, 0xe6, 0x15, 0x38, 0x45, 0xf1, 0x07, 0x4b, 0x32, 0xe8, 0x1d, 0x00, 0x79, - 0x42, 0x90, 0xba, 0x90, 0x1d, 0x3e, 0xdb, 0x9d, 0xe8, 0x9a, 0xaa, 0xc3, 0x85, 0x93, 0xf1, 0x7f, - 0xac, 0xd1, 0xb3, 0x23, 0x6d, 0x4e, 0xf5, 0xce, 0xa0, 0x4f, 0xd2, 0x2d, 0xea, 0x04, 0x11, 0xa9, - 0xcf, 0x45, 0x62, 0x70, 0x9e, 0xee, 0xed, 0x71, 0xb8, 0xe6, 0x36, 0x89, 0xbe, 0x9d, 0x05, 0x11, - 0x1c, 0xd3, 0xb3, 0x7f, 0xbf, 0x08, 0xd3, 0x79, 0xdd, 0xa5, 0x9b, 0x86, 0xdc, 0x75, 0xa3, 0x05, - 0xca, 0xd6, 0x5a, 0xe6, 0xa6, 0x59, 0x12, 0xe5, 0x58, 0x61, 0xd0, 0xd5, 0x1b, 0xba, 0x1b, 0xf2, - 0x6d, 0xdf, 0x1f, 0xaf, 0xde, 0x2a, 0x2b, 0xc5, 0x02, 0x4a, 0xf1, 0x02, 0xe2, 0x84, 0xc2, 0xf8, - 0x4e, 0x5b, 0xe5, 0x98, 0x95, 0x62, 0x01, 0xd5, 0xa5, 0x8c, 0x7d, 0x5d, 0xa4, 0x8c, 0xc6, 0x10, - 0xf5, 0x3f, 0xd8, 0x21, 0x42, 0x9f, 0x06, 0x58, 0x77, 0x3d, 0x37, 0xdc, 0x64, 0xd4, 0x07, 0x0e, - 0x4c, 0x5d, 0x31, 0xc5, 0xcb, 0x8a, 0x0a, 0xd6, 0x28, 0xa2, 0x97, 0x60, 0x44, 0x1d, 0x20, 0xe5, - 0x45, 0xa6, 0xfa, 0xd7, 0x4c, 0xa9, 0xe2, 0xd3, 0x74, 0x11, 0xeb, 0x78, 0xf6, 0x67, 0x93, 0xeb, - 0x45, 0xec, 0x00, 0x6d, 0x7c, 0xad, 0x5e, 0xc7, 0xb7, 0xd0, 0x79, 0x7c, 0xed, 0xbf, 0x1e, 0x86, - 0x09, 0xa3, 0xb1, 0x76, 0xd8, 0xc3, 0x99, 0x7b, 0x99, 0x5e, 0x40, 0x4e, 0x44, 0xc4, 0xfe, 0xb3, - 0xbb, 0x6f, 0x15, 0xfd, 0x92, 0xa2, 0x3b, 0x80, 0xd7, 0x47, 0x9f, 0x86, 0xe1, 0x86, 0x13, 0x32, - 0x89, 0x25, 0x11, 0xfb, 0xae, 0x17, 0x62, 0xf1, 0x83, 0xd0, 0x09, 0x23, 0xed, 0xd6, 0xe7, 0xb4, - 0x63, 0x92, 0xf4, 0xa6, 0xa4, 0xfc, 0x95, 0xb4, 0xee, 0x54, 0x9d, 0xa0, 0x4c, 0xd8, 0x0e, 0xe6, - 0x30, 0x74, 0x89, 0x1d, 0xad, 0x74, 0x55, 0x2c, 0x50, 0x6e, 0x94, 0x2d, 0xb3, 0x7e, 0x83, 0xc9, - 0x56, 0x30, 0x6c, 0x60, 0xc6, 0x6f, 0xb2, 0x81, 0x0e, 0x6f, 0xb2, 0xa7, 0x60, 0x90, 0xfd, 0x50, - 0x2b, 0x40, 0xcd, 0x46, 0x99, 0x17, 0x63, 0x09, 0x4f, 0x2e, 0x98, 0xa1, 0xde, 0x16, 0x0c, 0x7d, - 0xf5, 0x89, 0x45, 0xcd, 0xcc, 0x2e, 0x86, 0xf8, 0x29, 0x27, 0x96, 0x3c, 0x96, 0x30, 0xf4, 0x6b, - 0x16, 0x20, 0xa7, 0x41, 0x5f, 0xcb, 0xb4, 0x58, 0x3d, 0x6e, 0x80, 0xb1, 0xda, 0xaf, 0x76, 0x1d, - 0xf6, 0x76, 0x38, 0x3b, 0x97, 0xaa, 0xcd, 0x25, 0xa5, 0xaf, 0x88, 0x2e, 0xa2, 0x34, 0x82, 0x7e, - 0x19, 0x5d, 0x73, 0xc3, 0xe8, 0xf3, 0x7f, 0x9f, 0xb8, 0x9c, 0x32, 0xba, 0x84, 0x6e, 0xe8, 0x8f, - 0xaf, 0x91, 0x03, 0x3e, 0xbe, 0xc6, 0x72, 0x1f, 0x5e, 0xdf, 0x9f, 0x78, 0xc0, 0x8c, 0xb2, 0x2f, - 0x7f, 0xa2, 0xcb, 0x03, 0x46, 0x88, 0xd3, 0x7b, 0x79, 0xc6, 0x54, 0x84, 0x1e, 0x78, 0x8c, 0x75, - 0xb9, 0xf3, 0x23, 0xf8, 0x46, 0x48, 0x82, 0xf9, 0x93, 0x52, 0x4d, 0xbc, 0xaf, 0xf3, 0x1e, 0x9a, - 0xde, 0xf8, 0x87, 0x2c, 0x98, 0x4e, 0x0f, 0x10, 0xef, 0xd2, 0xf4, 0x38, 0xeb, 0xbf, 0xdd, 0x69, - 0x64, 0x44, 0xe7, 0xa5, 0xb9, 0xeb, 0xf4, 0x5c, 0x0e, 0x2d, 0x9c, 0xdb, 0x0a, 0xba, 0x04, 0x10, - 0x46, 0x7e, 0x8b, 0x9f, 0xf5, 0x8c, 0x99, 0x1d, 0x66, 0x06, 0x17, 0x50, 0x55, 0xa5, 0xfb, 0xf1, - 0x5d, 0xa0, 0xe1, 0xce, 0xb4, 0xe1, 0x44, 0xce, 0x8a, 0xc9, 0x90, 0x77, 0x2f, 0xea, 0xf2, 0xee, - 0x2e, 0x52, 0xd2, 0x59, 0x39, 0xa7, 0xb3, 0x6f, 0xb5, 0x1d, 0x2f, 0x72, 0xa3, 0x1d, 0x5d, 0x3e, - 0xee, 0x81, 0x39, 0x94, 0xe8, 0x53, 0xd0, 0xdf, 0x70, 0xbd, 0xf6, 0x5d, 0x71, 0xc7, 0x9e, 0xcb, - 0x7e, 0xfe, 0x78, 0xed, 0xbb, 0xe6, 0xe4, 0x94, 0xe8, 0x56, 0x66, 0xe5, 0xfb, 0xbb, 0x25, 0x94, - 0x46, 0xc0, 0x9c, 0xaa, 0xfd, 0x34, 0x8c, 0x2f, 0x3a, 0xa4, 0xe9, 0x7b, 0x4b, 0x5e, 0xbd, 0xe5, - 0xbb, 0x5e, 0x84, 0xa6, 0xa1, 0x8f, 0x31, 0x97, 0xfc, 0x6a, 0xed, 0xa3, 0x83, 0x8f, 0x59, 0x89, - 0xbd, 0x01, 0xc7, 0x16, 0xfd, 0x3b, 0xde, 0x1d, 0x27, 0xa8, 0xcf, 0x55, 0xca, 0x9a, 0xbc, 0x70, - 0x55, 0xca, 0xab, 0xac, 0x7c, 0x69, 0x80, 0x56, 0x93, 0x2f, 0xc2, 0x65, 0xb7, 0x41, 0x72, 0xa4, - 0xba, 0x3f, 0x5b, 0x30, 0x5a, 0x8a, 0xf1, 0x95, 0x4e, 0xd2, 0xca, 0x35, 0x67, 0x78, 0x0b, 0x86, - 0xd6, 0x5d, 0xd2, 0xa8, 0x63, 0xb2, 0x2e, 0x66, 0xe3, 0xc9, 0x7c, 0x83, 0xc7, 0x65, 0x8a, 0xa9, - 0x94, 0xa7, 0x4c, 0xda, 0xb5, 0x2c, 0x2a, 0x63, 0x45, 0x06, 0x6d, 0xc1, 0xa4, 0x9c, 0x33, 0x09, - 0x15, 0xe7, 0xfd, 0x53, 0x9d, 0x96, 0xaf, 0x49, 0x9c, 0x19, 0x7f, 0xe3, 0x04, 0x19, 0x9c, 0x22, - 0x8c, 0x4e, 0x41, 0x5f, 0x93, 0x72, 0x36, 0x7d, 0x6c, 0xf8, 0x99, 0x78, 0x8b, 0x49, 0xea, 0x58, - 0xa9, 0xfd, 0xf3, 0x16, 0x9c, 0x48, 0x8d, 0x8c, 0x90, 0x58, 0x3e, 0xe0, 0x59, 0x48, 0x4a, 0x10, - 0x0b, 0xdd, 0x25, 0x88, 0xf6, 0x7f, 0x61, 0xc1, 0xd1, 0xa5, 0x66, 0x2b, 0xda, 0x59, 0x74, 0x4d, - 0xdb, 0x83, 0x97, 0x61, 0xa0, 0x49, 0xea, 0x6e, 0xbb, 0x29, 0x66, 0xae, 0x24, 0x6f, 0xff, 0x15, - 0x56, 0x4a, 0x4f, 0x90, 0x6a, 0xe4, 0x07, 0xce, 0x06, 0xe1, 0x05, 0x58, 0xa0, 0x33, 0x1e, 0xca, - 0xbd, 0x47, 0xae, 0xb9, 0x4d, 0x37, 0xba, 0xbf, 0xdd, 0x25, 0xcc, 0x06, 0x24, 0x11, 0x1c, 0xd3, - 0xb3, 0xbf, 0x69, 0xc1, 0x84, 0x5c, 0xf7, 0x73, 0xf5, 0x7a, 0x40, 0xc2, 0x10, 0xcd, 0x40, 0xc1, - 0x6d, 0x89, 0x5e, 0x82, 0xe8, 0x65, 0xa1, 0x5c, 0xc1, 0x05, 0xb7, 0x25, 0x9f, 0x6b, 0x8c, 0xc1, - 0x28, 0x9a, 0x16, 0x14, 0x57, 0x44, 0x39, 0x56, 0x18, 0xe8, 0x3c, 0x0c, 0x79, 0x7e, 0x9d, 0xbf, - 0x78, 0x84, 0x0e, 0x9d, 0x62, 0xae, 0x8a, 0x32, 0xac, 0xa0, 0xa8, 0x02, 0xc3, 0xdc, 0xbe, 0x36, - 0x5e, 0xb4, 0x3d, 0x59, 0xe9, 0xb2, 0x2f, 0x5b, 0x93, 0x35, 0x71, 0x4c, 0xc4, 0xfe, 0x53, 0x0b, - 0x46, 0xe5, 0x97, 0xf5, 0xf8, 0x16, 0xa5, 0x5b, 0x2b, 0x7e, 0x87, 0xc6, 0x5b, 0x8b, 0xbe, 0x25, - 0x19, 0xc4, 0x78, 0x42, 0x16, 0x0f, 0xf4, 0x84, 0xbc, 0x08, 0x23, 0x4e, 0xab, 0x55, 0x31, 0xdf, - 0x9f, 0x6c, 0x29, 0xcd, 0xc5, 0xc5, 0x58, 0xc7, 0xb1, 0x7f, 0xae, 0x00, 0xe3, 0xf2, 0x0b, 0xaa, - 0xed, 0xdb, 0x21, 0x89, 0xd0, 0x1a, 0x0c, 0x3b, 0x7c, 0x96, 0x88, 0x5c, 0xe4, 0x8f, 0x65, 0xcb, - 0x45, 0x8d, 0x29, 0x8d, 0x19, 0xe9, 0x39, 0x59, 0x1b, 0xc7, 0x84, 0x50, 0x03, 0xa6, 0x3c, 0x3f, - 0x62, 0x4c, 0x95, 0x82, 0x77, 0x52, 0x55, 0x27, 0xa9, 0x9f, 0x14, 0xd4, 0xa7, 0x56, 0x93, 0x54, - 0x70, 0x9a, 0x30, 0x5a, 0x92, 0xb2, 0xe6, 0x62, 0xbe, 0x90, 0x50, 0x9f, 0xb8, 0x6c, 0x51, 0xb3, - 0xfd, 0x47, 0x16, 0x0c, 0x4b, 0xb4, 0xc3, 0xb0, 0x4a, 0x58, 0x81, 0xc1, 0x90, 0x4d, 0x82, 0x1c, - 0x1a, 0xbb, 0x53, 0xc7, 0xf9, 0x7c, 0xc5, 0xbc, 0x22, 0xff, 0x1f, 0x62, 0x49, 0x83, 0xa9, 0x1a, - 0x55, 0xf7, 0xdf, 0x27, 0xaa, 0x46, 0xd5, 0x9f, 0x9c, 0x4b, 0xe9, 0x1f, 0x58, 0x9f, 0x35, 0xd9, - 0x3d, 0x7d, 0xd2, 0xb4, 0x02, 0xb2, 0xee, 0xde, 0x4d, 0x3e, 0x69, 0x2a, 0xac, 0x14, 0x0b, 0x28, - 0x7a, 0x07, 0x46, 0x6b, 0x52, 0xc7, 0x14, 0xef, 0xf0, 0x73, 0x1d, 0xf5, 0x9d, 0x4a, 0x35, 0xce, - 0x65, 0xa4, 0x0b, 0x5a, 0x7d, 0x6c, 0x50, 0x33, 0xed, 0xc7, 0x8a, 0xdd, 0xec, 0xc7, 0x62, 0xba, - 0xf9, 0xd6, 0x54, 0xbf, 0x60, 0xc1, 0x00, 0xd7, 0x2d, 0xf4, 0xa6, 0xda, 0xd1, 0x2c, 0x05, 0xe2, - 0xb1, 0xbb, 0x49, 0x0b, 0x05, 0x67, 0x83, 0x56, 0x60, 0x98, 0xfd, 0x60, 0xba, 0x91, 0x62, 0xbe, - 0xb7, 0x19, 0x6f, 0x55, 0xef, 0xe0, 0x4d, 0x59, 0x0d, 0xc7, 0x14, 0xec, 0x9f, 0x2e, 0xd2, 0xd3, - 0x2d, 0x46, 0x35, 0x2e, 0x7d, 0xeb, 0xe1, 0x5d, 0xfa, 0x85, 0x87, 0x75, 0xe9, 0x6f, 0xc0, 0x44, - 0x4d, 0xb3, 0x2b, 0x88, 0x67, 0xf2, 0x7c, 0xc7, 0x45, 0xa2, 0x99, 0x20, 0x70, 0xe9, 0xeb, 0x82, - 0x49, 0x04, 0x27, 0xa9, 0xa2, 0x4f, 0xc2, 0x28, 0x9f, 0x67, 0xd1, 0x0a, 0x37, 0xc1, 0x7b, 0x22, - 0x7f, 0xbd, 0xe8, 0x4d, 0x70, 0x69, 0xbd, 0x56, 0x1d, 0x1b, 0xc4, 0xec, 0x7f, 0xb1, 0x00, 0x2d, - 0xb5, 0x36, 0x49, 0x93, 0x04, 0x4e, 0x23, 0x56, 0x0f, 0x7e, 0xc9, 0x82, 0x69, 0x92, 0x2a, 0x5e, - 0xf0, 0x9b, 0x4d, 0x21, 0x0c, 0xc8, 0x91, 0x57, 0x2d, 0xe5, 0xd4, 0x89, 0x1f, 0x04, 0x79, 0x18, - 0x38, 0xb7, 0x3d, 0xb4, 0x02, 0x47, 0xf8, 0x2d, 0xa9, 0x00, 0x9a, 0x95, 0xde, 0x23, 0x82, 0xf0, - 0x91, 0xb5, 0x34, 0x0a, 0xce, 0xaa, 0x67, 0xff, 0xd1, 0x18, 0xe4, 0xf6, 0xe2, 0x03, 0xbd, 0xe8, - 0x07, 0x7a, 0xd1, 0x0f, 0xf4, 0xa2, 0x1f, 0xe8, 0x45, 0x3f, 0xd0, 0x8b, 0x7e, 0xa0, 0x17, 0x7d, - 0x9f, 0xea, 0x45, 0x7f, 0xc6, 0x82, 0x63, 0xea, 0xfa, 0x32, 0x1e, 0xec, 0x9f, 0x83, 0x23, 0x7c, - 0xbb, 0x2d, 0x34, 0x1c, 0xb7, 0xb9, 0x46, 0x9a, 0xad, 0x86, 0x13, 0x49, 0xeb, 0xa7, 0x8b, 0x99, - 0x2b, 0x37, 0xe1, 0x62, 0x61, 0x54, 0xe4, 0xbe, 0x6a, 0x19, 0x00, 0x9c, 0xd5, 0x8c, 0xfd, 0xfb, - 0x43, 0xd0, 0xbf, 0xb4, 0x4d, 0xbc, 0xe8, 0x10, 0x9e, 0x36, 0x35, 0x18, 0x77, 0xbd, 0x6d, 0xbf, - 0xb1, 0x4d, 0xea, 0x1c, 0x7e, 0x90, 0x17, 0xf8, 0x71, 0x41, 0x7a, 0xbc, 0x6c, 0x90, 0xc0, 0x09, - 0x92, 0x0f, 0x43, 0xbb, 0x74, 0x19, 0x06, 0xf8, 0xe5, 0x23, 0x54, 0x4b, 0x99, 0x67, 0x36, 0x1b, - 0x44, 0x71, 0xa5, 0xc6, 0x9a, 0x2f, 0x7e, 0xb9, 0x89, 0xea, 0xe8, 0xb3, 0x30, 0xbe, 0xee, 0x06, - 0x61, 0xb4, 0xe6, 0x36, 0xe9, 0xd5, 0xd0, 0x6c, 0xdd, 0x87, 0x36, 0x49, 0x8d, 0xc3, 0xb2, 0x41, - 0x09, 0x27, 0x28, 0xa3, 0x0d, 0x18, 0x6b, 0x38, 0x7a, 0x53, 0x83, 0x07, 0x6e, 0x4a, 0xdd, 0x0e, - 0xd7, 0x74, 0x42, 0xd8, 0xa4, 0x4b, 0xb7, 0x53, 0x8d, 0x29, 0x44, 0x86, 0x98, 0x38, 0x43, 0x6d, - 0x27, 0xae, 0x09, 0xe1, 0x30, 0xca, 0xa0, 0x31, 0x47, 0x85, 0x61, 0x93, 0x41, 0xd3, 0xdc, 0x11, - 0x3e, 0x03, 0xc3, 0x84, 0x0e, 0x21, 0x25, 0x2c, 0x2e, 0x98, 0x0b, 0xbd, 0xf5, 0x75, 0xc5, 0xad, - 0x05, 0xbe, 0xa9, 0xc7, 0x5b, 0x92, 0x94, 0x70, 0x4c, 0x14, 0x2d, 0xc0, 0x40, 0x48, 0x02, 0x57, - 0xe9, 0x0a, 0x3a, 0x4c, 0x23, 0x43, 0xe3, 0xce, 0x90, 0xfc, 0x37, 0x16, 0x55, 0xe9, 0xf2, 0x72, - 0x98, 0x28, 0x96, 0x5d, 0x06, 0xda, 0xf2, 0x9a, 0x63, 0xa5, 0x58, 0x40, 0xd1, 0x9b, 0x30, 0x18, - 0x90, 0x06, 0x53, 0x14, 0x8f, 0xf5, 0xbe, 0xc8, 0xb9, 0xde, 0x99, 0xd7, 0xc3, 0x92, 0x00, 0xba, - 0x0a, 0x28, 0x20, 0x94, 0xc1, 0x73, 0xbd, 0x0d, 0x65, 0xbe, 0x2f, 0x0e, 0x5a, 0xc5, 0x48, 0xe3, - 0x18, 0x43, 0xfa, 0xc1, 0xe2, 0x8c, 0x6a, 0xe8, 0x32, 0x4c, 0xa9, 0xd2, 0xb2, 0x17, 0x46, 0x0e, - 0x3d, 0xe0, 0xb8, 0xb8, 0x5e, 0xc9, 0x57, 0x70, 0x12, 0x01, 0xa7, 0xeb, 0xd8, 0xbf, 0x61, 0x01, - 0x1f, 0xe7, 0x43, 0x90, 0x2a, 0xbc, 0x6e, 0x4a, 0x15, 0x4e, 0xe6, 0xce, 0x5c, 0x8e, 0x44, 0xe1, - 0x37, 0x2c, 0x18, 0xd1, 0x66, 0x36, 0x5e, 0xb3, 0x56, 0x87, 0x35, 0xdb, 0x86, 0x49, 0xba, 0xd2, - 0xaf, 0xdf, 0x0e, 0x49, 0xb0, 0x4d, 0xea, 0x6c, 0x61, 0x16, 0xee, 0x6f, 0x61, 0x2a, 0x53, 0xe1, - 0x6b, 0x09, 0x82, 0x38, 0xd5, 0x84, 0xfd, 0x19, 0xd9, 0x55, 0x65, 0x59, 0x5d, 0x53, 0x73, 0x9e, - 0xb0, 0xac, 0x56, 0xb3, 0x8a, 0x63, 0x1c, 0xba, 0xd5, 0x36, 0xfd, 0x30, 0x4a, 0x5a, 0x56, 0x5f, - 0xf1, 0xc3, 0x08, 0x33, 0x88, 0xfd, 0x02, 0xc0, 0xd2, 0x5d, 0x52, 0xe3, 0x2b, 0x56, 0x7f, 0xf4, - 0x58, 0xf9, 0x8f, 0x1e, 0xfb, 0x6f, 0x2c, 0x18, 0x5f, 0x5e, 0x30, 0x6e, 0xae, 0x59, 0x00, 0xfe, - 0x52, 0xbb, 0x75, 0x6b, 0x55, 0x9a, 0xf7, 0x70, 0x0b, 0x07, 0x55, 0x8a, 0x35, 0x0c, 0x74, 0x12, - 0x8a, 0x8d, 0xb6, 0x27, 0xc4, 0x9e, 0x83, 0xf4, 0x7a, 0xbc, 0xd6, 0xf6, 0x30, 0x2d, 0xd3, 0x7c, - 0xe0, 0x8a, 0x3d, 0xfb, 0xc0, 0x75, 0x0d, 0xc5, 0x83, 0x4a, 0xd0, 0x7f, 0xe7, 0x8e, 0x5b, 0xe7, - 0x11, 0x06, 0x84, 0xe9, 0xd1, 0xad, 0x5b, 0xe5, 0xc5, 0x10, 0xf3, 0x72, 0xfb, 0xcb, 0x45, 0x98, - 0x59, 0x6e, 0x90, 0xbb, 0xef, 0x31, 0xca, 0x42, 0xaf, 0x1e, 0x7c, 0x07, 0x13, 0x20, 0x1d, 0xd4, - 0x4b, 0xb3, 0xfb, 0x78, 0xac, 0xc3, 0x20, 0x37, 0x2c, 0x96, 0x31, 0x17, 0x32, 0xd5, 0xb9, 0xf9, - 0x03, 0x32, 0xcb, 0x0d, 0x94, 0x85, 0x3a, 0x57, 0x5d, 0x98, 0xa2, 0x14, 0x4b, 0xe2, 0x33, 0xaf, - 0xc0, 0xa8, 0x8e, 0x79, 0x20, 0x7f, 0xe9, 0x1f, 0x2e, 0xc2, 0x24, 0xed, 0xc1, 0x43, 0x9d, 0x88, - 0x1b, 0xe9, 0x89, 0x78, 0xd0, 0x3e, 0xb3, 0xdd, 0x67, 0xe3, 0x9d, 0xe4, 0x6c, 0x5c, 0xcc, 0x9b, - 0x8d, 0xc3, 0x9e, 0x83, 0x1f, 0xb1, 0xe0, 0xc8, 0x72, 0xc3, 0xaf, 0x6d, 0x25, 0xfc, 0x5a, 0x5f, - 0x82, 0x11, 0x7a, 0x1c, 0x87, 0x46, 0x88, 0x17, 0x23, 0xe8, 0x8f, 0x00, 0x61, 0x1d, 0x4f, 0xab, - 0x76, 0xe3, 0x46, 0x79, 0x31, 0x2b, 0x56, 0x90, 0x00, 0x61, 0x1d, 0xcf, 0xfe, 0x4b, 0x0b, 0x4e, - 0x5f, 0x5e, 0x58, 0x8a, 0x97, 0x62, 0x2a, 0x5c, 0xd1, 0x39, 0x18, 0x68, 0xd5, 0xb5, 0xae, 0xc4, - 0x62, 0xe1, 0x45, 0xd6, 0x0b, 0x01, 0x7d, 0xbf, 0x44, 0x06, 0xbb, 0x01, 0x70, 0x19, 0x57, 0x16, - 0xc4, 0xb9, 0x2b, 0xb5, 0x40, 0x56, 0xae, 0x16, 0xe8, 0x09, 0x18, 0xa4, 0xf7, 0x82, 0x5b, 0x93, - 0xfd, 0xe6, 0x06, 0x1b, 0xbc, 0x08, 0x4b, 0x98, 0xfd, 0xeb, 0x16, 0x1c, 0xb9, 0xec, 0x46, 0xf4, - 0xd2, 0x4e, 0xc6, 0xe3, 0xa1, 0xb7, 0x76, 0xe8, 0x46, 0x7e, 0xb0, 0x93, 0x8c, 0xc7, 0x83, 0x15, - 0x04, 0x6b, 0x58, 0xfc, 0x83, 0xb6, 0x5d, 0xe6, 0x29, 0x53, 0x30, 0xf5, 0x6e, 0x58, 0x94, 0x63, - 0x85, 0x41, 0xc7, 0xab, 0xee, 0x06, 0x4c, 0x64, 0xb9, 0x23, 0x0e, 0x6e, 0x35, 0x5e, 0x8b, 0x12, - 0x80, 0x63, 0x1c, 0xfb, 0x9f, 0x2c, 0x28, 0x5d, 0xe6, 0xfe, 0xbe, 0xeb, 0x61, 0xce, 0xa1, 0xfb, - 0x02, 0x0c, 0x13, 0xa9, 0x20, 0x10, 0xbd, 0x56, 0x8c, 0xa8, 0xd2, 0x1c, 0xf0, 0xb0, 0x40, 0x0a, - 0xaf, 0x07, 0xe7, 0xfb, 0x83, 0x79, 0x4f, 0x2f, 0x03, 0x22, 0x7a, 0x5b, 0x7a, 0x9c, 0x24, 0x16, - 0x70, 0x65, 0x29, 0x05, 0xc5, 0x19, 0x35, 0xec, 0x9f, 0xb7, 0xe0, 0x98, 0xfa, 0xe0, 0xf7, 0xdd, - 0x67, 0xda, 0xbf, 0x53, 0x80, 0xb1, 0x2b, 0x6b, 0x6b, 0x95, 0xcb, 0x24, 0xd2, 0x56, 0x65, 0x67, - 0xb5, 0x3f, 0xd6, 0xb4, 0x97, 0x9d, 0xde, 0x88, 0xed, 0xc8, 0x6d, 0xcc, 0xf2, 0xe8, 0x7f, 0xb3, - 0x65, 0x2f, 0xba, 0x1e, 0x54, 0xa3, 0xc0, 0xf5, 0x36, 0x32, 0x57, 0xba, 0xe4, 0x59, 0x8a, 0x79, - 0x3c, 0x0b, 0x7a, 0x01, 0x06, 0x58, 0xf8, 0x41, 0x39, 0x09, 0x8f, 0xa8, 0x27, 0x16, 0x2b, 0xdd, - 0xdf, 0x2d, 0x0d, 0xdf, 0xc0, 0x65, 0xfe, 0x07, 0x0b, 0x54, 0x74, 0x03, 0x46, 0x36, 0xa3, 0xa8, - 0x75, 0x85, 0x38, 0x75, 0x12, 0xc8, 0x53, 0xf6, 0x4c, 0xd6, 0x29, 0x4b, 0x07, 0x81, 0xa3, 0xc5, - 0x07, 0x53, 0x5c, 0x16, 0x62, 0x9d, 0x8e, 0x5d, 0x05, 0x88, 0x61, 0x0f, 0x48, 0x71, 0x63, 0xaf, - 0xc1, 0x30, 0xfd, 0xdc, 0xb9, 0x86, 0xeb, 0x74, 0x56, 0x8d, 0x3f, 0x03, 0xc3, 0x52, 0xf1, 0x1d, - 0x8a, 0xe0, 0x20, 0xec, 0x46, 0x92, 0x7a, 0xf1, 0x10, 0xc7, 0x70, 0xfb, 0x71, 0x10, 0xb6, 0xc3, - 0x9d, 0x48, 0xda, 0xeb, 0x70, 0x94, 0x19, 0x41, 0x3b, 0xd1, 0xa6, 0xb1, 0x46, 0xbb, 0x2f, 0x86, - 0x67, 0xc5, 0xbb, 0xae, 0xa0, 0xec, 0x7d, 0xa4, 0xf3, 0xf9, 0xa8, 0xa4, 0x18, 0xbf, 0xf1, 0xec, - 0x7f, 0xec, 0x83, 0x47, 0xca, 0xd5, 0xfc, 0xa8, 0x56, 0x97, 0x60, 0x94, 0xb3, 0x8b, 0x74, 0x69, - 0x38, 0x0d, 0xd1, 0xae, 0x92, 0x80, 0xae, 0x69, 0x30, 0x6c, 0x60, 0xa2, 0xd3, 0x50, 0x74, 0xdf, - 0xf5, 0x92, 0xae, 0x99, 0xe5, 0xb7, 0x56, 0x31, 0x2d, 0xa7, 0x60, 0xca, 0x79, 0xf2, 0x23, 0x5d, - 0x81, 0x15, 0xf7, 0xf9, 0x3a, 0x8c, 0xbb, 0x61, 0x2d, 0x74, 0xcb, 0x1e, 0xdd, 0xa7, 0xda, 0x4e, - 0x57, 0x32, 0x07, 0xda, 0x69, 0x05, 0xc5, 0x09, 0x6c, 0xed, 0x7e, 0xe9, 0xef, 0x99, 0x7b, 0xed, - 0x1a, 0x53, 0x83, 0x1e, 0xff, 0x2d, 0xf6, 0x75, 0x21, 0x13, 0xc1, 0x8b, 0xe3, 0x9f, 0x7f, 0x70, - 0x88, 0x25, 0x8c, 0x3e, 0xe8, 0x6a, 0x9b, 0x4e, 0x6b, 0xae, 0x1d, 0x6d, 0x2e, 0xba, 0x61, 0xcd, - 0xdf, 0x26, 0xc1, 0x0e, 0x7b, 0x8b, 0x0f, 0xc5, 0x0f, 0x3a, 0x05, 0x58, 0xb8, 0x32, 0x57, 0xa1, - 0x98, 0x38, 0x5d, 0x07, 0xcd, 0xc1, 0x84, 0x2c, 0xac, 0x92, 0x90, 0x5d, 0x01, 0x23, 0x8c, 0x8c, - 0x72, 0x96, 0x14, 0xc5, 0x8a, 0x48, 0x12, 0xdf, 0x64, 0x70, 0xe1, 0x41, 0x30, 0xb8, 0x2f, 0xc3, - 0x98, 0xeb, 0xb9, 0x91, 0xeb, 0x44, 0x3e, 0xd7, 0x1f, 0xf1, 0x67, 0x37, 0x13, 0x30, 0x97, 0x75, - 0x00, 0x36, 0xf1, 0xec, 0xff, 0xb3, 0x0f, 0xa6, 0xd8, 0xb4, 0x7d, 0xb0, 0xc2, 0xbe, 0x97, 0x56, - 0xd8, 0x8d, 0xf4, 0x0a, 0x7b, 0x10, 0x9c, 0xfb, 0x7d, 0x2f, 0xb3, 0x2f, 0x58, 0x30, 0xc5, 0x64, - 0xdc, 0xc6, 0x32, 0xbb, 0x00, 0xc3, 0x81, 0xe1, 0xc7, 0x3a, 0xac, 0x2b, 0xb5, 0xa4, 0x4b, 0x6a, - 0x8c, 0x83, 0xde, 0x00, 0x68, 0xc5, 0x32, 0xf4, 0x82, 0x11, 0x7c, 0x14, 0x72, 0xc5, 0xe7, 0x5a, - 0x1d, 0xfb, 0xb3, 0x30, 0xac, 0x1c, 0x55, 0xa5, 0xa7, 0xba, 0x95, 0xe3, 0xa9, 0xde, 0x9d, 0x8d, - 0x90, 0xb6, 0x71, 0xc5, 0x4c, 0xdb, 0xb8, 0xff, 0xcb, 0x82, 0x58, 0xc3, 0x81, 0xde, 0x82, 0xe1, - 0x96, 0xcf, 0x4c, 0xa9, 0x03, 0xe9, 0x9f, 0xf0, 0x78, 0x47, 0x15, 0x09, 0x8f, 0x30, 0x18, 0xf0, - 0xe9, 0xa8, 0xc8, 0xaa, 0x38, 0xa6, 0x82, 0xae, 0xc2, 0x60, 0x2b, 0x20, 0xd5, 0x88, 0x85, 0xbf, - 0xea, 0x9d, 0x20, 0x5f, 0xbe, 0xbc, 0x22, 0x96, 0x14, 0x12, 0x96, 0xa9, 0xc5, 0xde, 0x2d, 0x53, - 0xed, 0xdf, 0x2a, 0xc0, 0x64, 0xb2, 0x11, 0xf4, 0x1a, 0xf4, 0x91, 0xbb, 0xa4, 0x26, 0xbe, 0x34, - 0x93, 0x9b, 0x88, 0xa5, 0x2b, 0x7c, 0xe8, 0xe8, 0x7f, 0xcc, 0x6a, 0xa1, 0x2b, 0x30, 0x48, 0x59, - 0x89, 0xcb, 0x2a, 0x48, 0xe4, 0xa3, 0x79, 0xec, 0x88, 0xe2, 0xc9, 0xf8, 0x67, 0x89, 0x22, 0x2c, - 0xab, 0x33, 0x53, 0xb6, 0x5a, 0xab, 0x4a, 0x5f, 0x69, 0x51, 0x27, 0x61, 0xc2, 0xda, 0x42, 0x85, - 0x23, 0x09, 0x6a, 0xdc, 0x94, 0x4d, 0x16, 0xe2, 0x98, 0x08, 0x7a, 0x03, 0xfa, 0xc3, 0x06, 0x21, - 0x2d, 0x61, 0xab, 0x90, 0x29, 0x1f, 0xad, 0x52, 0x04, 0x41, 0x89, 0xc9, 0x53, 0x58, 0x01, 0xe6, - 0x15, 0xed, 0xdf, 0xb5, 0x00, 0xb8, 0xed, 0x9f, 0xe3, 0x6d, 0x90, 0x43, 0x50, 0x29, 0x2c, 0x42, - 0x5f, 0xd8, 0x22, 0xb5, 0x4e, 0x1e, 0x06, 0x71, 0x7f, 0xaa, 0x2d, 0x52, 0x8b, 0x57, 0x3b, 0xfd, - 0x87, 0x59, 0x6d, 0xfb, 0x47, 0x01, 0xc6, 0x63, 0xb4, 0x72, 0x44, 0x9a, 0xe8, 0x39, 0x23, 0xb2, - 0xce, 0xc9, 0x44, 0x64, 0x9d, 0x61, 0x86, 0xad, 0x49, 0xaf, 0x3f, 0x0b, 0xc5, 0xa6, 0x73, 0x57, - 0x88, 0x27, 0x9f, 0xe9, 0xdc, 0x0d, 0x4a, 0x7f, 0x76, 0xc5, 0xb9, 0xcb, 0x5f, 0xf0, 0xcf, 0xc8, - 0xdd, 0xb9, 0xe2, 0xdc, 0xed, 0x6a, 0x05, 0x4f, 0x1b, 0x61, 0x6d, 0xb9, 0x9e, 0x30, 0x6b, 0xeb, - 0xa9, 0x2d, 0xd7, 0x4b, 0xb6, 0xe5, 0x7a, 0x3d, 0xb4, 0xe5, 0x7a, 0xe8, 0x1e, 0x0c, 0x0a, 0xab, - 0x53, 0x11, 0xf2, 0xef, 0x42, 0x0f, 0xed, 0x09, 0xa3, 0x55, 0xde, 0xe6, 0x05, 0x29, 0xa1, 0x10, - 0xa5, 0x5d, 0xdb, 0x95, 0x0d, 0xa2, 0xff, 0xd4, 0x82, 0x71, 0xf1, 0x1b, 0x93, 0x77, 0xdb, 0x24, - 0x8c, 0x04, 0x07, 0xff, 0x91, 0xde, 0xfb, 0x20, 0x2a, 0xf2, 0xae, 0x7c, 0x44, 0x5e, 0xb6, 0x26, - 0xb0, 0x6b, 0x8f, 0x12, 0xbd, 0x40, 0xbf, 0x65, 0xc1, 0xd1, 0xa6, 0x73, 0x97, 0xb7, 0xc8, 0xcb, - 0xb0, 0x13, 0xb9, 0xbe, 0xb0, 0xde, 0x78, 0xad, 0xb7, 0xe9, 0x4f, 0x55, 0xe7, 0x9d, 0x94, 0xaa, - 0xda, 0xa3, 0x59, 0x28, 0x5d, 0xbb, 0x9a, 0xd9, 0xaf, 0x99, 0x75, 0x18, 0x92, 0xeb, 0xed, 0x61, - 0x9a, 0xd4, 0xb3, 0x76, 0xc4, 0x5a, 0x7b, 0xa8, 0xed, 0x7c, 0x16, 0x46, 0xf5, 0x35, 0xf6, 0x50, - 0xdb, 0x7a, 0x17, 0x8e, 0x64, 0xac, 0xa5, 0x87, 0xda, 0xe4, 0x1d, 0x38, 0x99, 0xbb, 0x3e, 0x1e, - 0xaa, 0x4b, 0xc4, 0xef, 0x58, 0xfa, 0x39, 0x78, 0x08, 0x7a, 0x9d, 0x05, 0x53, 0xaf, 0x73, 0xa6, - 0xf3, 0xce, 0xc9, 0x51, 0xee, 0xbc, 0xa3, 0x77, 0x9a, 0x9e, 0xea, 0xe8, 0x4d, 0x18, 0x68, 0xd0, - 0x12, 0x69, 0xbb, 0x6c, 0x77, 0xdf, 0x91, 0x31, 0x47, 0xcd, 0xca, 0x43, 0x2c, 0x28, 0xd8, 0x5f, - 0xb1, 0x20, 0xc3, 0xa9, 0x83, 0x72, 0x58, 0x6d, 0xb7, 0xce, 0x86, 0xa4, 0x18, 0x73, 0x58, 0x2a, - 0xf0, 0xcc, 0x69, 0x28, 0x6e, 0xb8, 0x75, 0xe1, 0xcd, 0xac, 0xc0, 0x97, 0x29, 0x78, 0xc3, 0xad, - 0xa3, 0x65, 0x40, 0x61, 0xbb, 0xd5, 0x6a, 0x30, 0x83, 0x27, 0xa7, 0x71, 0x39, 0xf0, 0xdb, 0x2d, - 0x6e, 0xa8, 0x5c, 0xe4, 0xe2, 0xa5, 0x6a, 0x0a, 0x8a, 0x33, 0x6a, 0xd8, 0x7f, 0x60, 0x41, 0xdf, - 0x21, 0x4c, 0x13, 0x36, 0xa7, 0xe9, 0xb9, 0x5c, 0xd2, 0x22, 0x53, 0xc4, 0x2c, 0x76, 0xee, 0x2c, - 0xdd, 0x8d, 0x88, 0x17, 0x32, 0x86, 0x23, 0x73, 0xd6, 0x76, 0x2d, 0x38, 0x72, 0xcd, 0x77, 0xea, - 0xf3, 0x4e, 0xc3, 0xf1, 0x6a, 0x24, 0x28, 0x7b, 0x1b, 0x07, 0xf2, 0x0a, 0x28, 0x74, 0xf5, 0x0a, - 0xb8, 0x04, 0x03, 0x6e, 0x4b, 0x0b, 0x35, 0x7f, 0x96, 0xce, 0x6e, 0xb9, 0x22, 0xa2, 0xcc, 0x23, - 0xa3, 0x71, 0x56, 0x8a, 0x05, 0x3e, 0x5d, 0x96, 0xdc, 0x1c, 0xaf, 0x2f, 0x7f, 0x59, 0xd2, 0x57, - 0x52, 0x32, 0x84, 0x9a, 0x61, 0x38, 0xbe, 0x09, 0x46, 0x13, 0xc2, 0x4d, 0x0a, 0xc3, 0xa0, 0xcb, - 0xbf, 0x54, 0xac, 0xcd, 0x27, 0xb3, 0x5f, 0x2f, 0xa9, 0x81, 0xd1, 0xfc, 0x01, 0x79, 0x01, 0x96, - 0x84, 0xec, 0x4b, 0x90, 0x19, 0xf2, 0xa6, 0xbb, 0x64, 0xca, 0xfe, 0x04, 0x4c, 0xb1, 0x9a, 0x07, - 0x94, 0xfa, 0xd8, 0x09, 0x79, 0x7a, 0x46, 0xd4, 0x60, 0xfb, 0x7f, 0xb5, 0x00, 0xad, 0xf8, 0x75, - 0x77, 0x7d, 0x47, 0x10, 0xe7, 0xdf, 0xff, 0x2e, 0x94, 0xf8, 0xb3, 0x3a, 0x19, 0x59, 0x77, 0xa1, - 0xe1, 0x84, 0xa1, 0x26, 0xcb, 0x7f, 0x52, 0xb4, 0x5b, 0x5a, 0xeb, 0x8c, 0x8e, 0xbb, 0xd1, 0x43, - 0x6f, 0x25, 0x02, 0x1d, 0x7e, 0x34, 0x15, 0xe8, 0xf0, 0xc9, 0x4c, 0x8b, 0x9a, 0x74, 0xef, 0x65, - 0x00, 0x44, 0xfb, 0x8b, 0x16, 0x4c, 0xac, 0x26, 0x22, 0xc5, 0x9e, 0x63, 0xe6, 0x05, 0x19, 0x3a, - 0xaa, 0x2a, 0x2b, 0xc5, 0x02, 0xfa, 0xc0, 0x65, 0xb8, 0xdf, 0xb6, 0x20, 0x0e, 0xb1, 0x75, 0x08, - 0x2c, 0xf7, 0x82, 0xc1, 0x72, 0x67, 0x3e, 0x5f, 0x54, 0x77, 0xf2, 0x38, 0x6e, 0x74, 0x55, 0xcd, - 0x49, 0x87, 0x97, 0x4b, 0x4c, 0x86, 0xef, 0xb3, 0x71, 0x73, 0xe2, 0xd4, 0x6c, 0x7c, 0xa3, 0x00, - 0x48, 0xe1, 0xf6, 0x1c, 0x1c, 0x33, 0x5d, 0xe3, 0xc1, 0x04, 0xc7, 0xdc, 0x06, 0xc4, 0x0c, 0x64, - 0x02, 0xc7, 0x0b, 0x39, 0x59, 0x57, 0x48, 0xad, 0x0f, 0x66, 0x7d, 0x33, 0x23, 0xbd, 0x65, 0xaf, - 0xa5, 0xa8, 0xe1, 0x8c, 0x16, 0x34, 0xc3, 0xa7, 0xfe, 0x5e, 0x0d, 0x9f, 0x06, 0xba, 0xb8, 0x7d, - 0x7f, 0xcd, 0x82, 0x31, 0x35, 0x4c, 0xef, 0x13, 0xe7, 0x11, 0xd5, 0x9f, 0x9c, 0x7b, 0xa5, 0xa2, - 0x75, 0x99, 0x31, 0x03, 0xdf, 0xc7, 0xdc, 0xf7, 0x9d, 0x86, 0x7b, 0x8f, 0xa8, 0x18, 0xce, 0x25, - 0xe1, 0x8e, 0x2f, 0x4a, 0xf7, 0x77, 0x4b, 0x63, 0xea, 0x1f, 0x8f, 0x1a, 0x1b, 0x57, 0xb1, 0x7f, - 0x99, 0x6e, 0x76, 0x73, 0x29, 0xa2, 0x97, 0xa0, 0xbf, 0xb5, 0xe9, 0x84, 0x24, 0xe1, 0x64, 0xd7, - 0x5f, 0xa1, 0x85, 0xfb, 0xbb, 0xa5, 0x71, 0x55, 0x81, 0x95, 0x60, 0x8e, 0xdd, 0x7b, 0xc8, 0xd1, - 0xf4, 0xe2, 0xec, 0x1a, 0x72, 0xf4, 0x5f, 0x2c, 0xe8, 0x5b, 0xa5, 0xb7, 0xd7, 0xc3, 0x3f, 0x02, - 0x5e, 0x37, 0x8e, 0x80, 0x53, 0x79, 0xd9, 0x8c, 0x72, 0x77, 0xff, 0x72, 0x62, 0xf7, 0x9f, 0xc9, - 0xa5, 0xd0, 0x79, 0xe3, 0x37, 0x61, 0x84, 0xe5, 0x48, 0x12, 0x0e, 0x85, 0x2f, 0x18, 0x1b, 0xbe, - 0x94, 0xd8, 0xf0, 0x13, 0x1a, 0xaa, 0xb6, 0xd3, 0x9f, 0x82, 0x41, 0xe1, 0xa1, 0x96, 0x8c, 0x82, - 0x20, 0x70, 0xb1, 0x84, 0xdb, 0xbf, 0x50, 0x04, 0x23, 0x27, 0x13, 0xfa, 0x23, 0x0b, 0x66, 0x03, - 0x6e, 0xb9, 0x5e, 0x5f, 0x6c, 0x07, 0xae, 0xb7, 0x51, 0xad, 0x6d, 0x92, 0x7a, 0xbb, 0xe1, 0x7a, - 0x1b, 0xe5, 0x0d, 0xcf, 0x57, 0xc5, 0x4b, 0x77, 0x49, 0xad, 0xcd, 0xb4, 0xca, 0x5d, 0x12, 0x40, - 0x29, 0x0f, 0x90, 0xe7, 0xf7, 0x76, 0x4b, 0xb3, 0xf8, 0x40, 0xb4, 0xf1, 0x01, 0xfb, 0x82, 0xfe, - 0xd2, 0x82, 0x0b, 0x3c, 0x37, 0x50, 0xef, 0xfd, 0xef, 0x20, 0xe1, 0xa8, 0x48, 0x52, 0x31, 0x91, - 0x35, 0x12, 0x34, 0xe7, 0x5f, 0x16, 0x03, 0x7a, 0xa1, 0x72, 0xb0, 0xb6, 0xf0, 0x41, 0x3b, 0x67, - 0xff, 0xb7, 0x45, 0x18, 0x13, 0xa1, 0x29, 0xc5, 0x1d, 0xf0, 0x92, 0xb1, 0x24, 0x1e, 0x4d, 0x2c, - 0x89, 0x29, 0x03, 0xf9, 0xc1, 0x1c, 0xff, 0x21, 0x4c, 0xd1, 0xc3, 0xf9, 0x0a, 0x71, 0x82, 0xe8, - 0x36, 0x71, 0xb8, 0x3d, 0x63, 0xf1, 0xc0, 0xa7, 0xbf, 0x12, 0xac, 0x5f, 0x4b, 0x12, 0xc3, 0x69, - 0xfa, 0xdf, 0x4b, 0x77, 0x8e, 0x07, 0x93, 0xa9, 0xe8, 0xa2, 0x6f, 0xc3, 0xb0, 0x72, 0xaf, 0x12, - 0x87, 0x4e, 0xe7, 0x20, 0xbd, 0x49, 0x0a, 0x5c, 0xe8, 0x19, 0xbb, 0xf6, 0xc5, 0xe4, 0xec, 0xdf, - 0x2e, 0x18, 0x0d, 0xf2, 0x49, 0x5c, 0x85, 0x21, 0x27, 0x64, 0x81, 0xc3, 0xeb, 0x9d, 0x24, 0xda, - 0xa9, 0x66, 0x98, 0x8b, 0xdb, 0x9c, 0xa8, 0x89, 0x15, 0x0d, 0x74, 0x85, 0x5b, 0x8d, 0x6e, 0x93, - 0x4e, 0xe2, 0xec, 0x14, 0x35, 0x90, 0x76, 0xa5, 0xdb, 0x04, 0x8b, 0xfa, 0xe8, 0x53, 0xdc, 0xac, - 0xf7, 0xaa, 0xe7, 0xdf, 0xf1, 0x2e, 0xfb, 0xbe, 0x0c, 0x43, 0xd4, 0x1b, 0xc1, 0x29, 0x69, 0xcc, - 0xab, 0xaa, 0x63, 0x93, 0x5a, 0x6f, 0xe1, 0xba, 0x3f, 0x07, 0x2c, 0x17, 0x8a, 0x19, 0xcd, 0x20, - 0x44, 0x04, 0x26, 0x44, 0xdc, 0x53, 0x59, 0x26, 0xc6, 0x2e, 0xf3, 0xf9, 0x6d, 0xd6, 0x8e, 0x35, - 0x40, 0x57, 0x4d, 0x12, 0x38, 0x49, 0xd3, 0xde, 0xe4, 0x87, 0xf0, 0x32, 0x71, 0xa2, 0x76, 0x40, - 0x42, 0xf4, 0x71, 0x98, 0x4e, 0xbf, 0x8c, 0x85, 0x22, 0xc5, 0x62, 0xdc, 0xf3, 0xa9, 0xbd, 0xdd, - 0xd2, 0x74, 0x35, 0x07, 0x07, 0xe7, 0xd6, 0xb6, 0x7f, 0xcd, 0x02, 0xe6, 0x43, 0x7e, 0x08, 0x9c, - 0xcf, 0xc7, 0x4c, 0xce, 0x67, 0x3a, 0x6f, 0x3a, 0x73, 0x98, 0x9e, 0x17, 0xf9, 0x1a, 0xae, 0x04, - 0xfe, 0xdd, 0x1d, 0x61, 0xf5, 0xd5, 0xfd, 0x19, 0x67, 0x7f, 0xd9, 0x02, 0x96, 0x38, 0x08, 0xf3, - 0x57, 0xbb, 0x54, 0x70, 0x74, 0x37, 0x68, 0xf8, 0x38, 0x0c, 0xad, 0x8b, 0xe1, 0xcf, 0x10, 0x3a, - 0x19, 0x1d, 0x36, 0x69, 0xcb, 0x49, 0x13, 0xbe, 0xa0, 0xe2, 0x1f, 0x56, 0xd4, 0xec, 0xff, 0xd2, - 0x82, 0x99, 0xfc, 0x6a, 0xe8, 0x06, 0x9c, 0x08, 0x48, 0xad, 0x1d, 0x84, 0x74, 0x4b, 0x88, 0x07, - 0x90, 0x70, 0xa7, 0xe2, 0x53, 0xfd, 0xc8, 0xde, 0x6e, 0xe9, 0x04, 0xce, 0x46, 0xc1, 0x79, 0x75, - 0xd1, 0x2b, 0x30, 0xde, 0x0e, 0x39, 0xe7, 0xc7, 0x98, 0xae, 0x50, 0x44, 0xa7, 0x66, 0x1e, 0x47, - 0x37, 0x0c, 0x08, 0x4e, 0x60, 0xda, 0x3f, 0xc0, 0x97, 0xa3, 0x0a, 0x50, 0xdd, 0x84, 0x29, 0x4f, - 0xfb, 0x4f, 0x6f, 0x40, 0xf9, 0xd4, 0x7f, 0xbc, 0xdb, 0xad, 0xcf, 0xae, 0x4b, 0xcd, 0xcb, 0x3d, - 0x41, 0x06, 0xa7, 0x29, 0xdb, 0xbf, 0x68, 0xc1, 0x09, 0x1d, 0x51, 0x73, 0xa4, 0xeb, 0xa6, 0x05, - 0x5c, 0x84, 0x21, 0xbf, 0x45, 0x02, 0x27, 0xf2, 0x03, 0x71, 0xcd, 0x9d, 0x97, 0x2b, 0xf4, 0xba, - 0x28, 0xdf, 0x17, 0x09, 0x73, 0x24, 0x75, 0x59, 0x8e, 0x55, 0x4d, 0x64, 0xc3, 0x00, 0x13, 0x20, - 0x86, 0xc2, 0x65, 0x92, 0x1d, 0x5a, 0xcc, 0xb2, 0x25, 0xc4, 0x02, 0x62, 0xff, 0xa3, 0xc5, 0xd7, - 0xa7, 0xde, 0x75, 0xf4, 0x2e, 0x4c, 0x36, 0x9d, 0xa8, 0xb6, 0xb9, 0x74, 0xb7, 0x15, 0x70, 0xe5, - 0xae, 0x1c, 0xa7, 0x67, 0xba, 0x8d, 0x93, 0xf6, 0x91, 0xb1, 0x69, 0xf5, 0x4a, 0x82, 0x18, 0x4e, - 0x91, 0x47, 0xb7, 0x61, 0x84, 0x95, 0x31, 0x6f, 0xe0, 0xb0, 0x13, 0x2f, 0x93, 0xd7, 0x9a, 0x32, - 0x0e, 0x5a, 0x89, 0xe9, 0x60, 0x9d, 0xa8, 0xfd, 0xd5, 0x22, 0x3f, 0x34, 0xd8, 0xdb, 0xe3, 0x29, - 0x18, 0x6c, 0xf9, 0xf5, 0x85, 0xf2, 0x22, 0x16, 0xb3, 0xa0, 0xee, 0xbd, 0x0a, 0x2f, 0xc6, 0x12, - 0x8e, 0xce, 0xc3, 0x90, 0xf8, 0x29, 0x95, 0xf1, 0x6c, 0x8f, 0x08, 0xbc, 0x10, 0x2b, 0x28, 0x7a, - 0x1e, 0xa0, 0x15, 0xf8, 0xdb, 0x6e, 0x9d, 0x45, 0x7f, 0x2a, 0x9a, 0x76, 0x7d, 0x15, 0x05, 0xc1, - 0x1a, 0x16, 0x7a, 0x15, 0xc6, 0xda, 0x5e, 0xc8, 0xf9, 0x27, 0x2d, 0xc6, 0xbe, 0xb2, 0x38, 0xbb, - 0xa1, 0x03, 0xb1, 0x89, 0x8b, 0xe6, 0x60, 0x20, 0x72, 0x98, 0x9d, 0x5a, 0x7f, 0xbe, 0xf9, 0xfd, - 0x1a, 0xc5, 0xd0, 0xb3, 0xd9, 0xd1, 0x0a, 0x58, 0x54, 0x44, 0x6f, 0x4b, 0xc7, 0x7c, 0x7e, 0x13, - 0x09, 0xbf, 0x97, 0xde, 0x6e, 0x2d, 0xcd, 0x2d, 0x5f, 0xf8, 0xd3, 0x18, 0xb4, 0xd0, 0x2b, 0x00, - 0xe4, 0x6e, 0x44, 0x02, 0xcf, 0x69, 0x28, 0xeb, 0x52, 0xc5, 0xc8, 0x2c, 0xfa, 0xab, 0x7e, 0x74, - 0x23, 0x24, 0x4b, 0x0a, 0x03, 0x6b, 0xd8, 0xf6, 0x8f, 0x8e, 0x00, 0xc4, 0x0f, 0x0d, 0x74, 0x0f, - 0x86, 0x6a, 0x4e, 0xcb, 0xa9, 0xf1, 0x54, 0xad, 0xc5, 0x3c, 0x7f, 0xe9, 0xb8, 0xc6, 0xec, 0x82, - 0x40, 0xe7, 0xca, 0x1b, 0x19, 0xa6, 0x7c, 0x48, 0x16, 0x77, 0x55, 0xd8, 0xa8, 0xf6, 0xd0, 0x17, - 0x2c, 0x18, 0x11, 0xd1, 0x95, 0xd8, 0x0c, 0x15, 0xf2, 0xf5, 0x6d, 0x5a, 0xfb, 0x73, 0x71, 0x0d, - 0xde, 0x85, 0x17, 0xe4, 0x0a, 0xd5, 0x20, 0x5d, 0x7b, 0xa1, 0x37, 0x8c, 0x3e, 0x2c, 0xdf, 0xb6, - 0x45, 0x63, 0x28, 0xd5, 0xdb, 0x76, 0x98, 0x5d, 0x35, 0xfa, 0xb3, 0xf6, 0x86, 0xf1, 0xac, 0xed, - 0xcb, 0xf7, 0x3c, 0x36, 0xf8, 0xed, 0x6e, 0x2f, 0x5a, 0x54, 0xd1, 0xa3, 0x90, 0xf4, 0xe7, 0xbb, - 0xcb, 0x6a, 0x0f, 0xbb, 0x2e, 0x11, 0x48, 0x3e, 0x0b, 0x13, 0x75, 0x93, 0x6b, 0x11, 0x2b, 0xf1, - 0xc9, 0x3c, 0xba, 0x09, 0x26, 0x27, 0xe6, 0x53, 0x12, 0x00, 0x9c, 0x24, 0x8c, 0x2a, 0x3c, 0x28, - 0x4d, 0xd9, 0x5b, 0xf7, 0x85, 0xef, 0x95, 0x9d, 0x3b, 0x97, 0x3b, 0x61, 0x44, 0x9a, 0x14, 0x33, - 0x66, 0x12, 0x56, 0x45, 0x5d, 0xac, 0xa8, 0xa0, 0x37, 0x61, 0x80, 0xf9, 0x4b, 0x86, 0xd3, 0x43, - 0xf9, 0x6a, 0x0d, 0x33, 0xfa, 0x6a, 0xbc, 0x21, 0xd9, 0xdf, 0x10, 0x0b, 0x0a, 0xe8, 0x8a, 0xf4, - 0x46, 0x0e, 0xcb, 0xde, 0x8d, 0x90, 0x30, 0x6f, 0xe4, 0xe1, 0xf9, 0xc7, 0x63, 0x47, 0x63, 0x5e, - 0x9e, 0x99, 0xf3, 0xd6, 0xa8, 0x49, 0xd9, 0x3e, 0xf1, 0x5f, 0xa6, 0xd2, 0x15, 0xb1, 0xe2, 0x32, - 0xbb, 0x67, 0xa6, 0xdb, 0x8d, 0x87, 0xf3, 0xa6, 0x49, 0x02, 0x27, 0x69, 0x52, 0x16, 0x9a, 0xef, - 0x7a, 0xe1, 0xbd, 0xd5, 0xed, 0xec, 0xe0, 0x92, 0x03, 0x76, 0x1b, 0xf1, 0x12, 0x2c, 0xea, 0x23, - 0x17, 0x26, 0x02, 0x83, 0xbd, 0x90, 0x21, 0xde, 0xce, 0xf5, 0xc6, 0xc4, 0x68, 0xc9, 0x03, 0x4c, - 0x32, 0x38, 0x49, 0x17, 0xbd, 0xa9, 0x31, 0x4a, 0x63, 0x9d, 0x5f, 0xfe, 0xdd, 0x58, 0xa3, 0x99, - 0x2d, 0x18, 0x33, 0x0e, 0x9b, 0x87, 0xaa, 0x82, 0xf4, 0x60, 0x32, 0x79, 0xb2, 0x3c, 0x54, 0xcd, - 0xe3, 0x2b, 0x30, 0xce, 0x36, 0xc2, 0x1d, 0xa7, 0x25, 0x8e, 0xe2, 0xf3, 0xc6, 0x51, 0x6c, 0x9d, - 0x2f, 0xf2, 0x81, 0x91, 0x43, 0x10, 0x1f, 0x9c, 0xf6, 0xaf, 0xf4, 0x8b, 0xca, 0x6a, 0x17, 0xa1, - 0x0b, 0x30, 0x2c, 0x3a, 0xa0, 0x32, 0x70, 0xa9, 0x83, 0x61, 0x45, 0x02, 0x70, 0x8c, 0xc3, 0x12, - 0xaf, 0xb1, 0xea, 0x9a, 0x87, 0x42, 0x9c, 0x78, 0x4d, 0x41, 0xb0, 0x86, 0x45, 0x1f, 0xbf, 0xb7, - 0x7d, 0x3f, 0x52, 0x77, 0xb0, 0xda, 0x6a, 0xf3, 0xac, 0x14, 0x0b, 0x28, 0xbd, 0x7b, 0xb7, 0x48, - 0xe0, 0x91, 0x86, 0x99, 0x82, 0x42, 0xdd, 0xbd, 0x57, 0x75, 0x20, 0x36, 0x71, 0x29, 0x07, 0xe1, - 0x87, 0x6c, 0xef, 0x8a, 0x27, 0x76, 0xec, 0xf1, 0x51, 0xe5, 0xb1, 0x2b, 0x24, 0x1c, 0x7d, 0x02, - 0x4e, 0xa8, 0x70, 0x8f, 0x62, 0x65, 0xca, 0x16, 0x07, 0x0c, 0x89, 0xd8, 0x89, 0x85, 0x6c, 0x34, - 0x9c, 0x57, 0x1f, 0xbd, 0x0e, 0xe3, 0xe2, 0x19, 0x26, 0x29, 0x0e, 0x9a, 0xe6, 0x8b, 0x57, 0x0d, - 0x28, 0x4e, 0x60, 0xcb, 0x24, 0x1a, 0xec, 0x7d, 0x22, 0x29, 0x0c, 0xa5, 0x93, 0x68, 0xe8, 0x70, - 0x9c, 0xaa, 0x81, 0xe6, 0x60, 0x82, 0xb3, 0x9d, 0xae, 0xb7, 0xc1, 0xe7, 0x44, 0xf8, 0x93, 0xaa, - 0x0d, 0x79, 0xdd, 0x04, 0xe3, 0x24, 0x3e, 0xba, 0x04, 0xa3, 0x4e, 0x50, 0xdb, 0x74, 0x23, 0x52, - 0xa3, 0xbb, 0x8a, 0x59, 0x10, 0x6a, 0xf6, 0x9f, 0x73, 0x1a, 0x0c, 0x1b, 0x98, 0xe8, 0x0d, 0xe8, - 0x0b, 0xef, 0x38, 0x2d, 0x71, 0xfa, 0xe4, 0x1f, 0xe5, 0x6a, 0x05, 0x73, 0xd3, 0x2f, 0xfa, 0x1f, - 0xb3, 0x9a, 0xf6, 0x3d, 0x38, 0x92, 0x11, 0x16, 0x87, 0x2e, 0x3d, 0xa7, 0xe5, 0xca, 0x51, 0x49, - 0xb8, 0x69, 0xcc, 0x55, 0xca, 0x72, 0x3c, 0x34, 0x2c, 0xba, 0xbe, 0x59, 0xf8, 0x1c, 0x2d, 0xdd, - 0xb8, 0x5a, 0xdf, 0xcb, 0x12, 0x80, 0x63, 0x1c, 0xfb, 0x5f, 0x0b, 0x30, 0x91, 0xa1, 0x1e, 0x64, - 0x29, 0xaf, 0x13, 0xef, 0xbc, 0x38, 0xc3, 0xb5, 0x99, 0xd5, 0xa5, 0x70, 0x80, 0xac, 0x2e, 0xc5, - 0x6e, 0x59, 0x5d, 0xfa, 0xde, 0x4b, 0x56, 0x17, 0x73, 0xc4, 0xfa, 0x7b, 0x1a, 0xb1, 0x8c, 0x4c, - 0x30, 0x03, 0x07, 0xcc, 0x04, 0x63, 0x0c, 0xfa, 0x60, 0x0f, 0x83, 0xfe, 0xd3, 0x05, 0x98, 0x4c, - 0x6a, 0x16, 0x0f, 0x41, 0x3a, 0xff, 0xa6, 0x21, 0x9d, 0x3f, 0xdf, 0x4b, 0x04, 0x81, 0x5c, 0x49, - 0x3d, 0x4e, 0x48, 0xea, 0x9f, 0xee, 0x89, 0x5a, 0x67, 0xa9, 0xfd, 0x2f, 0x15, 0xe0, 0x58, 0xa6, - 0xc2, 0xf5, 0x10, 0xc6, 0xe6, 0xba, 0x31, 0x36, 0xcf, 0xf5, 0x1c, 0x5d, 0x21, 0x77, 0x80, 0x6e, - 0x25, 0x06, 0xe8, 0x42, 0xef, 0x24, 0x3b, 0x8f, 0xd2, 0x37, 0x8b, 0x70, 0x26, 0xb3, 0x5e, 0x2c, - 0xdc, 0x5e, 0x36, 0x84, 0xdb, 0xcf, 0x27, 0x84, 0xdb, 0x76, 0xe7, 0xda, 0x0f, 0x46, 0xda, 0x2d, - 0xa2, 0x0c, 0xb0, 0x58, 0x29, 0xf7, 0x29, 0xe9, 0x36, 0xa2, 0x0c, 0x28, 0x42, 0xd8, 0xa4, 0xfb, - 0xbd, 0x24, 0xe1, 0xfe, 0x1f, 0x2d, 0x38, 0x99, 0x39, 0x37, 0x87, 0x20, 0x67, 0x5c, 0x35, 0xe5, - 0x8c, 0x4f, 0xf5, 0xbc, 0x5a, 0x73, 0x04, 0x8f, 0x5f, 0x1c, 0xc8, 0xf9, 0x16, 0x26, 0xfe, 0xb8, - 0x0e, 0x23, 0x4e, 0xad, 0x46, 0xc2, 0x70, 0xc5, 0xaf, 0xab, 0x04, 0x10, 0xcf, 0xb1, 0xc7, 0x69, - 0x5c, 0xbc, 0xbf, 0x5b, 0x9a, 0x49, 0x92, 0x88, 0xc1, 0x58, 0xa7, 0x80, 0x3e, 0x05, 0x43, 0xa1, - 0xcc, 0xdd, 0xd9, 0x77, 0xff, 0xb9, 0x3b, 0x19, 0x27, 0xa9, 0xc4, 0x3b, 0x8a, 0x24, 0xfa, 0x7e, - 0x3d, 0x6a, 0x55, 0x07, 0xc1, 0x26, 0xef, 0xe4, 0x7d, 0xc4, 0xae, 0x7a, 0x1e, 0x60, 0x5b, 0xbd, - 0xa3, 0x92, 0xa2, 0x1b, 0xed, 0x85, 0xa5, 0x61, 0xa1, 0x37, 0x60, 0x32, 0xe4, 0x01, 0x5b, 0x63, - 0x13, 0x19, 0xbe, 0x16, 0x59, 0xcc, 0xbb, 0x6a, 0x02, 0x86, 0x53, 0xd8, 0x68, 0x59, 0xb6, 0xca, - 0x8c, 0xa1, 0xf8, 0xf2, 0x3c, 0x17, 0xb7, 0x28, 0x0c, 0xa2, 0x8e, 0x26, 0x27, 0x81, 0x0d, 0xbf, - 0x56, 0x13, 0x7d, 0x0a, 0x80, 0x2e, 0x22, 0x21, 0xc2, 0x19, 0xcc, 0x3f, 0x42, 0xe9, 0xd9, 0x52, - 0xcf, 0xf4, 0xc0, 0x60, 0xe1, 0x01, 0x16, 0x15, 0x11, 0xac, 0x11, 0x44, 0x0e, 0x8c, 0xc5, 0xff, - 0xe2, 0xac, 0xf4, 0xe7, 0x73, 0x5b, 0x48, 0x12, 0x67, 0xea, 0x8d, 0x45, 0x9d, 0x04, 0x36, 0x29, - 0xa2, 0x4f, 0xc2, 0xc9, 0xed, 0x5c, 0xbb, 0x23, 0xce, 0x4b, 0xb2, 0x34, 0xf3, 0xf9, 0xd6, 0x46, - 0xf9, 0xf5, 0xed, 0xff, 0x09, 0xe0, 0x91, 0x0e, 0x27, 0x3d, 0x9a, 0x33, 0x6d, 0x06, 0x9e, 0x49, - 0xca, 0x55, 0x66, 0x32, 0x2b, 0x1b, 0x82, 0x96, 0xc4, 0x86, 0x2a, 0xbc, 0xe7, 0x0d, 0xf5, 0x13, - 0x96, 0xf6, 0xcc, 0xe2, 0x16, 0xe5, 0x1f, 0x3b, 0xe0, 0x0d, 0xf6, 0x00, 0x45, 0x60, 0xeb, 0x19, - 0x72, 0xa4, 0xe7, 0x7b, 0xee, 0x4e, 0xef, 0x82, 0xa5, 0xdf, 0xc9, 0x0e, 0x71, 0xcf, 0x45, 0x4c, - 0x97, 0x0f, 0xfa, 0xfd, 0x87, 0x15, 0xee, 0xfe, 0x1b, 0x16, 0x9c, 0x4c, 0x15, 0xf3, 0x3e, 0x90, - 0x50, 0x44, 0xe9, 0x5b, 0x7d, 0xcf, 0x9d, 0x97, 0x04, 0xf9, 0x37, 0x5c, 0x11, 0xdf, 0x70, 0x32, - 0x17, 0x2f, 0xd9, 0xf5, 0x2f, 0xfd, 0x7d, 0xe9, 0x08, 0x6b, 0xc0, 0x44, 0xc4, 0xf9, 0x5d, 0x47, - 0x2d, 0x38, 0x5b, 0x6b, 0x07, 0x41, 0xbc, 0x58, 0x33, 0x36, 0x27, 0x7f, 0x2d, 0x3e, 0xbe, 0xb7, - 0x5b, 0x3a, 0xbb, 0xd0, 0x05, 0x17, 0x77, 0xa5, 0x86, 0x3c, 0x40, 0xcd, 0x94, 0x75, 0x1f, 0x3b, - 0x00, 0x72, 0xa4, 0x40, 0x69, 0x5b, 0x40, 0x6e, 0xa7, 0x9b, 0x61, 0x23, 0x98, 0x41, 0xf9, 0x70, - 0x65, 0x37, 0xdf, 0x99, 0x78, 0xfa, 0x33, 0xd7, 0xe0, 0x4c, 0xe7, 0xc5, 0x74, 0xa0, 0x10, 0x14, - 0x7f, 0x63, 0xc1, 0xe9, 0x8e, 0x71, 0xce, 0xbe, 0x0b, 0x1f, 0x0b, 0xf6, 0xe7, 0x2d, 0x78, 0x34, - 0xb3, 0x46, 0xd2, 0x79, 0xb0, 0x46, 0x0b, 0x35, 0x63, 0xd8, 0x38, 0xe2, 0x8f, 0x04, 0xe0, 0x18, - 0xc7, 0xb0, 0x17, 0x2d, 0x74, 0xb5, 0x17, 0xfd, 0x53, 0x0b, 0x52, 0x57, 0xfd, 0x21, 0x70, 0x9e, - 0x65, 0x93, 0xf3, 0x7c, 0xbc, 0x97, 0xd1, 0xcc, 0x61, 0x3a, 0xff, 0x79, 0x02, 0x8e, 0xe7, 0x78, - 0x90, 0x6f, 0xc3, 0xd4, 0x46, 0x8d, 0x98, 0x21, 0x43, 0x3a, 0x85, 0xd2, 0xeb, 0x18, 0x5f, 0x64, - 0xfe, 0xd8, 0xde, 0x6e, 0x69, 0x2a, 0x85, 0x82, 0xd3, 0x4d, 0xa0, 0xcf, 0x5b, 0x70, 0xd4, 0xb9, - 0x13, 0x2e, 0xd1, 0x17, 0x84, 0x5b, 0x9b, 0x6f, 0xf8, 0xb5, 0x2d, 0xca, 0x98, 0xc9, 0x6d, 0xf5, - 0x62, 0xa6, 0x28, 0xfc, 0x56, 0x35, 0x85, 0x6f, 0x34, 0x3f, 0xbd, 0xb7, 0x5b, 0x3a, 0x9a, 0x85, - 0x85, 0x33, 0xdb, 0x42, 0x58, 0xe4, 0x38, 0x73, 0xa2, 0xcd, 0x4e, 0x41, 0x6d, 0xb2, 0x5c, 0xfd, - 0x39, 0x4b, 0x2c, 0x21, 0x58, 0xd1, 0x41, 0x9f, 0x81, 0xe1, 0x0d, 0x19, 0xbf, 0x22, 0x83, 0xe5, - 0x8e, 0x07, 0xb2, 0x73, 0x54, 0x0f, 0x6e, 0x80, 0xa3, 0x90, 0x70, 0x4c, 0x14, 0xbd, 0x0e, 0x45, - 0x6f, 0x3d, 0x14, 0xa1, 0xf5, 0xb2, 0xed, 0x80, 0x4d, 0x4b, 0x6b, 0x1e, 0x3a, 0x6a, 0x75, 0xb9, - 0x8a, 0x69, 0x45, 0x74, 0x05, 0x8a, 0xc1, 0xed, 0xba, 0xd0, 0xe3, 0x64, 0x6e, 0x52, 0x3c, 0xbf, - 0x98, 0xd3, 0x2b, 0x46, 0x09, 0xcf, 0x2f, 0x62, 0x4a, 0x02, 0x55, 0xa0, 0x9f, 0xb9, 0x5d, 0x0b, - 0xd6, 0x36, 0xf3, 0x29, 0xdf, 0x21, 0x7c, 0x01, 0xf7, 0x87, 0x64, 0x08, 0x98, 0x13, 0x42, 0x6b, - 0x30, 0x50, 0x73, 0xbd, 0x3a, 0x09, 0x04, 0x2f, 0xfb, 0xe1, 0x4c, 0x8d, 0x0d, 0xc3, 0xc8, 0xa1, - 0xc9, 0x15, 0x18, 0x0c, 0x03, 0x0b, 0x5a, 0x8c, 0x2a, 0x69, 0x6d, 0xae, 0xcb, 0x1b, 0x2b, 0x9b, - 0x2a, 0x69, 0x6d, 0x2e, 0x57, 0x3b, 0x52, 0x65, 0x18, 0x58, 0xd0, 0x42, 0xaf, 0x40, 0x61, 0xbd, - 0x26, 0x5c, 0xaa, 0x33, 0xc5, 0x9b, 0x66, 0xf4, 0xaf, 0xf9, 0x81, 0xbd, 0xdd, 0x52, 0x61, 0x79, - 0x01, 0x17, 0xd6, 0x6b, 0x68, 0x15, 0x06, 0xd7, 0x79, 0xbc, 0x20, 0x21, 0x1f, 0x7d, 0x32, 0x3b, - 0x94, 0x51, 0x2a, 0xa4, 0x10, 0xf7, 0x6d, 0x15, 0x00, 0x2c, 0x89, 0xb0, 0x94, 0x5b, 0x2a, 0xee, - 0x91, 0x08, 0xbb, 0x3a, 0x7b, 0xb0, 0x58, 0x55, 0xfc, 0xa9, 0x11, 0x47, 0x4f, 0xc2, 0x1a, 0x45, - 0xba, 0xaa, 0x9d, 0x7b, 0xed, 0x80, 0xe5, 0xe4, 0x10, 0x8a, 0x99, 0xcc, 0x55, 0x3d, 0x27, 0x91, - 0x3a, 0xad, 0x6a, 0x85, 0x84, 0x63, 0xa2, 0x68, 0x0b, 0xc6, 0xb6, 0xc3, 0xd6, 0x26, 0x91, 0x5b, - 0x9a, 0x85, 0xeb, 0xcb, 0xe1, 0x66, 0x6f, 0x0a, 0x44, 0x37, 0x88, 0xda, 0x4e, 0x23, 0x75, 0x0a, - 0xb1, 0x67, 0xcd, 0x4d, 0x9d, 0x18, 0x36, 0x69, 0xd3, 0xe1, 0x7f, 0xb7, 0xed, 0xdf, 0xde, 0x89, - 0x88, 0x88, 0x96, 0x9a, 0x39, 0xfc, 0x6f, 0x71, 0x94, 0xf4, 0xf0, 0x0b, 0x00, 0x96, 0x44, 0xd0, - 0x4d, 0x31, 0x3c, 0xec, 0xf4, 0x9c, 0xcc, 0x0f, 0xc5, 0x3e, 0x27, 0x91, 0x72, 0x06, 0x85, 0x9d, - 0x96, 0x31, 0x29, 0x76, 0x4a, 0xb6, 0x36, 0xfd, 0xc8, 0xf7, 0x12, 0x27, 0xf4, 0x54, 0xfe, 0x29, - 0x59, 0xc9, 0xc0, 0x4f, 0x9f, 0x92, 0x59, 0x58, 0x38, 0xb3, 0x2d, 0x54, 0x87, 0xf1, 0x96, 0x1f, - 0x44, 0x77, 0xfc, 0x40, 0xae, 0x2f, 0xd4, 0x41, 0x50, 0x6a, 0x60, 0x8a, 0x16, 0x99, 0x59, 0x90, - 0x09, 0xc1, 0x09, 0x9a, 0xe8, 0xe3, 0x30, 0x18, 0xd6, 0x9c, 0x06, 0x29, 0x5f, 0x9f, 0x3e, 0x92, - 0x7f, 0xfd, 0x54, 0x39, 0x4a, 0xce, 0xea, 0xe2, 0xe1, 0x9e, 0x38, 0x0a, 0x96, 0xe4, 0xd0, 0x32, - 0xf4, 0xb3, 0x54, 0xd6, 0x2c, 0xb4, 0x6f, 0x4e, 0x44, 0xf9, 0x94, 0x53, 0x0f, 0x3f, 0x9b, 0x58, - 0x31, 0xe6, 0xd5, 0xe9, 0x1e, 0x10, 0x92, 0x02, 0x3f, 0x9c, 0x3e, 0x96, 0xbf, 0x07, 0x84, 0x80, - 0xe1, 0x7a, 0xb5, 0xd3, 0x1e, 0x50, 0x48, 0x38, 0x26, 0x4a, 0x4f, 0x66, 0x7a, 0x9a, 0x1e, 0xef, - 0x60, 0xb0, 0x99, 0x7b, 0x96, 0xb2, 0x93, 0x99, 0x9e, 0xa4, 0x94, 0x84, 0xfd, 0xc7, 0x43, 0x69, - 0x9e, 0x85, 0x49, 0x98, 0xfe, 0x63, 0x2b, 0x65, 0xb1, 0xf1, 0x91, 0x5e, 0x05, 0xde, 0x0f, 0xf0, - 0xe1, 0xfa, 0x79, 0x0b, 0x8e, 0xb7, 0x32, 0x3f, 0x44, 0x30, 0x00, 0xbd, 0xc9, 0xcd, 0xf9, 0xa7, - 0xab, 0x30, 0xd0, 0xd9, 0x70, 0x9c, 0xd3, 0x52, 0x52, 0x38, 0x50, 0x7c, 0xcf, 0xc2, 0x81, 0x15, - 0x18, 0xaa, 0xf1, 0x97, 0x9c, 0x4c, 0x5f, 0xd0, 0x53, 0x10, 0x53, 0xae, 0xa7, 0x15, 0x15, 0xb1, - 0x22, 0x81, 0x7e, 0xd2, 0x82, 0xd3, 0xc9, 0xae, 0x63, 0xc2, 0xc0, 0xc2, 0x5c, 0x93, 0x8b, 0xb5, - 0x96, 0xc5, 0xf7, 0xa7, 0xf8, 0x7f, 0x03, 0x79, 0xbf, 0x1b, 0x02, 0xee, 0xdc, 0x18, 0x5a, 0xcc, - 0x90, 0xab, 0x0d, 0x98, 0x3a, 0xc9, 0x1e, 0x64, 0x6b, 0x2f, 0xc2, 0x68, 0xd3, 0x6f, 0x7b, 0x91, - 0xb0, 0xba, 0x14, 0xa6, 0x5b, 0xcc, 0x64, 0x69, 0x45, 0x2b, 0xc7, 0x06, 0x56, 0x42, 0x22, 0x37, - 0x74, 0xdf, 0x12, 0xb9, 0x77, 0x60, 0xd4, 0xd3, 0x1c, 0x12, 0x3a, 0xbd, 0x60, 0x85, 0x74, 0x51, - 0xc3, 0xe6, 0xbd, 0xd4, 0x4b, 0xb0, 0x41, 0xad, 0xb3, 0xb4, 0x0c, 0xde, 0x9b, 0xb4, 0xec, 0x50, - 0x9f, 0xc4, 0xf6, 0x6f, 0x16, 0x32, 0x5e, 0x0c, 0x5c, 0x2a, 0xf7, 0x9a, 0x29, 0x95, 0x3b, 0x97, - 0x94, 0xca, 0xa5, 0x54, 0x55, 0x86, 0x40, 0xae, 0xf7, 0x1c, 0x9a, 0x3d, 0x07, 0xa6, 0xfe, 0x61, - 0x0b, 0x4e, 0x30, 0xdd, 0x07, 0x6d, 0xe0, 0x3d, 0xeb, 0x3b, 0x98, 0x41, 0xec, 0xb5, 0x6c, 0x72, - 0x38, 0xaf, 0x1d, 0xbb, 0x01, 0x67, 0xbb, 0xdd, 0xbb, 0xcc, 0xbe, 0xb8, 0xae, 0xcc, 0x2b, 0x62, - 0xfb, 0xe2, 0x7a, 0x79, 0x11, 0x33, 0x48, 0xaf, 0x61, 0x17, 0xed, 0xff, 0xdb, 0x82, 0x62, 0xc5, - 0xaf, 0x1f, 0xc2, 0x8b, 0xfe, 0x63, 0xc6, 0x8b, 0xfe, 0x91, 0xec, 0x1b, 0xbf, 0x9e, 0xab, 0xec, - 0x5b, 0x4a, 0x28, 0xfb, 0x4e, 0xe7, 0x11, 0xe8, 0xac, 0xda, 0xfb, 0xe5, 0x22, 0x8c, 0x54, 0xfc, - 0xba, 0xda, 0x67, 0xff, 0xfd, 0xfd, 0xb8, 0x11, 0xe5, 0x66, 0xcd, 0xd2, 0x28, 0x33, 0x7b, 0x62, - 0x19, 0xf5, 0xe2, 0xbb, 0xcc, 0x9b, 0xe8, 0x16, 0x71, 0x37, 0x36, 0x23, 0x52, 0x4f, 0x7e, 0xce, - 0xe1, 0x79, 0x13, 0x7d, 0xab, 0x08, 0x13, 0x89, 0xd6, 0x51, 0x03, 0xc6, 0x1a, 0xba, 0x2a, 0x49, - 0xac, 0xd3, 0xfb, 0xd2, 0x42, 0x09, 0x6f, 0x0c, 0xad, 0x08, 0x9b, 0xc4, 0xd1, 0x2c, 0x80, 0xa7, - 0xdb, 0xa4, 0xab, 0x00, 0xcb, 0x9a, 0x3d, 0xba, 0x86, 0x81, 0x5e, 0x82, 0x91, 0xc8, 0x6f, 0xf9, - 0x0d, 0x7f, 0x63, 0xe7, 0x2a, 0x91, 0x11, 0x39, 0x95, 0xc9, 0xf2, 0x5a, 0x0c, 0xc2, 0x3a, 0x1e, - 0xba, 0x0b, 0x53, 0x8a, 0x48, 0xf5, 0x01, 0xa8, 0xd7, 0x98, 0xd8, 0x64, 0x35, 0x49, 0x11, 0xa7, - 0x1b, 0x41, 0xaf, 0xc0, 0x38, 0xb3, 0x9d, 0x66, 0xf5, 0xaf, 0x92, 0x1d, 0x19, 0xa9, 0x99, 0x71, - 0xd8, 0x2b, 0x06, 0x04, 0x27, 0x30, 0xd1, 0x02, 0x4c, 0x35, 0xdd, 0x30, 0x51, 0x7d, 0x80, 0x55, - 0x67, 0x1d, 0x58, 0x49, 0x02, 0x71, 0x1a, 0xdf, 0xfe, 0x75, 0x31, 0xc7, 0x5e, 0xe4, 0x7e, 0xb0, - 0x1d, 0xdf, 0xdf, 0xdb, 0xf1, 0x9b, 0x16, 0x4c, 0xd2, 0xd6, 0x99, 0x41, 0xa8, 0x64, 0xa4, 0x54, - 0x2e, 0x0f, 0xab, 0x43, 0x2e, 0x8f, 0x73, 0xf4, 0xd8, 0xae, 0xfb, 0xed, 0x48, 0x48, 0x47, 0xb5, - 0x73, 0x99, 0x96, 0x62, 0x01, 0x15, 0x78, 0x24, 0x08, 0x84, 0xd7, 0xbd, 0x8e, 0x47, 0x82, 0x00, - 0x0b, 0xa8, 0x4c, 0xf5, 0xd1, 0x97, 0x9d, 0xea, 0x83, 0x47, 0x6c, 0x17, 0x76, 0x74, 0x82, 0xa5, - 0xd5, 0x22, 0xb6, 0x4b, 0x03, 0xbb, 0x18, 0xc7, 0xfe, 0x76, 0x11, 0x46, 0x2b, 0x7e, 0x3d, 0x36, - 0xec, 0x78, 0xd1, 0x30, 0xec, 0x38, 0x9b, 0x30, 0xec, 0x98, 0xd4, 0x71, 0x35, 0x33, 0x8e, 0x37, - 0x01, 0xf9, 0x22, 0x90, 0xfc, 0x65, 0xe2, 0x31, 0xbb, 0x37, 0x61, 0xa8, 0x57, 0x8c, 0xcd, 0x1e, - 0xae, 0xa7, 0x30, 0x70, 0x46, 0xad, 0x0f, 0x4c, 0x42, 0x0e, 0xd7, 0x24, 0xe4, 0x4f, 0x2c, 0xb6, - 0x02, 0x16, 0x57, 0xab, 0xdc, 0x56, 0x19, 0x5d, 0x84, 0x11, 0x76, 0x5a, 0xb2, 0x90, 0x11, 0xd2, - 0x72, 0x82, 0xa5, 0xf1, 0x5c, 0x8d, 0x8b, 0xb1, 0x8e, 0x83, 0xce, 0xc3, 0x50, 0x48, 0x9c, 0xa0, - 0xb6, 0xa9, 0xae, 0x0a, 0x61, 0xe6, 0xc0, 0xcb, 0xb0, 0x82, 0xa2, 0xb7, 0xe2, 0xc0, 0xe3, 0xc5, - 0x7c, 0xc3, 0x67, 0xbd, 0x3f, 0x7c, 0xbb, 0xe5, 0x47, 0x1b, 0xb7, 0x6f, 0x01, 0x4a, 0xe3, 0xf7, - 0xe0, 0x49, 0x56, 0x32, 0x43, 0xe3, 0x0e, 0xa7, 0xc2, 0xe2, 0xfe, 0x9b, 0x05, 0xe3, 0x15, 0xbf, - 0x4e, 0x8f, 0x81, 0xef, 0xa5, 0x3d, 0xaf, 0x67, 0x5d, 0x18, 0xe8, 0x90, 0x75, 0xe1, 0x31, 0xe8, - 0xaf, 0xf8, 0xf5, 0x2e, 0xe1, 0x7b, 0x7f, 0xc5, 0x82, 0xc1, 0x8a, 0x5f, 0x3f, 0x04, 0x25, 0xce, - 0x6b, 0xa6, 0x12, 0xe7, 0x44, 0xce, 0xba, 0xc9, 0xd1, 0xdb, 0xfc, 0x79, 0x1f, 0x8c, 0xd1, 0x7e, - 0xfa, 0x1b, 0x72, 0x2a, 0x8d, 0x61, 0xb3, 0x7a, 0x18, 0x36, 0xfa, 0xa4, 0xf0, 0x1b, 0x0d, 0xff, - 0x4e, 0x72, 0x5a, 0x97, 0x59, 0x29, 0x16, 0x50, 0xf4, 0x2c, 0x0c, 0xb5, 0x02, 0xb2, 0xed, 0xfa, - 0x82, 0x57, 0xd7, 0x54, 0x62, 0x15, 0x51, 0x8e, 0x15, 0x06, 0x7d, 0xc4, 0x87, 0xae, 0x47, 0xf9, - 0x92, 0x9a, 0xef, 0xd5, 0xb9, 0x9e, 0xa3, 0x28, 0x52, 0x83, 0x69, 0xe5, 0xd8, 0xc0, 0x42, 0xb7, - 0x60, 0x98, 0xfd, 0x67, 0xc7, 0x4e, 0xff, 0x81, 0x8f, 0x1d, 0x91, 0x2c, 0x59, 0x10, 0xc0, 0x31, - 0x2d, 0xf4, 0x3c, 0x40, 0x24, 0xd3, 0xeb, 0x84, 0x22, 0x8c, 0xab, 0x7a, 0xd7, 0xa8, 0xc4, 0x3b, - 0x21, 0xd6, 0xb0, 0xd0, 0x33, 0x30, 0x1c, 0x39, 0x6e, 0xe3, 0x9a, 0xeb, 0x31, 0x5b, 0x00, 0xda, - 0x7f, 0x91, 0xb3, 0x58, 0x14, 0xe2, 0x18, 0x4e, 0xf9, 0x4a, 0x16, 0xdd, 0x6a, 0x7e, 0x27, 0x12, - 0xe9, 0xf9, 0x8a, 0x9c, 0xaf, 0xbc, 0xa6, 0x4a, 0xb1, 0x86, 0x81, 0x36, 0xe1, 0x94, 0xeb, 0xb1, - 0x34, 0x5a, 0xa4, 0xba, 0xe5, 0xb6, 0xd6, 0xae, 0x55, 0x6f, 0x92, 0xc0, 0x5d, 0xdf, 0x99, 0x77, - 0x6a, 0x5b, 0xc4, 0xab, 0x33, 0xb1, 0xc3, 0xd0, 0xfc, 0xe3, 0xa2, 0x8b, 0xa7, 0xca, 0x1d, 0x70, - 0x71, 0x47, 0x4a, 0xc8, 0xa6, 0xdb, 0x31, 0x20, 0x4e, 0x53, 0xc8, 0x17, 0x78, 0x0a, 0x1e, 0x56, - 0x82, 0x05, 0xc4, 0x7e, 0x81, 0xed, 0x89, 0xeb, 0x55, 0xf4, 0xb4, 0x71, 0xbc, 0x1c, 0xd7, 0x8f, - 0x97, 0xfd, 0xdd, 0xd2, 0xc0, 0xf5, 0xaa, 0x16, 0xe9, 0xe8, 0x12, 0x1c, 0xab, 0xf8, 0xf5, 0x8a, - 0x1f, 0x44, 0xcb, 0x7e, 0x70, 0xc7, 0x09, 0xea, 0x72, 0x09, 0x96, 0x64, 0xac, 0x27, 0x7a, 0xc6, - 0xf6, 0xf3, 0x13, 0xc8, 0x88, 0xe3, 0xf4, 0x02, 0xe3, 0x10, 0x0f, 0xe8, 0x5a, 0x5b, 0x63, 0xbc, - 0x8a, 0x4a, 0x56, 0x77, 0xd9, 0x89, 0x08, 0xba, 0x0e, 0x63, 0x35, 0xfd, 0xda, 0x16, 0xd5, 0x9f, - 0x92, 0x97, 0x9d, 0x71, 0xa7, 0x67, 0xde, 0xf3, 0x66, 0x7d, 0xfb, 0x1b, 0x96, 0x68, 0x85, 0x4b, - 0x3e, 0xb8, 0x0d, 0x6d, 0xf7, 0x33, 0x77, 0x01, 0xa6, 0x02, 0xbd, 0x8a, 0x66, 0x8b, 0x76, 0x8c, - 0x67, 0xff, 0x49, 0x00, 0x71, 0x1a, 0x1f, 0x7d, 0x12, 0x4e, 0x1a, 0x85, 0x52, 0x2d, 0xaf, 0xe5, - 0xe0, 0x66, 0xb2, 0x21, 0x9c, 0x87, 0x84, 0xf3, 0xeb, 0xdb, 0x3f, 0x08, 0xc7, 0x93, 0xdf, 0x25, - 0xa4, 0x35, 0xf7, 0xf9, 0x75, 0x85, 0x83, 0x7d, 0x9d, 0xfd, 0x12, 0x4c, 0xd1, 0x67, 0xbc, 0x62, - 0x49, 0xd9, 0xfc, 0x75, 0x0f, 0xa7, 0xf5, 0xdb, 0x43, 0xec, 0x1a, 0x4c, 0x64, 0xa0, 0x43, 0x9f, - 0x86, 0xf1, 0x90, 0xb0, 0x18, 0x72, 0x52, 0x4a, 0xd8, 0xc1, 0x2f, 0xbe, 0xba, 0xa4, 0x63, 0xf2, - 0x97, 0x90, 0x59, 0x86, 0x13, 0xd4, 0x50, 0x13, 0xc6, 0xef, 0xb8, 0x5e, 0xdd, 0xbf, 0x13, 0x4a, - 0xfa, 0x43, 0xf9, 0x2a, 0x87, 0x5b, 0x1c, 0x33, 0xd1, 0x47, 0xa3, 0xb9, 0x5b, 0x06, 0x31, 0x9c, - 0x20, 0x4e, 0x8f, 0x9a, 0xa0, 0xed, 0xcd, 0x85, 0x37, 0x42, 0x12, 0x88, 0x08, 0x77, 0xec, 0xa8, - 0xc1, 0xb2, 0x10, 0xc7, 0x70, 0x7a, 0xd4, 0xb0, 0x3f, 0xcc, 0xb1, 0x9e, 0x9d, 0x65, 0xe2, 0xa8, - 0xc1, 0xaa, 0x14, 0x6b, 0x18, 0xf4, 0x28, 0x66, 0xff, 0x56, 0x7d, 0x0f, 0xfb, 0x7e, 0x24, 0x0f, - 0x6f, 0x96, 0xae, 0x53, 0x2b, 0xc7, 0x06, 0x56, 0x4e, 0x3c, 0xbd, 0xbe, 0x83, 0xc6, 0xd3, 0x43, - 0x51, 0x87, 0x58, 0x02, 0x3c, 0x22, 0xf4, 0xa5, 0x4e, 0xb1, 0x04, 0xf6, 0xef, 0x2b, 0xce, 0x00, - 0xe5, 0x05, 0xd6, 0xc5, 0x00, 0xf5, 0xf3, 0x80, 0x81, 0x4c, 0x29, 0x5a, 0xe5, 0xa3, 0x23, 0x61, - 0x68, 0x09, 0x06, 0xc3, 0x9d, 0xb0, 0x16, 0x35, 0xc2, 0x4e, 0x29, 0x59, 0xab, 0x0c, 0x45, 0xcb, - 0x08, 0xce, 0xab, 0x60, 0x59, 0x17, 0xd5, 0xe0, 0x88, 0xa0, 0xb8, 0xb0, 0xe9, 0x78, 0x2a, 0x51, - 0x24, 0xb7, 0x7e, 0xbc, 0xb8, 0xb7, 0x5b, 0x3a, 0x22, 0x5a, 0xd6, 0xc1, 0xfb, 0xbb, 0x25, 0xba, - 0x25, 0x33, 0x20, 0x38, 0x8b, 0x1a, 0x5f, 0xf2, 0xb5, 0x9a, 0xdf, 0x6c, 0x55, 0x02, 0x7f, 0xdd, - 0x6d, 0x90, 0x4e, 0x8a, 0xe5, 0xaa, 0x81, 0x29, 0x96, 0xbc, 0x51, 0x86, 0x13, 0xd4, 0xd0, 0x6d, - 0x98, 0x70, 0x5a, 0xad, 0xb9, 0xa0, 0xe9, 0x07, 0xb2, 0x81, 0x91, 0x7c, 0x0d, 0xc5, 0x9c, 0x89, - 0xca, 0xf3, 0x44, 0x26, 0x0a, 0x71, 0x92, 0x20, 0x1d, 0x28, 0xb1, 0xd1, 0x8c, 0x81, 0x1a, 0x8b, - 0x07, 0x4a, 0xec, 0xcb, 0x8c, 0x81, 0xca, 0x80, 0xe0, 0x2c, 0x6a, 0xf6, 0x0f, 0x30, 0xc6, 0x9f, - 0xc5, 0x9b, 0x66, 0x6e, 0x46, 0x4d, 0x18, 0x6b, 0xb1, 0x63, 0x5f, 0xe4, 0x70, 0x13, 0x47, 0xc5, - 0x8b, 0x3d, 0x0a, 0x42, 0xef, 0xb0, 0x2c, 0xb4, 0x86, 0x41, 0x6c, 0x45, 0x27, 0x87, 0x4d, 0xea, - 0xf6, 0x2f, 0xcd, 0x30, 0xd6, 0xb1, 0xca, 0xa5, 0x9b, 0x83, 0xc2, 0xe9, 0x52, 0xc8, 0x33, 0x66, - 0xf2, 0xf5, 0x08, 0xf1, 0xfa, 0x12, 0x8e, 0x9b, 0x58, 0xd6, 0x45, 0x9f, 0x82, 0x71, 0xd7, 0x73, - 0xe3, 0xec, 0xcd, 0xe1, 0xf4, 0xd1, 0xfc, 0x68, 0x5e, 0x0a, 0x4b, 0xcf, 0xef, 0xa8, 0x57, 0xc6, - 0x09, 0x62, 0xe8, 0x2d, 0x66, 0x23, 0x2a, 0x49, 0x17, 0x7a, 0x21, 0xad, 0x9b, 0x83, 0x4a, 0xb2, - 0x1a, 0x11, 0xd4, 0x86, 0x23, 0xe9, 0x2c, 0xd6, 0xe1, 0xb4, 0x9d, 0xff, 0x36, 0x4a, 0x27, 0xa2, - 0x8e, 0x13, 0xf1, 0xa5, 0x61, 0x21, 0xce, 0xa2, 0x8f, 0xae, 0x25, 0x73, 0x0c, 0x17, 0x0d, 0x0d, - 0x44, 0x2a, 0xcf, 0xf0, 0x58, 0xc7, 0xf4, 0xc2, 0x1b, 0x70, 0x5a, 0x4b, 0xd3, 0x7a, 0x39, 0x70, - 0x98, 0x8d, 0x92, 0xcb, 0x6e, 0x23, 0x8d, 0xa9, 0x7d, 0x74, 0x6f, 0xb7, 0x74, 0x7a, 0xad, 0x13, - 0x22, 0xee, 0x4c, 0x07, 0x5d, 0x87, 0x63, 0x3c, 0x16, 0xcd, 0x22, 0x71, 0xea, 0x0d, 0xd7, 0x53, - 0x5c, 0x33, 0x3f, 0xbb, 0x4e, 0xee, 0xed, 0x96, 0x8e, 0xcd, 0x65, 0x21, 0xe0, 0xec, 0x7a, 0xe8, - 0x35, 0x18, 0xae, 0x7b, 0xf2, 0x94, 0x1d, 0x30, 0x32, 0xe1, 0x0e, 0x2f, 0xae, 0x56, 0xd5, 0xf7, - 0xc7, 0x7f, 0x70, 0x5c, 0x01, 0x6d, 0x70, 0x15, 0x98, 0x92, 0x5b, 0x0e, 0xa6, 0x42, 0x94, 0x26, - 0x45, 0xfb, 0x46, 0x70, 0x07, 0xae, 0xfb, 0x55, 0x0e, 0x80, 0x46, 0xdc, 0x07, 0x83, 0x30, 0x7a, - 0x13, 0x90, 0xc8, 0xb8, 0x34, 0x57, 0x63, 0x09, 0x02, 0x35, 0xbb, 0x54, 0x25, 0x42, 0xa8, 0xa6, - 0x30, 0x70, 0x46, 0x2d, 0x74, 0x85, 0x1e, 0x8f, 0x7a, 0xa9, 0x38, 0x7e, 0x55, 0xbe, 0xf5, 0x45, - 0xd2, 0x0a, 0x08, 0x33, 0xa5, 0x34, 0x29, 0xe2, 0x44, 0x3d, 0x54, 0x87, 0x53, 0x4e, 0x3b, 0xf2, - 0x99, 0x76, 0xd1, 0x44, 0x5d, 0xf3, 0xb7, 0x88, 0xc7, 0x14, 0xfb, 0x43, 0x2c, 0xf4, 0xe9, 0xa9, - 0xb9, 0x0e, 0x78, 0xb8, 0x23, 0x15, 0xfa, 0x9c, 0xa2, 0x63, 0xa1, 0x29, 0xfe, 0x0c, 0x3f, 0x75, - 0xae, 0x0d, 0x97, 0x18, 0xe8, 0x25, 0x18, 0xd9, 0xf4, 0xc3, 0x68, 0x95, 0x44, 0x77, 0xfc, 0x60, - 0x4b, 0xa4, 0x78, 0x88, 0xd3, 0xea, 0xc4, 0x20, 0xac, 0xe3, 0xa1, 0xa7, 0x60, 0x90, 0x99, 0x9d, - 0x95, 0x17, 0xd9, 0x5d, 0x3b, 0x14, 0x9f, 0x31, 0x57, 0x78, 0x31, 0x96, 0x70, 0x89, 0x5a, 0xae, - 0x2c, 0xb0, 0xe3, 0x38, 0x81, 0x5a, 0xae, 0x2c, 0x60, 0x09, 0xa7, 0xcb, 0x35, 0xdc, 0x74, 0x02, - 0x52, 0x09, 0xfc, 0x1a, 0x09, 0xb5, 0x64, 0x4e, 0x8f, 0xf0, 0x04, 0x16, 0x74, 0xb9, 0x56, 0xb3, - 0x10, 0x70, 0x76, 0x3d, 0x44, 0xd2, 0x29, 0x8a, 0xc7, 0xf3, 0xd5, 0xae, 0x69, 0x76, 0xb0, 0xc7, - 0x2c, 0xc5, 0x1e, 0x4c, 0xaa, 0xe4, 0xc8, 0x3c, 0x65, 0x45, 0x38, 0x3d, 0xc1, 0xd6, 0x76, 0xef, - 0xf9, 0x2e, 0x94, 0x22, 0xbb, 0x9c, 0xa0, 0x84, 0x53, 0xb4, 0x8d, 0xd8, 0xba, 0x93, 0x5d, 0x63, - 0xeb, 0x5e, 0x80, 0xe1, 0xb0, 0x7d, 0xbb, 0xee, 0x37, 0x1d, 0xd7, 0x63, 0xd6, 0x3b, 0xda, 0xc3, - 0xbd, 0x2a, 0x01, 0x38, 0xc6, 0x41, 0xcb, 0x30, 0xe4, 0x48, 0x2d, 0x35, 0xca, 0x0f, 0x1b, 0xa8, - 0x74, 0xd3, 0x3c, 0x92, 0x96, 0xd4, 0x4b, 0xab, 0xba, 0xe8, 0x55, 0x18, 0x13, 0xa1, 0x49, 0x78, - 0x14, 0x1e, 0x66, 0x5d, 0xa3, 0x39, 0x53, 0x57, 0x75, 0x20, 0x36, 0x71, 0xd1, 0x0d, 0x18, 0x89, - 0xfc, 0x86, 0x90, 0x71, 0x86, 0xd3, 0xc7, 0xf3, 0xa3, 0xfb, 0xae, 0x29, 0x34, 0x5d, 0x7f, 0xa2, - 0xaa, 0x62, 0x9d, 0x0e, 0x5a, 0xe3, 0xeb, 0x9d, 0xa5, 0x6e, 0x22, 0xa1, 0x48, 0x48, 0x7f, 0x3a, - 0xcf, 0xf4, 0x92, 0xa1, 0x99, 0xdb, 0x41, 0xd4, 0xc4, 0x3a, 0x19, 0x74, 0x19, 0xa6, 0x5a, 0x81, - 0xeb, 0xb3, 0x35, 0xa1, 0xb4, 0xee, 0xd3, 0x66, 0xa2, 0xd6, 0x4a, 0x12, 0x01, 0xa7, 0xeb, 0xb0, - 0xc8, 0x32, 0xa2, 0x70, 0xfa, 0x24, 0x4f, 0x36, 0xc7, 0xe5, 0x20, 0xbc, 0x0c, 0x2b, 0x28, 0x5a, - 0x61, 0x27, 0x31, 0x17, 0xe1, 0x4d, 0xcf, 0xe4, 0xc7, 0x2b, 0xd0, 0x45, 0x7d, 0x9c, 0xf7, 0x57, - 0x7f, 0x71, 0x4c, 0x01, 0xd5, 0xb5, 0x1c, 0xef, 0xf4, 0x05, 0x15, 0x4e, 0x9f, 0xea, 0x60, 0xfb, - 0x9b, 0x78, 0x2e, 0xc7, 0x0c, 0x81, 0x51, 0x1c, 0xe2, 0x04, 0x4d, 0xf4, 0x06, 0x4c, 0x8a, 0xb0, - 0x0b, 0xf1, 0x30, 0x9d, 0x8e, 0xfd, 0xa3, 0x70, 0x02, 0x86, 0x53, 0xd8, 0x3c, 0xd9, 0x9b, 0x73, - 0xbb, 0x41, 0xc4, 0xd1, 0x77, 0xcd, 0xf5, 0xb6, 0xc2, 0xe9, 0x33, 0xec, 0x7c, 0x10, 0xc9, 0xde, - 0x92, 0x50, 0x9c, 0x51, 0x03, 0xad, 0xc1, 0x64, 0x2b, 0x20, 0xa4, 0xc9, 0xde, 0x49, 0xe2, 0x3e, - 0x2b, 0xf1, 0xc0, 0x4a, 0xb4, 0x27, 0x95, 0x04, 0x6c, 0x3f, 0xa3, 0x0c, 0xa7, 0x28, 0xa0, 0x3b, - 0x30, 0xe4, 0x6f, 0x93, 0x60, 0x93, 0x38, 0xf5, 0xe9, 0xb3, 0x1d, 0xbc, 0xf6, 0xc4, 0xe5, 0x76, - 0x5d, 0xe0, 0x26, 0x8c, 0x9a, 0x64, 0x71, 0x77, 0xa3, 0x26, 0xd9, 0x18, 0xfa, 0x4f, 0x2c, 0x38, - 0x29, 0xd5, 0x84, 0xd5, 0x16, 0x1d, 0xf5, 0x05, 0xdf, 0x0b, 0xa3, 0x80, 0x87, 0x02, 0x7a, 0x34, - 0x3f, 0x3c, 0xce, 0x5a, 0x4e, 0x25, 0xa5, 0x45, 0x38, 0x99, 0x87, 0x11, 0xe2, 0xfc, 0x16, 0xe9, - 0xcb, 0x3e, 0x24, 0x91, 0x3c, 0x8c, 0xe6, 0xc2, 0xe5, 0xb7, 0x16, 0x57, 0xa7, 0x1f, 0xe3, 0x71, - 0x8c, 0xe8, 0x66, 0xa8, 0x26, 0x81, 0x38, 0x8d, 0x8f, 0x2e, 0x42, 0xc1, 0x0f, 0xa7, 0x1f, 0x67, - 0x6b, 0xfb, 0x64, 0xce, 0x38, 0x5e, 0xaf, 0x72, 0xe3, 0xd6, 0xeb, 0x55, 0x5c, 0xf0, 0x43, 0x99, - 0x70, 0x8d, 0x3e, 0x67, 0xc3, 0xe9, 0x27, 0xb8, 0xcc, 0x59, 0x26, 0x5c, 0x63, 0x85, 0x38, 0x86, - 0xa3, 0x4d, 0x98, 0x08, 0x0d, 0xb1, 0x41, 0x38, 0x7d, 0x8e, 0x8d, 0xd4, 0x13, 0x79, 0x93, 0x66, - 0x60, 0x6b, 0x99, 0x90, 0x4c, 0x2a, 0x38, 0x49, 0x96, 0xef, 0x2e, 0x4d, 0x70, 0x11, 0x4e, 0x3f, - 0xd9, 0x65, 0x77, 0x69, 0xc8, 0xfa, 0xee, 0xd2, 0x69, 0xe0, 0x04, 0x4d, 0x74, 0x43, 0x77, 0x89, - 0x3c, 0x9f, 0x6f, 0x28, 0x99, 0xe9, 0x0c, 0x39, 0x96, 0xe7, 0x08, 0x39, 0xf3, 0x7d, 0x30, 0x95, - 0xe2, 0xc2, 0x0e, 0xe2, 0x1f, 0x32, 0xb3, 0x05, 0x63, 0xc6, 0x4a, 0x7f, 0xa8, 0xe6, 0x43, 0x3f, - 0x03, 0x30, 0xac, 0xcc, 0x3a, 0x72, 0xf4, 0x6c, 0x53, 0xf7, 0xa5, 0x67, 0xbb, 0x60, 0x5a, 0x1f, - 0x9d, 0x4c, 0x5a, 0x1f, 0x0d, 0x55, 0xfc, 0xba, 0x61, 0x70, 0xb4, 0x96, 0x11, 0x41, 0x38, 0xef, - 0x8c, 0xee, 0xdd, 0x21, 0x4e, 0x53, 0x55, 0x15, 0x7b, 0x36, 0x63, 0xea, 0xeb, 0xa8, 0xfd, 0xba, - 0x0c, 0x53, 0x9e, 0xcf, 0x9e, 0x11, 0xa4, 0x2e, 0x79, 0x44, 0xc6, 0x0a, 0x0e, 0xeb, 0x11, 0xee, - 0x12, 0x08, 0x38, 0x5d, 0x87, 0x36, 0xc8, 0x79, 0xb9, 0xa4, 0xba, 0x8d, 0xb3, 0x7a, 0x58, 0x40, - 0xe9, 0xf3, 0x95, 0xff, 0x0a, 0xa7, 0x27, 0xf3, 0x9f, 0xaf, 0xbc, 0x52, 0x92, 0x5f, 0x0c, 0x25, - 0xbf, 0xc8, 0xb4, 0x4b, 0x2d, 0xbf, 0x5e, 0xae, 0x88, 0x97, 0x88, 0x16, 0xdb, 0xbf, 0x5e, 0xae, - 0x60, 0x0e, 0x43, 0x73, 0x30, 0xc0, 0x7e, 0xc8, 0xc8, 0x41, 0x79, 0x27, 0x49, 0xb9, 0xa2, 0xe5, - 0xa4, 0x65, 0x15, 0xb0, 0xa8, 0xc8, 0xb4, 0x07, 0xf4, 0xf9, 0xc6, 0xb4, 0x07, 0x83, 0xf7, 0xa9, - 0x3d, 0x90, 0x04, 0x70, 0x4c, 0x0b, 0xdd, 0x85, 0x63, 0xc6, 0x93, 0x59, 0x79, 0x08, 0x42, 0xbe, - 0x91, 0x42, 0x02, 0x79, 0xfe, 0xb4, 0xe8, 0xf4, 0xb1, 0x72, 0x16, 0x25, 0x9c, 0xdd, 0x00, 0x6a, - 0xc0, 0x54, 0x2d, 0xd5, 0xea, 0x50, 0xef, 0xad, 0xaa, 0x75, 0x91, 0x6e, 0x31, 0x4d, 0x18, 0xbd, - 0x0a, 0x43, 0xef, 0xfa, 0xdc, 0xa0, 0x50, 0xbc, 0x9e, 0x64, 0x7c, 0x9b, 0xa1, 0xb7, 0xae, 0x57, - 0x59, 0xf9, 0xfe, 0x6e, 0x69, 0xa4, 0xe2, 0xd7, 0xe5, 0x5f, 0xac, 0x2a, 0xa0, 0x1f, 0xb3, 0x60, - 0x26, 0xfd, 0x26, 0x57, 0x9d, 0x1e, 0xeb, 0xbd, 0xd3, 0xb6, 0x68, 0x74, 0x66, 0x29, 0x97, 0x1c, - 0xee, 0xd0, 0x14, 0xfa, 0x28, 0xdd, 0x4f, 0xa1, 0x7b, 0x8f, 0x88, 0x84, 0xfe, 0x8f, 0xc6, 0xfb, - 0x89, 0x96, 0xee, 0xef, 0x96, 0x26, 0xf8, 0xe1, 0xed, 0xde, 0x53, 0x59, 0x08, 0x78, 0x05, 0xf4, - 0x83, 0x70, 0x2c, 0x48, 0xcb, 0xc8, 0x89, 0x7c, 0x27, 0x3c, 0xdd, 0xcb, 0x45, 0x90, 0x9c, 0x70, - 0x9c, 0x45, 0x10, 0x67, 0xb7, 0x63, 0xff, 0xa1, 0xc5, 0x74, 0x23, 0xa2, 0x5b, 0x24, 0x6c, 0x37, - 0xa2, 0x43, 0x30, 0xe2, 0x5b, 0x32, 0x6c, 0x13, 0xee, 0xdb, 0x0a, 0xef, 0xbf, 0xb3, 0x98, 0x15, - 0xde, 0x21, 0xfa, 0x13, 0xbe, 0x05, 0x43, 0x91, 0x68, 0x4d, 0x74, 0x3d, 0xcf, 0x62, 0x48, 0x76, - 0x8a, 0x59, 0x22, 0xaa, 0x77, 0x98, 0x2c, 0xc5, 0x8a, 0x8c, 0xfd, 0x5f, 0xf3, 0x19, 0x90, 0x90, - 0x43, 0x50, 0x01, 0x2f, 0x9a, 0x2a, 0xe0, 0x52, 0x97, 0x2f, 0xc8, 0x51, 0x05, 0xff, 0x57, 0x66, - 0xbf, 0x99, 0xfc, 0xf1, 0xfd, 0x6e, 0xfe, 0x69, 0x7f, 0xd1, 0x02, 0x88, 0xd3, 0xbe, 0xf4, 0x90, - 0xc0, 0xfb, 0x12, 0x7d, 0x79, 0xf9, 0x91, 0x5f, 0xf3, 0x1b, 0x42, 0x05, 0x75, 0x2a, 0xd6, 0x42, - 0xf3, 0xf2, 0x7d, 0xed, 0x37, 0x56, 0xd8, 0xa8, 0x24, 0xe3, 0x30, 0x17, 0x63, 0xbb, 0x08, 0x23, - 0x06, 0xf3, 0x57, 0x2c, 0x38, 0x9a, 0xe5, 0x9c, 0x42, 0xdf, 0xf1, 0x5c, 0x12, 0xab, 0x4c, 0x73, - 0xd5, 0x6c, 0xde, 0x14, 0xe5, 0x58, 0x61, 0xf4, 0x9c, 0x19, 0xfd, 0x60, 0x29, 0x49, 0xae, 0xc3, - 0x58, 0x25, 0x20, 0x1a, 0x7f, 0xf1, 0x7a, 0x9c, 0x2d, 0x69, 0x78, 0xfe, 0xd9, 0x03, 0x47, 0x7c, - 0xb2, 0xbf, 0x5a, 0x80, 0xa3, 0xdc, 0xc0, 0x6c, 0x6e, 0xdb, 0x77, 0xeb, 0x15, 0xbf, 0x2e, 0x5c, - 0x8a, 0xdf, 0x86, 0xd1, 0x96, 0x26, 0x3e, 0xef, 0x14, 0x5e, 0x5f, 0x17, 0xb3, 0xc7, 0x02, 0x3f, - 0xbd, 0x14, 0x1b, 0xb4, 0x50, 0x1d, 0x46, 0xc9, 0xb6, 0x5b, 0x53, 0x96, 0x45, 0x85, 0x03, 0x5f, - 0xd2, 0xaa, 0x95, 0x25, 0x8d, 0x0e, 0x36, 0xa8, 0xf6, 0x6c, 0x16, 0xae, 0xb1, 0x68, 0x7d, 0x5d, - 0xac, 0x89, 0x7e, 0xce, 0x82, 0x13, 0x39, 0xc1, 0xf8, 0x69, 0x73, 0x77, 0x98, 0x29, 0x9f, 0x58, - 0xb6, 0xaa, 0x39, 0x6e, 0xe0, 0x87, 0x05, 0x14, 0x7d, 0x1c, 0xa0, 0x15, 0xa7, 0x30, 0xed, 0x12, - 0xb5, 0xdc, 0x88, 0x5f, 0xac, 0x85, 0xa2, 0x55, 0x99, 0x4e, 0x35, 0x5a, 0xf6, 0x57, 0xfa, 0xa0, - 0x9f, 0x19, 0x71, 0xa1, 0x0a, 0x0c, 0x6e, 0xf2, 0x48, 0x89, 0x1d, 0xe7, 0x8d, 0xe2, 0xca, 0xd0, - 0x8b, 0xf1, 0xbc, 0x69, 0xa5, 0x58, 0x92, 0x41, 0x2b, 0x70, 0x84, 0xa7, 0x67, 0x6d, 0x2c, 0x92, - 0x86, 0xb3, 0x23, 0x25, 0xd3, 0x05, 0xf6, 0xa9, 0x4a, 0x42, 0x5f, 0x4e, 0xa3, 0xe0, 0xac, 0x7a, - 0xe8, 0x75, 0x18, 0x8f, 0xdc, 0x26, 0xf1, 0xdb, 0x91, 0xa4, 0xc4, 0xf3, 0xa1, 0xaa, 0xc7, 0xd3, - 0x9a, 0x01, 0xc5, 0x09, 0x6c, 0xf4, 0x2a, 0x8c, 0xb5, 0x52, 0x32, 0xf8, 0xfe, 0x58, 0x58, 0x65, - 0xca, 0xdd, 0x4d, 0x5c, 0xe6, 0x9f, 0xd2, 0x66, 0xde, 0x38, 0x6b, 0x9b, 0x01, 0x09, 0x37, 0xfd, - 0x46, 0x9d, 0x71, 0xc0, 0xfd, 0x9a, 0x7f, 0x4a, 0x02, 0x8e, 0x53, 0x35, 0x28, 0x95, 0x75, 0xc7, - 0x6d, 0xb4, 0x03, 0x12, 0x53, 0x19, 0x30, 0xa9, 0x2c, 0x27, 0xe0, 0x38, 0x55, 0xa3, 0xbb, 0x72, - 0x61, 0xf0, 0xc1, 0x28, 0x17, 0xec, 0x5f, 0x2d, 0x80, 0x31, 0xb5, 0xdf, 0xc3, 0xd9, 0x56, 0x5f, - 0x83, 0xbe, 0x8d, 0xa0, 0x55, 0x13, 0x06, 0x8b, 0x99, 0x5f, 0x76, 0x19, 0x57, 0x16, 0xf4, 0x2f, - 0xa3, 0xff, 0x31, 0xab, 0x45, 0xf7, 0xf8, 0xb1, 0x4a, 0xe0, 0xd3, 0x4b, 0x4e, 0x06, 0x53, 0x55, - 0x6e, 0x60, 0x83, 0xf2, 0xbd, 0xde, 0x21, 0xec, 0xb8, 0xf0, 0x65, 0xe1, 0x14, 0x0c, 0xdb, 0xbe, - 0xaa, 0x78, 0xad, 0x4b, 0x2a, 0xe8, 0x22, 0x8c, 0x88, 0x04, 0x98, 0xcc, 0x5b, 0x89, 0x6f, 0x26, - 0x66, 0x8b, 0xb8, 0x18, 0x17, 0x63, 0x1d, 0xc7, 0xfe, 0xf1, 0x02, 0x1c, 0xc9, 0x70, 0x37, 0xe5, - 0xd7, 0xc8, 0x86, 0x1b, 0x46, 0xc1, 0x4e, 0xf2, 0x72, 0xc2, 0xa2, 0x1c, 0x2b, 0x0c, 0x7a, 0x56, - 0xf1, 0x8b, 0x2a, 0x79, 0x39, 0x09, 0x77, 0x2e, 0x01, 0x3d, 0xd8, 0xe5, 0x44, 0xaf, 0xed, 0x76, - 0x48, 0x64, 0x86, 0x03, 0x75, 0x6d, 0x33, 0xc3, 0x05, 0x06, 0xa1, 0x4f, 0xc0, 0x0d, 0xa5, 0x8d, - 0xd7, 0x9e, 0x80, 0x5c, 0x1f, 0xcf, 0x61, 0xb4, 0x73, 0x11, 0xf1, 0x1c, 0x2f, 0x12, 0x0f, 0xc5, - 0x38, 0xf2, 0x35, 0x2b, 0xc5, 0x02, 0x6a, 0x7f, 0xb9, 0x08, 0x27, 0x73, 0x1d, 0xd0, 0x69, 0xd7, - 0x9b, 0xbe, 0xe7, 0x46, 0xbe, 0x32, 0xf2, 0xe4, 0xd1, 0xae, 0x49, 0x6b, 0x73, 0x45, 0x94, 0x63, - 0x85, 0x81, 0xce, 0x41, 0x3f, 0x93, 0xdb, 0x27, 0x93, 0xdf, 0xe1, 0xf9, 0x45, 0x1e, 0x0b, 0x94, - 0x83, 0xb5, 0x5b, 0xbd, 0xd8, 0xf1, 0x56, 0x7f, 0x8c, 0x72, 0x30, 0x7e, 0x23, 0x79, 0xa1, 0xd0, - 0xee, 0xfa, 0x7e, 0x03, 0x33, 0x20, 0x7a, 0x42, 0x8c, 0x57, 0xc2, 0xaa, 0x11, 0x3b, 0x75, 0x3f, - 0xd4, 0x06, 0xed, 0x29, 0x18, 0xdc, 0x22, 0x3b, 0x81, 0xeb, 0x6d, 0x24, 0xad, 0x5d, 0xaf, 0xf2, - 0x62, 0x2c, 0xe1, 0x66, 0x96, 0xf8, 0xc1, 0x07, 0x91, 0x25, 0x5e, 0x5f, 0x01, 0x43, 0x5d, 0xd9, - 0x93, 0x9f, 0x28, 0xc2, 0x04, 0x9e, 0x5f, 0xfc, 0x60, 0x22, 0x6e, 0xa4, 0x27, 0xe2, 0x41, 0x24, - 0x53, 0x3f, 0xd8, 0x6c, 0xfc, 0x9e, 0x05, 0x13, 0x2c, 0x0d, 0xa7, 0x88, 0x1e, 0xe3, 0xfa, 0xde, - 0x21, 0x3c, 0x05, 0x1e, 0x83, 0xfe, 0x80, 0x36, 0x2a, 0x66, 0x50, 0xed, 0x71, 0xd6, 0x13, 0xcc, - 0x61, 0xe8, 0x14, 0xf4, 0xb1, 0x2e, 0xd0, 0xc9, 0x1b, 0xe5, 0x47, 0xf0, 0xa2, 0x13, 0x39, 0x98, - 0x95, 0xb2, 0x38, 0x96, 0x98, 0xb4, 0x1a, 0x2e, 0xef, 0x74, 0x6c, 0x55, 0xf1, 0xfe, 0x08, 0x4d, - 0x93, 0xd9, 0xb5, 0xf7, 0x16, 0xc7, 0x32, 0x9b, 0x64, 0xe7, 0x67, 0xf6, 0x3f, 0x15, 0xe0, 0x4c, - 0x66, 0xbd, 0x9e, 0xe3, 0x58, 0x76, 0xae, 0xfd, 0x30, 0x93, 0xf6, 0x15, 0x0f, 0xd1, 0x97, 0xa0, - 0xaf, 0x57, 0xee, 0xbf, 0xbf, 0x87, 0xf0, 0x92, 0x99, 0x43, 0xf6, 0x3e, 0x09, 0x2f, 0x99, 0xd9, - 0xb7, 0x1c, 0x31, 0xc1, 0xb7, 0x0b, 0x39, 0xdf, 0xc2, 0x04, 0x06, 0xe7, 0xe9, 0x39, 0xc3, 0x80, - 0xa1, 0x7c, 0x84, 0xf3, 0x33, 0x86, 0x97, 0x61, 0x05, 0x45, 0x73, 0x30, 0xd1, 0x74, 0x3d, 0x7a, - 0xf8, 0xec, 0x98, 0xac, 0xb8, 0x52, 0xb7, 0xac, 0x98, 0x60, 0x9c, 0xc4, 0x47, 0xae, 0x16, 0x7a, - 0x92, 0x7f, 0xdd, 0xab, 0x07, 0xda, 0x75, 0xb3, 0xa6, 0xc5, 0x89, 0x1a, 0xc5, 0x8c, 0x30, 0x94, - 0x2b, 0x9a, 0x9c, 0xa8, 0xd8, 0xbb, 0x9c, 0x68, 0x34, 0x5b, 0x46, 0x34, 0xf3, 0x2a, 0x8c, 0xdd, - 0xb7, 0x9e, 0xc5, 0xfe, 0x66, 0x11, 0x1e, 0xe9, 0xb0, 0xed, 0xf9, 0x59, 0x6f, 0xcc, 0x81, 0x76, - 0xd6, 0xa7, 0xe6, 0xa1, 0x02, 0x47, 0xd7, 0xdb, 0x8d, 0xc6, 0x0e, 0x73, 0xc0, 0x23, 0x75, 0x89, - 0x21, 0x78, 0x4a, 0x29, 0x1c, 0x39, 0xba, 0x9c, 0x81, 0x83, 0x33, 0x6b, 0xd2, 0x27, 0x16, 0xbd, - 0x49, 0x76, 0x14, 0xa9, 0xc4, 0x13, 0x0b, 0xeb, 0x40, 0x6c, 0xe2, 0xa2, 0xcb, 0x30, 0xe5, 0x6c, - 0x3b, 0x2e, 0x4f, 0x7a, 0x22, 0x09, 0xf0, 0x37, 0x96, 0x92, 0x45, 0xcf, 0x25, 0x11, 0x70, 0xba, - 0x4e, 0x8e, 0x4a, 0xa8, 0x78, 0x5f, 0x2a, 0x21, 0x33, 0x08, 0xe2, 0x40, 0x7e, 0x10, 0xc4, 0xce, - 0xe7, 0x62, 0xd7, 0x7c, 0x91, 0xef, 0xc0, 0xd8, 0x41, 0x2d, 0xc7, 0x9f, 0x82, 0xc1, 0x40, 0x64, - 0xe2, 0x4f, 0x78, 0xbb, 0xcb, 0x3c, 0xe5, 0x12, 0x6e, 0xff, 0x6f, 0x16, 0x28, 0x59, 0xb2, 0x19, - 0xef, 0xfc, 0x55, 0x66, 0x06, 0xcf, 0xa5, 0xe0, 0x5a, 0x88, 0xb3, 0x63, 0x9a, 0x19, 0x7c, 0x0c, - 0xc4, 0x26, 0x2e, 0x5f, 0x6e, 0x61, 0x1c, 0x59, 0xc3, 0x78, 0x40, 0x08, 0x0d, 0xa4, 0xc2, 0x40, - 0x9f, 0x80, 0xc1, 0xba, 0xbb, 0xed, 0x86, 0x42, 0x8e, 0x76, 0x60, 0x1d, 0x60, 0xfc, 0x7d, 0x8b, - 0x9c, 0x0c, 0x96, 0xf4, 0xec, 0x9f, 0xb2, 0x40, 0xa9, 0x4e, 0xaf, 0x10, 0xa7, 0x11, 0x6d, 0xa2, - 0x37, 0x00, 0x24, 0x05, 0x25, 0x7b, 0x93, 0x06, 0x5d, 0x80, 0x15, 0x64, 0xdf, 0xf8, 0x87, 0xb5, - 0x3a, 0xe8, 0x75, 0x18, 0xd8, 0x64, 0xb4, 0xc4, 0xb7, 0x9d, 0x53, 0xaa, 0x2e, 0x56, 0xba, 0xbf, - 0x5b, 0x3a, 0x6a, 0xb6, 0x29, 0x6f, 0x31, 0x5e, 0xcb, 0xfe, 0x89, 0x42, 0x3c, 0xa7, 0x6f, 0xb5, - 0xfd, 0xc8, 0x39, 0x04, 0x4e, 0xe4, 0xb2, 0xc1, 0x89, 0x3c, 0xd1, 0x49, 0x37, 0xcc, 0xba, 0x94, - 0xcb, 0x81, 0x5c, 0x4f, 0x70, 0x20, 0x4f, 0x76, 0x27, 0xd5, 0x99, 0xf3, 0xf8, 0x6f, 0x2c, 0x98, - 0x32, 0xf0, 0x0f, 0xe1, 0x02, 0x5c, 0x36, 0x2f, 0xc0, 0x47, 0xbb, 0x7e, 0x43, 0xce, 0xc5, 0xf7, - 0xa3, 0xc5, 0x44, 0xdf, 0xd9, 0x85, 0xf7, 0x2e, 0xf4, 0x6d, 0x3a, 0x41, 0x5d, 0xbc, 0xeb, 0x2f, - 0xf4, 0x34, 0xd6, 0xb3, 0x57, 0x9c, 0x40, 0x18, 0x83, 0x3c, 0x2b, 0x47, 0x9d, 0x16, 0x75, 0x35, - 0x04, 0x61, 0x4d, 0xa1, 0x4b, 0x30, 0x10, 0xd6, 0xfc, 0x96, 0xf2, 0x29, 0x64, 0x49, 0xd4, 0xab, - 0xac, 0x64, 0x7f, 0xb7, 0x84, 0xcc, 0xe6, 0x68, 0x31, 0x16, 0xf8, 0xe8, 0x6d, 0x18, 0x63, 0xbf, - 0x94, 0x65, 0x66, 0x31, 0x5f, 0x02, 0x53, 0xd5, 0x11, 0xb9, 0xd9, 0xb2, 0x51, 0x84, 0x4d, 0x52, - 0x33, 0x1b, 0x30, 0xac, 0x3e, 0xeb, 0xa1, 0x6a, 0xfe, 0xff, 0xba, 0x08, 0x47, 0x32, 0xd6, 0x1c, - 0x0a, 0x8d, 0x99, 0xb8, 0xd8, 0xe3, 0x52, 0x7d, 0x8f, 0x73, 0x11, 0xb2, 0x07, 0x60, 0x5d, 0xac, - 0xad, 0x9e, 0x1b, 0xbd, 0x11, 0x92, 0x64, 0xa3, 0xb4, 0xa8, 0x7b, 0xa3, 0xb4, 0xb1, 0x43, 0x1b, - 0x6a, 0xda, 0x90, 0xea, 0xe9, 0x43, 0x9d, 0xd3, 0x3f, 0xe9, 0x83, 0xa3, 0x59, 0xe6, 0x2a, 0xe8, - 0x73, 0x30, 0xc0, 0x9c, 0xde, 0xa4, 0xe0, 0xec, 0xc5, 0x5e, 0x0d, 0x5d, 0x66, 0x99, 0xdf, 0x9c, - 0x08, 0x99, 0x3b, 0x2b, 0x8f, 0x23, 0x5e, 0xd8, 0x75, 0x98, 0x45, 0x9b, 0x2c, 0x94, 0x95, 0xb8, - 0x3d, 0xe5, 0xf1, 0xf1, 0x91, 0x9e, 0x3b, 0x20, 0xee, 0xdf, 0x30, 0x61, 0xf5, 0x25, 0x8b, 0xbb, - 0x5b, 0x7d, 0xc9, 0x96, 0x51, 0x19, 0x06, 0x6a, 0xdc, 0x9c, 0xa8, 0xd8, 0xfd, 0x08, 0xe3, 0xb6, - 0x44, 0xea, 0x00, 0x16, 0x36, 0x44, 0x82, 0xc0, 0x8c, 0x0b, 0x23, 0xda, 0xc0, 0x3c, 0xd4, 0xc5, - 0xb3, 0x45, 0x2f, 0x3e, 0x6d, 0x08, 0x1e, 0xea, 0x02, 0xfa, 0x59, 0xed, 0xee, 0x17, 0xe7, 0xc1, - 0x87, 0x0d, 0xde, 0xe9, 0x54, 0xc2, 0x15, 0x31, 0xb1, 0xaf, 0x18, 0x2f, 0x55, 0x35, 0x63, 0xcd, - 0xe7, 0x26, 0xcc, 0x32, 0x2f, 0xfc, 0xce, 0xf1, 0xe5, 0xed, 0x9f, 0xb3, 0x20, 0xe1, 0x2c, 0xa6, - 0xc4, 0x9d, 0x56, 0xae, 0xb8, 0xf3, 0x2c, 0xf4, 0x05, 0x7e, 0x43, 0xf2, 0x53, 0x0a, 0x03, 0xfb, - 0x0d, 0x82, 0x19, 0x84, 0x62, 0x44, 0xb1, 0x10, 0x6b, 0x54, 0x7f, 0xa0, 0x8b, 0xa7, 0xf7, 0x63, - 0xd0, 0xdf, 0x20, 0xdb, 0xa4, 0x91, 0xcc, 0x1b, 0x7b, 0x8d, 0x16, 0x62, 0x0e, 0xb3, 0x7f, 0xaf, - 0x0f, 0x4e, 0x77, 0x8c, 0x78, 0x47, 0x19, 0xcc, 0x0d, 0x27, 0x22, 0x77, 0x9c, 0x9d, 0x64, 0xbe, - 0xc4, 0xcb, 0xbc, 0x18, 0x4b, 0x38, 0x73, 0xdc, 0xe6, 0x39, 0x80, 0x12, 0xc2, 0x61, 0x91, 0xfa, - 0x47, 0x40, 0x4d, 0x61, 0x63, 0xf1, 0x41, 0x08, 0x1b, 0x9f, 0x07, 0x08, 0xc3, 0x06, 0xb7, 0x09, - 0xad, 0x0b, 0x8f, 0xf0, 0x38, 0x57, 0x54, 0xf5, 0x9a, 0x80, 0x60, 0x0d, 0x0b, 0x2d, 0xc2, 0x64, - 0x2b, 0xf0, 0x23, 0x2e, 0x6b, 0x5f, 0xe4, 0x66, 0xd3, 0xfd, 0x66, 0xb0, 0xb1, 0x4a, 0x02, 0x8e, - 0x53, 0x35, 0xd0, 0x4b, 0x30, 0x22, 0x02, 0x90, 0x55, 0x7c, 0xbf, 0x21, 0xc4, 0x7b, 0xca, 0x92, - 0xb8, 0x1a, 0x83, 0xb0, 0x8e, 0xa7, 0x55, 0x63, 0x02, 0xfc, 0xc1, 0xcc, 0x6a, 0x5c, 0x88, 0xaf, - 0xe1, 0x25, 0x92, 0x15, 0x0c, 0xf5, 0x94, 0xac, 0x20, 0x16, 0x78, 0x0e, 0xf7, 0xac, 0x4f, 0x86, - 0xae, 0x22, 0xc2, 0xaf, 0xf5, 0xc1, 0x11, 0xb1, 0x70, 0x1e, 0xf6, 0x72, 0xb9, 0x91, 0x5e, 0x2e, - 0x0f, 0x42, 0x24, 0xfa, 0xc1, 0x9a, 0x39, 0xec, 0x35, 0xf3, 0x93, 0x16, 0x98, 0x3c, 0x24, 0xfa, - 0x8f, 0x72, 0x13, 0xce, 0xbe, 0x94, 0xcb, 0x93, 0xc6, 0x91, 0xcc, 0xdf, 0x5b, 0xea, 0x59, 0xfb, - 0x7f, 0xb1, 0xe0, 0xd1, 0xae, 0x14, 0xd1, 0x12, 0x0c, 0x33, 0x46, 0x57, 0x7b, 0x17, 0x3f, 0xa9, - 0xdc, 0x2a, 0x24, 0x20, 0x87, 0xef, 0x8e, 0x6b, 0xa2, 0xa5, 0x54, 0x66, 0xdf, 0xa7, 0x32, 0x32, - 0xfb, 0x1e, 0x33, 0x86, 0xe7, 0x3e, 0x53, 0xfb, 0x7e, 0x89, 0xde, 0x38, 0xa6, 0x6f, 0xe6, 0x47, - 0x0c, 0x71, 0xae, 0x9d, 0x10, 0xe7, 0x22, 0x13, 0x5b, 0xbb, 0x43, 0xde, 0x80, 0x49, 0x16, 0x99, - 0x94, 0x39, 0xf9, 0x08, 0xa7, 0xce, 0x42, 0x6c, 0xc8, 0x7f, 0x2d, 0x01, 0xc3, 0x29, 0x6c, 0xfb, - 0x1f, 0x8a, 0x30, 0xc0, 0xb7, 0xdf, 0x21, 0x3c, 0x7c, 0x9f, 0x81, 0x61, 0xb7, 0xd9, 0x6c, 0xf3, - 0x64, 0xad, 0xfd, 0xb1, 0x59, 0x78, 0x59, 0x16, 0xe2, 0x18, 0x8e, 0x96, 0x85, 0x26, 0xa1, 0x43, - 0xf0, 0x73, 0xde, 0xf1, 0xd9, 0x45, 0x27, 0x72, 0x38, 0x17, 0xa7, 0xee, 0xd9, 0x58, 0xe7, 0x80, - 0x3e, 0x0d, 0x10, 0x46, 0x81, 0xeb, 0x6d, 0xd0, 0x32, 0x91, 0x21, 0xe3, 0xe9, 0x0e, 0xd4, 0xaa, - 0x0a, 0x99, 0xd3, 0x8c, 0xcf, 0x1c, 0x05, 0xc0, 0x1a, 0x45, 0x34, 0x6b, 0xdc, 0xf4, 0x33, 0x89, - 0xb9, 0x03, 0x4e, 0x35, 0x9e, 0xb3, 0x99, 0x97, 0x61, 0x58, 0x11, 0xef, 0x26, 0x57, 0x1c, 0xd5, - 0x19, 0xb6, 0x8f, 0xc1, 0x44, 0xa2, 0x6f, 0x07, 0x12, 0x4b, 0xfe, 0xbe, 0x05, 0x13, 0xbc, 0x33, - 0x4b, 0xde, 0xb6, 0xb8, 0x0d, 0xee, 0xc1, 0xd1, 0x46, 0xc6, 0xa9, 0x2c, 0xa6, 0xbf, 0xf7, 0x53, - 0x5c, 0x89, 0x21, 0xb3, 0xa0, 0x38, 0xb3, 0x0d, 0x74, 0x9e, 0xee, 0x38, 0x7a, 0xea, 0x3a, 0x0d, - 0x11, 0x99, 0x64, 0x94, 0xef, 0x36, 0x5e, 0x86, 0x15, 0xd4, 0xfe, 0x5b, 0x0b, 0xa6, 0x78, 0xcf, - 0xaf, 0x92, 0x1d, 0x75, 0x36, 0x7d, 0x27, 0xfb, 0x2e, 0xd2, 0x84, 0x17, 0x72, 0xd2, 0x84, 0xeb, - 0x9f, 0x56, 0xec, 0xf8, 0x69, 0x5f, 0xb5, 0x40, 0xac, 0x90, 0x43, 0x90, 0xb4, 0x7c, 0x9f, 0x29, - 0x69, 0x99, 0xc9, 0xdf, 0x04, 0x39, 0x22, 0x96, 0x7f, 0xb3, 0x60, 0x92, 0x23, 0xc4, 0x56, 0x10, - 0xdf, 0xd1, 0x79, 0x98, 0x37, 0xbf, 0x28, 0xd3, 0xac, 0xf5, 0x2a, 0xd9, 0x59, 0xf3, 0x2b, 0x4e, - 0xb4, 0x99, 0xfd, 0x51, 0xc6, 0x64, 0xf5, 0x75, 0x9c, 0xac, 0xba, 0xdc, 0x40, 0x46, 0x42, 0xc8, - 0x2e, 0x02, 0xe0, 0x83, 0x26, 0x84, 0xb4, 0xff, 0xd1, 0x02, 0xc4, 0x9b, 0x31, 0x18, 0x37, 0xca, - 0x0e, 0xb1, 0x52, 0xed, 0xa2, 0x8b, 0x8f, 0x26, 0x05, 0xc1, 0x1a, 0xd6, 0x03, 0x19, 0x9e, 0x84, - 0x29, 0x4b, 0xb1, 0xbb, 0x29, 0xcb, 0x01, 0x46, 0xf4, 0xab, 0x83, 0x90, 0x74, 0xeb, 0x44, 0x37, - 0x61, 0xb4, 0xe6, 0xb4, 0x9c, 0xdb, 0x6e, 0xc3, 0x8d, 0x5c, 0x12, 0x76, 0xb2, 0x73, 0x5b, 0xd0, - 0xf0, 0x84, 0xf1, 0x81, 0x56, 0x82, 0x0d, 0x3a, 0x68, 0x16, 0xa0, 0x15, 0xb8, 0xdb, 0x6e, 0x83, - 0x6c, 0x30, 0x81, 0x10, 0x8b, 0x85, 0xc4, 0x8d, 0xee, 0x64, 0x29, 0xd6, 0x30, 0x32, 0x42, 0x90, - 0x14, 0x1f, 0x72, 0x08, 0x12, 0x38, 0xb4, 0x10, 0x24, 0x7d, 0x07, 0x0a, 0x41, 0x32, 0x74, 0xe0, - 0x10, 0x24, 0xfd, 0x3d, 0x85, 0x20, 0xc1, 0x70, 0x5c, 0xf2, 0x9e, 0xf4, 0xff, 0xb2, 0xdb, 0x20, - 0xe2, 0xc1, 0xc1, 0x03, 0x38, 0xcd, 0xec, 0xed, 0x96, 0x8e, 0xe3, 0x4c, 0x0c, 0x9c, 0x53, 0x13, - 0x7d, 0x1c, 0xa6, 0x9d, 0x46, 0xc3, 0xbf, 0xa3, 0x26, 0x75, 0x29, 0xac, 0x39, 0x8d, 0x38, 0xae, - 0xdf, 0xd0, 0xfc, 0xa9, 0xbd, 0xdd, 0xd2, 0xf4, 0x5c, 0x0e, 0x0e, 0xce, 0xad, 0x8d, 0x5e, 0x83, - 0xe1, 0x56, 0xe0, 0xd7, 0x56, 0x34, 0xdf, 0xf3, 0x33, 0x74, 0x00, 0x2b, 0xb2, 0x70, 0x7f, 0xb7, - 0x34, 0xa6, 0xfe, 0xb0, 0x0b, 0x3f, 0xae, 0x90, 0x11, 0xdd, 0x63, 0xe4, 0x61, 0x47, 0xf7, 0x18, - 0x7d, 0xc0, 0xd1, 0x3d, 0xec, 0x2d, 0x38, 0x52, 0x25, 0x81, 0xeb, 0x34, 0xdc, 0x7b, 0x94, 0x27, - 0x97, 0x67, 0xe0, 0x1a, 0x0c, 0x07, 0x89, 0x53, 0xbf, 0xa7, 0xa0, 0xe7, 0x9a, 0x5c, 0x46, 0x9e, - 0xf2, 0x31, 0x21, 0xfb, 0xff, 0xb7, 0x60, 0x50, 0xb8, 0x8a, 0x1e, 0x02, 0x67, 0x3a, 0x67, 0xa8, - 0x64, 0x4a, 0xd9, 0x93, 0xc2, 0x3a, 0x93, 0xab, 0x8c, 0x29, 0x27, 0x94, 0x31, 0x8f, 0x76, 0x22, - 0xd2, 0x59, 0x0d, 0xf3, 0x9f, 0x15, 0xe9, 0x0b, 0xc1, 0x08, 0x5a, 0xf0, 0xf0, 0x87, 0x60, 0x15, - 0x06, 0x43, 0xe1, 0x34, 0x5f, 0xc8, 0xf7, 0xe5, 0x49, 0x4e, 0x62, 0x6c, 0x03, 0x29, 0xdc, 0xe4, - 0x25, 0x91, 0x4c, 0x6f, 0xfc, 0xe2, 0x43, 0xf4, 0xc6, 0xef, 0x16, 0xd6, 0xa1, 0xef, 0x41, 0x84, - 0x75, 0xb0, 0xbf, 0xce, 0x6e, 0x67, 0xbd, 0xfc, 0x10, 0x18, 0xb7, 0xcb, 0xe6, 0x3d, 0x6e, 0x77, - 0x58, 0x59, 0xa2, 0x53, 0x39, 0x0c, 0xdc, 0xef, 0x5a, 0x70, 0x3a, 0xe3, 0xab, 0x34, 0x6e, 0xee, - 0x59, 0x18, 0x72, 0xda, 0x75, 0x57, 0xed, 0x65, 0x4d, 0x5b, 0x3c, 0x27, 0xca, 0xb1, 0xc2, 0x40, - 0x0b, 0x30, 0x45, 0xee, 0xb6, 0x5c, 0xae, 0x86, 0xd7, 0x4d, 0xc7, 0x8b, 0xdc, 0xbf, 0x78, 0x29, - 0x09, 0xc4, 0x69, 0x7c, 0x15, 0x1a, 0xae, 0x98, 0x1b, 0x1a, 0xee, 0x37, 0x2d, 0x18, 0x51, 0x6e, - 0xe3, 0x0f, 0x7d, 0xb4, 0xdf, 0x30, 0x47, 0xfb, 0x91, 0x0e, 0xa3, 0x9d, 0x33, 0xcc, 0x7f, 0x53, - 0x50, 0xfd, 0xad, 0xf8, 0x41, 0xd4, 0x03, 0x97, 0x78, 0xff, 0x6e, 0x2f, 0x17, 0x61, 0xc4, 0x69, - 0xb5, 0x24, 0x40, 0xda, 0x2f, 0xb2, 0x14, 0x16, 0x71, 0x31, 0xd6, 0x71, 0x94, 0x17, 0x4e, 0x31, - 0xd7, 0x0b, 0xa7, 0x0e, 0x10, 0x39, 0xc1, 0x06, 0x89, 0x68, 0x99, 0x30, 0xb7, 0xce, 0x3f, 0x6f, - 0xda, 0x91, 0xdb, 0x98, 0x75, 0xbd, 0x28, 0x8c, 0x82, 0xd9, 0xb2, 0x17, 0x5d, 0x0f, 0xf8, 0x33, - 0x55, 0x0b, 0xc0, 0xa8, 0x68, 0x61, 0x8d, 0xae, 0x0c, 0x91, 0xc2, 0xda, 0xe8, 0x37, 0x0d, 0x61, - 0x56, 0x45, 0x39, 0x56, 0x18, 0xf6, 0xcb, 0xec, 0xf6, 0x61, 0x63, 0x7a, 0xb0, 0xc0, 0x82, 0xff, - 0x34, 0xaa, 0x66, 0x83, 0xa9, 0x84, 0x17, 0xf5, 0xf0, 0x85, 0x9d, 0x0f, 0x7b, 0xda, 0xb0, 0xee, - 0xcf, 0x1a, 0xc7, 0x38, 0x44, 0x9f, 0x4c, 0x19, 0x37, 0x3d, 0xd7, 0xe5, 0xd6, 0x38, 0x80, 0x39, - 0x13, 0xcb, 0x67, 0xc7, 0xb2, 0x7d, 0x95, 0x2b, 0x62, 0x5f, 0x68, 0xf9, 0xec, 0x04, 0x00, 0xc7, - 0x38, 0x94, 0x61, 0x53, 0x7f, 0xc2, 0x69, 0x14, 0x87, 0x3d, 0x57, 0xd8, 0x21, 0xd6, 0x30, 0xd0, - 0x05, 0x21, 0xb4, 0xe0, 0xba, 0x87, 0x47, 0x12, 0x42, 0x0b, 0x39, 0x5c, 0x9a, 0xa4, 0xe9, 0x22, - 0x8c, 0x90, 0xbb, 0x11, 0x09, 0x3c, 0xa7, 0x41, 0x5b, 0xe8, 0x8f, 0xa3, 0xeb, 0x2e, 0xc5, 0xc5, - 0x58, 0xc7, 0x41, 0x6b, 0x30, 0x11, 0x72, 0x59, 0x9e, 0x4a, 0xb6, 0xc1, 0x65, 0xa2, 0x4f, 0x2b, - 0x87, 0x7d, 0x13, 0xbc, 0xcf, 0x8a, 0xf8, 0xe9, 0x24, 0xc3, 0x98, 0x24, 0x49, 0xa0, 0xd7, 0x61, - 0xbc, 0xe1, 0x3b, 0xf5, 0x79, 0xa7, 0xe1, 0x78, 0x35, 0x36, 0x3e, 0x43, 0x46, 0x2c, 0xcb, 0xf1, - 0x6b, 0x06, 0x14, 0x27, 0xb0, 0x29, 0x83, 0xa8, 0x97, 0x88, 0x04, 0x31, 0x8e, 0xb7, 0x41, 0xc2, - 0xe9, 0x61, 0xf6, 0x55, 0x8c, 0x41, 0xbc, 0x96, 0x83, 0x83, 0x73, 0x6b, 0xa3, 0x4b, 0x30, 0x2a, - 0x3f, 0x5f, 0x8b, 0xfa, 0x13, 0x3b, 0x34, 0x69, 0x30, 0x6c, 0x60, 0xa2, 0x10, 0x8e, 0xc9, 0xff, - 0x6b, 0x81, 0xb3, 0xbe, 0xee, 0xd6, 0x44, 0x28, 0x0c, 0xee, 0xfc, 0xfd, 0x31, 0xe9, 0x69, 0xba, - 0x94, 0x85, 0xb4, 0xbf, 0x5b, 0x3a, 0x25, 0x46, 0x2d, 0x13, 0x8e, 0xb3, 0x69, 0xa3, 0x15, 0x38, - 0xc2, 0x6d, 0x60, 0x16, 0x36, 0x49, 0x6d, 0x4b, 0x6e, 0x38, 0xc6, 0x35, 0x6a, 0x8e, 0x3f, 0x57, - 0xd2, 0x28, 0x38, 0xab, 0x1e, 0x7a, 0x07, 0xa6, 0x5b, 0xed, 0xdb, 0x0d, 0x37, 0xdc, 0x5c, 0xf5, - 0x23, 0x66, 0x42, 0x36, 0x57, 0xaf, 0x07, 0x24, 0xe4, 0xbe, 0xc1, 0xec, 0xea, 0x95, 0x91, 0x9a, - 0x2a, 0x39, 0x78, 0x38, 0x97, 0x02, 0xba, 0x07, 0xc7, 0x12, 0x0b, 0x41, 0x84, 0x5c, 0x19, 0xcf, - 0x4f, 0xb5, 0x55, 0xcd, 0xaa, 0x20, 0xa2, 0x17, 0x65, 0x81, 0x70, 0x76, 0x13, 0xe8, 0x15, 0x00, - 0xb7, 0xb5, 0xec, 0x34, 0xdd, 0x06, 0x7d, 0x8e, 0x1e, 0x61, 0x6b, 0x84, 0x3e, 0x4d, 0xa0, 0x5c, - 0x91, 0xa5, 0xf4, 0x6c, 0x16, 0xff, 0x76, 0xb0, 0x86, 0x8d, 0xae, 0xc1, 0xb8, 0xf8, 0xb7, 0x23, - 0xa6, 0x74, 0x4a, 0x65, 0x65, 0x1d, 0x97, 0x35, 0xd4, 0x3c, 0x26, 0x4a, 0x70, 0xa2, 0x2e, 0xda, - 0x80, 0xd3, 0x32, 0x25, 0xac, 0xbe, 0x3e, 0xe5, 0x1c, 0x84, 0x2c, 0xbf, 0xd5, 0x10, 0xf7, 0x29, - 0x9a, 0xeb, 0x84, 0x88, 0x3b, 0xd3, 0xa1, 0xf7, 0xba, 0xbe, 0xcc, 0xb9, 0xc7, 0xf8, 0xb1, 0x38, - 0x22, 0xe8, 0xb5, 0x24, 0x10, 0xa7, 0xf1, 0x91, 0x0f, 0xc7, 0x5c, 0x2f, 0x6b, 0x55, 0x1f, 0x67, - 0x84, 0x3e, 0xca, 0x9d, 0xe5, 0x3b, 0xaf, 0xe8, 0x4c, 0x38, 0xce, 0xa6, 0x8b, 0xca, 0x70, 0x24, - 0xe2, 0x05, 0x8b, 0x6e, 0xc8, 0xd3, 0xe7, 0xd0, 0x67, 0xdf, 0x09, 0xd6, 0xdc, 0x09, 0xba, 0x9a, - 0xd7, 0xd2, 0x60, 0x9c, 0x55, 0xe7, 0xbd, 0x19, 0x80, 0x7e, 0xc3, 0xa2, 0xb5, 0x35, 0x46, 0x1f, - 0x7d, 0x06, 0x46, 0xf5, 0xf1, 0x11, 0x4c, 0xcb, 0xb9, 0x6c, 0x3e, 0x58, 0x3b, 0x5e, 0xf8, 0x33, - 0x41, 0x1d, 0x21, 0x3a, 0x0c, 0x1b, 0x14, 0x51, 0x2d, 0x23, 0xc8, 0xc5, 0x85, 0xde, 0x98, 0xa2, - 0xde, 0xed, 0x1f, 0x09, 0x64, 0xef, 0x1c, 0x74, 0x0d, 0x86, 0x6a, 0x0d, 0x97, 0x78, 0x51, 0xb9, - 0xd2, 0x29, 0x50, 0xeb, 0x82, 0xc0, 0x11, 0x5b, 0x51, 0x64, 0xbd, 0xe2, 0x65, 0x58, 0x51, 0xb0, - 0x2f, 0xc1, 0x48, 0xb5, 0x41, 0x48, 0x8b, 0xfb, 0x71, 0xa1, 0xa7, 0xd8, 0xc3, 0x84, 0xb1, 0x96, - 0x16, 0x63, 0x2d, 0xf5, 0x37, 0x07, 0x63, 0x2a, 0x25, 0xdc, 0xfe, 0xb3, 0x02, 0x94, 0xba, 0x24, - 0x5f, 0x4b, 0xe8, 0xdb, 0xac, 0x9e, 0xf4, 0x6d, 0x73, 0x30, 0x11, 0xff, 0xd3, 0x45, 0x79, 0xca, - 0x18, 0xfa, 0xa6, 0x09, 0xc6, 0x49, 0xfc, 0x9e, 0xfd, 0x5a, 0x74, 0x95, 0x5d, 0x5f, 0x57, 0xcf, - 0x2c, 0x43, 0x55, 0xdf, 0xdf, 0xfb, 0xdb, 0x3b, 0x57, 0xed, 0x6a, 0x7f, 0xbd, 0x00, 0xc7, 0xd4, - 0x10, 0x7e, 0xef, 0x0e, 0xdc, 0x8d, 0xf4, 0xc0, 0x3d, 0x00, 0xa5, 0xb5, 0x7d, 0x1d, 0x06, 0x78, - 0xf4, 0xd8, 0x1e, 0x78, 0xfe, 0xc7, 0xcc, 0x40, 0xfe, 0x8a, 0xcd, 0x34, 0x82, 0xf9, 0xff, 0x98, - 0x05, 0x13, 0x09, 0x07, 0x49, 0x84, 0x35, 0x2f, 0xfa, 0xfb, 0xe1, 0xcb, 0xb3, 0x38, 0xfe, 0xb3, - 0xd0, 0xb7, 0xe9, 0x2b, 0x23, 0x65, 0x85, 0x71, 0xc5, 0x0f, 0x23, 0xcc, 0x20, 0xf6, 0xdf, 0x59, - 0xd0, 0xbf, 0xe6, 0xb8, 0x5e, 0x24, 0xb5, 0x1f, 0x56, 0x8e, 0xf6, 0xa3, 0x97, 0xef, 0x42, 0x2f, - 0xc1, 0x00, 0x59, 0x5f, 0x27, 0xb5, 0x48, 0xcc, 0xaa, 0x8c, 0xa6, 0x31, 0xb0, 0xc4, 0x4a, 0x29, - 0x13, 0xca, 0x1a, 0xe3, 0x7f, 0xb1, 0x40, 0x46, 0xb7, 0x60, 0x38, 0x72, 0x9b, 0x64, 0xae, 0x5e, - 0x17, 0x36, 0x01, 0xf7, 0x11, 0x02, 0x66, 0x4d, 0x12, 0xc0, 0x31, 0x2d, 0xfb, 0xcb, 0x05, 0x80, - 0x38, 0x5a, 0x5d, 0xb7, 0x4f, 0x9c, 0x4f, 0x69, 0x8b, 0xcf, 0x65, 0x68, 0x8b, 0x51, 0x4c, 0x30, - 0x43, 0x55, 0xac, 0x86, 0xa9, 0xd8, 0xd3, 0x30, 0xf5, 0x1d, 0x64, 0x98, 0x16, 0x60, 0x2a, 0x8e, - 0xb6, 0x67, 0x06, 0x1b, 0x65, 0xf7, 0xf7, 0x5a, 0x12, 0x88, 0xd3, 0xf8, 0x36, 0x81, 0xb3, 0x2a, - 0xe8, 0x98, 0xb8, 0x0b, 0x99, 0x2b, 0x81, 0xae, 0x7d, 0xef, 0x32, 0x4e, 0xb1, 0x3a, 0xbc, 0x90, - 0xab, 0x0e, 0xff, 0x45, 0x0b, 0x8e, 0x26, 0xdb, 0x61, 0x7e, 0xf7, 0x5f, 0xb4, 0xe0, 0x58, 0x9c, - 0x7b, 0x28, 0x6d, 0x82, 0xf0, 0x62, 0xc7, 0x40, 0x6a, 0x39, 0x3d, 0x8e, 0xc3, 0xb6, 0xac, 0x64, - 0x91, 0xc6, 0xd9, 0x2d, 0xda, 0xff, 0x5f, 0x1f, 0x4c, 0xe7, 0x45, 0x60, 0x63, 0x9e, 0x46, 0xce, - 0xdd, 0xea, 0x16, 0xb9, 0x23, 0xfc, 0x39, 0x62, 0x4f, 0x23, 0x5e, 0x8c, 0x25, 0x3c, 0x99, 0x6e, - 0xaa, 0xd0, 0x63, 0xba, 0xa9, 0x4d, 0x98, 0xba, 0xb3, 0x49, 0xbc, 0x1b, 0x5e, 0xe8, 0x44, 0x6e, - 0xb8, 0xee, 0x32, 0x05, 0x3a, 0x5f, 0x37, 0xaf, 0x48, 0xaf, 0x8b, 0x5b, 0x49, 0x84, 0xfd, 0xdd, - 0xd2, 0x69, 0xa3, 0x20, 0xee, 0x32, 0x3f, 0x48, 0x70, 0x9a, 0x68, 0x3a, 0x5b, 0x57, 0xdf, 0x43, - 0xce, 0xd6, 0xd5, 0x74, 0x85, 0xd9, 0x8d, 0x74, 0x23, 0x61, 0xcf, 0xd6, 0x15, 0x55, 0x8a, 0x35, - 0x0c, 0xf4, 0x29, 0x40, 0x7a, 0xba, 0x45, 0x23, 0x00, 0xee, 0x73, 0x7b, 0xbb, 0x25, 0xb4, 0x9a, - 0x82, 0xee, 0xef, 0x96, 0x8e, 0xd0, 0xd2, 0xb2, 0x47, 0x9f, 0xbf, 0x71, 0xd4, 0xc0, 0x0c, 0x42, - 0xe8, 0x16, 0x4c, 0xd2, 0x52, 0xb6, 0xa3, 0x64, 0x74, 0x5d, 0xfe, 0x64, 0x7d, 0x66, 0x6f, 0xb7, - 0x34, 0xb9, 0x9a, 0x80, 0xe5, 0x91, 0x4e, 0x11, 0xc9, 0x48, 0xda, 0x35, 0xd4, 0x6b, 0xd2, 0x2e, - 0xfb, 0x8b, 0x16, 0x9c, 0xa4, 0x17, 0x5c, 0xfd, 0x5a, 0x8e, 0x16, 0xdd, 0x69, 0xb9, 0x5c, 0x4f, - 0x23, 0xae, 0x1a, 0x26, 0xab, 0xab, 0x94, 0xb9, 0x96, 0x46, 0x41, 0xe9, 0x09, 0xbf, 0xe5, 0x7a, - 0xf5, 0xe4, 0x09, 0x7f, 0xd5, 0xf5, 0xea, 0x98, 0x41, 0xd4, 0x95, 0x55, 0xcc, 0x8d, 0xd6, 0xff, - 0x35, 0xba, 0x57, 0x69, 0x5f, 0xbe, 0xa3, 0xdd, 0x40, 0xcf, 0xe8, 0x3a, 0x55, 0x61, 0x3e, 0x99, - 0xab, 0x4f, 0xfd, 0x82, 0x05, 0xc2, 0xfb, 0xbd, 0x87, 0x3b, 0xf9, 0x6d, 0x18, 0xdd, 0x4e, 0xa7, - 0xa2, 0x3d, 0x9b, 0x1f, 0x0e, 0x40, 0x24, 0xa0, 0x55, 0x2c, 0xba, 0x91, 0x76, 0xd6, 0xa0, 0x65, - 0xd7, 0x41, 0x40, 0x17, 0x09, 0xd3, 0x6a, 0x74, 0xef, 0xcd, 0xf3, 0x00, 0x75, 0x86, 0xcb, 0xf2, - 0xd3, 0x17, 0x4c, 0x8e, 0x6b, 0x51, 0x41, 0xb0, 0x86, 0x65, 0xff, 0x7a, 0x11, 0x46, 0x64, 0xea, - 0xd3, 0xb6, 0xd7, 0x8b, 0xec, 0x51, 0x67, 0x9c, 0x0a, 0x5d, 0x19, 0xa7, 0x77, 0x60, 0x2a, 0x20, - 0xb5, 0x76, 0x10, 0xba, 0xdb, 0x44, 0x82, 0xc5, 0x26, 0x99, 0xe5, 0xc9, 0x22, 0x12, 0xc0, 0x7d, - 0x16, 0x22, 0x2b, 0x51, 0xc8, 0x94, 0xc6, 0x69, 0x42, 0xe8, 0x02, 0x0c, 0x33, 0xd1, 0x7b, 0x25, - 0x16, 0x08, 0x2b, 0xc1, 0xd7, 0x8a, 0x04, 0xe0, 0x18, 0x87, 0x3d, 0x0e, 0xda, 0xb7, 0x19, 0x7a, - 0xc2, 0x13, 0xbc, 0xca, 0x8b, 0xb1, 0x84, 0xa3, 0x8f, 0xc3, 0x24, 0xaf, 0x17, 0xf8, 0x2d, 0x67, - 0x83, 0xab, 0x04, 0xfb, 0x55, 0x78, 0x9d, 0xc9, 0x95, 0x04, 0x6c, 0x7f, 0xb7, 0x74, 0x34, 0x59, - 0xc6, 0xba, 0x9d, 0xa2, 0xc2, 0x2c, 0xff, 0x78, 0x23, 0xf4, 0xce, 0x48, 0x19, 0x0c, 0xc6, 0x20, - 0xac, 0xe3, 0xd9, 0xff, 0x6a, 0xc1, 0x94, 0x36, 0x55, 0x3d, 0xe7, 0xeb, 0x30, 0x06, 0xa9, 0xd0, - 0xc3, 0x20, 0x1d, 0x2c, 0xda, 0x43, 0xe6, 0x0c, 0xf7, 0x3d, 0xa0, 0x19, 0xb6, 0x3f, 0x03, 0x28, - 0x9d, 0x57, 0x17, 0xbd, 0xc9, 0x0d, 0xf9, 0xdd, 0x80, 0xd4, 0x3b, 0x29, 0xfc, 0xf5, 0xc8, 0x39, - 0xd2, 0x73, 0x95, 0xd7, 0xc2, 0xaa, 0xbe, 0xfd, 0xe3, 0x7d, 0x30, 0x99, 0x8c, 0xd5, 0x81, 0xae, - 0xc0, 0x00, 0xe7, 0xd2, 0x05, 0xf9, 0x0e, 0xf6, 0x64, 0x5a, 0x84, 0x0f, 0x9e, 0x4b, 0x87, 0x73, - 0xf7, 0xa2, 0x3e, 0x7a, 0x07, 0x46, 0xea, 0xfe, 0x1d, 0xef, 0x8e, 0x13, 0xd4, 0xe7, 0x2a, 0x65, - 0x71, 0x42, 0x64, 0x0a, 0xa0, 0x16, 0x63, 0x34, 0x3d, 0x6a, 0x08, 0xb3, 0x9d, 0x88, 0x41, 0x58, - 0x27, 0x87, 0xd6, 0x58, 0x7a, 0xa7, 0x75, 0x77, 0x63, 0xc5, 0x69, 0x75, 0xf2, 0xea, 0x5a, 0x90, - 0x48, 0x1a, 0xe5, 0x31, 0x91, 0x03, 0x8a, 0x03, 0x70, 0x4c, 0x08, 0x7d, 0x0e, 0x8e, 0x84, 0x39, - 0x2a, 0xb1, 0xbc, 0x34, 0xeb, 0x9d, 0xb4, 0x44, 0x5c, 0x98, 0x92, 0xa5, 0x3c, 0xcb, 0x6a, 0x06, - 0xdd, 0x05, 0x24, 0x44, 0xcf, 0x6b, 0x41, 0x3b, 0x8c, 0xe6, 0xdb, 0x5e, 0xbd, 0x21, 0xd3, 0x3f, - 0x7d, 0x38, 0x5b, 0x4e, 0x90, 0xc4, 0xd6, 0xda, 0x66, 0xe1, 0x85, 0xd3, 0x18, 0x38, 0xa3, 0x0d, - 0xfb, 0x0b, 0x7d, 0x30, 0x23, 0x13, 0x59, 0x67, 0x78, 0xaf, 0x7c, 0xde, 0x4a, 0xb8, 0xaf, 0xbc, - 0x92, 0x7f, 0xd0, 0x3f, 0x34, 0x27, 0x96, 0x2f, 0xa5, 0x9d, 0x58, 0x5e, 0x3b, 0x60, 0x37, 0x1e, - 0x98, 0x2b, 0xcb, 0xf7, 0xac, 0xff, 0xc9, 0xde, 0x51, 0x30, 0xae, 0x66, 0x84, 0x79, 0xec, 0xf6, - 0x8a, 0x54, 0x1d, 0xe5, 0x3c, 0xff, 0xaf, 0x08, 0x1c, 0xe3, 0xb2, 0x1f, 0x95, 0x11, 0xde, 0xd9, - 0x39, 0xab, 0xe8, 0x50, 0x9a, 0xa4, 0xd9, 0x8a, 0x76, 0x16, 0xdd, 0x40, 0xf4, 0x38, 0x93, 0xe6, - 0x92, 0xc0, 0x49, 0xd3, 0x94, 0x10, 0xac, 0xe8, 0xa0, 0x6d, 0x98, 0xda, 0x60, 0x11, 0x9f, 0xb4, - 0x9c, 0xd2, 0xe2, 0x5c, 0xc8, 0xdc, 0xb7, 0x97, 0x17, 0x96, 0xf2, 0x13, 0x50, 0xf3, 0xc7, 0x5f, - 0x0a, 0x05, 0xa7, 0x9b, 0xa0, 0x5b, 0xe3, 0xa8, 0x73, 0x27, 0x5c, 0x6a, 0x38, 0x61, 0xe4, 0xd6, - 0xe6, 0x1b, 0x7e, 0x6d, 0xab, 0x1a, 0xf9, 0x81, 0x4c, 0x16, 0x99, 0xf9, 0xf6, 0x9a, 0xbb, 0x55, - 0x4d, 0xe1, 0x1b, 0xcd, 0x4f, 0xef, 0xed, 0x96, 0x8e, 0x66, 0x61, 0xe1, 0xcc, 0xb6, 0xd0, 0x2a, - 0x0c, 0x6e, 0xb8, 0x11, 0x26, 0x2d, 0x5f, 0x9c, 0x16, 0x99, 0x47, 0xe1, 0x65, 0x8e, 0x62, 0xb4, - 0xc4, 0x22, 0x52, 0x09, 0x00, 0x96, 0x44, 0xd0, 0x9b, 0xea, 0x12, 0x18, 0xc8, 0x17, 0xc0, 0xa6, - 0x6d, 0xef, 0x32, 0xaf, 0x81, 0xd7, 0xa1, 0xe8, 0xad, 0x87, 0x9d, 0x62, 0xf1, 0xac, 0x2e, 0x1b, - 0xf2, 0xb3, 0xf9, 0x41, 0xfa, 0x34, 0x5e, 0x5d, 0xae, 0x62, 0x5a, 0x91, 0xb9, 0xbd, 0x86, 0xb5, - 0xd0, 0x15, 0x89, 0xa7, 0x32, 0xbd, 0x80, 0xcb, 0xd5, 0x85, 0x6a, 0xd9, 0xa0, 0xc1, 0xa2, 0x1a, - 0xb2, 0x62, 0xcc, 0xab, 0xa3, 0x9b, 0x30, 0xbc, 0xc1, 0x0f, 0xbe, 0xf5, 0x50, 0x24, 0xb3, 0xcf, - 0xbc, 0x8c, 0x2e, 0x4b, 0x24, 0x83, 0x1e, 0xbb, 0x32, 0x14, 0x08, 0xc7, 0xa4, 0xd0, 0x17, 0x2c, - 0x38, 0xd6, 0x4a, 0x48, 0x50, 0x99, 0xb3, 0x9a, 0x30, 0x53, 0xcb, 0x74, 0x00, 0xa8, 0x64, 0x55, - 0x30, 0x1a, 0x64, 0xea, 0x97, 0x4c, 0x34, 0x9c, 0xdd, 0x1c, 0x1d, 0xe8, 0xe0, 0x76, 0xbd, 0x53, - 0xae, 0xa2, 0x44, 0x60, 0x22, 0x3e, 0xd0, 0x78, 0x7e, 0x11, 0xd3, 0x8a, 0x68, 0x0d, 0x60, 0xbd, - 0x41, 0x44, 0xc4, 0x47, 0x61, 0x14, 0x95, 0x79, 0xfb, 0x2f, 0x2b, 0x2c, 0x41, 0x87, 0xbd, 0x44, - 0xe3, 0x52, 0xac, 0xd1, 0xa1, 0x4b, 0xa9, 0xe6, 0x7a, 0x75, 0x12, 0x30, 0xe5, 0x56, 0xce, 0x52, - 0x5a, 0x60, 0x18, 0xe9, 0xa5, 0xc4, 0xcb, 0xb1, 0xa0, 0xc0, 0x68, 0x91, 0xd6, 0xe6, 0x7a, 0xd8, - 0x29, 0x2b, 0xc6, 0x02, 0x69, 0x6d, 0x26, 0x16, 0x14, 0xa7, 0xc5, 0xca, 0xb1, 0xa0, 0x40, 0xb7, - 0xcc, 0x3a, 0xdd, 0x40, 0x24, 0x98, 0x9e, 0xc8, 0xdf, 0x32, 0xcb, 0x1c, 0x25, 0xbd, 0x65, 0x04, - 0x00, 0x4b, 0x22, 0xe8, 0xd3, 0x26, 0xb7, 0x33, 0xc9, 0x68, 0x3e, 0xd3, 0x85, 0xdb, 0x31, 0xe8, - 0x76, 0xe6, 0x77, 0x5e, 0x81, 0xc2, 0x7a, 0x8d, 0x29, 0xc5, 0x72, 0x74, 0x06, 0xcb, 0x0b, 0x06, - 0x35, 0x16, 0x65, 0x7e, 0x79, 0x01, 0x17, 0xd6, 0x6b, 0x74, 0xe9, 0x3b, 0xf7, 0xda, 0x01, 0x59, - 0x76, 0x1b, 0x44, 0x64, 0xc8, 0xc8, 0x5c, 0xfa, 0x73, 0x12, 0x29, 0xbd, 0xf4, 0x15, 0x08, 0xc7, - 0xa4, 0x28, 0xdd, 0x98, 0x07, 0x3b, 0x92, 0x4f, 0x57, 0xb1, 0x5a, 0x69, 0xba, 0x99, 0x5c, 0xd8, - 0x16, 0x8c, 0x6d, 0x87, 0xad, 0x4d, 0x22, 0x4f, 0x45, 0xa6, 0xae, 0xcb, 0x89, 0x54, 0x71, 0x53, - 0x20, 0xba, 0x41, 0xd4, 0x76, 0x1a, 0xa9, 0x83, 0x9c, 0x89, 0x56, 0x6e, 0xea, 0xc4, 0xb0, 0x49, - 0x9b, 0x2e, 0x84, 0x77, 0x79, 0x38, 0x39, 0xa6, 0xb8, 0xcb, 0x59, 0x08, 0x19, 0x11, 0xe7, 0xf8, - 0x42, 0x10, 0x00, 0x2c, 0x89, 0xa8, 0xc1, 0x66, 0x17, 0xd0, 0xf1, 0x2e, 0x83, 0x9d, 0xea, 0x6f, - 0x3c, 0xd8, 0xec, 0xc2, 0x89, 0x49, 0xb1, 0x8b, 0xa6, 0xb5, 0xe9, 0x47, 0xbe, 0x97, 0xb8, 0xe4, - 0x4e, 0xe4, 0x5f, 0x34, 0x95, 0x0c, 0xfc, 0xf4, 0x45, 0x93, 0x85, 0x85, 0x33, 0xdb, 0xa2, 0x1f, - 0xd7, 0x92, 0x91, 0x01, 0x45, 0x16, 0x8f, 0xa7, 0x72, 0x02, 0x6b, 0xa6, 0xc3, 0x07, 0xf2, 0x8f, - 0x53, 0x20, 0x1c, 0x93, 0x42, 0x75, 0x18, 0x6f, 0x19, 0x11, 0x67, 0x59, 0x36, 0x92, 0x1c, 0xbe, - 0x20, 0x2b, 0x36, 0x2d, 0x97, 0x10, 0x99, 0x10, 0x9c, 0xa0, 0xc9, 0x2c, 0xf7, 0xb8, 0xab, 0x1f, - 0x4b, 0x56, 0x92, 0x33, 0xd5, 0x19, 0xde, 0x80, 0x7c, 0xaa, 0x05, 0x00, 0x4b, 0x22, 0x74, 0x34, - 0x84, 0x83, 0x9a, 0x1f, 0xb2, 0x9c, 0x3f, 0x79, 0x0a, 0xf6, 0x2c, 0x35, 0x91, 0x0c, 0xb3, 0x2e, - 0x40, 0x38, 0x26, 0x45, 0x4f, 0x72, 0x7a, 0xe1, 0x9d, 0xca, 0x3f, 0xc9, 0x93, 0xd7, 0x1d, 0x3b, - 0xc9, 0xe9, 0x65, 0x57, 0x14, 0x57, 0x9d, 0x8a, 0x0a, 0xce, 0xf2, 0x95, 0xe4, 0xf4, 0x4b, 0x85, - 0x15, 0x4f, 0xf7, 0x4b, 0x81, 0x70, 0x4c, 0x8a, 0x5d, 0xc5, 0x2c, 0x34, 0xdd, 0x99, 0x0e, 0x57, - 0x31, 0x45, 0xc8, 0xb8, 0x8a, 0xb5, 0xd0, 0x75, 0xf6, 0x8f, 0x17, 0xe0, 0x4c, 0xe7, 0x7d, 0x1b, - 0xeb, 0xd0, 0x2a, 0xb1, 0xcd, 0x52, 0x42, 0x87, 0xc6, 0x25, 0x3a, 0x31, 0x56, 0xcf, 0x01, 0x87, - 0x2f, 0xc3, 0x94, 0x72, 0x47, 0x6c, 0xb8, 0xb5, 0x1d, 0x2d, 0x49, 0xa9, 0x0a, 0xcd, 0x53, 0x4d, - 0x22, 0xe0, 0x74, 0x1d, 0x34, 0x07, 0x13, 0x46, 0x61, 0x79, 0x51, 0x3c, 0xff, 0xe3, 0x4c, 0x1b, - 0x26, 0x18, 0x27, 0xf1, 0xed, 0xdf, 0xb0, 0xe0, 0x44, 0x4e, 0xfe, 0xfb, 0x9e, 0xe3, 0xe9, 0xae, - 0xc3, 0x44, 0xcb, 0xac, 0xda, 0x25, 0x04, 0xb8, 0x91, 0x65, 0x5f, 0xf5, 0x35, 0x01, 0xc0, 0x49, - 0xa2, 0xf6, 0xaf, 0x15, 0xe0, 0x74, 0x47, 0xfb, 0x7a, 0x84, 0xe1, 0xf8, 0x46, 0x33, 0x74, 0x16, - 0x02, 0x52, 0x27, 0x5e, 0xe4, 0x3a, 0x8d, 0x6a, 0x8b, 0xd4, 0x34, 0x2d, 0x28, 0x33, 0x54, 0xbf, - 0xbc, 0x52, 0x9d, 0x4b, 0x63, 0xe0, 0x9c, 0x9a, 0x68, 0x19, 0x50, 0x1a, 0x22, 0x66, 0x98, 0x3d, - 0x71, 0xd3, 0xf4, 0x70, 0x46, 0x0d, 0xf4, 0x32, 0x8c, 0x29, 0xbb, 0x7d, 0x6d, 0xc6, 0xd9, 0x05, - 0x81, 0x75, 0x00, 0x36, 0xf1, 0xd0, 0x45, 0x9e, 0x82, 0x49, 0x24, 0xeb, 0x12, 0x2a, 0xd3, 0x09, - 0x99, 0x5f, 0x49, 0x14, 0x63, 0x1d, 0x67, 0xfe, 0xd2, 0x5f, 0x7c, 0xeb, 0xcc, 0x87, 0xfe, 0xea, - 0x5b, 0x67, 0x3e, 0xf4, 0xb7, 0xdf, 0x3a, 0xf3, 0xa1, 0x1f, 0xda, 0x3b, 0x63, 0xfd, 0xc5, 0xde, - 0x19, 0xeb, 0xaf, 0xf6, 0xce, 0x58, 0x7f, 0xbb, 0x77, 0xc6, 0xfa, 0xdf, 0xf7, 0xce, 0x58, 0x5f, - 0xfe, 0x3f, 0xce, 0x7c, 0xe8, 0x6d, 0x14, 0x47, 0xa8, 0xbe, 0x40, 0x67, 0xe7, 0xc2, 0xf6, 0xc5, - 0xff, 0x10, 0x00, 0x00, 0xff, 0xff, 0xf5, 0xf1, 0x8c, 0x4c, 0x2d, 0x26, 0x01, 0x00, + // 16665 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0xbd, 0x5b, 0x90, 0x5c, 0x49, + 0x76, 0x18, 0xb6, 0xb7, 0xaa, 0x9f, 0xa7, 0xdf, 0x89, 0x57, 0xa1, 0x07, 0x40, 0x61, 0xee, 0xcc, + 0x60, 0x30, 0x3b, 0x33, 0x8d, 0xc5, 0x3c, 0x76, 0xb1, 0x33, 0xb3, 0xc3, 0xe9, 0x27, 0xd0, 0x03, + 0x74, 0xa3, 0x26, 0xab, 0x01, 0xec, 0x63, 0x76, 0xb5, 0x17, 0x55, 0xd9, 0xdd, 0x77, 0xbb, 0xea, + 0xde, 0x9a, 0x7b, 0x6f, 0x35, 0xd0, 0x30, 0x15, 0xa4, 0x56, 0xe6, 0x4a, 0x4b, 0xd2, 0x11, 0x1b, + 0x0a, 0x4b, 0x72, 0x90, 0x0a, 0x7e, 0xe8, 0x45, 0xd2, 0xb4, 0x64, 0x52, 0xa4, 0x45, 0x59, 0x14, + 0x29, 0xda, 0x96, 0x23, 0x68, 0x7f, 0xc8, 0x14, 0x23, 0xcc, 0x65, 0x58, 0xe1, 0x96, 0xd9, 0xb6, + 0x42, 0xc1, 0x0f, 0x53, 0x0a, 0xda, 0x1f, 0x76, 0x87, 0x6c, 0x2a, 0xf2, 0x79, 0x33, 0xef, 0xab, + 0xaa, 0x31, 0x40, 0xef, 0x70, 0x63, 0xfe, 0xaa, 0xf2, 0x9c, 0x3c, 0x99, 0x37, 0x1f, 0x27, 0x4f, + 0x9e, 0x73, 0xf2, 0x1c, 0xb0, 0x77, 0xae, 0x85, 0x73, 0xae, 0x7f, 0xc5, 0xe9, 0xb8, 0x57, 0x1a, + 0x7e, 0x40, 0xae, 0xec, 0x5e, 0xbd, 0xb2, 0x45, 0x3c, 0x12, 0x38, 0x11, 0x69, 0xce, 0x75, 0x02, + 0x3f, 0xf2, 0x11, 0xe2, 0x38, 0x73, 0x4e, 0xc7, 0x9d, 0xa3, 0x38, 0x73, 0xbb, 0x57, 0x67, 0x5f, + 0xdd, 0x72, 0xa3, 0xed, 0xee, 0xfd, 0xb9, 0x86, 0xdf, 0xbe, 0xb2, 0xe5, 0x6f, 0xf9, 0x57, 0x18, + 0xea, 0xfd, 0xee, 0x26, 0xfb, 0xc7, 0xfe, 0xb0, 0x5f, 0x9c, 0xc4, 0xec, 0x1b, 0x71, 0x33, 0x6d, + 0xa7, 0xb1, 0xed, 0x7a, 0x24, 0xd8, 0xbb, 0xd2, 0xd9, 0xd9, 0x62, 0xed, 0x06, 0x24, 0xf4, 0xbb, + 0x41, 0x83, 0x24, 0x1b, 0x2e, 0xac, 0x15, 0x5e, 0x69, 0x93, 0xc8, 0xc9, 0xe8, 0xee, 0xec, 0x95, + 0xbc, 0x5a, 0x41, 0xd7, 0x8b, 0xdc, 0x76, 0xba, 0x99, 0xcf, 0xf7, 0xaa, 0x10, 0x36, 0xb6, 0x49, + 0xdb, 0x49, 0xd5, 0x7b, 0x3d, 0xaf, 0x5e, 0x37, 0x72, 0x5b, 0x57, 0x5c, 0x2f, 0x0a, 0xa3, 0x20, + 0x59, 0xc9, 0xfe, 0xbe, 0x05, 0x17, 0xe7, 0xef, 0xd5, 0x97, 0x5b, 0x4e, 0x18, 0xb9, 0x8d, 0x85, + 0x96, 0xdf, 0xd8, 0xa9, 0x47, 0x7e, 0x40, 0xee, 0xfa, 0xad, 0x6e, 0x9b, 0xd4, 0xd9, 0x40, 0xa0, + 0x57, 0x60, 0x64, 0x97, 0xfd, 0x5f, 0x5d, 0xaa, 0x58, 0x17, 0xad, 0xcb, 0xa3, 0x0b, 0xd3, 0xbf, + 0xb3, 0x5f, 0xfd, 0xcc, 0xc1, 0x7e, 0x75, 0xe4, 0xae, 0x28, 0xc7, 0x0a, 0x03, 0x5d, 0x82, 0xa1, + 0xcd, 0x70, 0x63, 0xaf, 0x43, 0x2a, 0x25, 0x86, 0x3b, 0x29, 0x70, 0x87, 0x56, 0xea, 0xb4, 0x14, + 0x0b, 0x28, 0xba, 0x02, 0xa3, 0x1d, 0x27, 0x88, 0xdc, 0xc8, 0xf5, 0xbd, 0x4a, 0xf9, 0xa2, 0x75, + 0x79, 0x70, 0x61, 0x46, 0xa0, 0x8e, 0xd6, 0x24, 0x00, 0xc7, 0x38, 0xb4, 0x1b, 0x01, 0x71, 0x9a, + 0xb7, 0xbd, 0xd6, 0x5e, 0x65, 0xe0, 0xa2, 0x75, 0x79, 0x24, 0xee, 0x06, 0x16, 0xe5, 0x58, 0x61, + 0xd8, 0x3f, 0x53, 0x82, 0x91, 0xf9, 0xcd, 0x4d, 0xd7, 0x73, 0xa3, 0x3d, 0x74, 0x17, 0xc6, 0x3d, + 0xbf, 0x49, 0xe4, 0x7f, 0xf6, 0x15, 0x63, 0xaf, 0x5d, 0x9c, 0x4b, 0x2f, 0xa5, 0xb9, 0x75, 0x0d, + 0x6f, 0x61, 0xfa, 0x60, 0xbf, 0x3a, 0xae, 0x97, 0x60, 0x83, 0x0e, 0xc2, 0x30, 0xd6, 0xf1, 0x9b, + 0x8a, 0x6c, 0x89, 0x91, 0xad, 0x66, 0x91, 0xad, 0xc5, 0x68, 0x0b, 0x53, 0x07, 0xfb, 0xd5, 0x31, + 0xad, 0x00, 0xeb, 0x44, 0xd0, 0x7d, 0x98, 0xa2, 0x7f, 0xbd, 0xc8, 0x55, 0x74, 0xcb, 0x8c, 0xee, + 0x73, 0x79, 0x74, 0x35, 0xd4, 0x85, 0x13, 0x07, 0xfb, 0xd5, 0xa9, 0x44, 0x21, 0x4e, 0x12, 0xb4, + 0x7f, 0xda, 0x82, 0xa9, 0xf9, 0x4e, 0x67, 0x3e, 0x68, 0xfb, 0x41, 0x2d, 0xf0, 0x37, 0xdd, 0x16, + 0x41, 0x5f, 0x80, 0x81, 0x88, 0xce, 0x1a, 0x9f, 0xe1, 0xe7, 0xc4, 0xd0, 0x0e, 0xd0, 0xb9, 0x3a, + 0xdc, 0xaf, 0x9e, 0x48, 0xa0, 0xb3, 0xa9, 0x64, 0x15, 0xd0, 0x7b, 0x30, 0xdd, 0xf2, 0x1b, 0x4e, + 0x6b, 0xdb, 0x0f, 0x23, 0x01, 0x15, 0x53, 0x7f, 0xf2, 0x60, 0xbf, 0x3a, 0x7d, 0x2b, 0x01, 0xc3, + 0x29, 0x6c, 0xfb, 0x11, 0x4c, 0xce, 0x47, 0x91, 0xd3, 0xd8, 0x26, 0x4d, 0xbe, 0xa0, 0xd0, 0x1b, + 0x30, 0xe0, 0x39, 0x6d, 0xd9, 0x99, 0x8b, 0xb2, 0x33, 0xeb, 0x4e, 0x9b, 0x76, 0x66, 0xfa, 0x8e, + 0xe7, 0x7e, 0xd4, 0x15, 0x8b, 0x94, 0x96, 0x61, 0x86, 0x8d, 0x5e, 0x03, 0x68, 0x92, 0x5d, 0xb7, + 0x41, 0x6a, 0x4e, 0xb4, 0x2d, 0xfa, 0x80, 0x44, 0x5d, 0x58, 0x52, 0x10, 0xac, 0x61, 0xd9, 0x0f, + 0x61, 0x74, 0x7e, 0xd7, 0x77, 0x9b, 0x35, 0xbf, 0x19, 0xa2, 0x1d, 0x98, 0xea, 0x04, 0x64, 0x93, + 0x04, 0xaa, 0xa8, 0x62, 0x5d, 0x2c, 0x5f, 0x1e, 0x7b, 0xed, 0x72, 0xe6, 0xd8, 0x9b, 0xa8, 0xcb, + 0x5e, 0x14, 0xec, 0x2d, 0x9c, 0x11, 0xed, 0x4d, 0x25, 0xa0, 0x38, 0x49, 0xd9, 0xfe, 0x67, 0x25, + 0x38, 0x35, 0xff, 0xa8, 0x1b, 0x90, 0x25, 0x37, 0xdc, 0x49, 0x6e, 0xb8, 0xa6, 0x1b, 0xee, 0xac, + 0xc7, 0x23, 0xa0, 0x56, 0xfa, 0x92, 0x28, 0xc7, 0x0a, 0x03, 0xbd, 0x0a, 0xc3, 0xf4, 0xf7, 0x1d, + 0xbc, 0x2a, 0x3e, 0xf9, 0x84, 0x40, 0x1e, 0x5b, 0x72, 0x22, 0x67, 0x89, 0x83, 0xb0, 0xc4, 0x41, + 0x6b, 0x30, 0xd6, 0x60, 0xfc, 0x61, 0x6b, 0xcd, 0x6f, 0x12, 0xb6, 0xb6, 0x46, 0x17, 0x5e, 0xa6, + 0xe8, 0x8b, 0x71, 0xf1, 0xe1, 0x7e, 0xb5, 0xc2, 0xfb, 0x26, 0x48, 0x68, 0x30, 0xac, 0xd7, 0x47, + 0xb6, 0xda, 0xee, 0x03, 0x8c, 0x12, 0x64, 0x6c, 0xf5, 0xcb, 0xda, 0xce, 0x1d, 0x64, 0x3b, 0x77, + 0x3c, 0x7b, 0xd7, 0xa2, 0xab, 0x30, 0xb0, 0xe3, 0x7a, 0xcd, 0xca, 0x10, 0xa3, 0x75, 0x9e, 0xce, + 0xf9, 0x4d, 0xd7, 0x6b, 0x1e, 0xee, 0x57, 0x67, 0x8c, 0xee, 0xd0, 0x42, 0xcc, 0x50, 0xed, 0xff, + 0xcb, 0x82, 0x2a, 0x83, 0xad, 0xb8, 0x2d, 0x52, 0x23, 0x41, 0xe8, 0x86, 0x11, 0xf1, 0x22, 0x63, + 0x40, 0x5f, 0x03, 0x08, 0x49, 0x23, 0x20, 0x91, 0x36, 0xa4, 0x6a, 0x61, 0xd4, 0x15, 0x04, 0x6b, + 0x58, 0x94, 0x3f, 0x85, 0xdb, 0x4e, 0xc0, 0xd6, 0x97, 0x18, 0x58, 0xc5, 0x9f, 0xea, 0x12, 0x80, + 0x63, 0x1c, 0x83, 0x3f, 0x95, 0x7b, 0xf1, 0x27, 0xf4, 0x25, 0x98, 0x8a, 0x1b, 0x0b, 0x3b, 0x4e, + 0x43, 0x0e, 0x20, 0xdb, 0xc1, 0x75, 0x13, 0x84, 0x93, 0xb8, 0xf6, 0x7f, 0x6e, 0x89, 0xc5, 0x43, + 0xbf, 0xfa, 0x13, 0xfe, 0xad, 0xf6, 0x3f, 0xb2, 0x60, 0x78, 0xc1, 0xf5, 0x9a, 0xae, 0xb7, 0x85, + 0xbe, 0x09, 0x23, 0xf4, 0xa8, 0x6c, 0x3a, 0x91, 0x23, 0xd8, 0xf0, 0xe7, 0xb4, 0xbd, 0xa5, 0x4e, + 0xae, 0xb9, 0xce, 0xce, 0x16, 0x2d, 0x08, 0xe7, 0x28, 0x36, 0xdd, 0x6d, 0xb7, 0xef, 0x7f, 0x8b, + 0x34, 0xa2, 0x35, 0x12, 0x39, 0xf1, 0xe7, 0xc4, 0x65, 0x58, 0x51, 0x45, 0x37, 0x61, 0x28, 0x72, + 0x82, 0x2d, 0x12, 0x09, 0x7e, 0x9c, 0xc9, 0x37, 0x79, 0x4d, 0x4c, 0x77, 0x24, 0xf1, 0x1a, 0x24, + 0x3e, 0xa5, 0x36, 0x58, 0x55, 0x2c, 0x48, 0xd8, 0xff, 0xdf, 0x30, 0x9c, 0x5d, 0xac, 0xaf, 0xe6, + 0xac, 0xab, 0x4b, 0x30, 0xd4, 0x0c, 0xdc, 0x5d, 0x12, 0x88, 0x71, 0x56, 0x54, 0x96, 0x58, 0x29, + 0x16, 0x50, 0x74, 0x0d, 0xc6, 0xf9, 0xf9, 0x78, 0xc3, 0xf1, 0x9a, 0x31, 0x7b, 0x14, 0xd8, 0xe3, + 0x77, 0x35, 0x18, 0x36, 0x30, 0x8f, 0xb8, 0xa8, 0x2e, 0x25, 0x36, 0x63, 0xde, 0xd9, 0xfb, 0x5d, + 0x0b, 0xa6, 0x79, 0x33, 0xf3, 0x51, 0x14, 0xb8, 0xf7, 0xbb, 0x11, 0x09, 0x2b, 0x83, 0x8c, 0xd3, + 0x2d, 0x66, 0x8d, 0x56, 0xee, 0x08, 0xcc, 0xdd, 0x4d, 0x50, 0xe1, 0x4c, 0xb0, 0x22, 0xda, 0x9d, + 0x4e, 0x82, 0x71, 0xaa, 0x59, 0xf4, 0x17, 0x2d, 0x98, 0x6d, 0xf8, 0x5e, 0x14, 0xf8, 0xad, 0x16, + 0x09, 0x6a, 0xdd, 0xfb, 0x2d, 0x37, 0xdc, 0xe6, 0xeb, 0x14, 0x93, 0x4d, 0xc6, 0x09, 0x72, 0xe6, + 0x50, 0x21, 0x89, 0x39, 0xbc, 0x70, 0xb0, 0x5f, 0x9d, 0x5d, 0xcc, 0x25, 0x85, 0x0b, 0x9a, 0x41, + 0x3b, 0x80, 0xe8, 0xc9, 0x5e, 0x8f, 0x9c, 0x2d, 0x12, 0x37, 0x3e, 0xdc, 0x7f, 0xe3, 0xa7, 0x0f, + 0xf6, 0xab, 0x68, 0x3d, 0x45, 0x02, 0x67, 0x90, 0x45, 0x1f, 0xc1, 0x49, 0x5a, 0x9a, 0xfa, 0xd6, + 0x91, 0xfe, 0x9b, 0xab, 0x1c, 0xec, 0x57, 0x4f, 0xae, 0x67, 0x10, 0xc1, 0x99, 0xa4, 0xd1, 0x8f, + 0x5b, 0x70, 0x36, 0xfe, 0xfc, 0xe5, 0x87, 0x1d, 0xc7, 0x6b, 0xc6, 0x0d, 0x8f, 0xf6, 0xdf, 0x30, + 0xe5, 0xc9, 0x67, 0x17, 0xf3, 0x28, 0xe1, 0xfc, 0x46, 0x90, 0x07, 0x27, 0x68, 0xd7, 0x92, 0x6d, + 0x43, 0xff, 0x6d, 0x9f, 0x39, 0xd8, 0xaf, 0x9e, 0x58, 0x4f, 0xd3, 0xc0, 0x59, 0x84, 0x67, 0x17, + 0xe1, 0x54, 0xe6, 0xea, 0x44, 0xd3, 0x50, 0xde, 0x21, 0x5c, 0x08, 0x1c, 0xc5, 0xf4, 0x27, 0x3a, + 0x09, 0x83, 0xbb, 0x4e, 0xab, 0x2b, 0x36, 0x26, 0xe6, 0x7f, 0xde, 0x2a, 0x5d, 0xb3, 0xec, 0xff, + 0xbe, 0x0c, 0x53, 0x8b, 0xf5, 0xd5, 0xc7, 0xda, 0xf5, 0xfa, 0xb1, 0x57, 0x2a, 0x3c, 0xf6, 0xe2, + 0x43, 0xb4, 0x9c, 0x7b, 0x88, 0xfe, 0x58, 0xc6, 0x96, 0x1d, 0x60, 0x5b, 0xf6, 0x8b, 0x39, 0x5b, + 0xf6, 0x09, 0x6f, 0xd4, 0xdd, 0x9c, 0x55, 0x3b, 0xc8, 0x26, 0x30, 0x53, 0x42, 0x62, 0xb2, 0x5f, + 0x92, 0xd5, 0x1e, 0x71, 0xe9, 0x3e, 0x99, 0x79, 0x6c, 0xc0, 0xf8, 0xa2, 0xd3, 0x71, 0xee, 0xbb, + 0x2d, 0x37, 0x72, 0x49, 0x88, 0x5e, 0x84, 0xb2, 0xd3, 0x6c, 0x32, 0xe9, 0x6e, 0x74, 0xe1, 0xd4, + 0xc1, 0x7e, 0xb5, 0x3c, 0xdf, 0xa4, 0x62, 0x06, 0x28, 0xac, 0x3d, 0x4c, 0x31, 0xd0, 0x67, 0x61, + 0xa0, 0x19, 0xf8, 0x9d, 0x4a, 0x89, 0x61, 0xd2, 0x5d, 0x3e, 0xb0, 0x14, 0xf8, 0x9d, 0x04, 0x2a, + 0xc3, 0xb1, 0x7f, 0xbb, 0x04, 0xe7, 0x16, 0x49, 0x67, 0x7b, 0xa5, 0x9e, 0x73, 0x5e, 0x5c, 0x86, + 0x91, 0xb6, 0xef, 0xb9, 0x91, 0x1f, 0x84, 0xa2, 0x69, 0xb6, 0x22, 0xd6, 0x44, 0x19, 0x56, 0x50, + 0x74, 0x11, 0x06, 0x3a, 0xb1, 0x10, 0x3b, 0x2e, 0x05, 0x60, 0x26, 0xbe, 0x32, 0x08, 0xc5, 0xe8, + 0x86, 0x24, 0x10, 0x2b, 0x46, 0x61, 0xdc, 0x09, 0x49, 0x80, 0x19, 0x24, 0x96, 0x04, 0xa8, 0x8c, + 0x20, 0x4e, 0x84, 0x84, 0x24, 0x40, 0x21, 0x58, 0xc3, 0x42, 0x35, 0x18, 0x0d, 0x13, 0x33, 0xdb, + 0xd7, 0xd6, 0x9c, 0x60, 0xa2, 0x82, 0x9a, 0xc9, 0x98, 0x88, 0x71, 0x82, 0x0d, 0xf5, 0x14, 0x15, + 0x7e, 0xa3, 0x04, 0x88, 0x0f, 0xe1, 0x9f, 0xb1, 0x81, 0xbb, 0x93, 0x1e, 0xb8, 0xfe, 0xb7, 0xc4, + 0x93, 0x1a, 0xbd, 0xff, 0xdb, 0x82, 0x73, 0x8b, 0xae, 0xd7, 0x24, 0x41, 0xce, 0x02, 0x7c, 0x3a, + 0x57, 0xf9, 0xa3, 0x09, 0x29, 0xc6, 0x12, 0x1b, 0x78, 0x02, 0x4b, 0xcc, 0xfe, 0xb7, 0x16, 0x20, + 0xfe, 0xd9, 0x9f, 0xb8, 0x8f, 0xbd, 0x93, 0xfe, 0xd8, 0x27, 0xb0, 0x2c, 0xec, 0x5b, 0x30, 0xb9, + 0xd8, 0x72, 0x89, 0x17, 0xad, 0xd6, 0x16, 0x7d, 0x6f, 0xd3, 0xdd, 0x42, 0x6f, 0xc1, 0x64, 0xe4, + 0xb6, 0x89, 0xdf, 0x8d, 0xea, 0xa4, 0xe1, 0x7b, 0xec, 0xe6, 0x6a, 0x5d, 0x1e, 0x5c, 0x40, 0x07, + 0xfb, 0xd5, 0xc9, 0x0d, 0x03, 0x82, 0x13, 0x98, 0xf6, 0xdf, 0xa5, 0x7c, 0xab, 0xd5, 0x0d, 0x23, + 0x12, 0x6c, 0x04, 0xdd, 0x30, 0x5a, 0xe8, 0x52, 0xd9, 0xb3, 0x16, 0xf8, 0xb4, 0x3b, 0xae, 0xef, + 0xa1, 0x73, 0xc6, 0x75, 0x7c, 0x44, 0x5e, 0xc5, 0xc5, 0xb5, 0x7b, 0x0e, 0x20, 0x74, 0xb7, 0x3c, + 0x12, 0x68, 0xd7, 0x87, 0x49, 0xb6, 0x55, 0x54, 0x29, 0xd6, 0x30, 0x50, 0x0b, 0x26, 0x5a, 0xce, + 0x7d, 0xd2, 0xaa, 0x93, 0x16, 0x69, 0x44, 0x7e, 0x20, 0xf4, 0x1b, 0xaf, 0xf7, 0x77, 0x0f, 0xb8, + 0xa5, 0x57, 0x5d, 0x98, 0x39, 0xd8, 0xaf, 0x4e, 0x18, 0x45, 0xd8, 0x24, 0x4e, 0x59, 0x87, 0xdf, + 0xa1, 0x5f, 0xe1, 0xb4, 0xf4, 0xcb, 0xe7, 0x6d, 0x51, 0x86, 0x15, 0x54, 0xb1, 0x8e, 0x81, 0x3c, + 0xd6, 0x61, 0xff, 0x4b, 0xba, 0xd0, 0xfc, 0x76, 0xc7, 0xf7, 0x88, 0x17, 0x2d, 0xfa, 0x5e, 0x93, + 0x6b, 0xa6, 0xde, 0x32, 0x54, 0x27, 0x97, 0x12, 0xaa, 0x93, 0xd3, 0xe9, 0x1a, 0x9a, 0xf6, 0xe4, + 0x8b, 0x30, 0x14, 0x46, 0x4e, 0xd4, 0x0d, 0xc5, 0xc0, 0x3d, 0x2b, 0x97, 0x5d, 0x9d, 0x95, 0x1e, + 0xee, 0x57, 0xa7, 0x54, 0x35, 0x5e, 0x84, 0x45, 0x05, 0xf4, 0x12, 0x0c, 0xb7, 0x49, 0x18, 0x3a, + 0x5b, 0x52, 0x6c, 0x98, 0x12, 0x75, 0x87, 0xd7, 0x78, 0x31, 0x96, 0x70, 0xf4, 0x1c, 0x0c, 0x92, + 0x20, 0xf0, 0x03, 0xf1, 0x6d, 0x13, 0x02, 0x71, 0x70, 0x99, 0x16, 0x62, 0x0e, 0xb3, 0xff, 0x27, + 0x0b, 0xa6, 0x54, 0x5f, 0x79, 0x5b, 0xc7, 0x70, 0x5d, 0xfb, 0x2a, 0x40, 0x43, 0x7e, 0x60, 0xc8, + 0x8e, 0xd9, 0xb1, 0xd7, 0x2e, 0x65, 0x4a, 0x34, 0xa9, 0x61, 0x8c, 0x29, 0xab, 0xa2, 0x10, 0x6b, + 0xd4, 0xec, 0xdf, 0xb4, 0xe0, 0x44, 0xe2, 0x8b, 0x6e, 0xb9, 0x61, 0x84, 0x3e, 0x4c, 0x7d, 0xd5, + 0x5c, 0x9f, 0x8b, 0xcf, 0x0d, 0xf9, 0x37, 0xa9, 0x3d, 0x2f, 0x4b, 0xb4, 0x2f, 0xba, 0x01, 0x83, + 0x6e, 0x44, 0xda, 0xf2, 0x63, 0x9e, 0x2b, 0xfc, 0x18, 0xde, 0xab, 0x78, 0x46, 0x56, 0x69, 0x4d, + 0xcc, 0x09, 0xd8, 0xbf, 0x5d, 0x86, 0x51, 0xbe, 0xbf, 0xd7, 0x9c, 0xce, 0x31, 0xcc, 0xc5, 0xcb, + 0x30, 0xea, 0xb6, 0xdb, 0xdd, 0xc8, 0xb9, 0x2f, 0xce, 0xbd, 0x11, 0xce, 0x83, 0x56, 0x65, 0x21, + 0x8e, 0xe1, 0x68, 0x15, 0x06, 0x58, 0x57, 0xf8, 0x57, 0xbe, 0x98, 0xfd, 0x95, 0xa2, 0xef, 0x73, + 0x4b, 0x4e, 0xe4, 0x70, 0x91, 0x53, 0xed, 0x2b, 0x5a, 0x84, 0x19, 0x09, 0xe4, 0x00, 0xdc, 0x77, + 0x3d, 0x27, 0xd8, 0xa3, 0x65, 0x95, 0x32, 0x23, 0xf8, 0x6a, 0x31, 0xc1, 0x05, 0x85, 0xcf, 0xc9, + 0xaa, 0x0f, 0x8b, 0x01, 0x58, 0x23, 0x3a, 0xfb, 0x05, 0x18, 0x55, 0xc8, 0x47, 0x91, 0x1c, 0x67, + 0xbf, 0x04, 0x53, 0x89, 0xb6, 0x7a, 0x55, 0x1f, 0xd7, 0x05, 0xcf, 0x7f, 0xcc, 0x58, 0x86, 0xe8, + 0xf5, 0xb2, 0xb7, 0x2b, 0xce, 0xa6, 0x47, 0x70, 0xb2, 0x95, 0xc1, 0xf2, 0xc5, 0xbc, 0xf6, 0x7f, + 0x44, 0x9c, 0x13, 0x9f, 0x7d, 0x32, 0x0b, 0x8a, 0x33, 0xdb, 0x30, 0x38, 0x62, 0xa9, 0x88, 0x23, + 0x52, 0x7e, 0x77, 0x52, 0x75, 0xfe, 0x26, 0xd9, 0x53, 0x4c, 0xf5, 0x07, 0xd9, 0xfd, 0xf3, 0x7c, + 0xf4, 0x39, 0xbb, 0x1c, 0x13, 0x04, 0xca, 0x37, 0xc9, 0x1e, 0x9f, 0x0a, 0xfd, 0xeb, 0xca, 0x85, + 0x5f, 0xf7, 0x2b, 0x16, 0x4c, 0xa8, 0xaf, 0x3b, 0x06, 0xbe, 0xb0, 0x60, 0xf2, 0x85, 0xf3, 0x85, + 0x0b, 0x3c, 0x87, 0x23, 0xfc, 0x46, 0x09, 0xce, 0x2a, 0x1c, 0x7a, 0x89, 0xe2, 0x7f, 0xc4, 0xaa, + 0xba, 0x02, 0xa3, 0x9e, 0x52, 0x27, 0x5a, 0xa6, 0x1e, 0x2f, 0x56, 0x26, 0xc6, 0x38, 0xf4, 0xc8, + 0xf3, 0xe2, 0x43, 0x7b, 0x5c, 0xd7, 0xb3, 0x8b, 0xc3, 0x7d, 0x01, 0xca, 0x5d, 0xb7, 0x29, 0x0e, + 0x98, 0xcf, 0xc9, 0xd1, 0xbe, 0xb3, 0xba, 0x74, 0xb8, 0x5f, 0x7d, 0x36, 0xcf, 0xe4, 0x44, 0x4f, + 0xb6, 0x70, 0xee, 0xce, 0xea, 0x12, 0xa6, 0x95, 0xd1, 0x3c, 0x4c, 0x49, 0xab, 0xda, 0x5d, 0x2a, + 0x97, 0xfa, 0x9e, 0x38, 0x87, 0x94, 0xb2, 0x1c, 0x9b, 0x60, 0x9c, 0xc4, 0x47, 0x4b, 0x30, 0xbd, + 0xd3, 0xbd, 0x4f, 0x5a, 0x24, 0xe2, 0x1f, 0x7c, 0x93, 0x70, 0x55, 0xf2, 0x68, 0x7c, 0x85, 0xbd, + 0x99, 0x80, 0xe3, 0x54, 0x0d, 0xfb, 0x4f, 0xd9, 0x79, 0x20, 0x46, 0x4f, 0x93, 0x6f, 0x7e, 0x90, + 0xcb, 0xb9, 0x9f, 0x55, 0x71, 0x93, 0xec, 0x6d, 0xf8, 0x54, 0x0e, 0xc9, 0x5e, 0x15, 0xc6, 0x9a, + 0x1f, 0x28, 0x5c, 0xf3, 0xbf, 0x56, 0x82, 0x53, 0x6a, 0x04, 0x0c, 0x69, 0xf9, 0xcf, 0xfa, 0x18, + 0x5c, 0x85, 0xb1, 0x26, 0xd9, 0x74, 0xba, 0xad, 0x48, 0xd9, 0x35, 0x06, 0xb9, 0xa9, 0x6d, 0x29, + 0x2e, 0xc6, 0x3a, 0xce, 0x11, 0x86, 0xed, 0x6f, 0x4d, 0xb2, 0x83, 0x38, 0x72, 0xe8, 0x1a, 0x57, + 0xbb, 0xc6, 0xca, 0xdd, 0x35, 0xcf, 0xc1, 0xa0, 0xdb, 0xa6, 0x82, 0x59, 0xc9, 0x94, 0xb7, 0x56, + 0x69, 0x21, 0xe6, 0x30, 0xf4, 0x02, 0x0c, 0x37, 0xfc, 0x76, 0xdb, 0xf1, 0x9a, 0xec, 0xc8, 0x1b, + 0x5d, 0x18, 0xa3, 0xb2, 0xdb, 0x22, 0x2f, 0xc2, 0x12, 0x46, 0x85, 0x6f, 0x27, 0xd8, 0xe2, 0xca, + 0x1e, 0x21, 0x7c, 0xcf, 0x07, 0x5b, 0x21, 0x66, 0xa5, 0xf4, 0xae, 0xfa, 0xc0, 0x0f, 0x76, 0x5c, + 0x6f, 0x6b, 0xc9, 0x0d, 0xc4, 0x96, 0x50, 0x67, 0xe1, 0x3d, 0x05, 0xc1, 0x1a, 0x16, 0x5a, 0x81, + 0xc1, 0x8e, 0x1f, 0x44, 0x61, 0x65, 0x88, 0x0d, 0xf7, 0xb3, 0x39, 0x8c, 0x88, 0x7f, 0x6d, 0xcd, + 0x0f, 0xa2, 0xf8, 0x03, 0xe8, 0xbf, 0x10, 0xf3, 0xea, 0xe8, 0x16, 0x0c, 0x13, 0x6f, 0x77, 0x25, + 0xf0, 0xdb, 0x95, 0x13, 0xf9, 0x94, 0x96, 0x39, 0x0a, 0x5f, 0x66, 0xb1, 0x8c, 0x2a, 0x8a, 0xb1, + 0x24, 0x81, 0xbe, 0x08, 0x65, 0xe2, 0xed, 0x56, 0x86, 0x19, 0xa5, 0xd9, 0x1c, 0x4a, 0x77, 0x9d, + 0x20, 0xe6, 0xf9, 0xcb, 0xde, 0x2e, 0xa6, 0x75, 0xd0, 0x57, 0x60, 0x54, 0x32, 0x8c, 0x50, 0x68, + 0x51, 0x33, 0x17, 0xac, 0x64, 0x33, 0x98, 0x7c, 0xd4, 0x75, 0x03, 0xd2, 0x26, 0x5e, 0x14, 0xc6, + 0x1c, 0x52, 0x42, 0x43, 0x1c, 0x53, 0x43, 0x0d, 0x18, 0x0f, 0x48, 0xe8, 0x3e, 0x22, 0x35, 0xbf, + 0xe5, 0x36, 0xf6, 0x2a, 0x67, 0x58, 0xf7, 0x5e, 0x2a, 0x1c, 0x32, 0xac, 0x55, 0x88, 0xb5, 0xfc, + 0x7a, 0x29, 0x36, 0x88, 0xa2, 0x0f, 0x60, 0x22, 0x20, 0x61, 0xe4, 0x04, 0x91, 0x68, 0xa5, 0xa2, + 0xac, 0x72, 0x13, 0x58, 0x07, 0xf0, 0xeb, 0x44, 0xdc, 0x4c, 0x0c, 0xc1, 0x26, 0x05, 0x14, 0x01, + 0x32, 0x0a, 0x70, 0xb7, 0x45, 0xc2, 0xca, 0xd9, 0x7c, 0x6b, 0x66, 0x92, 0x2c, 0xad, 0xb0, 0x30, + 0x2b, 0x3a, 0x8f, 0x70, 0x8a, 0x16, 0xce, 0xa0, 0x8f, 0xbe, 0x22, 0x0d, 0x1d, 0x6b, 0x7e, 0xd7, + 0x8b, 0xc2, 0xca, 0x28, 0x6b, 0x2f, 0xd3, 0x22, 0x7e, 0x37, 0xc6, 0x4b, 0x5a, 0x42, 0x78, 0x65, + 0x6c, 0x90, 0x42, 0x5f, 0x87, 0x09, 0xfe, 0x9f, 0x1b, 0x72, 0xc3, 0xca, 0x29, 0x46, 0xfb, 0x62, + 0x3e, 0x6d, 0x8e, 0xb8, 0x70, 0x4a, 0x10, 0x9f, 0xd0, 0x4b, 0x43, 0x6c, 0x52, 0x43, 0x18, 0x26, + 0x5a, 0xee, 0x2e, 0xf1, 0x48, 0x18, 0xd6, 0x02, 0xff, 0x3e, 0x11, 0x7a, 0xe9, 0xb3, 0xd9, 0x86, + 0x5f, 0xff, 0x3e, 0x11, 0x57, 0x4f, 0xbd, 0x0e, 0x36, 0x49, 0xa0, 0x3b, 0x30, 0x19, 0x10, 0xa7, + 0xe9, 0xc6, 0x44, 0xc7, 0x7a, 0x11, 0x65, 0xd7, 0x75, 0x6c, 0x54, 0xc2, 0x09, 0x22, 0xe8, 0x36, + 0x8c, 0xb3, 0x81, 0xef, 0x76, 0x38, 0xd1, 0xd3, 0xbd, 0x88, 0x32, 0x37, 0x86, 0xba, 0x56, 0x05, + 0x1b, 0x04, 0xd0, 0xfb, 0x30, 0xda, 0x72, 0x37, 0x49, 0x63, 0xaf, 0xd1, 0x22, 0x95, 0x71, 0x46, + 0x2d, 0x93, 0x05, 0xdf, 0x92, 0x48, 0xfc, 0x56, 0xa0, 0xfe, 0xe2, 0xb8, 0x3a, 0xba, 0x0b, 0xa7, + 0x23, 0x12, 0xb4, 0x5d, 0xcf, 0xa1, 0xac, 0x53, 0x5c, 0x44, 0x99, 0x3d, 0x7e, 0x82, 0xad, 0xe9, + 0x0b, 0x62, 0x36, 0x4e, 0x6f, 0x64, 0x62, 0xe1, 0x9c, 0xda, 0xe8, 0x21, 0x54, 0x32, 0x20, 0x7c, + 0xb7, 0x9c, 0x64, 0x94, 0xdf, 0x11, 0x94, 0x2b, 0x1b, 0x39, 0x78, 0x87, 0x05, 0x30, 0x9c, 0x4b, + 0x1d, 0xdd, 0x86, 0x29, 0xc6, 0xaf, 0x6b, 0xdd, 0x56, 0x4b, 0x34, 0x38, 0xc9, 0x1a, 0x7c, 0x41, + 0x4a, 0x2f, 0xab, 0x26, 0xf8, 0x70, 0xbf, 0x0a, 0xf1, 0x3f, 0x9c, 0xac, 0x8d, 0xee, 0x33, 0xd3, + 0x6f, 0x37, 0x70, 0xa3, 0x3d, 0xba, 0xe9, 0xc8, 0xc3, 0xa8, 0x32, 0x55, 0xa8, 0x06, 0xd3, 0x51, + 0x95, 0x7d, 0x58, 0x2f, 0xc4, 0x49, 0x82, 0xf4, 0x00, 0x0a, 0xa3, 0xa6, 0xeb, 0x55, 0xa6, 0xf9, + 0x2d, 0x4e, 0xf2, 0xef, 0x3a, 0x2d, 0xc4, 0x1c, 0xc6, 0xcc, 0xbe, 0xf4, 0xc7, 0x6d, 0x7a, 0xce, + 0xcf, 0x30, 0xc4, 0xd8, 0xec, 0x2b, 0x01, 0x38, 0xc6, 0xa1, 0xa2, 0x77, 0x14, 0xed, 0x55, 0x10, + 0x43, 0x55, 0x6c, 0x78, 0x63, 0xe3, 0x2b, 0x98, 0x96, 0xdb, 0xbf, 0x6b, 0xc1, 0x45, 0xc5, 0x46, + 0x96, 0x1f, 0x46, 0xc4, 0x6b, 0x92, 0xa6, 0xce, 0x73, 0x49, 0x18, 0xa1, 0xb7, 0x61, 0xa2, 0x21, + 0x71, 0x34, 0x13, 0xb5, 0xda, 0xa5, 0x8b, 0x3a, 0x10, 0x9b, 0xb8, 0xe8, 0x1a, 0xe3, 0xc6, 0x8c, + 0x9e, 0xa6, 0x6c, 0xd2, 0x59, 0xac, 0x82, 0x61, 0x03, 0x13, 0xbd, 0x09, 0x63, 0x01, 0xef, 0x01, + 0xab, 0x58, 0x36, 0x3d, 0x25, 0x70, 0x0c, 0xc2, 0x3a, 0x9e, 0x7d, 0x1f, 0x26, 0x55, 0x87, 0xd8, + 0x34, 0xa3, 0x2a, 0x0c, 0x32, 0xf9, 0x59, 0xe8, 0xa1, 0x47, 0xe9, 0xa8, 0x32, 0xd9, 0x1a, 0xf3, + 0x72, 0x36, 0xaa, 0xee, 0x23, 0xb2, 0xb0, 0x17, 0x11, 0xae, 0xd4, 0x29, 0x6b, 0xa3, 0x2a, 0x01, + 0x38, 0xc6, 0xb1, 0xff, 0x7f, 0x7e, 0x0f, 0x89, 0x8f, 0xdb, 0x3e, 0x04, 0x8c, 0x57, 0x60, 0x84, + 0x79, 0xd0, 0xf8, 0x01, 0x37, 0x73, 0x0f, 0xc6, 0x37, 0x8f, 0x1b, 0xa2, 0x1c, 0x2b, 0x0c, 0x63, + 0xcc, 0x59, 0x15, 0x2e, 0x1d, 0xa5, 0xc7, 0x9c, 0xd5, 0x33, 0x71, 0xd1, 0x35, 0x18, 0x61, 0xce, + 0x62, 0x0d, 0xbf, 0x25, 0xc4, 0x76, 0x29, 0xe2, 0x8d, 0xd4, 0x44, 0xf9, 0xa1, 0xf6, 0x1b, 0x2b, + 0x6c, 0x74, 0x09, 0x86, 0x68, 0x17, 0x56, 0x6b, 0x42, 0x2e, 0x51, 0x2a, 0xd5, 0x1b, 0xac, 0x14, + 0x0b, 0xa8, 0xfd, 0x9b, 0x16, 0x13, 0x4a, 0xd3, 0x87, 0x27, 0xba, 0x91, 0x98, 0x6f, 0x3e, 0x20, + 0xcf, 0x67, 0xcd, 0xf7, 0x61, 0xf1, 0xfc, 0x7f, 0x35, 0x79, 0xc4, 0xf2, 0xa5, 0xf3, 0x86, 0x1c, + 0x82, 0xe4, 0x31, 0xfb, 0x4c, 0xbc, 0x6e, 0x69, 0x7f, 0x8a, 0xce, 0x5a, 0xfb, 0xb7, 0xf8, 0x35, + 0x39, 0x75, 0x7c, 0xa2, 0x25, 0x18, 0x72, 0xd8, 0x0d, 0x43, 0x74, 0xfc, 0x15, 0x39, 0x00, 0xf3, + 0xac, 0xf4, 0x50, 0xd8, 0xab, 0x93, 0xf5, 0x38, 0x14, 0x8b, 0xba, 0xe8, 0x9b, 0x30, 0x4a, 0x1e, + 0xba, 0xd1, 0xa2, 0xdf, 0x14, 0x0b, 0xca, 0xd4, 0x95, 0x16, 0x9e, 0xe0, 0xb7, 0xbd, 0x65, 0x59, + 0x95, 0x33, 0x6d, 0xf5, 0x17, 0xc7, 0x44, 0xed, 0x9f, 0xb3, 0xa0, 0xda, 0xa3, 0x36, 0xba, 0x47, + 0x85, 0x65, 0x12, 0x38, 0x91, 0x2f, 0xed, 0x9e, 0x6f, 0xcb, 0x65, 0x70, 0x5b, 0x94, 0x1f, 0xee, + 0x57, 0x5f, 0xec, 0x41, 0x46, 0xa2, 0x62, 0x45, 0x0c, 0xd9, 0x30, 0xc4, 0xd4, 0x25, 0x5c, 0xfa, + 0x1f, 0xe4, 0xc6, 0xcf, 0xbb, 0xac, 0x04, 0x0b, 0x88, 0xfd, 0x57, 0x4a, 0xda, 0x3e, 0xac, 0x47, + 0x4e, 0x44, 0x50, 0x0d, 0x86, 0x1f, 0x38, 0x6e, 0xe4, 0x7a, 0x5b, 0xe2, 0x8a, 0x52, 0x2c, 0x93, + 0xb1, 0x4a, 0xf7, 0x78, 0x05, 0x2e, 0x68, 0x8b, 0x3f, 0x58, 0x92, 0xa1, 0x14, 0x83, 0xae, 0xe7, + 0x51, 0x8a, 0xa5, 0x7e, 0x29, 0x62, 0x5e, 0x81, 0x53, 0x14, 0x7f, 0xb0, 0x24, 0x83, 0x3e, 0x04, + 0x90, 0xc7, 0x0a, 0x69, 0x0a, 0x35, 0xf7, 0x2b, 0xbd, 0x89, 0x6e, 0xa8, 0x3a, 0x5c, 0x8f, 0x1e, + 0xff, 0xc7, 0x1a, 0x3d, 0x3b, 0xd2, 0x76, 0x8d, 0xde, 0x19, 0xf4, 0x35, 0xca, 0xd7, 0x9d, 0x20, + 0x22, 0xcd, 0xf9, 0x48, 0x0c, 0xce, 0x67, 0xfb, 0xd3, 0x63, 0x6c, 0xb8, 0x6d, 0xa2, 0x9f, 0x01, + 0x82, 0x08, 0x8e, 0xe9, 0xd9, 0xbf, 0x5e, 0x86, 0x4a, 0x5e, 0x77, 0x29, 0x5b, 0x92, 0xab, 0x4a, + 0xd8, 0x1f, 0x14, 0x5b, 0x92, 0x4b, 0x00, 0x2b, 0x0c, 0xca, 0x1f, 0x42, 0x77, 0x4b, 0xaa, 0xa1, + 0x06, 0x63, 0xfe, 0x50, 0x67, 0xa5, 0x58, 0x40, 0x29, 0x5e, 0x40, 0x9c, 0x50, 0xf8, 0x89, 0x6a, + 0x7c, 0x04, 0xb3, 0x52, 0x2c, 0xa0, 0xba, 0x42, 0x7c, 0xa0, 0x87, 0x42, 0xdc, 0x18, 0xa2, 0xc1, + 0x27, 0x3b, 0x44, 0xe8, 0x1b, 0x00, 0x9b, 0xae, 0xe7, 0x86, 0xdb, 0x8c, 0xfa, 0xd0, 0x91, 0xa9, + 0xab, 0xfb, 0xdb, 0x8a, 0xa2, 0x82, 0x35, 0x8a, 0xf4, 0x2c, 0x53, 0x2c, 0x7a, 0x75, 0x89, 0x79, + 0xa9, 0x68, 0x67, 0x59, 0x7c, 0x5e, 0x2d, 0x61, 0x1d, 0xcf, 0xfe, 0x56, 0x72, 0xbd, 0x88, 0x1d, + 0xa0, 0x8d, 0xaf, 0xd5, 0xef, 0xf8, 0x96, 0x8a, 0xc7, 0xd7, 0xfe, 0x17, 0xa3, 0x30, 0x65, 0x34, + 0xd6, 0x0d, 0xfb, 0x38, 0xd5, 0xae, 0x53, 0xa9, 0xc5, 0x89, 0x88, 0xd8, 0x7f, 0x76, 0xef, 0xad, + 0xa2, 0x4b, 0x36, 0x74, 0x07, 0xf0, 0xfa, 0xe8, 0x1b, 0x30, 0xda, 0x72, 0x42, 0xa6, 0x5c, 0x27, + 0x62, 0xdf, 0xf5, 0x43, 0x2c, 0xd6, 0x5d, 0x38, 0x61, 0xa4, 0x89, 0x8a, 0x9c, 0x76, 0x4c, 0x92, + 0x8a, 0x57, 0x54, 0x28, 0x97, 0x8e, 0xc8, 0xaa, 0x13, 0x54, 0x72, 0xdf, 0xc3, 0x1c, 0x26, 0x84, + 0x15, 0xba, 0x2a, 0x16, 0xe9, 0x15, 0x86, 0x2d, 0xb3, 0x41, 0x43, 0x58, 0x51, 0x30, 0x6c, 0x60, + 0xc6, 0xea, 0x83, 0xa1, 0x02, 0xf5, 0xc1, 0x4b, 0x30, 0xcc, 0x7e, 0xa8, 0x15, 0xa0, 0x66, 0x63, + 0x95, 0x17, 0x63, 0x09, 0x4f, 0x2e, 0x98, 0x91, 0xfe, 0x16, 0x0c, 0x7a, 0x01, 0x86, 0xc5, 0xa2, + 0x66, 0x1e, 0x42, 0x23, 0x9c, 0xcb, 0x89, 0x25, 0x8f, 0x25, 0x0c, 0xfd, 0xbc, 0x05, 0xc8, 0x69, + 0xb5, 0xfc, 0x06, 0xe3, 0x50, 0xea, 0x1e, 0x0e, 0xec, 0x7e, 0xf6, 0x76, 0xcf, 0x61, 0xef, 0x86, + 0x73, 0xf3, 0xa9, 0xda, 0x5c, 0xa9, 0xff, 0x96, 0xbc, 0x7e, 0xa6, 0x11, 0xf4, 0xe3, 0xfe, 0x96, + 0x1b, 0x46, 0xdf, 0xfe, 0x57, 0x89, 0xe3, 0x3f, 0xa3, 0x4b, 0xe8, 0x8e, 0xae, 0x27, 0x18, 0x3b, + 0xa2, 0x9e, 0x60, 0x22, 0x57, 0x47, 0xf0, 0xe7, 0x12, 0xb7, 0xde, 0x71, 0xf6, 0xe5, 0x2f, 0xf4, + 0xb8, 0xf5, 0x0a, 0xcb, 0x4f, 0x3f, 0x77, 0xdf, 0x9a, 0x70, 0x59, 0x98, 0x60, 0x5d, 0x2e, 0xd6, + 0xd7, 0xdc, 0x09, 0x49, 0xb0, 0x70, 0x56, 0x7a, 0x34, 0x1c, 0xea, 0xd2, 0x9d, 0xe6, 0xe2, 0xf0, + 0xe3, 0x16, 0x54, 0xd2, 0x03, 0xc4, 0xbb, 0x54, 0x99, 0x64, 0xfd, 0xb7, 0x8b, 0x46, 0x46, 0x74, + 0x5e, 0x7a, 0x66, 0x57, 0xe6, 0x73, 0x68, 0xe1, 0xdc, 0x56, 0xd0, 0x35, 0x80, 0x30, 0xf2, 0x3b, + 0x9c, 0xd7, 0xb3, 0x1b, 0xd0, 0x28, 0xf3, 0x0d, 0x82, 0xba, 0x2a, 0x3d, 0x8c, 0xcf, 0x02, 0x0d, + 0x77, 0xb6, 0x0b, 0x67, 0x72, 0x56, 0x4c, 0x86, 0x69, 0x66, 0x49, 0x37, 0xcd, 0xf4, 0x50, 0xe8, + 0xcf, 0xc9, 0x39, 0x9d, 0xfb, 0xa0, 0xeb, 0x78, 0x91, 0x1b, 0xed, 0xe9, 0xa6, 0x1c, 0x0f, 0xcc, + 0xa1, 0x44, 0x5f, 0x87, 0xc1, 0x96, 0xeb, 0x75, 0x1f, 0x8a, 0x33, 0xf6, 0x52, 0xf6, 0x9d, 0xd9, + 0xeb, 0x3e, 0x34, 0x27, 0xa7, 0x4a, 0xb7, 0x32, 0x2b, 0x3f, 0xdc, 0xaf, 0xa2, 0x34, 0x02, 0xe6, + 0x54, 0xed, 0xcf, 0xc2, 0xe4, 0x92, 0x43, 0xda, 0xbe, 0xb7, 0xec, 0x35, 0x3b, 0xbe, 0xeb, 0x45, + 0xa8, 0x02, 0x03, 0x4c, 0x7c, 0xe7, 0x47, 0xeb, 0x00, 0x1d, 0x7c, 0xcc, 0x4a, 0xec, 0x2d, 0x38, + 0xb5, 0xe4, 0x3f, 0xf0, 0x1e, 0x38, 0x41, 0x73, 0xbe, 0xb6, 0xaa, 0xa9, 0xb6, 0xd7, 0xa5, 0x6a, + 0xd5, 0xca, 0x57, 0x5c, 0x69, 0x35, 0xf9, 0x22, 0x5c, 0x71, 0x5b, 0x24, 0xc7, 0x00, 0xf1, 0xd7, + 0x4b, 0x46, 0x4b, 0x31, 0xbe, 0x32, 0x9f, 0x5b, 0xb9, 0x9e, 0x37, 0x1f, 0xc0, 0xc8, 0xa6, 0x4b, + 0x5a, 0x4d, 0x4c, 0x36, 0xc5, 0x6c, 0xbc, 0x98, 0xef, 0x9b, 0xbb, 0x42, 0x31, 0x95, 0x9d, 0x9f, + 0x29, 0x66, 0x57, 0x44, 0x65, 0xac, 0xc8, 0xa0, 0x1d, 0x98, 0x96, 0x73, 0x26, 0xa1, 0x82, 0xdf, + 0xbf, 0x54, 0xb4, 0x7c, 0x4d, 0xe2, 0xec, 0x9d, 0x02, 0x4e, 0x90, 0xc1, 0x29, 0xc2, 0xe8, 0x1c, + 0x0c, 0xb4, 0xa9, 0x64, 0x33, 0xc0, 0x86, 0x9f, 0x69, 0x62, 0x99, 0x52, 0x99, 0x95, 0xda, 0x7f, + 0xc3, 0x82, 0x33, 0xa9, 0x91, 0x11, 0xca, 0xf5, 0x27, 0x3c, 0x0b, 0x49, 0x65, 0x77, 0xa9, 0xb7, + 0xb2, 0xdb, 0xfe, 0x2f, 0x2c, 0x38, 0xb9, 0xdc, 0xee, 0x44, 0x7b, 0x4b, 0xae, 0xe9, 0x26, 0xf3, + 0x05, 0x18, 0x6a, 0x93, 0xa6, 0xdb, 0x6d, 0x8b, 0x99, 0xab, 0xca, 0xd3, 0x7f, 0x8d, 0x95, 0x52, + 0x0e, 0x52, 0x8f, 0xfc, 0xc0, 0xd9, 0x22, 0xbc, 0x00, 0x0b, 0x74, 0x26, 0x43, 0xb9, 0x8f, 0xc8, + 0x2d, 0xb7, 0xed, 0x46, 0x8f, 0xb7, 0xbb, 0x84, 0x87, 0x8b, 0x24, 0x82, 0x63, 0x7a, 0xf6, 0xf7, + 0x2d, 0x98, 0x92, 0xeb, 0x7e, 0xbe, 0xd9, 0x0c, 0x48, 0x18, 0xa2, 0x59, 0x28, 0xb9, 0x1d, 0xd1, + 0x4b, 0x10, 0xbd, 0x2c, 0xad, 0xd6, 0x70, 0xc9, 0xed, 0xc8, 0x0b, 0xb1, 0x17, 0x5f, 0xee, 0x8d, + 0x0b, 0xb1, 0xc7, 0xde, 0x4c, 0x48, 0x0c, 0x74, 0x19, 0x46, 0x3c, 0xbf, 0xc9, 0xef, 0x94, 0xc2, + 0xdd, 0x83, 0x62, 0xae, 0x8b, 0x32, 0xac, 0xa0, 0xa8, 0x06, 0xa3, 0xdc, 0x15, 0x3c, 0x5e, 0xb4, + 0x7d, 0x39, 0x94, 0xb3, 0x2f, 0xdb, 0x90, 0x35, 0x71, 0x4c, 0xc4, 0xfe, 0xa7, 0x16, 0x8c, 0xcb, + 0x2f, 0xeb, 0xf3, 0xb6, 0x4f, 0xb7, 0x56, 0x7c, 0xd3, 0x8f, 0xb7, 0x16, 0xbd, 0xad, 0x33, 0x88, + 0x71, 0x49, 0x2f, 0x1f, 0xe9, 0x92, 0x7e, 0x15, 0xc6, 0x9c, 0x4e, 0xa7, 0x66, 0xde, 0xf0, 0xd9, + 0x52, 0x9a, 0x8f, 0x8b, 0xb1, 0x8e, 0x63, 0xff, 0x6c, 0x09, 0x26, 0xe5, 0x17, 0xd4, 0xbb, 0xf7, + 0x43, 0x12, 0xa1, 0x0d, 0x18, 0x75, 0xf8, 0x2c, 0x11, 0xb9, 0xc8, 0x9f, 0xcb, 0x56, 0xe1, 0x1b, + 0x53, 0x1a, 0x0b, 0xd2, 0xf3, 0xb2, 0x36, 0x8e, 0x09, 0xa1, 0x16, 0xcc, 0x78, 0x7e, 0xc4, 0x84, + 0x2a, 0x05, 0x2f, 0xf2, 0xaa, 0x48, 0x52, 0x3f, 0x2b, 0xa8, 0xcf, 0xac, 0x27, 0xa9, 0xe0, 0x34, + 0x61, 0xb4, 0x2c, 0xcd, 0x22, 0xe5, 0x7c, 0xcd, 0xb2, 0x3e, 0x71, 0xd9, 0x56, 0x11, 0xfb, 0x9f, + 0x58, 0x30, 0x2a, 0xd1, 0x8e, 0xc3, 0x81, 0x66, 0x0d, 0x86, 0x43, 0x36, 0x09, 0x72, 0x68, 0xec, + 0xa2, 0x8e, 0xf3, 0xf9, 0x8a, 0x65, 0x45, 0xfe, 0x3f, 0xc4, 0x92, 0x06, 0xb3, 0x8a, 0xab, 0xee, + 0x7f, 0x42, 0xac, 0xe2, 0xaa, 0x3f, 0x39, 0x87, 0xd2, 0xbf, 0x61, 0x7d, 0xd6, 0xcc, 0x4c, 0xf4, + 0x4a, 0xd3, 0x09, 0xc8, 0xa6, 0xfb, 0x30, 0x79, 0xa5, 0xa9, 0xb1, 0x52, 0x2c, 0xa0, 0xe8, 0x43, + 0x18, 0x6f, 0x48, 0x73, 0x68, 0xbc, 0xc3, 0x2f, 0x15, 0x9a, 0xe6, 0x95, 0x17, 0x07, 0x57, 0xac, + 0x2f, 0x6a, 0xf5, 0xb1, 0x41, 0xcd, 0x74, 0x75, 0x2c, 0xf7, 0x72, 0x75, 0x8c, 0xe9, 0xe6, 0x3b, + 0xfe, 0xfd, 0x9c, 0x05, 0x43, 0xdc, 0x0c, 0xd6, 0x9f, 0x15, 0x52, 0x73, 0x6a, 0x89, 0xc7, 0x8e, + 0x29, 0x57, 0x84, 0x64, 0x83, 0xd6, 0x60, 0x94, 0xfd, 0x60, 0x66, 0xbc, 0x72, 0xfe, 0xc3, 0x48, + 0xde, 0xaa, 0xde, 0xc1, 0xbb, 0xb2, 0x1a, 0x8e, 0x29, 0xd8, 0x7f, 0x54, 0xa6, 0xdc, 0x2d, 0x46, + 0x35, 0x0e, 0x7d, 0xeb, 0xe9, 0x1d, 0xfa, 0xa5, 0xa7, 0x75, 0xe8, 0x6f, 0xc1, 0x54, 0x43, 0x73, + 0x81, 0x89, 0x67, 0xf2, 0x72, 0xe1, 0x22, 0xd1, 0xbc, 0x65, 0xb8, 0xca, 0x7e, 0xd1, 0x24, 0x82, + 0x93, 0x54, 0xd1, 0xd7, 0x60, 0x9c, 0xcf, 0xb3, 0x68, 0x85, 0x7b, 0x8b, 0xbe, 0x90, 0xbf, 0x5e, + 0xf4, 0x26, 0xb8, 0x89, 0x47, 0xab, 0x8e, 0x0d, 0x62, 0xa8, 0x0e, 0xb0, 0xe9, 0xb6, 0x88, 0x20, + 0x5d, 0xe0, 0xd8, 0xbd, 0xc2, 0xb1, 0x14, 0xe1, 0x49, 0xae, 0x87, 0x90, 0x55, 0xb1, 0x46, 0xc6, + 0xfe, 0x77, 0x16, 0xa0, 0xe5, 0xce, 0x36, 0x69, 0x93, 0xc0, 0x69, 0xc5, 0xe6, 0xf1, 0x9f, 0xb4, + 0xa0, 0x42, 0x52, 0xc5, 0x8b, 0x7e, 0xbb, 0x2d, 0x34, 0x0c, 0x39, 0x4a, 0xb0, 0xe5, 0x9c, 0x3a, + 0xf1, 0x2d, 0x23, 0x0f, 0x03, 0xe7, 0xb6, 0x87, 0xd6, 0xe0, 0x04, 0x3f, 0x7a, 0x0d, 0xbb, 0x82, + 0xd8, 0x11, 0xcf, 0x08, 0xc2, 0x27, 0x36, 0xd2, 0x28, 0x38, 0xab, 0x9e, 0xfd, 0x0f, 0x26, 0x21, + 0xb7, 0x17, 0x9f, 0xfa, 0x05, 0x7c, 0xea, 0x17, 0xf0, 0xa9, 0x5f, 0xc0, 0xa7, 0x7e, 0x01, 0x9f, + 0xfa, 0x05, 0x7c, 0xea, 0x17, 0xf0, 0xa9, 0x5f, 0x80, 0xe6, 0x17, 0xf0, 0x57, 0x2d, 0x38, 0xa5, + 0x0e, 0x4d, 0x43, 0xf7, 0xf0, 0xa3, 0x70, 0x82, 0x6f, 0xb7, 0xc5, 0x96, 0xe3, 0xb6, 0x37, 0x48, + 0xbb, 0xd3, 0x72, 0x22, 0xe9, 0x73, 0x78, 0x35, 0x73, 0xe5, 0x26, 0x1e, 0x36, 0x19, 0x15, 0xf9, + 0x0b, 0xd1, 0x0c, 0x00, 0xce, 0x6a, 0xc6, 0xfe, 0xf5, 0x11, 0x18, 0x5c, 0xde, 0x25, 0x5e, 0x74, + 0x0c, 0xb7, 0xb4, 0x06, 0x4c, 0xba, 0xde, 0xae, 0xdf, 0xda, 0x25, 0x4d, 0x0e, 0x3f, 0x8a, 0x32, + 0xe1, 0xb4, 0x20, 0x3d, 0xb9, 0x6a, 0x90, 0xc0, 0x09, 0x92, 0x4f, 0xc3, 0x50, 0x76, 0x1d, 0x86, + 0xf8, 0x91, 0x27, 0x84, 0xc6, 0x4c, 0x9e, 0xcd, 0x06, 0x51, 0x1c, 0xe4, 0xb1, 0x11, 0x8f, 0x1f, + 0xa9, 0xa2, 0x3a, 0xfa, 0x16, 0x4c, 0x6e, 0xba, 0x41, 0x18, 0x6d, 0xb8, 0x6d, 0x7a, 0x3e, 0xb4, + 0x3b, 0x8f, 0x61, 0x18, 0x53, 0xe3, 0xb0, 0x62, 0x50, 0xc2, 0x09, 0xca, 0x68, 0x0b, 0x26, 0x5a, + 0x8e, 0xde, 0xd4, 0xf0, 0x91, 0x9b, 0x52, 0xa7, 0xc3, 0x2d, 0x9d, 0x10, 0x36, 0xe9, 0xd2, 0xed, + 0xd4, 0x60, 0xb6, 0x9d, 0x11, 0xa6, 0x99, 0x51, 0xdb, 0x89, 0x1b, 0x75, 0x38, 0x8c, 0x8a, 0x85, + 0xec, 0x79, 0xd0, 0xa8, 0x29, 0x16, 0x6a, 0x8f, 0x80, 0xbe, 0x09, 0xa3, 0x84, 0x0e, 0x21, 0x25, + 0x2c, 0x0e, 0x98, 0x2b, 0xfd, 0xf5, 0x75, 0xcd, 0x6d, 0x04, 0xbe, 0x69, 0x92, 0x5c, 0x96, 0x94, + 0x70, 0x4c, 0x14, 0x2d, 0xc2, 0x50, 0x48, 0x02, 0x57, 0x99, 0x3d, 0x0a, 0xa6, 0x91, 0xa1, 0x71, + 0x2b, 0x3c, 0xff, 0x8d, 0x45, 0x55, 0xba, 0xbc, 0x84, 0x3b, 0xc3, 0xb8, 0xb9, 0xbc, 0x12, 0x0e, + 0x0b, 0xef, 0xc3, 0x70, 0x40, 0x5a, 0xcc, 0xe6, 0x3d, 0xd1, 0xff, 0x22, 0xe7, 0x26, 0x74, 0x5e, + 0x0f, 0x4b, 0x02, 0xe8, 0x26, 0x95, 0x57, 0xa8, 0x58, 0xe9, 0x7a, 0x5b, 0xea, 0xd1, 0x8c, 0x60, + 0xb4, 0x4a, 0x7c, 0xc7, 0x31, 0x86, 0x7c, 0x7d, 0x8e, 0x33, 0xaa, 0xa1, 0xeb, 0x30, 0xa3, 0x4a, + 0x57, 0xbd, 0x30, 0x72, 0x28, 0x83, 0xe3, 0x96, 0x07, 0xa5, 0x2a, 0xc2, 0x49, 0x04, 0x9c, 0xae, + 0x63, 0xff, 0xa2, 0x05, 0x7c, 0x9c, 0x8f, 0x41, 0x41, 0xf2, 0xae, 0xa9, 0x20, 0x39, 0x9b, 0x3b, + 0x73, 0x39, 0xca, 0x91, 0x5f, 0xb4, 0x60, 0x4c, 0x9b, 0xd9, 0x78, 0xcd, 0x5a, 0x05, 0x6b, 0xb6, + 0x0b, 0xd3, 0x74, 0xa5, 0xdf, 0xbe, 0x1f, 0x92, 0x60, 0x97, 0x34, 0xd9, 0xc2, 0x2c, 0x3d, 0xde, + 0xc2, 0x54, 0x0e, 0xfa, 0xb7, 0x12, 0x04, 0x71, 0xaa, 0x09, 0xfb, 0x9b, 0xb2, 0xab, 0xea, 0x3d, + 0x43, 0x43, 0xcd, 0x79, 0xe2, 0x3d, 0x83, 0x9a, 0x55, 0x1c, 0xe3, 0xd0, 0xad, 0xb6, 0xed, 0x87, + 0x51, 0xf2, 0x3d, 0xc3, 0x0d, 0x3f, 0x8c, 0x30, 0x83, 0xd8, 0xaf, 0x03, 0x2c, 0x3f, 0x24, 0x0d, + 0xbe, 0x62, 0xf5, 0xab, 0x96, 0x95, 0x7f, 0xd5, 0xb2, 0x7f, 0xcf, 0x82, 0xc9, 0x95, 0x45, 0xe3, + 0xe4, 0x9a, 0x03, 0xe0, 0xf7, 0xc3, 0x7b, 0xf7, 0xd6, 0xa5, 0x2f, 0x18, 0x77, 0xd6, 0x50, 0xa5, + 0x58, 0xc3, 0x40, 0x67, 0xa1, 0xdc, 0xea, 0x7a, 0x42, 0x83, 0x3b, 0x4c, 0x8f, 0xc7, 0x5b, 0x5d, + 0x0f, 0xd3, 0x32, 0xed, 0xe5, 0x69, 0xb9, 0xef, 0x97, 0xa7, 0x3d, 0x03, 0x60, 0xa1, 0x2a, 0x0c, + 0x3e, 0x78, 0xe0, 0x36, 0x79, 0x5c, 0x0f, 0xe1, 0xa7, 0x76, 0xef, 0xde, 0xea, 0x52, 0x88, 0x79, + 0xb9, 0xfd, 0xcb, 0x16, 0x4c, 0x25, 0x6e, 0xfb, 0xf4, 0xd6, 0xb8, 0xab, 0xa2, 0x2a, 0x25, 0x83, + 0xc7, 0x68, 0xf1, 0x96, 0x34, 0xac, 0x3e, 0x5e, 0x5c, 0x8b, 0x17, 0x3b, 0xe5, 0x3e, 0x5e, 0xec, + 0x14, 0xbb, 0xe1, 0x7f, 0xaf, 0x0c, 0xb3, 0x2b, 0x2d, 0xf2, 0xf0, 0x63, 0x86, 0x63, 0xe9, 0xf7, + 0xa9, 0xef, 0xd1, 0xd4, 0x77, 0x47, 0x7d, 0xce, 0xdd, 0x7b, 0x0a, 0x37, 0x61, 0x98, 0x7f, 0xba, + 0x0c, 0xce, 0x92, 0x69, 0x4c, 0xcf, 0x1f, 0x90, 0x39, 0x3e, 0x84, 0xc2, 0x98, 0xae, 0xce, 0x78, + 0x51, 0x8a, 0x25, 0xf1, 0xd9, 0xb7, 0x60, 0x5c, 0xc7, 0x3c, 0x52, 0x60, 0x85, 0xbf, 0x50, 0x86, + 0x69, 0xda, 0x83, 0xa7, 0x3a, 0x11, 0x77, 0xd2, 0x13, 0xf1, 0xa4, 0x1f, 0xd7, 0xf7, 0x9e, 0x8d, + 0x0f, 0x93, 0xb3, 0x71, 0x35, 0x6f, 0x36, 0x8e, 0x7b, 0x0e, 0xfe, 0xa2, 0x05, 0x27, 0x56, 0x5a, + 0x7e, 0x63, 0x27, 0xf1, 0x00, 0xfe, 0x4d, 0x18, 0xa3, 0x27, 0x48, 0x68, 0xc4, 0x82, 0x32, 0xa2, + 0x83, 0x09, 0x10, 0xd6, 0xf1, 0xb4, 0x6a, 0x77, 0xee, 0xac, 0x2e, 0x65, 0x05, 0x15, 0x13, 0x20, + 0xac, 0xe3, 0xd9, 0xff, 0xdc, 0x82, 0xf3, 0xd7, 0x17, 0x97, 0xe3, 0xa5, 0x98, 0x8a, 0x6b, 0x76, + 0x09, 0x86, 0x3a, 0x4d, 0xad, 0x2b, 0xb1, 0x52, 0x7e, 0x89, 0xf5, 0x42, 0x40, 0x3f, 0x29, 0x21, + 0x04, 0xef, 0x00, 0x5c, 0xc7, 0xb5, 0x45, 0x71, 0x54, 0x48, 0x1b, 0x9c, 0x95, 0x6b, 0x83, 0x7b, + 0x01, 0x86, 0xe9, 0x51, 0xe6, 0x36, 0x64, 0xbf, 0xb9, 0xbb, 0x0c, 0x2f, 0xc2, 0x12, 0x66, 0xff, + 0x82, 0x05, 0x27, 0xae, 0xbb, 0x11, 0x95, 0x33, 0x92, 0x81, 0xbb, 0xa8, 0xa0, 0x11, 0xba, 0x91, + 0x1f, 0xec, 0x25, 0x79, 0x2f, 0x56, 0x10, 0xac, 0x61, 0xf1, 0x0f, 0xda, 0x75, 0xd9, 0x93, 0xba, + 0x92, 0x69, 0xf5, 0xc4, 0xa2, 0x1c, 0x2b, 0x0c, 0x3a, 0x5e, 0x4d, 0x37, 0x60, 0x9c, 0x5e, 0x72, + 0x63, 0x35, 0x5e, 0x4b, 0x12, 0x80, 0x63, 0x1c, 0xfb, 0x8f, 0x2d, 0xa8, 0x5e, 0xe7, 0x81, 0x01, + 0x36, 0xc3, 0x1c, 0xa6, 0xfb, 0x3a, 0x8c, 0x12, 0x69, 0x9e, 0x49, 0xfa, 0x72, 0x2b, 0xbb, 0x0d, + 0x8f, 0x1f, 0xa6, 0xf0, 0xfa, 0x38, 0x33, 0x8e, 0x16, 0x66, 0x61, 0x05, 0x10, 0xd1, 0xdb, 0xd2, + 0x03, 0xaa, 0xb1, 0xc8, 0x4c, 0xcb, 0x29, 0x28, 0xce, 0xa8, 0x61, 0xff, 0x0d, 0x0b, 0x4e, 0xa9, + 0x0f, 0xfe, 0xc4, 0x7d, 0xa6, 0xfd, 0xab, 0x25, 0x98, 0xb8, 0xb1, 0xb1, 0x51, 0xbb, 0x4e, 0x22, + 0x6d, 0x55, 0x16, 0x3b, 0x5d, 0x60, 0xcd, 0x76, 0x5c, 0x74, 0xad, 0xed, 0x46, 0x6e, 0x6b, 0x8e, + 0x87, 0x09, 0x9d, 0x5b, 0xf5, 0xa2, 0xdb, 0x41, 0x3d, 0x0a, 0x5c, 0x6f, 0x2b, 0x73, 0xa5, 0x4b, + 0x31, 0xab, 0x9c, 0x27, 0x66, 0xa1, 0xd7, 0x61, 0x88, 0xc5, 0x29, 0x95, 0x93, 0xf0, 0x8c, 0xba, + 0x15, 0xb2, 0xd2, 0xc3, 0xfd, 0xea, 0xe8, 0x1d, 0xbc, 0xca, 0xff, 0x60, 0x81, 0x8a, 0xee, 0xc0, + 0xd8, 0x76, 0x14, 0x75, 0x6e, 0x10, 0xa7, 0x49, 0x02, 0xc9, 0x65, 0x2f, 0x64, 0x71, 0x59, 0x3a, + 0x08, 0x1c, 0x2d, 0x66, 0x4c, 0x71, 0x59, 0x88, 0x75, 0x3a, 0x76, 0x1d, 0x20, 0x86, 0x3d, 0x21, + 0xb3, 0x99, 0xbd, 0x01, 0xa3, 0xf4, 0x73, 0xe7, 0x5b, 0xae, 0x53, 0xec, 0x98, 0xf0, 0x32, 0x8c, + 0x4a, 0xb7, 0x83, 0x50, 0x44, 0x11, 0x62, 0x27, 0x92, 0xf4, 0x4a, 0x08, 0x71, 0x0c, 0xb7, 0x9f, + 0x07, 0xe1, 0x1b, 0x5f, 0x44, 0xd2, 0xde, 0x84, 0x93, 0xcc, 0xc9, 0xdf, 0x89, 0xb6, 0x8d, 0x35, + 0xda, 0x7b, 0x31, 0xbc, 0x22, 0xae, 0xa2, 0x25, 0xe5, 0x6d, 0x25, 0xa3, 0x54, 0x8c, 0x4b, 0x8a, + 0xf1, 0xb5, 0xd4, 0xfe, 0xa3, 0x01, 0x78, 0x66, 0xb5, 0x9e, 0x1f, 0xfe, 0xee, 0x1a, 0x8c, 0x73, + 0x09, 0x97, 0x2e, 0x0d, 0xa7, 0x25, 0xda, 0x55, 0x4a, 0xdb, 0x0d, 0x0d, 0x86, 0x0d, 0x4c, 0x2a, + 0x11, 0xba, 0x1f, 0x79, 0xc9, 0x37, 0xdc, 0xab, 0x1f, 0xac, 0x63, 0x5a, 0x4e, 0xc1, 0x54, 0x58, + 0xe6, 0x2c, 0x5d, 0x81, 0x95, 0xc0, 0xfc, 0x2e, 0x4c, 0xba, 0x61, 0x23, 0x74, 0x57, 0x3d, 0xba, + 0x4f, 0xb5, 0x9d, 0xae, 0xd4, 0x24, 0xb4, 0xd3, 0x0a, 0x8a, 0x13, 0xd8, 0xda, 0xf9, 0x32, 0xd8, + 0xb7, 0xc0, 0xdd, 0x33, 0xf8, 0x0e, 0x65, 0xff, 0x1d, 0xf6, 0x75, 0x21, 0xb3, 0x55, 0x08, 0xf6, + 0xcf, 0x3f, 0x38, 0xc4, 0x12, 0x46, 0xef, 0xa0, 0x8d, 0x6d, 0xa7, 0x33, 0xdf, 0x8d, 0xb6, 0x97, + 0xdc, 0xb0, 0xe1, 0xef, 0x92, 0x60, 0x8f, 0xa9, 0x0f, 0x46, 0xe2, 0x3b, 0xa8, 0x02, 0x2c, 0xde, + 0x98, 0xaf, 0x51, 0x4c, 0x9c, 0xae, 0x83, 0xe6, 0x61, 0x4a, 0x16, 0xd6, 0x49, 0xc8, 0x8e, 0x80, + 0x31, 0x46, 0x46, 0xbd, 0xaa, 0x16, 0xc5, 0x8a, 0x48, 0x12, 0xdf, 0x14, 0x70, 0xe1, 0x49, 0x08, + 0xb8, 0x5f, 0x80, 0x09, 0xd7, 0x73, 0x23, 0xd7, 0x89, 0x7c, 0x6e, 0x68, 0xe3, 0x9a, 0x02, 0xa6, + 0x13, 0x5f, 0xd5, 0x01, 0xd8, 0xc4, 0xb3, 0xff, 0x8f, 0x01, 0x98, 0x61, 0xd3, 0xf6, 0xe9, 0x0a, + 0xfb, 0x61, 0x5a, 0x61, 0x77, 0xd2, 0x2b, 0xec, 0x49, 0x48, 0xee, 0x8f, 0xbd, 0xcc, 0xbe, 0x63, + 0xc1, 0x0c, 0x53, 0xcb, 0x1b, 0xcb, 0xec, 0x0a, 0x8c, 0x06, 0xc6, 0x83, 0xf7, 0x51, 0xdd, 0xfa, + 0x27, 0xdf, 0xae, 0xc7, 0x38, 0xe8, 0x3d, 0x80, 0x4e, 0xac, 0xf6, 0x2f, 0x19, 0x51, 0x8a, 0x21, + 0x57, 0xe3, 0xaf, 0xd5, 0xb1, 0xbf, 0x05, 0xa3, 0xea, 0x45, 0xbb, 0xbc, 0x20, 0x5b, 0x39, 0x17, + 0xe4, 0xde, 0x62, 0x84, 0xf4, 0x4c, 0x2c, 0x67, 0x7a, 0x26, 0xfe, 0x6b, 0x0b, 0x62, 0xa3, 0x0c, + 0xfa, 0x00, 0x46, 0x3b, 0x3e, 0x73, 0x64, 0x0f, 0xe4, 0xeb, 0x90, 0xe7, 0x0b, 0xad, 0x3a, 0x3c, + 0x14, 0x69, 0xc0, 0xa7, 0xa3, 0x26, 0xab, 0xe2, 0x98, 0x0a, 0xba, 0x09, 0xc3, 0x9d, 0x80, 0xd4, + 0x23, 0x16, 0x27, 0xaf, 0x7f, 0x82, 0x7c, 0xf9, 0xf2, 0x8a, 0x58, 0x52, 0x48, 0xf8, 0x05, 0x97, + 0xfb, 0xf7, 0x0b, 0xb6, 0xff, 0x7e, 0x09, 0xa6, 0x93, 0x8d, 0xa0, 0x77, 0x60, 0x80, 0x3c, 0x24, + 0x0d, 0xf1, 0xa5, 0x99, 0xd2, 0x44, 0xac, 0x10, 0xe2, 0x43, 0x47, 0xff, 0x63, 0x56, 0x0b, 0xdd, + 0x80, 0x61, 0x2a, 0x4a, 0x5c, 0x57, 0xd1, 0x64, 0x9f, 0xcd, 0x13, 0x47, 0x94, 0x4c, 0xc6, 0x3f, + 0x4b, 0x14, 0x61, 0x59, 0x9d, 0x39, 0x12, 0x36, 0x3a, 0x75, 0x7a, 0x4b, 0x8b, 0x8a, 0x94, 0x09, + 0x1b, 0x8b, 0x35, 0x8e, 0x24, 0xa8, 0x71, 0x47, 0x42, 0x59, 0x88, 0x63, 0x22, 0xe8, 0x3d, 0x18, + 0x0c, 0x5b, 0x84, 0x74, 0x84, 0xa7, 0x48, 0xa6, 0x4a, 0xb7, 0x4e, 0x11, 0x04, 0x25, 0xa6, 0x02, + 0x62, 0x05, 0x98, 0x57, 0xb4, 0x7f, 0xcd, 0x02, 0xe0, 0x9e, 0x97, 0x8e, 0xb7, 0x45, 0x8e, 0xc1, + 0x0a, 0xb2, 0x04, 0x03, 0x61, 0x87, 0x34, 0x8a, 0xde, 0x77, 0xc4, 0xfd, 0xa9, 0x77, 0x48, 0x23, + 0x5e, 0xed, 0xf4, 0x1f, 0x66, 0xb5, 0xed, 0x9f, 0x00, 0x98, 0x8c, 0xd1, 0x56, 0x23, 0xd2, 0x46, + 0xaf, 0x1a, 0x21, 0xb8, 0xce, 0x26, 0x42, 0x70, 0x8d, 0x32, 0x6c, 0x4d, 0xe1, 0xfe, 0x2d, 0x28, + 0xb7, 0x9d, 0x87, 0x42, 0xa3, 0xfa, 0x72, 0x71, 0x37, 0x28, 0xfd, 0xb9, 0x35, 0xe7, 0x21, 0xbf, + 0xc1, 0xbf, 0x2c, 0x77, 0xe7, 0x9a, 0xf3, 0xb0, 0xe7, 0x1b, 0x04, 0xda, 0x08, 0x6b, 0xcb, 0xf5, + 0x84, 0x53, 0x61, 0x5f, 0x6d, 0xb9, 0x5e, 0xb2, 0x2d, 0xd7, 0xeb, 0xa3, 0x2d, 0xd7, 0x43, 0x8f, + 0x60, 0x58, 0xf8, 0xfc, 0x8a, 0xd8, 0xa0, 0x57, 0xfa, 0x68, 0x4f, 0xb8, 0x0c, 0xf3, 0x36, 0xaf, + 0x48, 0x0d, 0x85, 0x28, 0xed, 0xd9, 0xae, 0x6c, 0x10, 0xfd, 0x35, 0x0b, 0x26, 0xc5, 0x6f, 0xf1, + 0x9c, 0x56, 0x48, 0xf0, 0x9f, 0xef, 0xbf, 0x0f, 0xa2, 0x22, 0xef, 0xca, 0xe7, 0xe5, 0x61, 0x6b, + 0x02, 0x7b, 0xf6, 0x28, 0xd1, 0x0b, 0xf4, 0xf7, 0x2d, 0x38, 0xd9, 0x76, 0x1e, 0xf2, 0x16, 0x79, + 0x19, 0x76, 0x22, 0xd7, 0x17, 0x6e, 0x2e, 0xef, 0xf4, 0x37, 0xfd, 0xa9, 0xea, 0xbc, 0x93, 0xd2, + 0xba, 0x7c, 0x32, 0x0b, 0xa5, 0x67, 0x57, 0x33, 0xfb, 0x35, 0xbb, 0x09, 0x23, 0x72, 0xbd, 0x3d, + 0xcd, 0x07, 0x0d, 0xac, 0x1d, 0xb1, 0xd6, 0x9e, 0x6a, 0x3b, 0xdf, 0x82, 0x71, 0x7d, 0x8d, 0x3d, + 0xd5, 0xb6, 0x3e, 0x82, 0x13, 0x19, 0x6b, 0xe9, 0xa9, 0x36, 0xf9, 0x00, 0xce, 0xe6, 0xae, 0x8f, + 0xa7, 0xfa, 0x20, 0xe5, 0x57, 0x2d, 0x9d, 0x0f, 0x1e, 0x83, 0x29, 0x6a, 0xd1, 0x34, 0x45, 0x5d, + 0x28, 0xde, 0x39, 0x39, 0xf6, 0xa8, 0x0f, 0xf5, 0x4e, 0x53, 0xae, 0x8e, 0xde, 0x87, 0xa1, 0x16, + 0x2d, 0x91, 0x9e, 0xe3, 0x76, 0xef, 0x1d, 0x19, 0x4b, 0xd4, 0xac, 0x3c, 0xc4, 0x82, 0x82, 0xfd, + 0x33, 0x16, 0x64, 0x3c, 0xa9, 0xa1, 0x12, 0x56, 0xd7, 0x6d, 0xb2, 0x21, 0x29, 0xc7, 0x12, 0x96, + 0x8a, 0x50, 0x75, 0x1e, 0xca, 0x5b, 0x6e, 0x53, 0xbc, 0xd6, 0x57, 0xe0, 0xeb, 0x14, 0xbc, 0xe5, + 0x36, 0xd1, 0x0a, 0xa0, 0xb0, 0xdb, 0xe9, 0xb4, 0x98, 0x67, 0x98, 0xd3, 0xba, 0x1e, 0xf8, 0xdd, + 0x0e, 0x77, 0x13, 0x2f, 0x73, 0xf5, 0x52, 0x3d, 0x05, 0xc5, 0x19, 0x35, 0xec, 0x7f, 0x64, 0xc1, + 0xc0, 0x31, 0x4c, 0x13, 0x36, 0xa7, 0xe9, 0xd5, 0x5c, 0xd2, 0x22, 0xa5, 0xcc, 0x1c, 0x76, 0x1e, + 0xb0, 0x70, 0x0d, 0x21, 0x13, 0x38, 0x32, 0x67, 0x6d, 0xdf, 0x82, 0x13, 0xb7, 0x7c, 0xa7, 0xb9, + 0xe0, 0xb4, 0x1c, 0xaf, 0x41, 0x82, 0x55, 0x6f, 0xeb, 0x48, 0x6f, 0x32, 0x4a, 0x3d, 0xdf, 0x64, + 0x5c, 0x83, 0x21, 0xb7, 0xa3, 0xe5, 0xa4, 0xb8, 0x48, 0x67, 0x77, 0xb5, 0x26, 0xd2, 0x51, 0x20, + 0xa3, 0x71, 0x56, 0x8a, 0x05, 0x3e, 0x5d, 0x96, 0xdc, 0x6f, 0x71, 0x20, 0x7f, 0x59, 0xd2, 0x5b, + 0x52, 0x32, 0xd6, 0xa2, 0xe1, 0xb6, 0xbf, 0x0d, 0x46, 0x13, 0xe2, 0x91, 0x1a, 0x86, 0x61, 0x97, + 0x7f, 0xa9, 0x58, 0x9b, 0x2f, 0x66, 0xdf, 0x5e, 0x52, 0x03, 0xa3, 0xbd, 0xc6, 0xe4, 0x05, 0x58, + 0x12, 0xb2, 0xaf, 0x41, 0x66, 0x6c, 0xac, 0xde, 0x9a, 0x29, 0xfb, 0x2b, 0x30, 0xc3, 0x6a, 0x1e, + 0x51, 0xeb, 0x63, 0x27, 0xf4, 0xe9, 0x19, 0xe1, 0xc5, 0xed, 0xff, 0xc5, 0x02, 0xb4, 0xe6, 0x37, + 0xdd, 0xcd, 0x3d, 0x41, 0x9c, 0x7f, 0xff, 0x47, 0x50, 0xe5, 0xd7, 0xea, 0x64, 0x08, 0xee, 0xc5, + 0x96, 0x13, 0x86, 0x9a, 0x2e, 0xff, 0x45, 0xd1, 0x6e, 0x75, 0xa3, 0x18, 0x1d, 0xf7, 0xa2, 0x87, + 0x3e, 0x48, 0x44, 0x44, 0xfd, 0x62, 0x2a, 0x22, 0xea, 0x8b, 0x99, 0x4e, 0x40, 0xe9, 0xde, 0xcb, + 0x48, 0xa9, 0xf6, 0x77, 0x2d, 0x98, 0x5a, 0x4f, 0x84, 0x94, 0xbe, 0xc4, 0x3c, 0x22, 0x32, 0x6c, + 0x54, 0x75, 0x56, 0x8a, 0x05, 0xf4, 0x89, 0xeb, 0x70, 0xff, 0xd4, 0x82, 0x38, 0x16, 0xdf, 0x31, + 0x88, 0xdc, 0x8b, 0x86, 0xc8, 0x9d, 0x79, 0x7d, 0x51, 0xdd, 0xc9, 0x93, 0xb8, 0xd1, 0x4d, 0x35, + 0x27, 0x05, 0x37, 0x97, 0x98, 0x0c, 0xdf, 0x67, 0x93, 0xe6, 0xc4, 0xa9, 0xd9, 0xf8, 0xfd, 0x12, + 0x20, 0x85, 0xdb, 0x77, 0x14, 0xdd, 0x74, 0x8d, 0x27, 0x13, 0x45, 0x77, 0x17, 0x10, 0xf3, 0xe9, + 0x09, 0x1c, 0x2f, 0xe4, 0x64, 0x5d, 0xa1, 0xb5, 0x3e, 0x9a, 0xc3, 0x90, 0x72, 0x89, 0xbd, 0x95, + 0xa2, 0x86, 0x33, 0x5a, 0xd0, 0x7c, 0xb5, 0x06, 0xfb, 0xf5, 0xd5, 0x1a, 0xea, 0xf1, 0xe8, 0xfe, + 0x57, 0x2c, 0x98, 0x50, 0xc3, 0xf4, 0x09, 0x79, 0xba, 0xa3, 0xfa, 0x93, 0x73, 0xae, 0xd4, 0xb4, + 0x2e, 0x33, 0x61, 0xe0, 0x47, 0x58, 0xf0, 0x04, 0xa7, 0xe5, 0x3e, 0x22, 0x2a, 0xd8, 0x7b, 0x55, + 0x04, 0x43, 0x10, 0xa5, 0x87, 0xfb, 0xd5, 0x09, 0xf5, 0x8f, 0xfb, 0x23, 0xc4, 0x55, 0xec, 0xbf, + 0x4d, 0x37, 0xbb, 0xb9, 0x14, 0xd1, 0x9b, 0x30, 0xd8, 0xd9, 0x76, 0x42, 0x92, 0x78, 0xe2, 0x38, + 0x58, 0xa3, 0x85, 0x87, 0xfb, 0xd5, 0x49, 0x55, 0x81, 0x95, 0x60, 0x8e, 0xdd, 0x7f, 0x6c, 0xe2, + 0xf4, 0xe2, 0xec, 0x19, 0x9b, 0xf8, 0xdf, 0x59, 0x30, 0xb0, 0x4e, 0x4f, 0xaf, 0xa7, 0xcf, 0x02, + 0xde, 0x35, 0x58, 0xc0, 0xb9, 0xbc, 0xb4, 0x67, 0xb9, 0xbb, 0x7f, 0x25, 0xb1, 0xfb, 0x2f, 0xe4, + 0x52, 0x28, 0xde, 0xf8, 0x6d, 0x18, 0x63, 0xc9, 0xd4, 0xc4, 0x73, 0xce, 0xd7, 0x8d, 0x0d, 0x5f, + 0x4d, 0x6c, 0xf8, 0x29, 0x0d, 0x55, 0xdb, 0xe9, 0x2f, 0xc1, 0xb0, 0x78, 0x1f, 0x98, 0x8c, 0x41, + 0x21, 0x70, 0xb1, 0x84, 0xdb, 0x3f, 0x57, 0x06, 0x23, 0x79, 0x1b, 0xfa, 0x27, 0x16, 0xcc, 0x05, + 0xdc, 0xc5, 0xbf, 0xb9, 0xd4, 0x0d, 0x5c, 0x6f, 0xab, 0xde, 0xd8, 0x26, 0xcd, 0x6e, 0xcb, 0xf5, + 0xb6, 0x56, 0xb7, 0x3c, 0x5f, 0x15, 0x2f, 0x3f, 0x24, 0x8d, 0xae, 0x8a, 0xdb, 0x53, 0x90, 0x29, + 0x4e, 0x3d, 0x93, 0x79, 0xed, 0x60, 0xbf, 0x3a, 0x87, 0x8f, 0x44, 0x1b, 0x1f, 0xb1, 0x2f, 0xe8, + 0x9f, 0x5b, 0x70, 0x85, 0x27, 0x11, 0xeb, 0xbf, 0xff, 0x05, 0x1a, 0x8e, 0x9a, 0x24, 0x15, 0x13, + 0xd9, 0x20, 0x41, 0x7b, 0xe1, 0x0b, 0x62, 0x40, 0xaf, 0xd4, 0x8e, 0xd6, 0x16, 0x3e, 0x6a, 0xe7, + 0xec, 0xff, 0xa6, 0x0c, 0x13, 0x22, 0x86, 0xad, 0x38, 0x03, 0xde, 0x34, 0x96, 0xc4, 0xb3, 0x89, + 0x25, 0x31, 0x63, 0x20, 0x3f, 0x19, 0xf6, 0x1f, 0xc2, 0x0c, 0x65, 0xce, 0x37, 0x88, 0x13, 0x44, + 0xf7, 0x89, 0xc3, 0x5d, 0x30, 0xcb, 0x47, 0xe6, 0xfe, 0x4a, 0xb1, 0x7e, 0x2b, 0x49, 0x0c, 0xa7, + 0xe9, 0xff, 0x30, 0x9d, 0x39, 0x1e, 0x4c, 0xa7, 0xc2, 0x10, 0x7f, 0x15, 0x46, 0xd5, 0xe3, 0x36, + 0xc1, 0x74, 0x8a, 0xa3, 0x79, 0x27, 0x29, 0x70, 0xa5, 0x67, 0xfc, 0xb0, 0x32, 0x26, 0x67, 0xff, + 0x72, 0xc9, 0x68, 0x90, 0x4f, 0xe2, 0x3a, 0x8c, 0x38, 0x21, 0xcb, 0x30, 0xd0, 0x2c, 0xd2, 0x68, + 0xa7, 0x9a, 0x61, 0x7e, 0x66, 0xf3, 0xa2, 0x26, 0x56, 0x34, 0xd0, 0x0d, 0xee, 0xe8, 0xba, 0x4b, + 0x8a, 0xd4, 0xd9, 0x29, 0x6a, 0x20, 0x5d, 0x61, 0x77, 0x09, 0x16, 0xf5, 0xd1, 0xd7, 0xb9, 0x27, + 0xf2, 0x4d, 0xcf, 0x7f, 0xe0, 0x5d, 0xf7, 0x7d, 0x19, 0x04, 0xaa, 0x3f, 0x82, 0x33, 0xd2, 0xff, + 0x58, 0x55, 0xc7, 0x26, 0xb5, 0xfe, 0xe2, 0xfa, 0xff, 0x28, 0xb0, 0xa4, 0x49, 0x66, 0x2c, 0x89, + 0x10, 0x11, 0x98, 0x12, 0x01, 0x92, 0x65, 0x99, 0x18, 0xbb, 0xcc, 0xeb, 0xb7, 0x59, 0x3b, 0xb6, + 0x00, 0xdd, 0x34, 0x49, 0xe0, 0x24, 0x4d, 0x7b, 0x9b, 0x33, 0xe1, 0x15, 0xe2, 0x44, 0xdd, 0x80, + 0x84, 0xe8, 0xcb, 0x50, 0x49, 0xdf, 0x8c, 0x85, 0x21, 0xc5, 0x62, 0xd2, 0xf3, 0xb9, 0x83, 0xfd, + 0x6a, 0xa5, 0x9e, 0x83, 0x83, 0x73, 0x6b, 0xdb, 0x3f, 0x6f, 0x01, 0x7b, 0xc1, 0x7f, 0x0c, 0x92, + 0xcf, 0x97, 0x4c, 0xc9, 0xa7, 0x92, 0x37, 0x9d, 0x39, 0x42, 0xcf, 0x1b, 0x7c, 0x0d, 0xd7, 0x02, + 0xff, 0xe1, 0x9e, 0xf0, 0xfa, 0xea, 0x7d, 0x8d, 0xb3, 0xbf, 0x67, 0x01, 0xcb, 0x30, 0x86, 0xf9, + 0xad, 0x5d, 0x1a, 0x38, 0x7a, 0x3b, 0x34, 0x7c, 0x19, 0x46, 0x36, 0xc5, 0xf0, 0x67, 0x28, 0x9d, + 0x8c, 0x0e, 0x9b, 0xb4, 0xe5, 0xa4, 0x89, 0x97, 0xb8, 0xe2, 0x1f, 0x56, 0xd4, 0xec, 0xff, 0xd2, + 0x82, 0xd9, 0xfc, 0x6a, 0xe8, 0x0e, 0x9c, 0x09, 0x48, 0xa3, 0x1b, 0x84, 0x74, 0x4b, 0x88, 0x0b, + 0x90, 0x78, 0x01, 0xc6, 0xa7, 0xfa, 0x99, 0x83, 0xfd, 0xea, 0x19, 0x9c, 0x8d, 0x82, 0xf3, 0xea, + 0xa2, 0xb7, 0x60, 0xb2, 0x1b, 0x72, 0xc9, 0x8f, 0x09, 0x5d, 0xa1, 0x08, 0x63, 0xcf, 0x1e, 0x49, + 0xdd, 0x31, 0x20, 0x38, 0x81, 0x69, 0xff, 0x79, 0xbe, 0x1c, 0x95, 0xc7, 0x6b, 0x1b, 0x66, 0x3c, + 0xed, 0x3f, 0x3d, 0x01, 0xe5, 0x55, 0xff, 0xf9, 0x5e, 0xa7, 0x3e, 0x3b, 0x2e, 0xb5, 0x18, 0x03, + 0x09, 0x32, 0x38, 0x4d, 0xd9, 0xfe, 0x9b, 0x16, 0x9c, 0xd1, 0x11, 0xb5, 0x17, 0x87, 0xbd, 0xac, + 0x80, 0x4b, 0x5a, 0x00, 0x3e, 0x7e, 0xcc, 0x5d, 0xce, 0x08, 0xc0, 0x77, 0x52, 0xa7, 0x5e, 0x18, + 0x6d, 0x8f, 0xbf, 0x2d, 0xcd, 0x8a, 0xb6, 0xf7, 0x47, 0x16, 0x5f, 0x9f, 0x7a, 0xd7, 0xd1, 0x47, + 0x30, 0xdd, 0x76, 0xa2, 0xc6, 0xf6, 0xf2, 0xc3, 0x4e, 0xc0, 0x8d, 0xbb, 0x72, 0x9c, 0x5e, 0xee, + 0x35, 0x4e, 0xda, 0x47, 0xc6, 0xde, 0xe0, 0x6b, 0x09, 0x62, 0x38, 0x45, 0x1e, 0xdd, 0x87, 0x31, + 0x56, 0xc6, 0xde, 0x62, 0x87, 0x45, 0xb2, 0x4c, 0x5e, 0x6b, 0xca, 0x39, 0x68, 0x2d, 0xa6, 0x83, + 0x75, 0xa2, 0xf6, 0x2f, 0x95, 0x39, 0xd3, 0x60, 0x77, 0x8f, 0x97, 0x60, 0xb8, 0xe3, 0x37, 0x17, + 0x57, 0x97, 0xb0, 0x98, 0x05, 0x75, 0xee, 0xd5, 0x78, 0x31, 0x96, 0x70, 0x74, 0x19, 0x46, 0xc4, + 0x4f, 0x69, 0x8c, 0x67, 0x7b, 0x44, 0xe0, 0x85, 0x58, 0x41, 0xd1, 0x6b, 0x00, 0x9d, 0xc0, 0xdf, + 0x75, 0x9b, 0x2c, 0xf6, 0x56, 0xd9, 0xf4, 0xeb, 0xab, 0x29, 0x08, 0xd6, 0xb0, 0xd0, 0xdb, 0x30, + 0xd1, 0xf5, 0x42, 0x2e, 0x3f, 0x69, 0xc9, 0x38, 0x94, 0xc7, 0xd9, 0x1d, 0x1d, 0x88, 0x4d, 0x5c, + 0x34, 0x0f, 0x43, 0x91, 0xc3, 0xfc, 0xd4, 0x06, 0xf3, 0x5f, 0x0c, 0x6c, 0x50, 0x0c, 0x3d, 0xed, + 0x25, 0xad, 0x80, 0x45, 0x45, 0xf4, 0x55, 0x19, 0x16, 0x81, 0x9f, 0x44, 0xe2, 0xa9, 0x4e, 0x7f, + 0xa7, 0x96, 0x16, 0x14, 0x41, 0x3c, 0x01, 0x32, 0x68, 0xa1, 0xb7, 0x00, 0xc8, 0xc3, 0x88, 0x04, + 0x9e, 0xd3, 0x52, 0xde, 0xa5, 0x4a, 0x90, 0x59, 0xf2, 0xd7, 0xfd, 0xe8, 0x4e, 0x48, 0x96, 0x15, + 0x06, 0xd6, 0xb0, 0xed, 0x9f, 0x18, 0x03, 0x88, 0x2f, 0x1a, 0xe8, 0x11, 0x8c, 0x34, 0x9c, 0x8e, + 0xd3, 0xe0, 0x39, 0x9d, 0xcb, 0x79, 0x0f, 0xcb, 0xe3, 0x1a, 0x73, 0x8b, 0x02, 0x9d, 0x1b, 0x6f, + 0x64, 0x3e, 0x83, 0x11, 0x59, 0xdc, 0xd3, 0x60, 0xa3, 0xda, 0x43, 0xdf, 0xb1, 0x60, 0x4c, 0xc4, + 0xb6, 0x62, 0x33, 0x54, 0xca, 0xb7, 0xb7, 0x69, 0xed, 0xcf, 0xc7, 0x35, 0x78, 0x17, 0x5e, 0x97, + 0x2b, 0x54, 0x83, 0xf4, 0xec, 0x85, 0xde, 0x30, 0xfa, 0x9c, 0xbc, 0xdb, 0x96, 0x8d, 0xa1, 0x54, + 0x77, 0xdb, 0x51, 0x76, 0xd4, 0xe8, 0xd7, 0xda, 0x3b, 0xc6, 0xb5, 0x76, 0x20, 0xff, 0x89, 0xb6, + 0x21, 0x6f, 0xf7, 0xba, 0xd1, 0xa2, 0x9a, 0x1e, 0x03, 0x66, 0x30, 0xff, 0x85, 0xaf, 0x76, 0xb1, + 0xeb, 0x11, 0xff, 0xe5, 0x5b, 0x30, 0xd5, 0x34, 0xa5, 0x16, 0xb1, 0x12, 0x5f, 0xcc, 0xa3, 0x9b, + 0x10, 0x72, 0x62, 0x39, 0x25, 0x01, 0xc0, 0x49, 0xc2, 0xa8, 0xc6, 0x43, 0x02, 0xad, 0x7a, 0x9b, + 0xbe, 0x78, 0x2e, 0x66, 0xe7, 0xce, 0xe5, 0x5e, 0x18, 0x91, 0x36, 0xc5, 0x8c, 0x85, 0x84, 0x75, + 0x51, 0x17, 0x2b, 0x2a, 0xe8, 0x7d, 0x18, 0x62, 0x4f, 0x3c, 0xc3, 0xca, 0x48, 0xbe, 0x59, 0xc3, + 0x8c, 0x2e, 0x1c, 0x6f, 0x48, 0xf6, 0x37, 0xc4, 0x82, 0x02, 0xba, 0x21, 0x1f, 0x50, 0x87, 0xab, + 0xde, 0x9d, 0x90, 0xb0, 0x07, 0xd4, 0xa3, 0x0b, 0xcf, 0xc7, 0x6f, 0xa3, 0x79, 0x79, 0x66, 0x72, + 0x6c, 0xa3, 0x26, 0x15, 0xfb, 0xc4, 0x7f, 0x99, 0x73, 0x5b, 0x44, 0xea, 0xcb, 0xec, 0x9e, 0x99, + 0x97, 0x3b, 0x1e, 0xce, 0xbb, 0x26, 0x09, 0x9c, 0xa4, 0x49, 0x45, 0x68, 0xbe, 0xeb, 0xc5, 0x83, + 0xb3, 0x5e, 0xbc, 0x83, 0x6b, 0x0e, 0xd8, 0x69, 0xc4, 0x4b, 0xb0, 0xa8, 0x8f, 0x5c, 0x98, 0x0a, + 0x0c, 0xf1, 0x42, 0x06, 0xd8, 0xbb, 0xd4, 0x9f, 0x10, 0xa3, 0x65, 0x19, 0x31, 0xc9, 0xe0, 0x24, + 0x5d, 0xf4, 0xbe, 0x26, 0x28, 0x4d, 0x14, 0xdf, 0xfc, 0x7b, 0x89, 0x46, 0xb3, 0x3b, 0x30, 0x61, + 0x30, 0x9b, 0xa7, 0x6a, 0x82, 0xf4, 0x60, 0x3a, 0xc9, 0x59, 0x9e, 0xaa, 0xe5, 0xf1, 0x2d, 0x98, + 0x64, 0x1b, 0xe1, 0x81, 0xd3, 0x11, 0xac, 0xf8, 0xb2, 0xc1, 0x8a, 0xad, 0xcb, 0x65, 0x3e, 0x30, + 0x72, 0x08, 0x62, 0xc6, 0x69, 0xff, 0x9d, 0x41, 0x51, 0x59, 0xed, 0x22, 0x74, 0x05, 0x46, 0x45, + 0x07, 0x54, 0xaa, 0x3e, 0xc5, 0x18, 0xd6, 0x24, 0x00, 0xc7, 0x38, 0x2c, 0x43, 0x23, 0xab, 0xae, + 0xbd, 0x50, 0x88, 0x33, 0x34, 0x2a, 0x08, 0xd6, 0xb0, 0xe8, 0xe5, 0xf7, 0xbe, 0xef, 0x47, 0xea, + 0x0c, 0x56, 0x5b, 0x6d, 0x81, 0x95, 0x62, 0x01, 0xa5, 0x67, 0xef, 0x0e, 0x09, 0x3c, 0xd2, 0x32, + 0x73, 0xd5, 0xa8, 0xb3, 0xf7, 0xa6, 0x0e, 0xc4, 0x26, 0x2e, 0x95, 0x20, 0xfc, 0x90, 0xed, 0x5d, + 0x71, 0xc5, 0x8e, 0x5f, 0x7c, 0xd4, 0x79, 0x90, 0x0f, 0x09, 0x47, 0x5f, 0x81, 0x33, 0x2a, 0xd8, + 0xa6, 0x58, 0x99, 0xb2, 0xc5, 0x21, 0x43, 0x23, 0x76, 0x66, 0x31, 0x1b, 0x0d, 0xe7, 0xd5, 0x47, + 0xef, 0xc2, 0xa4, 0xb8, 0x86, 0x49, 0x8a, 0xc3, 0xa6, 0xfb, 0xe2, 0x4d, 0x03, 0x8a, 0x13, 0xd8, + 0x32, 0xdb, 0x0e, 0xbb, 0x9f, 0x48, 0x0a, 0x23, 0xe9, 0x6c, 0x3b, 0x3a, 0x1c, 0xa7, 0x6a, 0xa0, + 0x79, 0x98, 0xe2, 0x62, 0xa7, 0xeb, 0x6d, 0xf1, 0x39, 0x11, 0x4f, 0x60, 0xd5, 0x86, 0xbc, 0x6d, + 0x82, 0x71, 0x12, 0x1f, 0x5d, 0x83, 0x71, 0x27, 0x68, 0x6c, 0xbb, 0x11, 0x69, 0xd0, 0x5d, 0xc5, + 0x3c, 0x08, 0x35, 0xff, 0xcf, 0x79, 0x0d, 0x86, 0x0d, 0x4c, 0xf4, 0x1e, 0x0c, 0x84, 0x0f, 0x9c, + 0x8e, 0xe0, 0x3e, 0xf9, 0xac, 0x5c, 0xad, 0x60, 0xee, 0xfa, 0x45, 0xff, 0x63, 0x56, 0xd3, 0x7e, + 0x04, 0x27, 0x32, 0x82, 0x12, 0xd1, 0xa5, 0xe7, 0x74, 0x5c, 0x39, 0x2a, 0x89, 0x67, 0x1a, 0xf3, + 0xb5, 0x55, 0x39, 0x1e, 0x1a, 0x16, 0x5d, 0xdf, 0x2c, 0x78, 0x51, 0x2d, 0x36, 0x24, 0xa9, 0xf5, + 0xbd, 0x22, 0x01, 0x38, 0xc6, 0xb1, 0xff, 0xa4, 0x04, 0x53, 0x19, 0xe6, 0x41, 0x96, 0x1b, 0x3f, + 0x71, 0xcf, 0x8b, 0x53, 0xe1, 0x9b, 0xe9, 0x9f, 0x4a, 0x47, 0x48, 0xff, 0x54, 0xee, 0x95, 0xfe, + 0x69, 0xe0, 0xe3, 0xa4, 0x7f, 0x32, 0x47, 0x6c, 0xb0, 0xaf, 0x11, 0xcb, 0x48, 0x19, 0x35, 0x74, + 0xc4, 0x94, 0x51, 0xc6, 0xa0, 0x0f, 0xf7, 0x31, 0xe8, 0xff, 0x69, 0x09, 0xa6, 0x93, 0x96, 0xc5, + 0x63, 0xd0, 0xce, 0xbf, 0x6f, 0x68, 0xe7, 0x2f, 0xf7, 0x13, 0xf4, 0x20, 0x57, 0x53, 0x8f, 0x13, + 0x9a, 0xfa, 0xcf, 0xf6, 0x45, 0xad, 0x58, 0x6b, 0xff, 0xb7, 0x4a, 0x70, 0x2a, 0xd3, 0xe0, 0x7a, + 0x0c, 0x63, 0x73, 0xdb, 0x18, 0x9b, 0x57, 0xfb, 0x0e, 0x08, 0x91, 0x3b, 0x40, 0xf7, 0x12, 0x03, + 0x74, 0xa5, 0x7f, 0x92, 0xc5, 0xa3, 0xf4, 0xfd, 0x32, 0x5c, 0xc8, 0xac, 0x17, 0x2b, 0xb7, 0x57, + 0x0c, 0xe5, 0xf6, 0x6b, 0x09, 0xe5, 0xb6, 0x5d, 0x5c, 0xfb, 0xc9, 0x68, 0xbb, 0x45, 0x60, 0x04, + 0x16, 0xde, 0xe5, 0x31, 0x35, 0xdd, 0x46, 0x60, 0x04, 0x45, 0x08, 0x9b, 0x74, 0x7f, 0x98, 0x34, + 0xdc, 0xff, 0x83, 0x05, 0x67, 0x33, 0xe7, 0xe6, 0x18, 0xf4, 0x8c, 0xeb, 0xa6, 0x9e, 0xf1, 0xa5, + 0xbe, 0x57, 0x6b, 0x8e, 0xe2, 0xf1, 0xbb, 0x43, 0x39, 0xdf, 0xc2, 0xd4, 0x1f, 0xb7, 0x61, 0xcc, + 0x69, 0x34, 0x48, 0x18, 0xae, 0xb1, 0x54, 0x13, 0xdc, 0xf6, 0xfa, 0x2a, 0xbb, 0x9c, 0xc6, 0xc5, + 0x87, 0xfb, 0xd5, 0xd9, 0x24, 0x89, 0x18, 0x8c, 0x75, 0x0a, 0xe8, 0xeb, 0x30, 0x12, 0xca, 0x24, + 0xbf, 0x03, 0x8f, 0x9f, 0xe4, 0x97, 0x49, 0x92, 0x4a, 0xbd, 0xa3, 0x48, 0xa2, 0x3f, 0xa7, 0x87, + 0xf7, 0x2a, 0x50, 0x6c, 0xf2, 0x4e, 0x3e, 0x46, 0x90, 0x2f, 0xf3, 0x39, 0x7c, 0xb9, 0xaf, 0xe7, + 0xf0, 0xef, 0xc1, 0x74, 0xc8, 0xc3, 0xe5, 0xc6, 0x2e, 0x32, 0x7c, 0x2d, 0xb2, 0x88, 0x83, 0xf5, + 0x04, 0x0c, 0xa7, 0xb0, 0xd1, 0x8a, 0x6c, 0x95, 0x39, 0x43, 0xf1, 0xe5, 0x79, 0x29, 0x6e, 0x51, + 0x38, 0x44, 0x9d, 0x4c, 0x4e, 0x02, 0x1b, 0x7e, 0xad, 0x26, 0xfa, 0x3a, 0x00, 0x5d, 0x44, 0x42, + 0x85, 0x33, 0x9c, 0xcf, 0x42, 0x29, 0x6f, 0x69, 0x66, 0xbe, 0xc0, 0x60, 0x11, 0x0d, 0x96, 0x14, + 0x11, 0xac, 0x11, 0x44, 0x0e, 0x4c, 0xc4, 0xff, 0x30, 0xd9, 0x2c, 0x0a, 0xb0, 0xc6, 0x5a, 0x48, + 0x12, 0x67, 0xe6, 0x8d, 0x25, 0x9d, 0x04, 0x36, 0x29, 0xa2, 0xaf, 0xc1, 0xd9, 0xdd, 0x5c, 0xbf, + 0x23, 0x2e, 0x4b, 0x9e, 0x3f, 0xd8, 0xaf, 0x9e, 0xcd, 0xf7, 0x36, 0xca, 0xaf, 0x6f, 0xff, 0x8f, + 0x00, 0xcf, 0x14, 0x70, 0x7a, 0x34, 0x6f, 0xfa, 0x0c, 0xbc, 0x9c, 0xd4, 0xab, 0xcc, 0x66, 0x56, + 0x36, 0x14, 0x2d, 0x89, 0x0d, 0x55, 0xfa, 0xd8, 0x1b, 0xea, 0xa7, 0x2c, 0xed, 0x9a, 0xc5, 0x3d, + 0xca, 0xbf, 0x74, 0xc4, 0x13, 0xec, 0x09, 0xaa, 0xc0, 0x36, 0x33, 0xf4, 0x48, 0xaf, 0xf5, 0xdd, + 0x9d, 0xfe, 0x15, 0x4b, 0xbf, 0x9a, 0x9d, 0x60, 0x80, 0xab, 0x98, 0xae, 0x1f, 0xf5, 0xfb, 0x8f, + 0x2b, 0xd9, 0xc0, 0xef, 0x5b, 0x70, 0x36, 0x55, 0xcc, 0xfb, 0x40, 0x42, 0x11, 0xce, 0x70, 0xfd, + 0x63, 0x77, 0x5e, 0x12, 0xe4, 0xdf, 0x70, 0x43, 0x7c, 0xc3, 0xd9, 0x5c, 0xbc, 0x64, 0xd7, 0x7f, + 0xf2, 0x5f, 0x55, 0x4f, 0xb0, 0x06, 0x4c, 0x44, 0x9c, 0xdf, 0x75, 0xd4, 0x81, 0x8b, 0x8d, 0x6e, + 0x10, 0xc4, 0x8b, 0x35, 0x63, 0x73, 0xf2, 0xdb, 0xe2, 0xf3, 0x07, 0xfb, 0xd5, 0x8b, 0x8b, 0x3d, + 0x70, 0x71, 0x4f, 0x6a, 0xc8, 0x03, 0xd4, 0x4e, 0x79, 0xf7, 0x31, 0x06, 0x90, 0xa3, 0x05, 0x4a, + 0xfb, 0x02, 0x72, 0x3f, 0xdd, 0x0c, 0x1f, 0xc1, 0x0c, 0xca, 0xc7, 0xab, 0xbb, 0xf9, 0xc1, 0x64, + 0x33, 0x98, 0xbd, 0x05, 0x17, 0x8a, 0x17, 0xd3, 0x91, 0x42, 0x50, 0xfc, 0x9e, 0x05, 0xe7, 0x0b, + 0x43, 0xb3, 0xfd, 0x19, 0xbc, 0x2c, 0xd8, 0xdf, 0xb6, 0xe0, 0xd9, 0xcc, 0x1a, 0xc9, 0xc7, 0x83, + 0x0d, 0x5a, 0xa8, 0x39, 0xc3, 0xc6, 0x41, 0x8a, 0x24, 0x00, 0xc7, 0x38, 0x86, 0xbf, 0x68, 0xa9, + 0xa7, 0xbf, 0xe8, 0x3f, 0xb5, 0x20, 0x75, 0xd4, 0x1f, 0x83, 0xe4, 0xb9, 0x6a, 0x4a, 0x9e, 0xcf, + 0xf7, 0x33, 0x9a, 0x39, 0x42, 0xe7, 0xbf, 0x9d, 0x82, 0xd3, 0x39, 0x2f, 0xc8, 0x77, 0x61, 0x66, + 0xab, 0x41, 0xcc, 0x90, 0x21, 0x45, 0xd1, 0xff, 0x0a, 0xe3, 0x8b, 0x2c, 0x9c, 0x3a, 0xd8, 0xaf, + 0xce, 0xa4, 0x50, 0x70, 0xba, 0x09, 0xf4, 0x6d, 0x0b, 0x4e, 0x3a, 0x0f, 0xc2, 0x65, 0x7a, 0x83, + 0x70, 0x1b, 0x0b, 0x2d, 0xbf, 0xb1, 0x43, 0x05, 0x33, 0xb9, 0xad, 0xde, 0xc8, 0x54, 0x85, 0xdf, + 0xab, 0xa7, 0xf0, 0x8d, 0xe6, 0x2b, 0x07, 0xfb, 0xd5, 0x93, 0x59, 0x58, 0x38, 0xb3, 0x2d, 0x84, + 0x45, 0x0e, 0x3f, 0x27, 0xda, 0x2e, 0x0a, 0x6a, 0x93, 0xf5, 0xd4, 0x9f, 0x8b, 0xc4, 0x12, 0x82, + 0x15, 0x1d, 0xf4, 0x4d, 0x18, 0xdd, 0x92, 0xf1, 0x2b, 0x32, 0x44, 0xee, 0x78, 0x20, 0x8b, 0xa3, + 0x7a, 0x70, 0x07, 0x1c, 0x85, 0x84, 0x63, 0xa2, 0xe8, 0x5d, 0x28, 0x7b, 0x9b, 0x61, 0x51, 0x08, + 0xe9, 0x84, 0xa7, 0x35, 0x8f, 0x76, 0xb5, 0xbe, 0x52, 0xc7, 0xb4, 0x22, 0xba, 0x01, 0xe5, 0xe0, + 0x7e, 0x53, 0xd8, 0x71, 0x32, 0x37, 0x29, 0x5e, 0x58, 0xca, 0xe9, 0x15, 0xa3, 0x84, 0x17, 0x96, + 0x30, 0x25, 0x81, 0x6a, 0x30, 0xc8, 0x9e, 0x5d, 0x0b, 0xd1, 0x36, 0xf3, 0x2a, 0x5f, 0x10, 0xbe, + 0x80, 0xbf, 0x87, 0x64, 0x08, 0x98, 0x13, 0x42, 0x1b, 0x30, 0xd4, 0x70, 0xbd, 0x26, 0x09, 0x84, + 0x2c, 0xfb, 0xb9, 0x4c, 0x8b, 0x0d, 0xc3, 0xc8, 0xa1, 0xc9, 0x0d, 0x18, 0x0c, 0x03, 0x0b, 0x5a, + 0x8c, 0x2a, 0xe9, 0x6c, 0x6f, 0xca, 0x13, 0x2b, 0x9b, 0x2a, 0xe9, 0x6c, 0xaf, 0xd4, 0x0b, 0xa9, + 0x32, 0x0c, 0x2c, 0x68, 0xa1, 0xb7, 0xa0, 0xb4, 0xd9, 0x10, 0x4f, 0xaa, 0x33, 0xd5, 0x9b, 0x66, + 0xc0, 0xb2, 0x85, 0xa1, 0x83, 0xfd, 0x6a, 0x69, 0x65, 0x11, 0x97, 0x36, 0x1b, 0x68, 0x1d, 0x86, + 0x37, 0x79, 0xbc, 0x20, 0xa1, 0x1f, 0x7d, 0x31, 0x3b, 0x94, 0x51, 0x2a, 0xa4, 0x10, 0x7f, 0xdb, + 0x2a, 0x00, 0x58, 0x12, 0x61, 0x09, 0xcf, 0x54, 0xdc, 0x23, 0x11, 0x29, 0x76, 0xee, 0x68, 0xb1, + 0xaa, 0x44, 0xa0, 0x71, 0x45, 0x05, 0x6b, 0x14, 0xe9, 0xaa, 0x76, 0x1e, 0x75, 0x03, 0x96, 0x11, + 0x45, 0x18, 0x66, 0x32, 0x57, 0xf5, 0xbc, 0x44, 0x2a, 0x5a, 0xd5, 0x0a, 0x09, 0xc7, 0x44, 0xd1, + 0x0e, 0x4c, 0xec, 0x86, 0x9d, 0x6d, 0x22, 0xb7, 0x34, 0x8b, 0x30, 0x98, 0x23, 0xcd, 0xde, 0x15, + 0x88, 0x6e, 0x10, 0x75, 0x9d, 0x56, 0x8a, 0x0b, 0xb1, 0x6b, 0xcd, 0x5d, 0x9d, 0x18, 0x36, 0x69, + 0xd3, 0xe1, 0xff, 0xa8, 0xeb, 0xdf, 0xdf, 0x8b, 0x88, 0x08, 0xf0, 0x9a, 0x39, 0xfc, 0x1f, 0x70, + 0x94, 0xf4, 0xf0, 0x0b, 0x00, 0x96, 0x44, 0xd0, 0x5d, 0x31, 0x3c, 0x8c, 0x7b, 0x4e, 0xe7, 0x07, + 0xc2, 0x9f, 0x97, 0x48, 0x39, 0x83, 0xc2, 0xb8, 0x65, 0x4c, 0x8a, 0x71, 0xc9, 0xce, 0xb6, 0x1f, + 0xf9, 0x5e, 0x82, 0x43, 0xcf, 0xe4, 0x73, 0xc9, 0x5a, 0x06, 0x7e, 0x9a, 0x4b, 0x66, 0x61, 0xe1, + 0xcc, 0xb6, 0x50, 0x13, 0x26, 0x3b, 0x7e, 0x10, 0x3d, 0xf0, 0x03, 0xb9, 0xbe, 0x50, 0x81, 0xa2, + 0xd4, 0xc0, 0x14, 0x2d, 0x32, 0xb7, 0x20, 0x13, 0x82, 0x13, 0x34, 0xd1, 0x97, 0x61, 0x38, 0x6c, + 0x38, 0x2d, 0xb2, 0x7a, 0xbb, 0x72, 0x22, 0xff, 0xf8, 0xa9, 0x73, 0x94, 0x9c, 0xd5, 0xc5, 0xc3, + 0x3d, 0x71, 0x14, 0x2c, 0xc9, 0xa1, 0x15, 0x18, 0x64, 0x39, 0xef, 0x59, 0x34, 0xe2, 0x9c, 0x78, + 0xfe, 0xa9, 0x47, 0x3d, 0x9c, 0x37, 0xb1, 0x62, 0xcc, 0xab, 0xd3, 0x3d, 0x20, 0x34, 0x05, 0x7e, + 0x58, 0x39, 0x95, 0xbf, 0x07, 0x84, 0x82, 0xe1, 0x76, 0xbd, 0x68, 0x0f, 0x28, 0x24, 0x1c, 0x13, + 0xa5, 0x9c, 0x99, 0x72, 0xd3, 0xd3, 0x05, 0x0e, 0x9b, 0xb9, 0xbc, 0x94, 0x71, 0x66, 0xca, 0x49, + 0x29, 0x09, 0xfb, 0x37, 0x47, 0xd2, 0x32, 0x0b, 0xd3, 0x30, 0xfd, 0xc7, 0x56, 0xca, 0x63, 0xe3, + 0xf3, 0xfd, 0x2a, 0xbc, 0x9f, 0xe0, 0xc5, 0xf5, 0xdb, 0x16, 0x9c, 0xee, 0x64, 0x7e, 0x88, 0x10, + 0x00, 0xfa, 0xd3, 0x9b, 0xf3, 0x4f, 0x57, 0x91, 0xab, 0xb3, 0xe1, 0x38, 0xa7, 0xa5, 0xa4, 0x72, + 0xa0, 0xfc, 0xb1, 0x95, 0x03, 0x6b, 0x30, 0xd2, 0xe0, 0x37, 0x39, 0x99, 0x3c, 0xa2, 0xaf, 0xb8, + 0xab, 0xdc, 0x4e, 0x2b, 0x2a, 0x62, 0x45, 0x02, 0xfd, 0xb4, 0x05, 0xe7, 0x93, 0x5d, 0xc7, 0x84, + 0x81, 0x85, 0xbb, 0x26, 0x57, 0x6b, 0xad, 0x88, 0xef, 0x4f, 0xc9, 0xff, 0x06, 0xf2, 0x61, 0x2f, + 0x04, 0x5c, 0xdc, 0x18, 0x5a, 0xca, 0xd0, 0xab, 0x0d, 0x99, 0x36, 0xc9, 0x3e, 0x74, 0x6b, 0x6f, + 0xc0, 0x78, 0xdb, 0xef, 0x7a, 0x91, 0xf0, 0xba, 0x14, 0xae, 0x5b, 0xcc, 0x65, 0x69, 0x4d, 0x2b, + 0xc7, 0x06, 0x56, 0x42, 0x23, 0x37, 0xf2, 0xd8, 0x1a, 0xb9, 0x0f, 0x61, 0xdc, 0xd3, 0x1e, 0x24, + 0x14, 0xdd, 0x60, 0x85, 0x76, 0x51, 0xc3, 0xe6, 0xbd, 0xd4, 0x4b, 0xb0, 0x41, 0xad, 0x58, 0x5b, + 0x06, 0x1f, 0x4f, 0x5b, 0x76, 0xac, 0x57, 0x62, 0xfb, 0xef, 0x95, 0x32, 0x6e, 0x0c, 0x5c, 0x2b, + 0xf7, 0x8e, 0xa9, 0x95, 0xbb, 0x94, 0xd4, 0xca, 0xa5, 0x4c, 0x55, 0x86, 0x42, 0xae, 0xff, 0x0c, + 0xa6, 0x7d, 0xc7, 0xd2, 0xfe, 0x0b, 0x16, 0x9c, 0x61, 0xb6, 0x0f, 0xda, 0xc0, 0xc7, 0xb6, 0x77, + 0x30, 0x87, 0xd8, 0x5b, 0xd9, 0xe4, 0x70, 0x5e, 0x3b, 0x76, 0x0b, 0x2e, 0xf6, 0x3a, 0x77, 0x99, + 0x7f, 0x71, 0x53, 0xb9, 0x57, 0xc4, 0xfe, 0xc5, 0xcd, 0xd5, 0x25, 0xcc, 0x20, 0xfd, 0x86, 0x5d, + 0xb4, 0xff, 0x4f, 0x0b, 0xca, 0x35, 0xbf, 0x79, 0x0c, 0x37, 0xfa, 0x2f, 0x19, 0x37, 0xfa, 0x67, + 0xb2, 0x4f, 0xfc, 0x66, 0xae, 0xb1, 0x6f, 0x39, 0x61, 0xec, 0x3b, 0x9f, 0x47, 0xa0, 0xd8, 0xb4, + 0xf7, 0xb7, 0xcb, 0x30, 0x56, 0xf3, 0x9b, 0x6a, 0x9f, 0xfd, 0x77, 0x8f, 0xf3, 0x8c, 0x28, 0x37, + 0x67, 0x99, 0x46, 0x99, 0xf9, 0x13, 0xcb, 0xa8, 0x17, 0x7f, 0xc6, 0x5e, 0x13, 0xdd, 0x23, 0xee, + 0xd6, 0x76, 0x44, 0x9a, 0xc9, 0xcf, 0x39, 0xbe, 0xd7, 0x44, 0x7f, 0x58, 0x86, 0xa9, 0x44, 0xeb, + 0xa8, 0x05, 0x13, 0x2d, 0xdd, 0x94, 0x24, 0xd6, 0xe9, 0x63, 0x59, 0xa1, 0xc4, 0x6b, 0x0c, 0xad, + 0x08, 0x9b, 0xc4, 0xd1, 0x1c, 0x80, 0xa7, 0xfb, 0xa4, 0xab, 0x98, 0xd0, 0x9a, 0x3f, 0xba, 0x86, + 0x81, 0xde, 0x84, 0xb1, 0xc8, 0xef, 0xf8, 0x2d, 0x7f, 0x6b, 0xef, 0xa6, 0x8a, 0x8f, 0xac, 0x5c, + 0x96, 0x37, 0x62, 0x10, 0xd6, 0xf1, 0xd0, 0x43, 0x98, 0x51, 0x44, 0xea, 0x4f, 0xc0, 0xbc, 0xc6, + 0xd4, 0x26, 0xeb, 0x49, 0x8a, 0x38, 0xdd, 0x08, 0x7a, 0x0b, 0x26, 0x99, 0xef, 0x34, 0xab, 0x7f, + 0x93, 0xec, 0xc9, 0xe0, 0xd2, 0x4c, 0xc2, 0x5e, 0x33, 0x20, 0x38, 0x81, 0x89, 0x16, 0x61, 0xa6, + 0xed, 0x86, 0x89, 0xea, 0x43, 0xac, 0x3a, 0xeb, 0xc0, 0x5a, 0x12, 0x88, 0xd3, 0xf8, 0xf6, 0x2f, + 0x88, 0x39, 0xf6, 0x22, 0xf7, 0xd3, 0xed, 0xf8, 0xc9, 0xde, 0x8e, 0xdf, 0xb7, 0x60, 0x9a, 0xb6, + 0xce, 0x1c, 0x42, 0xa5, 0x20, 0xa5, 0xd2, 0x8f, 0x58, 0x05, 0xe9, 0x47, 0x2e, 0x51, 0xb6, 0xdd, + 0xf4, 0xbb, 0x91, 0xd0, 0x8e, 0x6a, 0x7c, 0x99, 0x96, 0x62, 0x01, 0x15, 0x78, 0x24, 0x08, 0xc4, + 0xab, 0x7b, 0x1d, 0x8f, 0x04, 0x01, 0x16, 0x50, 0x99, 0x9d, 0x64, 0x20, 0x3b, 0x3b, 0x09, 0x0f, + 0x32, 0x2f, 0xfc, 0xe8, 0x84, 0x48, 0xab, 0x05, 0x99, 0x97, 0x0e, 0x76, 0x31, 0x8e, 0xfd, 0xd7, + 0xca, 0x50, 0xa9, 0xf9, 0xcd, 0x45, 0x12, 0x44, 0xee, 0xa6, 0xdb, 0x70, 0x22, 0xa2, 0xe5, 0xdb, + 0x7d, 0x0d, 0x80, 0x3d, 0x22, 0x0b, 0xb2, 0x22, 0xa8, 0xd7, 0x15, 0x04, 0x6b, 0x58, 0x54, 0x2a, + 0xd9, 0x21, 0x7b, 0xda, 0xc9, 0xab, 0xa4, 0x92, 0x9b, 0xbc, 0x18, 0x4b, 0x38, 0xba, 0xc5, 0x42, + 0x19, 0x2d, 0x3f, 0xec, 0xb8, 0x01, 0xcf, 0x4c, 0x4e, 0x1a, 0xbe, 0xd7, 0x0c, 0x45, 0xe0, 0xb7, + 0x8a, 0x08, 0x44, 0x94, 0x82, 0xe3, 0xcc, 0x5a, 0xa8, 0x06, 0x27, 0x1b, 0x01, 0x69, 0x12, 0x2f, + 0x72, 0x9d, 0xd6, 0x42, 0xd7, 0x6b, 0xb6, 0x78, 0x4a, 0x9e, 0x01, 0x23, 0x83, 0xe8, 0xc9, 0xc5, + 0x0c, 0x1c, 0x9c, 0x59, 0x53, 0x7c, 0x0a, 0x23, 0x32, 0x98, 0xfa, 0x14, 0x56, 0x4f, 0xc2, 0x59, + 0xe3, 0xf1, 0x10, 0x2e, 0x6e, 0x3b, 0xae, 0xc7, 0xea, 0x0d, 0x25, 0x1a, 0xcf, 0xc0, 0xc1, 0x99, + 0x35, 0xed, 0x3f, 0x2d, 0xc3, 0x38, 0x9d, 0x18, 0xe5, 0x71, 0xf3, 0x86, 0xe1, 0x71, 0x73, 0x31, + 0xe1, 0x71, 0x33, 0xad, 0xe3, 0x6a, 0xfe, 0x35, 0xef, 0x03, 0xf2, 0x45, 0x52, 0x82, 0xeb, 0xc4, + 0x23, 0x7c, 0xc8, 0x98, 0x92, 0xb1, 0x1c, 0xfb, 0xa3, 0xdc, 0x4e, 0x61, 0xe0, 0x8c, 0x5a, 0x9f, + 0xfa, 0xea, 0x1c, 0xaf, 0xaf, 0xce, 0x6f, 0x59, 0x6c, 0x05, 0x2c, 0xad, 0xd7, 0xb9, 0x13, 0x39, + 0xba, 0x0a, 0x63, 0xec, 0x18, 0x63, 0xb1, 0x3c, 0xa4, 0x4b, 0x0b, 0xcb, 0x6e, 0xbb, 0x1e, 0x17, + 0x63, 0x1d, 0x07, 0x5d, 0x86, 0x91, 0x90, 0x38, 0x41, 0x63, 0x5b, 0x9d, 0xe1, 0xc2, 0xff, 0x84, + 0x97, 0x61, 0x05, 0x45, 0x1f, 0xc4, 0x11, 0xe1, 0xcb, 0xf9, 0x1e, 0xe9, 0x7a, 0x7f, 0x38, 0x1f, + 0xcc, 0x0f, 0x03, 0x6f, 0xdf, 0x03, 0x94, 0xc6, 0xef, 0xe3, 0x89, 0x5f, 0xd5, 0x8c, 0x59, 0x3c, + 0x9a, 0x8a, 0x57, 0xfc, 0xef, 0x2d, 0x98, 0xac, 0xf9, 0x4d, 0xca, 0x9f, 0x7f, 0x98, 0x98, 0xb1, + 0x9e, 0xc1, 0x63, 0xa8, 0x20, 0x83, 0xc7, 0x81, 0x05, 0x17, 0xd8, 0xe7, 0x47, 0xc4, 0x6b, 0xc6, + 0x06, 0x4f, 0xdd, 0xdf, 0xe3, 0x01, 0x4c, 0x05, 0x3c, 0x7c, 0xd7, 0x9a, 0xd3, 0xe9, 0xb8, 0xde, + 0x96, 0x7c, 0xdf, 0xf6, 0x46, 0xe1, 0xbb, 0x8d, 0x24, 0x49, 0x11, 0x02, 0x4c, 0x77, 0x54, 0x35, + 0x88, 0xe2, 0x64, 0x2b, 0x3c, 0x2b, 0x8d, 0xd6, 0x1f, 0x2d, 0x41, 0xa5, 0x96, 0x95, 0x26, 0x81, + 0x80, 0xd3, 0x75, 0xec, 0xe7, 0x60, 0xb0, 0xe6, 0x37, 0x7b, 0x04, 0x8f, 0xfe, 0x3b, 0x16, 0x0c, + 0xd7, 0xfc, 0xe6, 0x31, 0x98, 0x10, 0xdf, 0x31, 0x4d, 0x88, 0x67, 0x72, 0x36, 0x47, 0x8e, 0xd5, + 0xf0, 0x9f, 0x0d, 0xc0, 0x04, 0xed, 0xa7, 0xbf, 0x25, 0xd7, 0xab, 0xb1, 0x36, 0xac, 0x3e, 0xd6, + 0x06, 0xbd, 0xd0, 0xfa, 0xad, 0x96, 0xff, 0x20, 0xb9, 0x76, 0x57, 0x58, 0x29, 0x16, 0x50, 0xf4, + 0x0a, 0x8c, 0x74, 0x02, 0xb2, 0xeb, 0xfa, 0xe2, 0xa6, 0xa8, 0x19, 0x64, 0x6b, 0xa2, 0x1c, 0x2b, + 0x0c, 0xf4, 0x06, 0x8c, 0x87, 0xae, 0x47, 0xa5, 0x62, 0x7e, 0xf4, 0x0e, 0xb0, 0x83, 0x81, 0xe7, + 0xd2, 0xd3, 0xca, 0xb1, 0x81, 0x85, 0xee, 0xc1, 0x28, 0xfb, 0xcf, 0x78, 0xeb, 0xe0, 0x91, 0x79, + 0xab, 0x48, 0x94, 0x2e, 0x08, 0xe0, 0x98, 0x16, 0x15, 0x38, 0x22, 0x99, 0x8f, 0x2a, 0x14, 0x41, + 0x84, 0x95, 0xc0, 0xa1, 0x32, 0x55, 0x85, 0x58, 0xc3, 0x42, 0x2f, 0xc3, 0x68, 0xe4, 0xb8, 0xad, + 0x5b, 0xae, 0xc7, 0x3c, 0x51, 0x68, 0xff, 0x45, 0xbe, 0x72, 0x51, 0x88, 0x63, 0x38, 0xbd, 0xd5, + 0xb0, 0xd8, 0x6a, 0x0b, 0x7b, 0x91, 0xc8, 0xa2, 0x59, 0xe6, 0xb7, 0x9a, 0x5b, 0xaa, 0x14, 0x6b, + 0x18, 0x68, 0x1b, 0xce, 0xb9, 0x1e, 0xcb, 0x3b, 0x47, 0xea, 0x3b, 0x6e, 0x67, 0xe3, 0x56, 0xfd, + 0x2e, 0x09, 0xdc, 0xcd, 0xbd, 0x05, 0xa7, 0xb1, 0x43, 0xbc, 0x26, 0x53, 0x7a, 0x8d, 0x2c, 0x3c, + 0x2f, 0xba, 0x78, 0x6e, 0xb5, 0x00, 0x17, 0x17, 0x52, 0x42, 0x36, 0xe5, 0x39, 0x01, 0x71, 0xda, + 0x42, 0xbb, 0xc5, 0x73, 0x56, 0xb1, 0x12, 0x2c, 0x20, 0xf6, 0xeb, 0x6c, 0x4f, 0xdc, 0xae, 0xa3, + 0xcf, 0x1a, 0x3c, 0xf4, 0xb4, 0xce, 0x43, 0x0f, 0xf7, 0xab, 0x43, 0xb7, 0xeb, 0x5a, 0x9c, 0xad, + 0x6b, 0x70, 0xaa, 0xe6, 0x37, 0x6b, 0x7e, 0x10, 0xad, 0xf8, 0xc1, 0x03, 0x27, 0x68, 0xca, 0x25, + 0x58, 0x95, 0x91, 0xc6, 0x28, 0x67, 0x18, 0xe4, 0x6c, 0xd6, 0x88, 0x22, 0xf6, 0x3a, 0xbb, 0x9f, + 0x1c, 0xf1, 0x61, 0x77, 0x83, 0x49, 0xca, 0x2a, 0xbb, 0xe3, 0x75, 0x27, 0x22, 0xe8, 0x36, 0x4c, + 0x34, 0x74, 0xd9, 0x44, 0x54, 0x7f, 0x49, 0x9e, 0xe8, 0x86, 0xe0, 0x92, 0x29, 0xcc, 0x98, 0xf5, + 0xed, 0xdf, 0xb7, 0x44, 0x2b, 0x1a, 0xd7, 0xe8, 0xe3, 0x60, 0x59, 0xcc, 0x62, 0x4e, 0xfc, 0xa6, + 0x7a, 0xaa, 0x5f, 0xc6, 0x84, 0xbe, 0x06, 0x67, 0x8d, 0x42, 0xe9, 0x14, 0xa2, 0xe5, 0xdf, 0x67, + 0x9a, 0x49, 0x9c, 0x87, 0x84, 0xf3, 0xeb, 0xdb, 0x3f, 0x06, 0xa7, 0x93, 0xdf, 0x25, 0x38, 0xfa, + 0x63, 0x7e, 0x5d, 0xe9, 0x68, 0x5f, 0x67, 0xbf, 0x09, 0x33, 0x35, 0x5f, 0x8b, 0xa2, 0xc2, 0xe6, + 0xaf, 0x77, 0x30, 0xb7, 0x5f, 0x1e, 0x61, 0x67, 0x7d, 0x22, 0x65, 0x23, 0xfa, 0x06, 0x4c, 0x86, + 0x84, 0x45, 0x30, 0x94, 0x3a, 0xea, 0x82, 0xa8, 0x0c, 0xf5, 0x65, 0x1d, 0x93, 0xdf, 0xc3, 0xcd, + 0x32, 0x9c, 0xa0, 0x86, 0xda, 0x30, 0xf9, 0xc0, 0xf5, 0x9a, 0xfe, 0x83, 0x50, 0xd2, 0x1f, 0xc9, + 0x37, 0x78, 0xdd, 0xe3, 0x98, 0x89, 0x3e, 0x1a, 0xcd, 0xdd, 0x33, 0x88, 0xe1, 0x04, 0x71, 0xca, + 0x6a, 0x82, 0xae, 0x37, 0x1f, 0xde, 0x09, 0x49, 0x20, 0xe2, 0x2b, 0x32, 0x56, 0x83, 0x65, 0x21, + 0x8e, 0xe1, 0x94, 0xd5, 0xb0, 0x3f, 0x2c, 0xac, 0x03, 0xe3, 0x65, 0x82, 0xd5, 0x60, 0x55, 0x8a, + 0x35, 0x0c, 0xca, 0x8a, 0xd9, 0xbf, 0x75, 0xdf, 0xc3, 0xbe, 0x1f, 0x49, 0xe6, 0xcd, 0xb2, 0xea, + 0x6a, 0xe5, 0xd8, 0xc0, 0xca, 0x89, 0xe6, 0x38, 0x70, 0xd4, 0x68, 0x8e, 0x28, 0x2a, 0x88, 0x64, + 0xc1, 0xe3, 0x91, 0x5f, 0x2b, 0x8a, 0x64, 0x71, 0xf8, 0x58, 0x51, 0x2e, 0xa8, 0xc0, 0xb3, 0x29, + 0x06, 0x68, 0x90, 0x87, 0xab, 0x64, 0x26, 0xf9, 0x3a, 0x1f, 0x1d, 0x09, 0x43, 0xcb, 0x30, 0x1c, + 0xee, 0x85, 0x8d, 0xa8, 0x15, 0x16, 0x65, 0x4e, 0xae, 0x33, 0x94, 0x58, 0x1e, 0xe5, 0xff, 0x43, + 0x2c, 0xeb, 0xa2, 0x06, 0x9c, 0x10, 0x14, 0x17, 0xb7, 0x1d, 0x4f, 0x65, 0x56, 0xe5, 0xbe, 0xb7, + 0x57, 0x0f, 0xf6, 0xab, 0x27, 0x44, 0xcb, 0x3a, 0xf8, 0x70, 0xbf, 0x4a, 0xb7, 0x64, 0x06, 0x04, + 0x67, 0x51, 0xe3, 0x4b, 0xbe, 0xd1, 0xf0, 0xdb, 0x9d, 0x5a, 0xe0, 0x6f, 0xba, 0x2d, 0x52, 0xe4, + 0xd6, 0x50, 0x37, 0x30, 0xc5, 0x92, 0x37, 0xca, 0x70, 0x82, 0x1a, 0xba, 0x0f, 0x53, 0x4e, 0xa7, + 0x33, 0x1f, 0xb4, 0xfd, 0x40, 0x36, 0x30, 0x96, 0x6f, 0x1f, 0x9b, 0x37, 0x51, 0x79, 0x62, 0xd5, + 0x44, 0x21, 0x4e, 0x12, 0xa4, 0x03, 0x25, 0x36, 0x9a, 0x31, 0x50, 0x13, 0xf1, 0x40, 0x89, 0x7d, + 0x99, 0x31, 0x50, 0x19, 0x10, 0x9c, 0x45, 0xcd, 0xfe, 0xf3, 0xec, 0x76, 0xc3, 0xa2, 0x9d, 0xb3, + 0x47, 0x6e, 0x6d, 0x98, 0xe8, 0x30, 0xb6, 0x2f, 0x92, 0x1e, 0x0a, 0x56, 0xf1, 0x46, 0x9f, 0x6a, + 0xf8, 0x07, 0x2c, 0xab, 0xb3, 0xe1, 0x8e, 0x5d, 0xd3, 0xc9, 0x61, 0x93, 0xba, 0xfd, 0xaf, 0x67, + 0x99, 0xe8, 0x58, 0xe7, 0xba, 0xf5, 0x61, 0xf1, 0xe4, 0x57, 0x48, 0xc9, 0xb3, 0xf9, 0x56, 0xac, + 0x78, 0x7d, 0x89, 0x67, 0xc3, 0x58, 0xd6, 0x45, 0x5f, 0x87, 0x49, 0xd7, 0x73, 0xe3, 0x24, 0xeb, + 0x61, 0xe5, 0x64, 0x7e, 0x2c, 0x39, 0x85, 0xa5, 0x27, 0x44, 0xd5, 0x2b, 0xe3, 0x04, 0x31, 0xf4, + 0x01, 0xf3, 0x50, 0x96, 0xa4, 0x4b, 0xfd, 0x90, 0xd6, 0x9d, 0x91, 0x25, 0x59, 0x8d, 0x08, 0xea, + 0xc2, 0x89, 0x74, 0xb2, 0xf9, 0xb0, 0x62, 0xe7, 0x5f, 0x00, 0xd3, 0xf9, 0xe2, 0xe3, 0xcc, 0x95, + 0x69, 0x58, 0x88, 0xb3, 0xe8, 0xa3, 0x5b, 0xc9, 0x54, 0xe0, 0x65, 0xc3, 0xfe, 0x95, 0x4a, 0x07, + 0x3e, 0x51, 0x98, 0x05, 0x7c, 0x0b, 0xce, 0x6b, 0x79, 0x8d, 0xaf, 0x07, 0x0e, 0xf3, 0x90, 0x73, + 0xd9, 0x69, 0xa4, 0x09, 0xb5, 0xcf, 0x1e, 0xec, 0x57, 0xcf, 0x6f, 0x14, 0x21, 0xe2, 0x62, 0x3a, + 0xe8, 0x36, 0x9c, 0xe2, 0x91, 0x90, 0x96, 0x88, 0xd3, 0x6c, 0xb9, 0x9e, 0x92, 0x9a, 0x39, 0xef, + 0x3a, 0x7b, 0xb0, 0x5f, 0x3d, 0x35, 0x9f, 0x85, 0x80, 0xb3, 0xeb, 0xa1, 0x77, 0x60, 0xb4, 0xe9, + 0x49, 0x2e, 0x3b, 0x64, 0xa4, 0x8e, 0x1e, 0x5d, 0x5a, 0xaf, 0xab, 0xef, 0x8f, 0xff, 0xe0, 0xb8, + 0x02, 0xda, 0xe2, 0x06, 0x58, 0xa5, 0x35, 0x1f, 0x4e, 0x05, 0xc8, 0x4d, 0x1a, 0x96, 0x8c, 0xd0, + 0x22, 0xdc, 0xf3, 0x40, 0x3d, 0x3f, 0x35, 0xa2, 0x8e, 0x18, 0x84, 0xd1, 0xfb, 0x80, 0x44, 0xbe, + 0xaf, 0xf9, 0x06, 0xcb, 0xa8, 0xa9, 0x79, 0x45, 0x2b, 0x3d, 0x49, 0x3d, 0x85, 0x81, 0x33, 0x6a, + 0xa1, 0x1b, 0x94, 0x3d, 0xea, 0xa5, 0x82, 0xfd, 0x4a, 0x7d, 0x56, 0x65, 0x89, 0x74, 0x02, 0xc2, + 0x1c, 0x79, 0x4d, 0x8a, 0x38, 0x51, 0x0f, 0x35, 0xe1, 0x9c, 0xd3, 0x8d, 0x7c, 0x66, 0xdb, 0x36, + 0x51, 0x37, 0xfc, 0x1d, 0xe2, 0x31, 0xb7, 0x92, 0x11, 0x16, 0x78, 0xf7, 0xdc, 0x7c, 0x01, 0x1e, + 0x2e, 0xa4, 0x42, 0xaf, 0x53, 0x74, 0x2c, 0x34, 0xb3, 0xb3, 0x11, 0x25, 0x81, 0xfb, 0x62, 0x48, + 0x0c, 0xf4, 0x26, 0x8c, 0x6d, 0xfb, 0x61, 0xb4, 0x4e, 0xa2, 0x07, 0x7e, 0xb0, 0x23, 0x12, 0x8c, + 0xc4, 0x49, 0x9d, 0x62, 0x10, 0xd6, 0xf1, 0xd0, 0x4b, 0x30, 0xcc, 0x9c, 0x1e, 0x57, 0x97, 0xd8, + 0x59, 0x3b, 0x12, 0xf3, 0x98, 0x1b, 0xbc, 0x18, 0x4b, 0xb8, 0x44, 0x5d, 0xad, 0x2d, 0x32, 0x76, + 0x9c, 0x40, 0x5d, 0xad, 0x2d, 0x62, 0x09, 0xa7, 0xcb, 0x35, 0xdc, 0x76, 0x02, 0x52, 0x0b, 0xfc, + 0x06, 0x09, 0xb5, 0x54, 0x62, 0xcf, 0xf0, 0xf4, 0x29, 0x74, 0xb9, 0xd6, 0xb3, 0x10, 0x70, 0x76, + 0x3d, 0x44, 0xd2, 0x39, 0xbd, 0x27, 0xf3, 0x8d, 0xfe, 0x69, 0x71, 0xb0, 0xcf, 0xb4, 0xde, 0x1e, + 0x4c, 0xab, 0x6c, 0xe2, 0x3c, 0x61, 0x4a, 0x58, 0x99, 0xca, 0xcf, 0xe9, 0x9f, 0xf9, 0xd6, 0x47, + 0xb9, 0x51, 0xac, 0x26, 0x28, 0xe1, 0x14, 0x6d, 0x23, 0xb2, 0xf3, 0x74, 0xcf, 0xc8, 0xce, 0x57, + 0x60, 0x34, 0xec, 0xde, 0x6f, 0xfa, 0x6d, 0xc7, 0xf5, 0x98, 0xef, 0x98, 0x76, 0x71, 0xaf, 0x4b, + 0x00, 0x8e, 0x71, 0xd0, 0x0a, 0x8c, 0x38, 0xd2, 0x47, 0x02, 0xe5, 0x07, 0xad, 0x54, 0x9e, 0x11, + 0x3c, 0x8e, 0x9b, 0xf4, 0x8a, 0x50, 0x75, 0xd1, 0xdb, 0x30, 0x21, 0x02, 0xe3, 0x08, 0x7d, 0xfc, + 0x09, 0xf3, 0x29, 0x7f, 0x5d, 0x07, 0x62, 0x13, 0x17, 0xdd, 0x81, 0xb1, 0xc8, 0x6f, 0x09, 0x45, + 0x6e, 0x58, 0x39, 0x9d, 0x1f, 0x5b, 0x7a, 0x43, 0xa1, 0xe9, 0xd6, 0x3b, 0x55, 0x15, 0xeb, 0x74, + 0xd0, 0x06, 0x5f, 0xef, 0x2c, 0x71, 0x18, 0x09, 0x2b, 0x67, 0xf2, 0xcf, 0x24, 0x95, 0x5f, 0xcc, + 0xdc, 0x0e, 0xa2, 0x26, 0xd6, 0xc9, 0xa0, 0xeb, 0x30, 0xd3, 0x09, 0x5c, 0x9f, 0xad, 0x09, 0xe5, + 0xf3, 0x51, 0x31, 0x75, 0x48, 0xb5, 0x24, 0x02, 0x4e, 0xd7, 0x61, 0x71, 0x8d, 0x44, 0x61, 0xe5, + 0x2c, 0x4f, 0x75, 0xc8, 0xf5, 0x20, 0xbc, 0x0c, 0x2b, 0x28, 0x5a, 0x63, 0x9c, 0x98, 0xeb, 0x29, + 0x2b, 0xb3, 0xf9, 0xd1, 0x32, 0x74, 0x7d, 0x26, 0x97, 0xfd, 0xd5, 0x5f, 0x1c, 0x53, 0x40, 0x4d, + 0x98, 0x0c, 0xf4, 0x1b, 0x70, 0x58, 0x39, 0x57, 0xe0, 0x79, 0x9e, 0xb8, 0x2e, 0xc7, 0x02, 0x81, + 0x51, 0x1c, 0xe2, 0x04, 0x4d, 0xf4, 0x1e, 0x4c, 0x8b, 0xa0, 0x1f, 0xf1, 0x30, 0x9d, 0x8f, 0x5f, + 0xe7, 0xe1, 0x04, 0x0c, 0xa7, 0xb0, 0x79, 0xaa, 0x41, 0xe7, 0x7e, 0x8b, 0x08, 0xd6, 0x77, 0xcb, + 0xf5, 0x76, 0xc2, 0xca, 0x05, 0xc6, 0x1f, 0x44, 0xaa, 0xc1, 0x24, 0x14, 0x67, 0xd4, 0x40, 0x1b, + 0x30, 0xdd, 0x09, 0x08, 0x69, 0xb3, 0x7b, 0x92, 0x38, 0xcf, 0xaa, 0x3c, 0xac, 0x17, 0xed, 0x49, + 0x2d, 0x01, 0x3b, 0xcc, 0x28, 0xc3, 0x29, 0x0a, 0xe8, 0x01, 0x8c, 0xf8, 0xbb, 0x24, 0xd8, 0x26, + 0x4e, 0xb3, 0x72, 0xb1, 0xe0, 0xcd, 0xa8, 0x38, 0xdc, 0x6e, 0x0b, 0xdc, 0x84, 0x4b, 0x9d, 0x2c, + 0xee, 0xed, 0x52, 0x27, 0x1b, 0x43, 0xff, 0x89, 0x05, 0x67, 0xa5, 0x91, 0xba, 0xde, 0xa1, 0xa3, + 0xbe, 0xe8, 0x7b, 0x61, 0x14, 0xf0, 0x40, 0x54, 0xcf, 0xe6, 0x07, 0x67, 0xda, 0xc8, 0xa9, 0xa4, + 0x4c, 0x25, 0x67, 0xf3, 0x30, 0x42, 0x9c, 0xdf, 0x22, 0xbd, 0xd9, 0x87, 0x24, 0x92, 0xcc, 0x68, + 0x3e, 0x5c, 0xf9, 0x60, 0x69, 0xbd, 0xf2, 0x1c, 0x8f, 0xa2, 0x45, 0x37, 0x43, 0x3d, 0x09, 0xc4, + 0x69, 0x7c, 0x74, 0x15, 0x4a, 0x7e, 0x58, 0x79, 0x9e, 0xad, 0xed, 0xb3, 0x39, 0xe3, 0x78, 0xbb, + 0xce, 0x5d, 0xab, 0x6f, 0xd7, 0x71, 0xc9, 0x0f, 0x65, 0xba, 0x3f, 0x7a, 0x9d, 0x0d, 0x2b, 0x2f, + 0x70, 0xc5, 0xba, 0x4c, 0xf7, 0xc7, 0x0a, 0x71, 0x0c, 0x47, 0xdb, 0x30, 0x15, 0x1a, 0x6a, 0x83, + 0xb0, 0x72, 0x89, 0x8d, 0xd4, 0x0b, 0x79, 0x93, 0x66, 0x60, 0x6b, 0x79, 0xb8, 0x4c, 0x2a, 0x38, + 0x49, 0x96, 0xef, 0x2e, 0x4d, 0x71, 0x11, 0x56, 0x5e, 0xec, 0xb1, 0xbb, 0x34, 0x64, 0x7d, 0x77, + 0xe9, 0x34, 0x70, 0x82, 0x26, 0xba, 0xa3, 0x3f, 0xc8, 0xbd, 0x9c, 0xef, 0xa6, 0x9b, 0xf9, 0x14, + 0x77, 0x22, 0xf7, 0x19, 0xee, 0x7b, 0x30, 0x2d, 0xcf, 0x12, 0xba, 0x32, 0x03, 0xb7, 0x49, 0x2a, + 0x2f, 0xc5, 0x9b, 0xf6, 0x46, 0x02, 0x86, 0x53, 0xd8, 0xb3, 0x3f, 0x02, 0x33, 0x29, 0x39, 0xee, + 0x28, 0xef, 0x9b, 0x66, 0x77, 0x60, 0xc2, 0xd8, 0x2b, 0x4f, 0xd7, 0xfd, 0x6d, 0x0c, 0x46, 0x95, + 0x5b, 0x52, 0x8e, 0x39, 0x72, 0xe6, 0xb1, 0xcc, 0x91, 0x57, 0x4c, 0xef, 0xb9, 0xb3, 0x49, 0xef, + 0xb9, 0x91, 0x9a, 0xdf, 0x34, 0x1c, 0xe6, 0x36, 0x32, 0x22, 0x60, 0xe7, 0x71, 0xf9, 0xfe, 0x1f, + 0x74, 0x6a, 0x16, 0xbd, 0x72, 0xdf, 0x6e, 0x78, 0x03, 0x85, 0x46, 0xc2, 0xeb, 0x30, 0xe3, 0xf9, + 0xec, 0x22, 0x42, 0x9a, 0x52, 0xca, 0x64, 0xc2, 0xe4, 0xa8, 0x1e, 0xa1, 0x31, 0x81, 0x80, 0xd3, + 0x75, 0x68, 0x83, 0x5c, 0x1a, 0x4c, 0x5a, 0x25, 0xb9, 0xb0, 0x88, 0x05, 0x94, 0x5e, 0x80, 0xf9, + 0xaf, 0xb0, 0x32, 0x9d, 0x7f, 0x01, 0xe6, 0x95, 0x92, 0x12, 0x67, 0x28, 0x25, 0x4e, 0x66, 0x84, + 0xeb, 0xf8, 0xcd, 0xd5, 0x9a, 0xb8, 0xcb, 0x68, 0xb9, 0x29, 0x9a, 0xab, 0x35, 0xcc, 0x61, 0x68, + 0x1e, 0x86, 0xd8, 0x0f, 0x19, 0xf9, 0x2a, 0x8f, 0x17, 0xad, 0xd6, 0xb4, 0x9c, 0xca, 0xac, 0x02, + 0x16, 0x15, 0x99, 0xfd, 0x81, 0x5e, 0x00, 0x99, 0xfd, 0x61, 0xf8, 0x31, 0xed, 0x0f, 0x92, 0x00, + 0x8e, 0x69, 0xa1, 0x87, 0x70, 0xca, 0xb8, 0x74, 0xab, 0x17, 0xae, 0x90, 0xef, 0x64, 0x93, 0x40, + 0x5e, 0x38, 0x2f, 0x3a, 0x7d, 0x6a, 0x35, 0x8b, 0x12, 0xce, 0x6e, 0x00, 0xb5, 0x60, 0xa6, 0x91, + 0x6a, 0x75, 0xa4, 0xff, 0x56, 0xd5, 0xba, 0x48, 0xb7, 0x98, 0x26, 0x8c, 0xde, 0x86, 0x91, 0x8f, + 0x7c, 0xee, 0x10, 0x2b, 0xee, 0x5f, 0x32, 0x3e, 0xd3, 0xc8, 0x07, 0xb7, 0xeb, 0xac, 0xfc, 0x70, + 0xbf, 0x3a, 0x56, 0xf3, 0x9b, 0xf2, 0x2f, 0x56, 0x15, 0xd0, 0x5f, 0xb2, 0x60, 0x36, 0x7d, 0xab, + 0x57, 0x9d, 0x9e, 0xe8, 0xbf, 0xd3, 0xb6, 0x68, 0x74, 0x76, 0x39, 0x97, 0x1c, 0x2e, 0x68, 0x0a, + 0x7d, 0x91, 0xee, 0xa7, 0xd0, 0x7d, 0xc4, 0x5f, 0xb8, 0x68, 0x0e, 0x09, 0x98, 0x95, 0x1e, 0xee, + 0x57, 0xa7, 0x38, 0xfb, 0x77, 0x1f, 0xa9, 0x2c, 0x1a, 0xbc, 0x02, 0xfa, 0x31, 0x38, 0x15, 0xa4, + 0xb5, 0xec, 0x44, 0xde, 0x34, 0x3e, 0xdb, 0xcf, 0x51, 0x92, 0x9c, 0x70, 0x9c, 0x45, 0x10, 0x67, + 0xb7, 0x83, 0xfe, 0xaa, 0x05, 0xcf, 0x90, 0x7c, 0x0b, 0xae, 0xb8, 0x2a, 0xbc, 0x96, 0xd3, 0x8f, + 0x02, 0xdb, 0x2f, 0x4b, 0x30, 0xf0, 0x4c, 0x01, 0x02, 0x2e, 0x6a, 0xd7, 0xfe, 0xc7, 0x16, 0xb3, + 0xfa, 0x08, 0x54, 0x12, 0x76, 0x5b, 0xd1, 0x31, 0x38, 0xc7, 0x2e, 0x1b, 0xae, 0x25, 0x8f, 0xed, + 0xdd, 0xfa, 0xdf, 0x5a, 0xcc, 0xbb, 0xf5, 0x18, 0xdf, 0xe9, 0x7e, 0x00, 0x23, 0x91, 0x68, 0x4d, + 0x74, 0x3d, 0xcf, 0x13, 0x4f, 0x76, 0x8a, 0x79, 0xf8, 0xaa, 0x1b, 0xa6, 0x2c, 0xc5, 0x8a, 0x8c, + 0xfd, 0x5f, 0xf1, 0x19, 0x90, 0x90, 0x63, 0x30, 0x6e, 0x2f, 0x99, 0xc6, 0xed, 0x6a, 0x8f, 0x2f, + 0xc8, 0x31, 0x72, 0xff, 0x03, 0xb3, 0xdf, 0x4c, 0xb3, 0xfa, 0x49, 0x77, 0xab, 0xb6, 0xbf, 0x6b, + 0x01, 0xc4, 0xe9, 0x94, 0xfa, 0x48, 0x8c, 0x7f, 0x8d, 0xde, 0x29, 0xfd, 0xc8, 0x6f, 0xf8, 0x2d, + 0x61, 0x5c, 0x3b, 0x17, 0xdb, 0xd7, 0x79, 0xf9, 0xa1, 0xf6, 0x1b, 0x2b, 0x6c, 0x54, 0x95, 0xf1, + 0xcd, 0xcb, 0xb1, 0x5b, 0x8b, 0x11, 0xdb, 0xfc, 0x67, 0x2c, 0x38, 0x99, 0xf5, 0xe8, 0x0b, 0xbd, + 0x02, 0x23, 0x5c, 0xc7, 0xac, 0x5c, 0xde, 0xd5, 0x6c, 0xde, 0x15, 0xe5, 0x58, 0x61, 0xf4, 0xeb, + 0xfa, 0x7e, 0xc4, 0x54, 0x3f, 0xb7, 0x61, 0xa2, 0x16, 0x10, 0x4d, 0xee, 0x79, 0x37, 0xce, 0x42, + 0x36, 0xba, 0xf0, 0xca, 0x91, 0x23, 0xa9, 0xd9, 0xbf, 0x54, 0x82, 0x93, 0xdc, 0x71, 0x73, 0x7e, + 0xd7, 0x77, 0x9b, 0x35, 0xbf, 0x29, 0x9e, 0xea, 0x7f, 0x15, 0xc6, 0x3b, 0x9a, 0x61, 0xa0, 0x28, + 0x6d, 0x85, 0x6e, 0x40, 0x88, 0x55, 0x99, 0x7a, 0x29, 0x36, 0x68, 0xa1, 0x26, 0x8c, 0x93, 0x5d, + 0xb7, 0xa1, 0x1c, 0xc3, 0x4a, 0x47, 0x16, 0x1e, 0x54, 0x2b, 0xcb, 0x1a, 0x1d, 0x6c, 0x50, 0xed, + 0xfb, 0xb9, 0x85, 0x26, 0x3a, 0x0e, 0xf4, 0x70, 0x06, 0xfb, 0x59, 0x0b, 0xce, 0xe4, 0x24, 0xb9, + 0xa0, 0xcd, 0x3d, 0x60, 0x2e, 0xb2, 0x62, 0xd9, 0xaa, 0xe6, 0xb8, 0xe3, 0x2c, 0x16, 0x50, 0xf4, + 0x65, 0x80, 0x4e, 0x9c, 0x1a, 0xb8, 0x47, 0x36, 0x00, 0x23, 0x2e, 0xb8, 0x16, 0xe2, 0x59, 0x65, + 0x10, 0xd6, 0x68, 0xd9, 0x3f, 0x33, 0x00, 0x83, 0xcc, 0x07, 0x0f, 0xd5, 0x60, 0x78, 0x9b, 0x47, + 0x20, 0x2d, 0x9c, 0x37, 0x8a, 0x2b, 0x43, 0x9a, 0xc6, 0xf3, 0xa6, 0x95, 0x62, 0x49, 0x06, 0xad, + 0xc1, 0x09, 0x9e, 0xf6, 0xb8, 0xb5, 0x44, 0x5a, 0xce, 0x9e, 0xd4, 0xb9, 0x97, 0xd8, 0xa7, 0x2a, + 0xdb, 0xc3, 0x6a, 0x1a, 0x05, 0x67, 0xd5, 0x43, 0xef, 0xc2, 0x64, 0xe4, 0xb6, 0x89, 0xdf, 0x8d, + 0x4c, 0x77, 0x53, 0x75, 0x2d, 0xdc, 0x30, 0xa0, 0x38, 0x81, 0x8d, 0xde, 0x86, 0x89, 0x4e, 0xca, + 0xba, 0x30, 0x18, 0xab, 0xe1, 0x4c, 0x8b, 0x82, 0x89, 0xcb, 0xde, 0x7d, 0x75, 0xd9, 0x2b, 0xb7, + 0x8d, 0xed, 0x80, 0x84, 0xdb, 0x7e, 0xab, 0xc9, 0x24, 0xf3, 0x41, 0xed, 0xdd, 0x57, 0x02, 0x8e, + 0x53, 0x35, 0x28, 0x95, 0x4d, 0xc7, 0x6d, 0x75, 0x03, 0x12, 0x53, 0x19, 0x32, 0xa9, 0xac, 0x24, + 0xe0, 0x38, 0x55, 0xa3, 0xb7, 0xd9, 0x64, 0xf8, 0xc9, 0x98, 0x4d, 0xec, 0xbf, 0x5b, 0x02, 0x63, + 0x6a, 0x7f, 0x88, 0xb3, 0x18, 0xbf, 0x03, 0x03, 0x5b, 0x41, 0xa7, 0x21, 0xfc, 0x4d, 0x33, 0xbf, + 0xec, 0x3a, 0xae, 0x2d, 0xea, 0x5f, 0x46, 0xff, 0x63, 0x56, 0x8b, 0xee, 0xf1, 0x53, 0xc2, 0xfb, + 0x5a, 0x06, 0x29, 0x56, 0xcf, 0x2b, 0x87, 0xa5, 0x26, 0xa2, 0x20, 0x9c, 0xbf, 0x78, 0x23, 0xa6, + 0xfc, 0xb7, 0x35, 0x53, 0xb8, 0xd0, 0x43, 0x48, 0x2a, 0xe8, 0x2a, 0x8c, 0x89, 0xc4, 0xb2, 0xec, + 0x15, 0x20, 0xdf, 0x4c, 0xcc, 0x95, 0x74, 0x29, 0x2e, 0xc6, 0x3a, 0x8e, 0xfd, 0x97, 0x4b, 0x70, + 0x22, 0xe3, 0x19, 0x37, 0x3f, 0x46, 0xb6, 0xdc, 0x30, 0x0a, 0xf6, 0x92, 0x87, 0x13, 0x16, 0xe5, + 0x58, 0x61, 0x50, 0x5e, 0xc5, 0x0f, 0xaa, 0xe4, 0xe1, 0x24, 0x9e, 0x49, 0x0a, 0xe8, 0xd1, 0x0e, + 0x27, 0x7a, 0x6c, 0x77, 0x43, 0x22, 0x33, 0x87, 0xa8, 0x63, 0x9b, 0xb9, 0x64, 0x30, 0x08, 0xbd, + 0x9a, 0x6e, 0x29, 0x3f, 0x03, 0xed, 0x6a, 0xca, 0x3d, 0x0d, 0x38, 0x8c, 0x76, 0x2e, 0x22, 0x9e, + 0xe3, 0x45, 0xe2, 0x02, 0x1b, 0x47, 0x94, 0x67, 0xa5, 0x58, 0x40, 0xed, 0xef, 0x95, 0xe1, 0x6c, + 0x6e, 0x60, 0x07, 0xda, 0xf5, 0xb6, 0xef, 0xb9, 0x91, 0xaf, 0x7c, 0x74, 0x79, 0x14, 0x79, 0xd2, + 0xd9, 0x5e, 0x13, 0xe5, 0x58, 0x61, 0xa0, 0x4b, 0x30, 0xc8, 0x2c, 0x12, 0xc9, 0xa4, 0x92, 0x78, + 0x61, 0x89, 0xc7, 0xd8, 0xe5, 0x60, 0xed, 0x54, 0x2f, 0x17, 0x9e, 0xea, 0xcf, 0x51, 0x09, 0xc6, + 0x6f, 0x25, 0x0f, 0x14, 0xda, 0x5d, 0xdf, 0x6f, 0x61, 0x06, 0x44, 0x2f, 0x88, 0xf1, 0x4a, 0x38, + 0xa5, 0x62, 0xa7, 0xe9, 0x87, 0xda, 0xa0, 0x71, 0x07, 0xf8, 0xc0, 0xf5, 0xb6, 0x92, 0xce, 0xca, + 0x37, 0x79, 0x31, 0x96, 0x70, 0xba, 0x97, 0xe2, 0xdc, 0xf8, 0xc3, 0xf9, 0x7b, 0x49, 0x65, 0xc0, + 0xef, 0x99, 0x16, 0x5f, 0x5f, 0x01, 0x23, 0x3d, 0xc5, 0x93, 0x9f, 0x2a, 0xc3, 0x14, 0x5e, 0x58, + 0xfa, 0x74, 0x22, 0xee, 0xa4, 0x27, 0xa2, 0x7f, 0xb3, 0xd9, 0x93, 0x9a, 0x8d, 0x7f, 0x68, 0xc1, + 0x14, 0x4b, 0x6f, 0x2b, 0xa2, 0x32, 0xb9, 0xbe, 0x77, 0x0c, 0x57, 0x81, 0xe7, 0x60, 0x30, 0xa0, + 0x8d, 0x8a, 0x19, 0x54, 0x7b, 0x9c, 0xf5, 0x04, 0x73, 0x18, 0x3a, 0x07, 0x03, 0xac, 0x0b, 0x74, + 0xf2, 0xc6, 0x39, 0x0b, 0x5e, 0x72, 0x22, 0x07, 0xb3, 0x52, 0x16, 0x1f, 0x16, 0x93, 0x4e, 0xcb, + 0xe5, 0x9d, 0x8e, 0xfd, 0x45, 0x3e, 0x19, 0x21, 0x9f, 0x32, 0xbb, 0xf6, 0xf1, 0xe2, 0xc3, 0x66, + 0x93, 0x2c, 0xbe, 0x66, 0xff, 0x71, 0x09, 0x2e, 0x64, 0xd6, 0xeb, 0x3b, 0x3e, 0x6c, 0x71, 0xed, + 0xa7, 0x99, 0x0c, 0xb3, 0x7c, 0x8c, 0x4f, 0x41, 0x06, 0xfa, 0x95, 0xfe, 0x07, 0xfb, 0x08, 0xdb, + 0x9a, 0x39, 0x64, 0x9f, 0x90, 0xb0, 0xad, 0x99, 0x7d, 0xcb, 0x51, 0x13, 0xfc, 0x69, 0x29, 0xe7, + 0x5b, 0x98, 0xc2, 0xe0, 0x32, 0xe5, 0x33, 0x0c, 0x18, 0xca, 0x4b, 0x38, 0xe7, 0x31, 0xbc, 0x0c, + 0x2b, 0x28, 0x9a, 0x87, 0xa9, 0xb6, 0xeb, 0x51, 0xe6, 0xb3, 0x67, 0x8a, 0xe2, 0xca, 0x90, 0xb4, + 0x66, 0x82, 0x71, 0x12, 0x1f, 0xb9, 0x5a, 0x48, 0x57, 0xfe, 0x75, 0x6f, 0x1f, 0x69, 0xd7, 0xcd, + 0x99, 0xbe, 0x34, 0x6a, 0x14, 0x33, 0xc2, 0xbb, 0xae, 0x69, 0x7a, 0xa2, 0x72, 0xff, 0x7a, 0xa2, + 0xf1, 0x6c, 0x1d, 0xd1, 0xec, 0xdb, 0x30, 0xf1, 0xd8, 0xf6, 0x1f, 0xfb, 0xfb, 0x65, 0x78, 0xa6, + 0x60, 0xdb, 0x73, 0x5e, 0x6f, 0xcc, 0x81, 0xc6, 0xeb, 0x53, 0xf3, 0x50, 0x83, 0x93, 0x9b, 0xdd, + 0x56, 0x6b, 0x8f, 0x3d, 0x6c, 0x25, 0x4d, 0x89, 0x21, 0x64, 0x4a, 0xf5, 0xf4, 0x6d, 0x25, 0x03, + 0x07, 0x67, 0xd6, 0xa4, 0x57, 0x2c, 0x7a, 0x92, 0xec, 0x29, 0x52, 0x89, 0x2b, 0x16, 0xd6, 0x81, + 0xd8, 0xc4, 0x45, 0xd7, 0x61, 0xc6, 0xd9, 0x75, 0x5c, 0x9e, 0x4c, 0x48, 0x12, 0xe0, 0x77, 0x2c, + 0xa5, 0x23, 0x9f, 0x4f, 0x22, 0xe0, 0x74, 0x9d, 0x1c, 0x53, 0x55, 0xf9, 0xb1, 0x4c, 0x55, 0x66, + 0x70, 0xd1, 0xa1, 0xfc, 0xe0, 0xa2, 0xc5, 0x7c, 0xb1, 0x67, 0x1e, 0xd6, 0x0f, 0x61, 0xe2, 0xa8, + 0x3e, 0xf1, 0x2f, 0xc1, 0xb0, 0x78, 0xc3, 0x93, 0x7c, 0xaf, 0x29, 0xf3, 0xff, 0x4b, 0xb8, 0xfd, + 0xbf, 0x5a, 0xa0, 0x74, 0xdc, 0x66, 0x1e, 0x81, 0xb7, 0x99, 0x83, 0x3f, 0xd7, 0xce, 0x6b, 0x6f, + 0x45, 0x4f, 0x69, 0x0e, 0xfe, 0x31, 0x10, 0x9b, 0xb8, 0x7c, 0xb9, 0x85, 0x71, 0xc4, 0x1a, 0xe3, + 0x02, 0x21, 0x6c, 0xab, 0x0a, 0x03, 0x7d, 0x05, 0x86, 0x9b, 0xee, 0xae, 0x1b, 0x0a, 0x3d, 0xda, + 0x91, 0x6d, 0x93, 0xf1, 0xf7, 0x2d, 0x71, 0x32, 0x58, 0xd2, 0xb3, 0xff, 0x8a, 0x05, 0xca, 0x28, + 0x7c, 0x83, 0x38, 0xad, 0x68, 0x1b, 0xbd, 0x07, 0x20, 0x29, 0x28, 0xdd, 0x9b, 0x74, 0x55, 0x03, + 0xac, 0x20, 0x87, 0xc6, 0x3f, 0xac, 0xd5, 0x41, 0xef, 0xc2, 0xd0, 0x36, 0xa3, 0x25, 0xbe, 0xed, + 0x92, 0x32, 0xc1, 0xb1, 0xd2, 0xc3, 0xfd, 0xea, 0x49, 0xb3, 0x4d, 0x79, 0x8a, 0xf1, 0x5a, 0xf6, + 0x4f, 0x95, 0xe2, 0x39, 0xfd, 0xa0, 0xeb, 0x47, 0xce, 0x31, 0x48, 0x22, 0xd7, 0x0d, 0x49, 0xe4, + 0x85, 0x22, 0xab, 0x37, 0xeb, 0x52, 0xae, 0x04, 0x72, 0x3b, 0x21, 0x81, 0xbc, 0xd8, 0x9b, 0x54, + 0xb1, 0xe4, 0xf1, 0x5f, 0x5b, 0x30, 0x63, 0xe0, 0x1f, 0xc3, 0x01, 0xb8, 0x62, 0x1e, 0x80, 0xcf, + 0xf6, 0xfc, 0x86, 0x9c, 0x83, 0xef, 0x27, 0xca, 0x89, 0xbe, 0xb3, 0x03, 0xef, 0x23, 0x18, 0xd8, + 0x76, 0x82, 0xa6, 0xb8, 0xd7, 0x5f, 0xe9, 0x6b, 0xac, 0xe7, 0x6e, 0x38, 0x81, 0x70, 0x73, 0x79, + 0x45, 0x8e, 0x3a, 0x2d, 0xea, 0xe9, 0xe2, 0xc2, 0x9a, 0x42, 0xd7, 0x60, 0x28, 0x6c, 0xf8, 0x1d, + 0xf5, 0x24, 0xf4, 0x22, 0x1b, 0x68, 0x56, 0x72, 0xb8, 0x5f, 0x45, 0x66, 0x73, 0xb4, 0x18, 0x0b, + 0x7c, 0xf4, 0x55, 0x98, 0x60, 0xbf, 0x94, 0xcf, 0x69, 0x39, 0x5f, 0x03, 0x53, 0xd7, 0x11, 0xb9, + 0x43, 0xb6, 0x51, 0x84, 0x4d, 0x52, 0xb3, 0x5b, 0x30, 0xaa, 0x3e, 0xeb, 0xa9, 0x7a, 0x24, 0xfc, + 0x8b, 0x32, 0x9c, 0xc8, 0x58, 0x73, 0x28, 0x34, 0x66, 0xe2, 0x6a, 0x9f, 0x4b, 0xf5, 0x63, 0xce, + 0x45, 0xc8, 0x2e, 0x80, 0x4d, 0xb1, 0xb6, 0xfa, 0x6e, 0xf4, 0x4e, 0x48, 0x92, 0x8d, 0xd2, 0xa2, + 0xde, 0x8d, 0xd2, 0xc6, 0x8e, 0x6d, 0xa8, 0x69, 0x43, 0xaa, 0xa7, 0x4f, 0x75, 0x4e, 0x7f, 0x6b, + 0x00, 0x4e, 0x66, 0x39, 0xe2, 0xa0, 0x1f, 0x85, 0x21, 0xf6, 0x9c, 0xaf, 0xf0, 0xfd, 0x6b, 0x56, + 0xcd, 0x39, 0xf6, 0x22, 0x50, 0x84, 0xa2, 0x9e, 0x93, 0xec, 0x88, 0x17, 0xf6, 0x1c, 0x66, 0xd1, + 0x26, 0x0b, 0x11, 0x27, 0x4e, 0x4f, 0xc9, 0x3e, 0x3e, 0xdf, 0x77, 0x07, 0xc4, 0xf9, 0x1b, 0x26, + 0xfc, 0xd9, 0x64, 0x71, 0x6f, 0x7f, 0x36, 0xd9, 0x32, 0x5a, 0x85, 0xa1, 0x06, 0x77, 0x94, 0x2a, + 0xf7, 0x66, 0x61, 0xdc, 0x4b, 0x4a, 0x31, 0x60, 0xe1, 0x1d, 0x25, 0x08, 0xcc, 0xba, 0x30, 0xa6, + 0x0d, 0xcc, 0x53, 0x5d, 0x3c, 0x3b, 0xf4, 0xe0, 0xd3, 0x86, 0xe0, 0xa9, 0x2e, 0xa0, 0xbf, 0xae, + 0x9d, 0xfd, 0x82, 0x1f, 0x7c, 0xce, 0x90, 0x9d, 0xce, 0x25, 0x1e, 0x59, 0x26, 0xf6, 0x15, 0x93, + 0xa5, 0xea, 0x66, 0x0e, 0x87, 0xdc, 0x44, 0x74, 0xe6, 0x81, 0x5f, 0x9c, 0xb7, 0xc1, 0xfe, 0x59, + 0x0b, 0x12, 0xcf, 0xe0, 0x94, 0xba, 0xd3, 0xca, 0x55, 0x77, 0x5e, 0x84, 0x81, 0xc0, 0x6f, 0x49, + 0x79, 0x4a, 0x61, 0x60, 0xbf, 0x45, 0x30, 0x83, 0x50, 0x8c, 0x28, 0x56, 0x62, 0x8d, 0xeb, 0x17, + 0x74, 0x71, 0xf5, 0x7e, 0x0e, 0x06, 0x5b, 0x64, 0x97, 0xb4, 0x92, 0xf9, 0x98, 0x6f, 0xd1, 0x42, + 0xcc, 0x61, 0xf6, 0x3f, 0x1c, 0x80, 0xf3, 0x85, 0x91, 0x24, 0xa9, 0x80, 0xb9, 0xe5, 0x44, 0xe4, + 0x81, 0xb3, 0x97, 0xcc, 0x43, 0x7a, 0x9d, 0x17, 0x63, 0x09, 0x67, 0xef, 0xee, 0x79, 0x6e, 0xad, + 0x84, 0x72, 0x58, 0xa4, 0xd4, 0x12, 0x50, 0x53, 0xd9, 0x58, 0x7e, 0x12, 0xca, 0xc6, 0xd7, 0x00, + 0xc2, 0xb0, 0xc5, 0xbd, 0x5d, 0x9b, 0xe2, 0x41, 0x7f, 0x1c, 0xe9, 0xa4, 0x7e, 0x4b, 0x40, 0xb0, + 0x86, 0x85, 0x96, 0x60, 0xba, 0x13, 0xf8, 0x11, 0xd7, 0xb5, 0x2f, 0x71, 0x87, 0xf0, 0x41, 0x33, + 0x88, 0x5f, 0x2d, 0x01, 0xc7, 0xa9, 0x1a, 0xe8, 0x4d, 0x18, 0x13, 0x81, 0xfd, 0x6a, 0xbe, 0xdf, + 0x12, 0xea, 0x3d, 0xe5, 0x23, 0x5d, 0x8f, 0x41, 0x58, 0xc7, 0xd3, 0xaa, 0x31, 0x05, 0xfe, 0x70, + 0x66, 0x35, 0xae, 0xc4, 0xd7, 0xf0, 0x12, 0x49, 0x40, 0x46, 0xfa, 0x4a, 0x02, 0x12, 0x2b, 0x3c, + 0x47, 0xfb, 0xb6, 0x27, 0x43, 0x4f, 0x15, 0xe1, 0xaf, 0x0c, 0xc0, 0x09, 0xb1, 0x70, 0x9e, 0xf6, + 0x72, 0xb9, 0x93, 0x5e, 0x2e, 0x4f, 0x42, 0x25, 0xfa, 0xe9, 0x9a, 0x39, 0xee, 0x35, 0xf3, 0xd3, + 0x16, 0x98, 0x32, 0x24, 0xfa, 0x8f, 0x72, 0x13, 0x39, 0xbf, 0x99, 0x2b, 0x93, 0xc6, 0x19, 0x02, + 0x3e, 0x5e, 0x4a, 0x67, 0xfb, 0x7f, 0xb6, 0xe0, 0xd9, 0x9e, 0x14, 0xd1, 0x32, 0x8c, 0x32, 0x41, + 0x57, 0xbb, 0x17, 0xbf, 0xa8, 0x1e, 0x8c, 0x48, 0x40, 0x8e, 0xdc, 0x1d, 0xd7, 0x44, 0xcb, 0xa9, + 0x8c, 0xd9, 0x2f, 0x65, 0x64, 0xcc, 0x3e, 0x65, 0x0c, 0xcf, 0x63, 0xa6, 0xcc, 0xfe, 0x49, 0x7a, + 0xe2, 0x98, 0xaf, 0x4e, 0x3f, 0x6f, 0xa8, 0x73, 0xed, 0x84, 0x3a, 0x17, 0x99, 0xd8, 0xda, 0x19, + 0xf2, 0x1e, 0x4c, 0xb3, 0x88, 0xbf, 0xec, 0xf9, 0x92, 0x78, 0xae, 0x5a, 0x8a, 0xbd, 0x9d, 0x6f, + 0x25, 0x60, 0x38, 0x85, 0x6d, 0xff, 0x9b, 0x32, 0x0c, 0xf1, 0xed, 0x77, 0x0c, 0x17, 0xdf, 0x97, + 0x61, 0xd4, 0x6d, 0xb7, 0xbb, 0x3c, 0x09, 0xf2, 0x60, 0xec, 0xf0, 0xbe, 0x2a, 0x0b, 0x71, 0x0c, + 0x47, 0x2b, 0xc2, 0x92, 0x50, 0x90, 0x54, 0x80, 0x77, 0x7c, 0x6e, 0xc9, 0x89, 0x1c, 0x2e, 0xc5, + 0xa9, 0x73, 0x36, 0xb6, 0x39, 0xa0, 0x6f, 0x00, 0x84, 0x51, 0xe0, 0x7a, 0x5b, 0xb4, 0x4c, 0x64, + 0x9e, 0xf9, 0x6c, 0x01, 0xb5, 0xba, 0x42, 0xe6, 0x34, 0x63, 0x9e, 0xa3, 0x00, 0x58, 0xa3, 0x88, + 0xe6, 0x8c, 0x93, 0x7e, 0x36, 0x31, 0x77, 0xc0, 0xa9, 0xc6, 0x73, 0x36, 0xfb, 0x05, 0x18, 0x55, + 0xc4, 0x7b, 0xe9, 0x15, 0xc7, 0x75, 0x81, 0xed, 0x4b, 0x30, 0x95, 0xe8, 0xdb, 0x91, 0xd4, 0x92, + 0xbf, 0x6e, 0xc1, 0x14, 0xef, 0xcc, 0xb2, 0xb7, 0x2b, 0x4e, 0x83, 0x47, 0x70, 0xb2, 0x95, 0xc1, + 0x95, 0xc5, 0xf4, 0xf7, 0xcf, 0xc5, 0x95, 0x1a, 0x32, 0x0b, 0x8a, 0x33, 0xdb, 0x40, 0x97, 0xe9, + 0x8e, 0xa3, 0x5c, 0xd7, 0x69, 0x89, 0x98, 0x2b, 0xe3, 0x7c, 0xb7, 0xf1, 0x32, 0xac, 0xa0, 0xf6, + 0x1f, 0x58, 0x30, 0xc3, 0x7b, 0x7e, 0x93, 0xec, 0x29, 0xde, 0xf4, 0x83, 0xec, 0xbb, 0x48, 0xbf, + 0x5f, 0xca, 0x49, 0xbf, 0xaf, 0x7f, 0x5a, 0xb9, 0xf0, 0xd3, 0x7e, 0xc9, 0x02, 0xb1, 0x42, 0x8e, + 0x41, 0xd3, 0xf2, 0x23, 0xa6, 0xa6, 0x65, 0x36, 0x7f, 0x13, 0xe4, 0xa8, 0x58, 0xfe, 0xbd, 0x05, + 0xd3, 0x1c, 0x41, 0x8b, 0x62, 0xf7, 0x83, 0x9c, 0x87, 0x05, 0xf3, 0x8b, 0x32, 0xdd, 0x5a, 0x6f, + 0x92, 0xbd, 0x0d, 0xbf, 0xe6, 0x44, 0xdb, 0xd9, 0x1f, 0x65, 0x4c, 0xd6, 0x40, 0xe1, 0x64, 0x35, + 0xe5, 0x06, 0x32, 0x12, 0xad, 0xf6, 0x50, 0x00, 0x1f, 0x35, 0xd1, 0xaa, 0xfd, 0x47, 0x16, 0x20, + 0xde, 0x8c, 0x21, 0xb8, 0x51, 0x71, 0x88, 0x95, 0x66, 0x06, 0x0b, 0x54, 0x10, 0xac, 0x61, 0x3d, + 0x91, 0xe1, 0x49, 0xb8, 0xb2, 0x94, 0x7b, 0xbb, 0xb2, 0x1c, 0x61, 0x44, 0x7f, 0x69, 0x18, 0x92, + 0x0f, 0x56, 0xd1, 0x5d, 0x18, 0x6f, 0x38, 0x1d, 0xe7, 0xbe, 0xdb, 0x72, 0x23, 0x97, 0x84, 0x45, + 0x7e, 0x6e, 0x8b, 0x1a, 0x9e, 0x70, 0x3e, 0xd0, 0x4a, 0xb0, 0x41, 0x07, 0xcd, 0x01, 0x74, 0x02, + 0x77, 0xd7, 0x6d, 0x91, 0x2d, 0xa6, 0x10, 0x62, 0x51, 0x9e, 0xb8, 0xd3, 0x9d, 0x2c, 0xc5, 0x1a, + 0x46, 0x46, 0x70, 0x95, 0xf2, 0x53, 0x0e, 0xae, 0x02, 0xc7, 0x16, 0x5c, 0x65, 0xe0, 0x48, 0xc1, + 0x55, 0x46, 0x8e, 0x1c, 0x5c, 0x65, 0xb0, 0xaf, 0xe0, 0x2a, 0x18, 0x4e, 0x4b, 0xd9, 0x93, 0xfe, + 0x5f, 0x71, 0x5b, 0x44, 0x5c, 0x38, 0x78, 0x68, 0xaa, 0xd9, 0x83, 0xfd, 0xea, 0x69, 0x9c, 0x89, + 0x81, 0x73, 0x6a, 0xa2, 0x2f, 0x43, 0xc5, 0x69, 0xb5, 0xfc, 0x07, 0x6a, 0x52, 0x97, 0xc3, 0x86, + 0xd3, 0x8a, 0xc3, 0x32, 0x8e, 0x2c, 0x9c, 0x3b, 0xd8, 0xaf, 0x56, 0xe6, 0x73, 0x70, 0x70, 0x6e, + 0x6d, 0xf4, 0x0e, 0x8c, 0x76, 0x02, 0xbf, 0xb1, 0xa6, 0xbd, 0xaa, 0xbf, 0x40, 0x07, 0xb0, 0x26, + 0x0b, 0x0f, 0xf7, 0xab, 0x13, 0xea, 0x0f, 0x3b, 0xf0, 0xe3, 0x0a, 0x19, 0x71, 0x4b, 0xc6, 0x9e, + 0x76, 0xdc, 0x92, 0xf1, 0x27, 0x1c, 0xb7, 0xc4, 0xde, 0x81, 0x13, 0x75, 0x12, 0xb8, 0x4e, 0xcb, + 0x7d, 0x44, 0x65, 0x72, 0xc9, 0x03, 0x37, 0x60, 0x34, 0x48, 0x70, 0xfd, 0xbe, 0x92, 0x09, 0x68, + 0x7a, 0x19, 0xc9, 0xe5, 0x63, 0x42, 0xf6, 0xff, 0x6b, 0xc1, 0xb0, 0x78, 0x04, 0x7b, 0x0c, 0x92, + 0xe9, 0xbc, 0x61, 0x92, 0xa9, 0x66, 0x4f, 0x0a, 0xeb, 0x4c, 0xae, 0x31, 0x66, 0x35, 0x61, 0x8c, + 0x79, 0xb6, 0x88, 0x48, 0xb1, 0x19, 0xe6, 0x3f, 0x2b, 0xd3, 0x1b, 0x82, 0x11, 0x8e, 0xe1, 0xe9, + 0x0f, 0xc1, 0x3a, 0x0c, 0x87, 0x22, 0x1c, 0x40, 0x29, 0xff, 0x8d, 0x51, 0x72, 0x12, 0x63, 0x1f, + 0x48, 0x11, 0x00, 0x40, 0x12, 0xc9, 0x8c, 0x33, 0x50, 0x7e, 0x8a, 0x71, 0x06, 0x7a, 0x05, 0xac, + 0x18, 0x78, 0x12, 0x01, 0x2b, 0xec, 0xdf, 0x60, 0xa7, 0xb3, 0x5e, 0x7e, 0x0c, 0x82, 0xdb, 0x75, + 0xf3, 0x1c, 0xb7, 0x0b, 0x56, 0x96, 0xe8, 0x54, 0x8e, 0x00, 0xf7, 0x6b, 0x16, 0x9c, 0xcf, 0xf8, + 0x2a, 0x4d, 0x9a, 0x7b, 0x05, 0x46, 0x9c, 0x6e, 0xd3, 0x55, 0x7b, 0x59, 0xb3, 0x16, 0xcf, 0x8b, + 0x72, 0xac, 0x30, 0xd0, 0x22, 0xcc, 0x90, 0x54, 0x7c, 0x61, 0x1e, 0xb9, 0x8b, 0xbd, 0x9c, 0x4e, + 0x07, 0x17, 0x4e, 0xe3, 0xab, 0xa0, 0x77, 0xe5, 0xdc, 0xa0, 0x77, 0x7f, 0xcf, 0x82, 0x31, 0xf5, + 0x20, 0xfe, 0xa9, 0x8f, 0xf6, 0x7b, 0xe6, 0x68, 0x3f, 0x53, 0x30, 0xda, 0x39, 0xc3, 0xfc, 0x7b, + 0x25, 0xd5, 0xdf, 0x9a, 0x1f, 0x44, 0x7d, 0x48, 0x89, 0x8f, 0xff, 0xec, 0xe5, 0x2a, 0x8c, 0x39, + 0x9d, 0x8e, 0x04, 0x48, 0xff, 0x45, 0x96, 0x1a, 0x26, 0x2e, 0xc6, 0x3a, 0x8e, 0x7a, 0x85, 0x53, + 0xce, 0x7d, 0x85, 0xd3, 0x04, 0x88, 0x9c, 0x60, 0x8b, 0x44, 0xb4, 0x4c, 0xb8, 0x5b, 0xe7, 0xf3, + 0x9b, 0x6e, 0xe4, 0xb6, 0xe6, 0x5c, 0x2f, 0x0a, 0xa3, 0x60, 0x6e, 0xd5, 0x8b, 0x6e, 0x07, 0xfc, + 0x9a, 0xaa, 0x85, 0x96, 0x54, 0xb4, 0xb0, 0x46, 0x57, 0x06, 0x7f, 0x61, 0x6d, 0x0c, 0x9a, 0x8e, + 0x30, 0xeb, 0xa2, 0x1c, 0x2b, 0x0c, 0xfb, 0x0b, 0xec, 0xf4, 0x61, 0x63, 0x7a, 0xb4, 0x90, 0x89, + 0x7f, 0x3c, 0xae, 0x66, 0x83, 0x99, 0x84, 0x97, 0xf4, 0xc0, 0x8c, 0xc5, 0xcc, 0x9e, 0x36, 0xac, + 0xbf, 0xb3, 0x8d, 0xa3, 0x37, 0xa2, 0xaf, 0xa5, 0x9c, 0x9b, 0x5e, 0xed, 0x71, 0x6a, 0x1c, 0xc1, + 0x9d, 0x89, 0xe5, 0x89, 0x64, 0x59, 0xf4, 0x56, 0x6b, 0x62, 0x5f, 0x68, 0x79, 0x22, 0x05, 0x00, + 0xc7, 0x38, 0x54, 0x60, 0x53, 0x7f, 0xc2, 0x0a, 0x8a, 0xd3, 0x09, 0x28, 0xec, 0x10, 0x6b, 0x18, + 0xe8, 0x8a, 0x50, 0x5a, 0x70, 0xdb, 0xc3, 0x33, 0x09, 0xa5, 0x85, 0x1c, 0x2e, 0x4d, 0xd3, 0x74, + 0x15, 0xc6, 0xc8, 0xc3, 0x88, 0x04, 0x9e, 0xd3, 0xa2, 0x2d, 0x0c, 0xc6, 0xc1, 0x91, 0x97, 0xe3, + 0x62, 0xac, 0xe3, 0xa0, 0x0d, 0x98, 0x0a, 0xb9, 0x2e, 0x4f, 0x25, 0xb1, 0xe1, 0x3a, 0xd1, 0xcf, + 0xaa, 0x50, 0x04, 0x26, 0xf8, 0x90, 0x15, 0x71, 0xee, 0x24, 0x03, 0xb4, 0x24, 0x49, 0xa0, 0x77, + 0x61, 0xb2, 0xe5, 0x3b, 0xcd, 0x05, 0xa7, 0xe5, 0x78, 0x0d, 0x36, 0x3e, 0x23, 0x46, 0x94, 0xce, + 0xc9, 0x5b, 0x06, 0x14, 0x27, 0xb0, 0xa9, 0x80, 0xa8, 0x97, 0x88, 0xc4, 0x4b, 0x8e, 0xb7, 0x45, + 0xc2, 0xca, 0x28, 0xfb, 0x2a, 0x26, 0x20, 0xde, 0xca, 0xc1, 0xc1, 0xb9, 0xb5, 0xd1, 0x35, 0x18, + 0x97, 0x9f, 0xaf, 0xc5, 0x33, 0x8a, 0x1f, 0x34, 0x69, 0x30, 0x6c, 0x60, 0xa2, 0x10, 0x4e, 0xc9, + 0xff, 0x1b, 0x81, 0xb3, 0xb9, 0xe9, 0x36, 0x44, 0x90, 0x0f, 0xfe, 0x28, 0xfd, 0x4b, 0xf2, 0x05, + 0xec, 0x72, 0x16, 0xd2, 0xe1, 0x7e, 0xf5, 0x9c, 0x18, 0xb5, 0x4c, 0x38, 0xce, 0xa6, 0x8d, 0xd6, + 0xe0, 0x04, 0xf7, 0x81, 0x59, 0xdc, 0x26, 0x8d, 0x1d, 0xb9, 0xe1, 0x98, 0xd4, 0xa8, 0x3d, 0xfc, + 0xb9, 0x91, 0x46, 0xc1, 0x59, 0xf5, 0xd0, 0x87, 0x50, 0xe9, 0x74, 0xef, 0xb7, 0xdc, 0x70, 0x7b, + 0xdd, 0x8f, 0x98, 0x0b, 0xd9, 0x7c, 0xb3, 0x19, 0x90, 0x90, 0xbf, 0x59, 0x66, 0x47, 0xaf, 0x8c, + 0x41, 0x55, 0xcb, 0xc1, 0xc3, 0xb9, 0x14, 0xd0, 0x23, 0x38, 0x95, 0x58, 0x08, 0x22, 0x98, 0xcc, + 0x64, 0x7e, 0x0a, 0xbb, 0x7a, 0x56, 0x05, 0x11, 0x97, 0x29, 0x0b, 0x84, 0xb3, 0x9b, 0x40, 0x6f, + 0x01, 0xb8, 0x9d, 0x15, 0xa7, 0xed, 0xb6, 0xe8, 0x75, 0xf4, 0x04, 0x5b, 0x23, 0xf4, 0x6a, 0x02, + 0xab, 0x35, 0x59, 0x4a, 0x79, 0xb3, 0xf8, 0xb7, 0x87, 0x35, 0x6c, 0x74, 0x0b, 0x26, 0xc5, 0xbf, + 0x3d, 0x31, 0xa5, 0x33, 0x2a, 0xdb, 0xf1, 0xa4, 0xac, 0xa1, 0xe6, 0x31, 0x51, 0x82, 0x13, 0x75, + 0xd1, 0x16, 0x9c, 0x97, 0xa9, 0x96, 0xf5, 0xf5, 0x29, 0xe7, 0x20, 0x64, 0x79, 0xe3, 0x46, 0xf8, + 0x9b, 0xa2, 0xf9, 0x22, 0x44, 0x5c, 0x4c, 0x87, 0x9e, 0xeb, 0xfa, 0x32, 0xe7, 0x2f, 0xd9, 0x4f, + 0xc5, 0xb1, 0x4e, 0x6f, 0x25, 0x81, 0x38, 0x8d, 0x8f, 0x7c, 0x38, 0xe5, 0x7a, 0x59, 0xab, 0xfa, + 0x34, 0x23, 0xf4, 0x45, 0xfe, 0x88, 0xbf, 0x78, 0x45, 0x67, 0xc2, 0x71, 0x36, 0x5d, 0xb4, 0x0a, + 0x27, 0x22, 0x5e, 0xb0, 0xe4, 0x86, 0x3c, 0x2d, 0x15, 0xbd, 0xf6, 0x9d, 0x61, 0xcd, 0x9d, 0xa1, + 0xab, 0x79, 0x23, 0x0d, 0xc6, 0x59, 0x75, 0x3e, 0x9e, 0x03, 0xe8, 0xef, 0x5b, 0xb4, 0xb6, 0x26, + 0xe8, 0xa3, 0x6f, 0xc2, 0xb8, 0x3e, 0x3e, 0x42, 0x68, 0xb9, 0x94, 0x2d, 0x07, 0x6b, 0xec, 0x85, + 0x5f, 0x13, 0x14, 0x0b, 0xd1, 0x61, 0xd8, 0xa0, 0x88, 0x1a, 0x19, 0xc1, 0x37, 0xae, 0xf4, 0x27, + 0x14, 0xf5, 0xef, 0xff, 0x48, 0x20, 0x7b, 0xe7, 0xa0, 0x5b, 0x30, 0xd2, 0x68, 0xb9, 0xc4, 0x8b, + 0x56, 0x6b, 0x45, 0x21, 0x68, 0x17, 0x05, 0x8e, 0xd8, 0x8a, 0x22, 0x9b, 0x1c, 0x2f, 0xc3, 0x8a, + 0x82, 0x7d, 0x0d, 0xc6, 0xea, 0x2d, 0x42, 0x3a, 0xfc, 0x1d, 0x17, 0x7a, 0x89, 0x5d, 0x4c, 0x98, + 0x68, 0x69, 0x31, 0xd1, 0x52, 0xbf, 0x73, 0x30, 0xa1, 0x52, 0xc2, 0xed, 0xdf, 0x2e, 0x41, 0xb5, + 0x47, 0x52, 0xc3, 0x84, 0xbd, 0xcd, 0xea, 0xcb, 0xde, 0x36, 0x0f, 0x53, 0xf1, 0x3f, 0x5d, 0x95, + 0xa7, 0x9c, 0xa1, 0xef, 0x9a, 0x60, 0x9c, 0xc4, 0xef, 0xfb, 0x5d, 0x8b, 0x6e, 0xb2, 0x1b, 0xe8, + 0xf9, 0x32, 0xcb, 0x30, 0xd5, 0x0f, 0xf6, 0x7f, 0xf7, 0xce, 0x35, 0xbb, 0xda, 0xbf, 0x51, 0x82, + 0x53, 0x6a, 0x08, 0x7f, 0x78, 0x07, 0xee, 0x4e, 0x7a, 0xe0, 0x9e, 0x80, 0xd1, 0xda, 0xbe, 0x0d, + 0x43, 0x3c, 0x2e, 0x6e, 0x1f, 0x32, 0xff, 0x73, 0x66, 0x1e, 0x06, 0x25, 0x66, 0x1a, 0xb9, 0x18, + 0xfe, 0x92, 0x05, 0x53, 0x89, 0x07, 0x92, 0x08, 0x6b, 0xaf, 0xe8, 0x1f, 0x47, 0x2e, 0xcf, 0x92, + 0xf8, 0x2f, 0xc2, 0xc0, 0xb6, 0xaf, 0x9c, 0x94, 0x15, 0xc6, 0x0d, 0x3f, 0x8c, 0x30, 0x83, 0xd8, + 0xff, 0xd2, 0x82, 0xc1, 0x0d, 0xc7, 0xf5, 0x22, 0x69, 0xfd, 0xb0, 0x72, 0xac, 0x1f, 0xfd, 0x7c, + 0x17, 0x7a, 0x13, 0x86, 0xc8, 0xe6, 0x26, 0x69, 0x44, 0x62, 0x56, 0x65, 0x94, 0x8f, 0xa1, 0x65, + 0x56, 0x4a, 0x85, 0x50, 0xd6, 0x18, 0xff, 0x8b, 0x05, 0x32, 0xba, 0x07, 0xa3, 0x91, 0xdb, 0x26, + 0xf3, 0xcd, 0xa6, 0xf0, 0x09, 0x78, 0x8c, 0xd0, 0x34, 0x1b, 0x92, 0x00, 0x8e, 0x69, 0xd9, 0xdf, + 0x2b, 0x01, 0xc4, 0x71, 0xf8, 0x7a, 0x7d, 0xe2, 0x42, 0xca, 0x5a, 0x7c, 0x29, 0xc3, 0x5a, 0x8c, + 0x62, 0x82, 0x19, 0xa6, 0x62, 0x35, 0x4c, 0xe5, 0xbe, 0x86, 0x69, 0xe0, 0x28, 0xc3, 0xb4, 0x08, + 0x33, 0x71, 0x1c, 0x41, 0x33, 0x8c, 0x2a, 0x3b, 0xbf, 0x37, 0x92, 0x40, 0x9c, 0xc6, 0xb7, 0x09, + 0x5c, 0x54, 0xe1, 0xd4, 0xc4, 0x59, 0xc8, 0x9e, 0x12, 0xe8, 0xd6, 0xf7, 0x1e, 0xe3, 0x14, 0x9b, + 0xc3, 0x4b, 0xb9, 0xe6, 0xf0, 0xbf, 0x69, 0xc1, 0xc9, 0x64, 0x3b, 0xec, 0xdd, 0xfd, 0x77, 0x2d, + 0x38, 0x15, 0xe7, 0xf4, 0x4a, 0xbb, 0x20, 0xbc, 0x51, 0x18, 0x22, 0x2e, 0xa7, 0xc7, 0x71, 0x38, + 0x99, 0xb5, 0x2c, 0xd2, 0x38, 0xbb, 0x45, 0xfb, 0xff, 0x19, 0x80, 0x4a, 0x5e, 0x6c, 0x39, 0xf6, + 0xd2, 0xc8, 0x79, 0x58, 0xdf, 0x21, 0x0f, 0xc4, 0x7b, 0x8e, 0xf8, 0xa5, 0x11, 0x2f, 0xc6, 0x12, + 0x9e, 0x4c, 0xe3, 0x56, 0xea, 0x33, 0x8d, 0xdb, 0x36, 0xcc, 0x3c, 0xd8, 0x26, 0xde, 0x1d, 0x2f, + 0x74, 0x22, 0x37, 0xdc, 0x74, 0x99, 0x01, 0x9d, 0xaf, 0x9b, 0xb7, 0xe4, 0xab, 0x8b, 0x7b, 0x49, + 0x84, 0xc3, 0xfd, 0xea, 0x79, 0xa3, 0x20, 0xee, 0x32, 0x67, 0x24, 0x38, 0x4d, 0x34, 0x9d, 0x05, + 0x6f, 0xe0, 0x29, 0x67, 0xc1, 0x6b, 0xbb, 0xc2, 0xed, 0x46, 0x3e, 0x23, 0x61, 0xd7, 0xd6, 0x35, + 0x55, 0x8a, 0x35, 0x0c, 0xf4, 0x75, 0x40, 0x7a, 0x1a, 0x53, 0x23, 0xb4, 0xef, 0xab, 0x07, 0xfb, + 0x55, 0xb4, 0x9e, 0x82, 0x1e, 0xee, 0x57, 0x4f, 0xd0, 0xd2, 0x55, 0x8f, 0x5e, 0x7f, 0xe3, 0x78, + 0x88, 0x19, 0x84, 0xd0, 0x3d, 0x98, 0xa6, 0xa5, 0x6c, 0x47, 0xc9, 0xb8, 0xc1, 0xfc, 0xca, 0xfa, + 0xf2, 0xc1, 0x7e, 0x75, 0x7a, 0x3d, 0x01, 0xcb, 0x23, 0x9d, 0x22, 0x92, 0x91, 0x0c, 0x6f, 0xa4, + 0xdf, 0x64, 0x78, 0xf6, 0x77, 0x2d, 0x38, 0x4b, 0x0f, 0xb8, 0xe6, 0xad, 0x1c, 0x2b, 0xba, 0xd3, + 0x71, 0xb9, 0x9d, 0x46, 0x1c, 0x35, 0x4c, 0x57, 0x57, 0x5b, 0xe5, 0x56, 0x1a, 0x05, 0xa5, 0x1c, + 0x7e, 0xc7, 0xf5, 0x9a, 0x49, 0x0e, 0x7f, 0xd3, 0xf5, 0x9a, 0x98, 0x41, 0xd4, 0x91, 0x55, 0xce, + 0xcd, 0x43, 0xf0, 0x2b, 0x74, 0xaf, 0xd2, 0xbe, 0xfc, 0x40, 0xbb, 0x81, 0x5e, 0xd6, 0x6d, 0xaa, + 0xc2, 0x7d, 0x32, 0xd7, 0x9e, 0xfa, 0x1d, 0x0b, 0xc4, 0xeb, 0xf7, 0x3e, 0xce, 0xe4, 0xaf, 0xc2, + 0xf8, 0x6e, 0x3a, 0xc5, 0xf3, 0xc5, 0xfc, 0x70, 0x00, 0x22, 0xb1, 0xb3, 0x12, 0xd1, 0x8d, 0x74, + 0xce, 0x06, 0x2d, 0xbb, 0x09, 0x02, 0xba, 0x44, 0x98, 0x55, 0xa3, 0x77, 0x6f, 0x5e, 0x03, 0x68, + 0x32, 0x5c, 0x96, 0xec, 0xac, 0x64, 0x4a, 0x5c, 0x4b, 0x0a, 0x82, 0x35, 0x2c, 0xfb, 0x17, 0xca, + 0x30, 0x26, 0x53, 0x0a, 0x77, 0xbd, 0x7e, 0x74, 0x8f, 0xba, 0xe0, 0x54, 0xea, 0x29, 0x38, 0x7d, + 0x08, 0x33, 0x01, 0x69, 0x74, 0x83, 0xd0, 0xdd, 0x25, 0x12, 0x2c, 0x36, 0xc9, 0x1c, 0x4f, 0x83, + 0x91, 0x00, 0x1e, 0xb2, 0xd0, 0x5d, 0x89, 0x42, 0x66, 0x34, 0x4e, 0x13, 0x42, 0x57, 0x60, 0x94, + 0xa9, 0xde, 0x6b, 0xb1, 0x42, 0x58, 0x29, 0xbe, 0xd6, 0x24, 0x00, 0xc7, 0x38, 0xec, 0x72, 0xd0, + 0xbd, 0xaf, 0x65, 0xa2, 0x8b, 0x2f, 0x07, 0xbc, 0x18, 0x4b, 0x38, 0xfa, 0x32, 0x4c, 0xf3, 0x7a, + 0x81, 0xdf, 0x71, 0xb6, 0xb8, 0x49, 0x70, 0x50, 0x85, 0xd7, 0x99, 0x5e, 0x4b, 0xc0, 0x0e, 0xf7, + 0xab, 0x27, 0x93, 0x65, 0xac, 0xdb, 0x29, 0x2a, 0xcc, 0xf3, 0x8f, 0x37, 0x42, 0xcf, 0x8c, 0x94, + 0xc3, 0x60, 0x0c, 0xc2, 0x3a, 0x9e, 0xfd, 0x27, 0x16, 0xcc, 0x68, 0x53, 0xd5, 0x77, 0x26, 0x12, + 0x63, 0x90, 0x4a, 0x7d, 0x0c, 0xd2, 0xd1, 0xa2, 0x3d, 0x64, 0xce, 0xf0, 0xc0, 0x13, 0x9a, 0x61, + 0xfb, 0x9b, 0x80, 0xd2, 0xf9, 0xaa, 0xd1, 0xfb, 0xdc, 0x91, 0xdf, 0x0d, 0x48, 0xb3, 0xc8, 0xe0, + 0xaf, 0x47, 0xce, 0x91, 0x2f, 0x57, 0x79, 0x2d, 0xac, 0xea, 0xdb, 0x7f, 0x32, 0x00, 0xd3, 0xc9, + 0x58, 0x1d, 0xe8, 0x06, 0x0c, 0x71, 0x29, 0x5d, 0x90, 0x2f, 0xf0, 0x27, 0xd3, 0x22, 0x7c, 0xf0, + 0x2c, 0x41, 0x5c, 0xba, 0x17, 0xf5, 0xd1, 0x87, 0x30, 0xd6, 0xf4, 0x1f, 0x78, 0x0f, 0x9c, 0xa0, + 0x39, 0x5f, 0x5b, 0x15, 0x1c, 0x22, 0x53, 0x01, 0xb5, 0x14, 0xa3, 0xe9, 0x51, 0x43, 0x98, 0xef, + 0x44, 0x0c, 0xc2, 0x3a, 0x39, 0xb4, 0xc1, 0x12, 0x57, 0x6d, 0xba, 0x5b, 0x6b, 0x4e, 0xa7, 0xe8, + 0x55, 0xd7, 0xa2, 0x44, 0xd2, 0x28, 0x4f, 0x88, 0xec, 0x56, 0x1c, 0x80, 0x63, 0x42, 0xe8, 0x47, + 0xe1, 0x44, 0x98, 0x63, 0x12, 0xcb, 0x71, 0x38, 0x28, 0xb4, 0x12, 0x71, 0x65, 0x4a, 0x96, 0xf1, + 0x2c, 0xab, 0x19, 0xf4, 0x10, 0x90, 0x50, 0x3d, 0x6f, 0x04, 0xdd, 0x30, 0xe2, 0x29, 0x20, 0xc5, + 0xa5, 0xeb, 0x73, 0xd9, 0x7a, 0x82, 0x24, 0xb6, 0xd6, 0x36, 0x0b, 0x9c, 0x9c, 0xc6, 0xc0, 0x19, + 0x6d, 0xa0, 0x6d, 0x98, 0xec, 0x18, 0xd9, 0x37, 0xd9, 0xde, 0xcc, 0x89, 0x2e, 0x9c, 0x97, 0xa7, + 0x93, 0x9f, 0xd2, 0x26, 0x14, 0x27, 0xe8, 0xda, 0xdf, 0x19, 0x80, 0x59, 0x99, 0x8a, 0x3e, 0xe3, + 0x9d, 0xcc, 0xb7, 0xad, 0xc4, 0x43, 0x99, 0xb7, 0xf2, 0x8f, 0x94, 0xa7, 0xf6, 0x5c, 0xe6, 0x27, + 0xd3, 0xcf, 0x65, 0xde, 0x39, 0x62, 0x37, 0x9e, 0xd8, 0xa3, 0x99, 0x1f, 0xda, 0x97, 0x2e, 0x07, + 0x27, 0xc1, 0x10, 0x02, 0x10, 0xe6, 0xf1, 0xef, 0x6b, 0xd2, 0x48, 0x95, 0xa3, 0x68, 0xb8, 0x21, + 0x70, 0x0c, 0xb1, 0x62, 0x5c, 0x46, 0xc9, 0x67, 0x1c, 0x5d, 0xd1, 0xa1, 0x34, 0x49, 0xbb, 0x13, + 0xed, 0x2d, 0xb9, 0x81, 0xe8, 0x71, 0x26, 0xcd, 0x65, 0x81, 0x93, 0xa6, 0x29, 0x21, 0x58, 0xd1, + 0x41, 0xbb, 0x30, 0xb3, 0xc5, 0x62, 0x4b, 0x69, 0x59, 0xe1, 0x05, 0x07, 0xca, 0xe4, 0x10, 0xd7, + 0x17, 0x97, 0xf3, 0x53, 0xc8, 0xf3, 0x6b, 0x66, 0x0a, 0x05, 0xa7, 0x9b, 0xa0, 0x5b, 0xe3, 0xa4, + 0xf3, 0x20, 0x5c, 0x6e, 0x39, 0x61, 0xe4, 0x36, 0x16, 0x5a, 0x7e, 0x63, 0xa7, 0x1e, 0xf9, 0x81, + 0xcc, 0x2a, 0x9a, 0x79, 0xcb, 0x9b, 0xbf, 0x57, 0x4f, 0xe1, 0x1b, 0xcd, 0xb3, 0xec, 0xb6, 0x59, + 0x58, 0x38, 0xb3, 0x2d, 0xb4, 0x0e, 0xc3, 0x5b, 0x6e, 0x84, 0x49, 0xc7, 0x17, 0x7c, 0x29, 0x93, + 0xe9, 0x5e, 0xe7, 0x28, 0x46, 0x4b, 0x2c, 0xf6, 0x95, 0x00, 0x60, 0x49, 0x04, 0xbd, 0xaf, 0x8e, + 0x9b, 0xa1, 0x7c, 0x55, 0x6f, 0xda, 0xcb, 0x2f, 0xf3, 0xc0, 0x79, 0x17, 0xca, 0xde, 0x66, 0x58, + 0x14, 0xf5, 0x67, 0x7d, 0xc5, 0xd0, 0xd4, 0x2d, 0x0c, 0xd3, 0x4b, 0xf8, 0xfa, 0x4a, 0x1d, 0xd3, + 0x8a, 0xec, 0x81, 0x6d, 0xd8, 0x08, 0x5d, 0x91, 0xbc, 0x2b, 0xf3, 0xbd, 0xf1, 0x6a, 0x7d, 0xb1, + 0xbe, 0x6a, 0xd0, 0x60, 0xf1, 0x13, 0x59, 0x31, 0xe6, 0xd5, 0xd1, 0x5d, 0x18, 0xdd, 0xe2, 0x2c, + 0x76, 0x93, 0x87, 0xb5, 0xcd, 0x39, 0xf6, 0xae, 0x4b, 0x24, 0x83, 0x1e, 0x3b, 0x9c, 0x14, 0x08, + 0xc7, 0xa4, 0xd0, 0x77, 0x2c, 0x38, 0xd5, 0x49, 0xe8, 0x6a, 0xd9, 0xb3, 0x38, 0xe1, 0x10, 0x97, + 0xf9, 0xd4, 0xa0, 0x96, 0x55, 0xc1, 0x68, 0x90, 0x19, 0x7a, 0x32, 0xd1, 0x70, 0x76, 0x73, 0x74, + 0xa0, 0x83, 0xfb, 0xcd, 0xa2, 0x7c, 0x4f, 0x89, 0x10, 0x48, 0x7c, 0xa0, 0xf1, 0xc2, 0x12, 0xa6, + 0x15, 0xd1, 0x06, 0xc0, 0x66, 0x8b, 0x88, 0xd8, 0x92, 0xc2, 0xfd, 0x2a, 0x53, 0xce, 0x58, 0x51, + 0x58, 0x82, 0x0e, 0xbb, 0xf3, 0xc6, 0xa5, 0x58, 0xa3, 0x43, 0x97, 0x52, 0xc3, 0xf5, 0x9a, 0x24, + 0x60, 0x66, 0xb4, 0x9c, 0xa5, 0xb4, 0xc8, 0x30, 0xd2, 0x4b, 0x89, 0x97, 0x63, 0x41, 0x81, 0xd1, + 0x22, 0x9d, 0xed, 0xcd, 0xb0, 0x28, 0xb3, 0xc8, 0x22, 0xe9, 0x6c, 0x27, 0x16, 0x14, 0xa7, 0xc5, + 0xca, 0xb1, 0xa0, 0x40, 0xb7, 0xcc, 0x26, 0xdd, 0x40, 0x24, 0xa8, 0x4c, 0xe5, 0x6f, 0x99, 0x15, + 0x8e, 0x92, 0xde, 0x32, 0x02, 0x80, 0x25, 0x11, 0xf4, 0x0d, 0x53, 0xae, 0x9a, 0x66, 0x34, 0x5f, + 0xee, 0x21, 0x57, 0x19, 0x74, 0x8b, 0x25, 0xab, 0xb7, 0xa0, 0xb4, 0xd9, 0x60, 0xe6, 0xb7, 0x1c, + 0xeb, 0xc4, 0xca, 0xa2, 0x41, 0x8d, 0x45, 0xea, 0x5f, 0x59, 0xc4, 0xa5, 0xcd, 0x06, 0x5d, 0xfa, + 0xce, 0xa3, 0x6e, 0x40, 0x56, 0xdc, 0x16, 0x11, 0xa1, 0x83, 0x33, 0x97, 0xfe, 0xbc, 0x44, 0x4a, + 0x2f, 0x7d, 0x05, 0xc2, 0x31, 0x29, 0x4a, 0x37, 0x96, 0xf6, 0x4e, 0xe4, 0xd3, 0x55, 0x42, 0x5d, + 0x9a, 0x6e, 0xa6, 0xbc, 0xb7, 0x03, 0x13, 0xbb, 0x61, 0x67, 0x9b, 0x48, 0xae, 0xc8, 0x0c, 0x83, + 0x39, 0x31, 0x31, 0xee, 0x0a, 0x44, 0x37, 0x88, 0xba, 0x4e, 0x2b, 0xc5, 0xc8, 0x99, 0x12, 0xe7, + 0xae, 0x4e, 0x0c, 0x9b, 0xb4, 0xe9, 0x42, 0xf8, 0x88, 0x07, 0xae, 0x63, 0x26, 0xc2, 0x9c, 0x85, + 0x90, 0x11, 0xdb, 0x8e, 0x2f, 0x04, 0x01, 0xc0, 0x92, 0x88, 0x1a, 0x6c, 0x76, 0x00, 0x9d, 0xee, + 0x31, 0xd8, 0xa9, 0xfe, 0xc6, 0x83, 0xcd, 0x0e, 0x9c, 0x98, 0x14, 0x3b, 0x68, 0x3a, 0xdb, 0x7e, + 0xe4, 0x7b, 0x89, 0x43, 0xee, 0x4c, 0xfe, 0x41, 0x53, 0xcb, 0xc0, 0x4f, 0x1f, 0x34, 0x59, 0x58, + 0x38, 0xb3, 0x2d, 0xfa, 0x71, 0x1d, 0x19, 0x83, 0x50, 0x64, 0x42, 0x79, 0x29, 0x27, 0x84, 0x67, + 0x3a, 0x50, 0x21, 0xff, 0x38, 0x05, 0xc2, 0x31, 0x29, 0xd4, 0xa4, 0x92, 0xae, 0x1e, 0xdb, 0x96, + 0x65, 0x74, 0xc9, 0x91, 0x0b, 0xb2, 0xa2, 0xe0, 0x4a, 0x29, 0x57, 0x87, 0xe0, 0x04, 0x4d, 0xe6, + 0x23, 0xc8, 0x1f, 0x15, 0xb2, 0x84, 0x2f, 0x39, 0x53, 0x9d, 0xf1, 0xee, 0x90, 0x4f, 0xb5, 0x00, + 0x60, 0x49, 0x84, 0x8e, 0x86, 0x78, 0x0a, 0xe7, 0x87, 0x2c, 0x6f, 0x52, 0x9e, 0x29, 0x3f, 0xcb, + 0x20, 0x25, 0x03, 0xcd, 0x0b, 0x10, 0x8e, 0x49, 0x51, 0x4e, 0x4e, 0x0f, 0xbc, 0x73, 0xf9, 0x9c, + 0x3c, 0x79, 0xdc, 0x31, 0x4e, 0x4e, 0x0f, 0xbb, 0xb2, 0x38, 0xea, 0x54, 0x5c, 0x74, 0x96, 0xf3, + 0x25, 0xa7, 0x5f, 0x2a, 0xb0, 0x7a, 0xba, 0x5f, 0x0a, 0x84, 0x63, 0x52, 0xec, 0x28, 0x66, 0x41, + 0xf0, 0x2e, 0x14, 0x1c, 0xc5, 0x14, 0x21, 0xe3, 0x28, 0xd6, 0x82, 0xe4, 0xd9, 0x7f, 0xb9, 0x04, + 0x17, 0x8a, 0xf7, 0x6d, 0x6c, 0xad, 0xab, 0xc5, 0xde, 0x51, 0x09, 0x6b, 0x1d, 0xd7, 0x1d, 0xc5, + 0x58, 0x7d, 0x87, 0x36, 0xbe, 0x0e, 0x33, 0xea, 0xe1, 0x63, 0xcb, 0x6d, 0xec, 0x69, 0x89, 0x5e, + 0x55, 0x10, 0xa0, 0x7a, 0x12, 0x01, 0xa7, 0xeb, 0xa0, 0x79, 0x98, 0x32, 0x0a, 0x57, 0x97, 0x84, + 0xa2, 0x21, 0xce, 0x56, 0x62, 0x82, 0x71, 0x12, 0xdf, 0xfe, 0x45, 0x0b, 0xce, 0xf0, 0x40, 0xbc, + 0xa4, 0x59, 0xf3, 0x9b, 0x52, 0xa3, 0x70, 0xa4, 0xc8, 0xbd, 0x9b, 0x30, 0xd5, 0x31, 0xab, 0xf6, + 0x08, 0x36, 0xae, 0xa3, 0xc6, 0x7d, 0x4d, 0x00, 0x70, 0x92, 0xa8, 0xfd, 0xf3, 0x25, 0x38, 0x5f, + 0xe8, 0xc9, 0x8f, 0x30, 0x9c, 0xde, 0x6a, 0x87, 0xce, 0x62, 0x40, 0x9a, 0xc4, 0x8b, 0x5c, 0xa7, + 0x55, 0xef, 0x90, 0x86, 0x66, 0x6f, 0x65, 0x2e, 0xf1, 0xd7, 0xd7, 0xea, 0xf3, 0x69, 0x0c, 0x9c, + 0x53, 0x13, 0xad, 0x00, 0x4a, 0x43, 0xc4, 0x0c, 0xb3, 0xcb, 0x74, 0x9a, 0x1e, 0xce, 0xa8, 0x81, + 0xbe, 0x00, 0x13, 0xea, 0x85, 0x80, 0x36, 0xe3, 0xec, 0x80, 0xc0, 0x3a, 0x00, 0x9b, 0x78, 0xe8, + 0x2a, 0x4f, 0x63, 0x25, 0x12, 0x9e, 0x09, 0xe3, 0xec, 0x94, 0xcc, 0x51, 0x25, 0x8a, 0xb1, 0x8e, + 0xb3, 0x70, 0xed, 0x77, 0xfe, 0xf0, 0xc2, 0x67, 0x7e, 0xf7, 0x0f, 0x2f, 0x7c, 0xe6, 0x0f, 0xfe, + 0xf0, 0xc2, 0x67, 0x7e, 0xfc, 0xe0, 0x82, 0xf5, 0x3b, 0x07, 0x17, 0xac, 0xdf, 0x3d, 0xb8, 0x60, + 0xfd, 0xc1, 0xc1, 0x05, 0xeb, 0x7f, 0x3b, 0xb8, 0x60, 0x7d, 0xef, 0x7f, 0xbf, 0xf0, 0x99, 0xaf, + 0xa2, 0x38, 0x16, 0xf6, 0x15, 0x3a, 0x3b, 0x57, 0x76, 0xaf, 0xfe, 0x87, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xba, 0xfb, 0xfc, 0xdd, 0x18, 0x2e, 0x01, 0x00, } func (m *AWSElasticBlockStoreVolumeSource) Marshal() (dAtA []byte, err error) { @@ -9346,6 +9549,22 @@ func (m *Container) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.RestartPolicyRules) > 0 { + for iNdEx := len(m.RestartPolicyRules) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RestartPolicyRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + } if m.RestartPolicy != nil { i -= len(*m.RestartPolicy) copy(dAtA[i:], *m.RestartPolicy) @@ -9600,6 +9819,44 @@ func (m *Container) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ContainerExtendedResourceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContainerExtendedResourceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContainerExtendedResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.RequestName) + copy(dAtA[i:], m.RequestName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.RequestName))) + i-- + dAtA[i] = 0x1a + i -= len(m.ResourceName) + copy(dAtA[i:], m.ResourceName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceName))) + i-- + dAtA[i] = 0x12 + i -= len(m.ContainerName) + copy(dAtA[i:], m.ContainerName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContainerName))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *ContainerImage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -9712,6 +9969,81 @@ func (m *ContainerResizePolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ContainerRestartRule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContainerRestartRule) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContainerRestartRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ExitCodes != nil { + { + size, err := m.ExitCodes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ContainerRestartRuleOnExitCodes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContainerRestartRuleOnExitCodes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContainerRestartRuleOnExitCodes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Values) > 0 { + for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintGenerated(dAtA, i, uint64(m.Values[iNdEx])) + i-- + dAtA[i] = 0x10 + } + } + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *ContainerState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -10681,6 +11013,18 @@ func (m *EnvVarSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.FileKeyRef != nil { + { + size, err := m.FileKeyRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } if m.SecretKeyRef != nil { { size, err := m.SecretKeyRef.MarshalToSizedBuffer(dAtA[:i]) @@ -10790,6 +11134,22 @@ func (m *EphemeralContainerCommon) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l + if len(m.RestartPolicyRules) > 0 { + for iNdEx := len(m.RestartPolicyRules) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RestartPolicyRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + } if m.RestartPolicy != nil { i -= len(*m.RestartPolicy) copy(dAtA[i:], *m.RestartPolicy) @@ -11426,6 +11786,54 @@ func (m *FCVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *FileKeySelector) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FileKeySelector) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FileKeySelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Optional != nil { + i-- + if *m.Optional { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x1a + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x12 + i -= len(m.VolumeName) + copy(dAtA[i:], m.VolumeName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeName))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *FlexPersistentVolumeSource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -15791,6 +16199,59 @@ func (m *PodAttachOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *PodCertificateProjection) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PodCertificateProjection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PodCertificateProjection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.CertificateChainPath) + copy(dAtA[i:], m.CertificateChainPath) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CertificateChainPath))) + i-- + dAtA[i] = 0x32 + i -= len(m.KeyPath) + copy(dAtA[i:], m.KeyPath) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.KeyPath))) + i-- + dAtA[i] = 0x2a + i -= len(m.CredentialBundlePath) + copy(dAtA[i:], m.CredentialBundlePath) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CredentialBundlePath))) + i-- + dAtA[i] = 0x22 + if m.MaxExpirationSeconds != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.MaxExpirationSeconds)) + i-- + dAtA[i] = 0x18 + } + i -= len(m.KeyType) + copy(dAtA[i:], m.KeyType) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.KeyType))) + i-- + dAtA[i] = 0x12 + i -= len(m.SignerName) + copy(dAtA[i:], m.SignerName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SignerName))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *PodCondition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -16016,6 +16477,48 @@ func (m *PodExecOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *PodExtendedResourceClaimStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PodExtendedResourceClaimStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PodExtendedResourceClaimStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.ResourceClaimName) + copy(dAtA[i:], m.ResourceClaimName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceClaimName))) + i-- + dAtA[i] = 0x12 + if len(m.RequestMappings) > 0 { + for iNdEx := len(m.RequestMappings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RequestMappings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func (m *PodIP) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -16597,6 +17100,15 @@ func (m *PodSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.HostnameOverride != nil { + i -= len(*m.HostnameOverride) + copy(dAtA[i:], *m.HostnameOverride) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.HostnameOverride))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xca + } if m.Resources != nil { { size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) @@ -17085,6 +17597,20 @@ func (m *PodStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ExtendedResourceClaimStatus != nil { + { + size, err := m.ExtendedResourceClaimStatus.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) i-- dAtA[i] = 0x1 @@ -21108,6 +21634,18 @@ func (m *VolumeProjection) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.PodCertificate != nil { + { + size, err := m.PodCertificate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } if m.ClusterTrustBundle != nil { { size, err := m.ClusterTrustBundle.MarshalToSizedBuffer(dAtA[:i]) @@ -22471,6 +23009,27 @@ func (m *Container) Size() (n int) { l = len(*m.RestartPolicy) n += 2 + l + sovGenerated(uint64(l)) } + if len(m.RestartPolicyRules) > 0 { + for _, e := range m.RestartPolicyRules { + l = e.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ContainerExtendedResourceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContainerName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ResourceName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.RequestName) + n += 1 + l + sovGenerated(uint64(l)) return n } @@ -22520,6 +23079,37 @@ func (m *ContainerResizePolicy) Size() (n int) { return n } +func (m *ContainerRestartRule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Action) + n += 1 + l + sovGenerated(uint64(l)) + if m.ExitCodes != nil { + l = m.ExitCodes.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ContainerRestartRuleOnExitCodes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Operator) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Values) > 0 { + for _, e := range m.Values { + n += 1 + sovGenerated(uint64(e)) + } + } + return n +} + func (m *ContainerState) Size() (n int) { if m == nil { return 0 @@ -22896,6 +23486,10 @@ func (m *EnvVarSource) Size() (n int) { l = m.SecretKeyRef.Size() n += 1 + l + sovGenerated(uint64(l)) } + if m.FileKeyRef != nil { + l = m.FileKeyRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } return n } @@ -23007,6 +23601,12 @@ func (m *EphemeralContainerCommon) Size() (n int) { l = len(*m.RestartPolicy) n += 2 + l + sovGenerated(uint64(l)) } + if len(m.RestartPolicyRules) > 0 { + for _, e := range m.RestartPolicyRules { + l = e.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + } return n } @@ -23149,6 +23749,24 @@ func (m *FCVolumeSource) Size() (n int) { return n } +func (m *FileKeySelector) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VolumeName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + if m.Optional != nil { + n += 2 + } + return n +} + func (m *FlexPersistentVolumeSource) Size() (n int) { if m == nil { return 0 @@ -24752,6 +25370,28 @@ func (m *PodAttachOptions) Size() (n int) { return n } +func (m *PodCertificateProjection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SignerName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.KeyType) + n += 1 + l + sovGenerated(uint64(l)) + if m.MaxExpirationSeconds != nil { + n += 1 + sovGenerated(uint64(*m.MaxExpirationSeconds)) + } + l = len(m.CredentialBundlePath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.KeyPath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.CertificateChainPath) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *PodCondition) Size() (n int) { if m == nil { return 0 @@ -24837,6 +25477,23 @@ func (m *PodExecOptions) Size() (n int) { return n } +func (m *PodExtendedResourceClaimStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RequestMappings) > 0 { + for _, e := range m.RequestMappings { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.ResourceClaimName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *PodIP) Size() (n int) { if m == nil { return 0 @@ -25224,6 +25881,10 @@ func (m *PodSpec) Size() (n int) { l = m.Resources.Size() n += 2 + l + sovGenerated(uint64(l)) } + if m.HostnameOverride != nil { + l = len(*m.HostnameOverride) + n += 2 + l + sovGenerated(uint64(l)) + } return n } @@ -25296,6 +25957,10 @@ func (m *PodStatus) Size() (n int) { } } n += 2 + sovGenerated(uint64(m.ObservedGeneration)) + if m.ExtendedResourceClaimStatus != nil { + l = m.ExtendedResourceClaimStatus.Size() + n += 2 + l + sovGenerated(uint64(l)) + } return n } @@ -26751,6 +27416,10 @@ func (m *VolumeProjection) Size() (n int) { l = m.ClusterTrustBundle.Size() n += 1 + l + sovGenerated(uint64(l)) } + if m.PodCertificate != nil { + l = m.PodCertificate.Size() + n += 1 + l + sovGenerated(uint64(l)) + } return n } @@ -27426,6 +28095,11 @@ func (this *Container) String() string { repeatedStringForResizePolicy += strings.Replace(strings.Replace(f.String(), "ContainerResizePolicy", "ContainerResizePolicy", 1), `&`, ``, 1) + "," } repeatedStringForResizePolicy += "}" + repeatedStringForRestartPolicyRules := "[]ContainerRestartRule{" + for _, f := range this.RestartPolicyRules { + repeatedStringForRestartPolicyRules += strings.Replace(strings.Replace(f.String(), "ContainerRestartRule", "ContainerRestartRule", 1), `&`, ``, 1) + "," + } + repeatedStringForRestartPolicyRules += "}" s := strings.Join([]string{`&Container{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Image:` + fmt.Sprintf("%v", this.Image) + `,`, @@ -27451,6 +28125,19 @@ func (this *Container) String() string { `StartupProbe:` + strings.Replace(this.StartupProbe.String(), "Probe", "Probe", 1) + `,`, `ResizePolicy:` + repeatedStringForResizePolicy + `,`, `RestartPolicy:` + valueToStringGenerated(this.RestartPolicy) + `,`, + `RestartPolicyRules:` + repeatedStringForRestartPolicyRules + `,`, + `}`, + }, "") + return s +} +func (this *ContainerExtendedResourceRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerExtendedResourceRequest{`, + `ContainerName:` + fmt.Sprintf("%v", this.ContainerName) + `,`, + `ResourceName:` + fmt.Sprintf("%v", this.ResourceName) + `,`, + `RequestName:` + fmt.Sprintf("%v", this.RequestName) + `,`, `}`, }, "") return s @@ -27491,6 +28178,28 @@ func (this *ContainerResizePolicy) String() string { }, "") return s } +func (this *ContainerRestartRule) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerRestartRule{`, + `Action:` + fmt.Sprintf("%v", this.Action) + `,`, + `ExitCodes:` + strings.Replace(this.ExitCodes.String(), "ContainerRestartRuleOnExitCodes", "ContainerRestartRuleOnExitCodes", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ContainerRestartRuleOnExitCodes) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerRestartRuleOnExitCodes{`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `}`, + }, "") + return s +} func (this *ContainerState) String() string { if this == nil { return "nil" @@ -27777,6 +28486,7 @@ func (this *EnvVarSource) String() string { `ResourceFieldRef:` + strings.Replace(this.ResourceFieldRef.String(), "ResourceFieldSelector", "ResourceFieldSelector", 1) + `,`, `ConfigMapKeyRef:` + strings.Replace(this.ConfigMapKeyRef.String(), "ConfigMapKeySelector", "ConfigMapKeySelector", 1) + `,`, `SecretKeyRef:` + strings.Replace(this.SecretKeyRef.String(), "SecretKeySelector", "SecretKeySelector", 1) + `,`, + `FileKeyRef:` + strings.Replace(this.FileKeyRef.String(), "FileKeySelector", "FileKeySelector", 1) + `,`, `}`, }, "") return s @@ -27826,6 +28536,11 @@ func (this *EphemeralContainerCommon) String() string { repeatedStringForResizePolicy += strings.Replace(strings.Replace(f.String(), "ContainerResizePolicy", "ContainerResizePolicy", 1), `&`, ``, 1) + "," } repeatedStringForResizePolicy += "}" + repeatedStringForRestartPolicyRules := "[]ContainerRestartRule{" + for _, f := range this.RestartPolicyRules { + repeatedStringForRestartPolicyRules += strings.Replace(strings.Replace(f.String(), "ContainerRestartRule", "ContainerRestartRule", 1), `&`, ``, 1) + "," + } + repeatedStringForRestartPolicyRules += "}" s := strings.Join([]string{`&EphemeralContainerCommon{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Image:` + fmt.Sprintf("%v", this.Image) + `,`, @@ -27851,6 +28566,7 @@ func (this *EphemeralContainerCommon) String() string { `StartupProbe:` + strings.Replace(this.StartupProbe.String(), "Probe", "Probe", 1) + `,`, `ResizePolicy:` + repeatedStringForResizePolicy + `,`, `RestartPolicy:` + valueToStringGenerated(this.RestartPolicy) + `,`, + `RestartPolicyRules:` + repeatedStringForRestartPolicyRules + `,`, `}`, }, "") return s @@ -27951,6 +28667,19 @@ func (this *FCVolumeSource) String() string { }, "") return s } +func (this *FileKeySelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FileKeySelector{`, + `VolumeName:` + fmt.Sprintf("%v", this.VolumeName) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Optional:` + valueToStringGenerated(this.Optional) + `,`, + `}`, + }, "") + return s +} func (this *FlexPersistentVolumeSource) String() string { if this == nil { return "nil" @@ -29169,6 +29898,21 @@ func (this *PodAttachOptions) String() string { }, "") return s } +func (this *PodCertificateProjection) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodCertificateProjection{`, + `SignerName:` + fmt.Sprintf("%v", this.SignerName) + `,`, + `KeyType:` + fmt.Sprintf("%v", this.KeyType) + `,`, + `MaxExpirationSeconds:` + valueToStringGenerated(this.MaxExpirationSeconds) + `,`, + `CredentialBundlePath:` + fmt.Sprintf("%v", this.CredentialBundlePath) + `,`, + `KeyPath:` + fmt.Sprintf("%v", this.KeyPath) + `,`, + `CertificateChainPath:` + fmt.Sprintf("%v", this.CertificateChainPath) + `,`, + `}`, + }, "") + return s +} func (this *PodCondition) String() string { if this == nil { return "nil" @@ -29228,6 +29972,22 @@ func (this *PodExecOptions) String() string { }, "") return s } +func (this *PodExtendedResourceClaimStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForRequestMappings := "[]ContainerExtendedResourceRequest{" + for _, f := range this.RequestMappings { + repeatedStringForRequestMappings += strings.Replace(strings.Replace(f.String(), "ContainerExtendedResourceRequest", "ContainerExtendedResourceRequest", 1), `&`, ``, 1) + "," + } + repeatedStringForRequestMappings += "}" + s := strings.Join([]string{`&PodExtendedResourceClaimStatus{`, + `RequestMappings:` + repeatedStringForRequestMappings + `,`, + `ResourceClaimName:` + fmt.Sprintf("%v", this.ResourceClaimName) + `,`, + `}`, + }, "") + return s +} func (this *PodIP) String() string { if this == nil { return "nil" @@ -29503,6 +30263,7 @@ func (this *PodSpec) String() string { `SchedulingGates:` + repeatedStringForSchedulingGates + `,`, `ResourceClaims:` + repeatedStringForResourceClaims + `,`, `Resources:` + strings.Replace(this.Resources.String(), "ResourceRequirements", "ResourceRequirements", 1) + `,`, + `HostnameOverride:` + valueToStringGenerated(this.HostnameOverride) + `,`, `}`, }, "") return s @@ -29564,6 +30325,7 @@ func (this *PodStatus) String() string { `ResourceClaimStatuses:` + repeatedStringForResourceClaimStatuses + `,`, `HostIPs:` + repeatedStringForHostIPs + `,`, `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `ExtendedResourceClaimStatus:` + strings.Replace(this.ExtendedResourceClaimStatus.String(), "PodExtendedResourceClaimStatus", "PodExtendedResourceClaimStatus", 1) + `,`, `}`, }, "") return s @@ -30673,6 +31435,7 @@ func (this *VolumeProjection) String() string { `ConfigMap:` + strings.Replace(this.ConfigMap.String(), "ConfigMapProjection", "ConfigMapProjection", 1) + `,`, `ServiceAccountToken:` + strings.Replace(this.ServiceAccountToken.String(), "ServiceAccountTokenProjection", "ServiceAccountTokenProjection", 1) + `,`, `ClusterTrustBundle:` + strings.Replace(this.ClusterTrustBundle.String(), "ClusterTrustBundleProjection", "ClusterTrustBundleProjection", 1) + `,`, + `PodCertificate:` + strings.Replace(this.PodCertificate.String(), "PodCertificateProjection", "PodCertificateProjection", 1) + `,`, `}`, }, "") return s @@ -36465,61 +37228,11 @@ func (m *Container) Unmarshal(dAtA []byte) error { s := ContainerRestartPolicy(dAtA[iNdEx:postIndex]) m.RestartPolicy = &s iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContainerImage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContainerImage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerImage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 25: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicyRules", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -36529,43 +37242,26 @@ func (m *ContainerImage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType) - } - m.SizeBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SizeBytes |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + m.RestartPolicyRules = append(m.RestartPolicyRules, ContainerRestartRule{}) + if err := m.RestartPolicyRules[len(m.RestartPolicyRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) @@ -36587,7 +37283,7 @@ func (m *ContainerImage) Unmarshal(dAtA []byte) error { } return nil } -func (m *ContainerPort) Unmarshal(dAtA []byte) error { +func (m *ContainerExtendedResourceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -36610,15 +37306,15 @@ func (m *ContainerPort) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContainerPort: wiretype end group for non-group") + return fmt.Errorf("proto: ContainerExtendedResourceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerPort: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ContainerExtendedResourceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -36646,49 +37342,11 @@ func (m *ContainerPort) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.ContainerName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPort", wireType) - } - m.HostPort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HostPort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerPort", wireType) - } - m.ContainerPort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ContainerPort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -36716,11 +37374,11 @@ func (m *ContainerPort) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Protocol = Protocol(dAtA[iNdEx:postIndex]) + m.ResourceName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostIP", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RequestName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -36748,7 +37406,7 @@ func (m *ContainerPort) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.HostIP = string(dAtA[iNdEx:postIndex]) + m.RequestName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -36771,7 +37429,7 @@ func (m *ContainerPort) Unmarshal(dAtA []byte) error { } return nil } -func (m *ContainerResizePolicy) Unmarshal(dAtA []byte) error { +func (m *ContainerImage) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -36794,15 +37452,15 @@ func (m *ContainerResizePolicy) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContainerResizePolicy: wiretype end group for non-group") + return fmt.Errorf("proto: ContainerImage: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerResizePolicy: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ContainerImage: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -36830,13 +37488,13 @@ func (m *ContainerResizePolicy) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceName = ResourceName(dAtA[iNdEx:postIndex]) + m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicy", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType) } - var stringLen uint64 + m.SizeBytes = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -36846,24 +37504,585 @@ func (m *ContainerResizePolicy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.SizeBytes |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RestartPolicy = ResourceResizeRestartPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContainerPort) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContainerPort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerPort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HostPort", wireType) + } + m.HostPort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HostPort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerPort", wireType) + } + m.ContainerPort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContainerPort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Protocol = Protocol(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostIP", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostIP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContainerResizePolicy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContainerResizePolicy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerResizePolicy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceName = ResourceName(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RestartPolicy = ResourceResizeRestartPolicy(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContainerRestartRule) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContainerRestartRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerRestartRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = ContainerRestartRuleAction(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExitCodes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExitCodes == nil { + m.ExitCodes = &ContainerRestartRuleOnExitCodes{} + } + if err := m.ExitCodes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContainerRestartRuleOnExitCodes) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContainerRestartRuleOnExitCodes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerRestartRuleOnExitCodes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = ContainerRestartRuleOnExitCodesOperator(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType == 0 { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Values = append(m.Values, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Values) == 0 { + m.Values = make([]int32, 0, elementCount) + } + for iNdEx < postIndex { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Values = append(m.Values, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) + } default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) @@ -38790,13 +40009,196 @@ func (m *EndpointAddress) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.IP = string(dAtA[iNdEx:postIndex]) + m.IP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TargetRef == nil { + m.TargetRef = &ObjectReference{} + } + if err := m.TargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NodeName = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EndpointPort) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EndpointPort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EndpointPort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetRef", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) } - var msglen int + m.Port = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -38806,31 +40208,14 @@ func (m *EndpointAddress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Port |= int32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TargetRef == nil { - m.TargetRef = &ObjectReference{} - } - if err := m.TargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -38858,11 +40243,11 @@ func (m *EndpointAddress) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Hostname = string(dAtA[iNdEx:postIndex]) + m.Protocol = Protocol(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppProtocol", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -38891,7 +40276,7 @@ func (m *EndpointAddress) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } s := string(dAtA[iNdEx:postIndex]) - m.NodeName = &s + m.AppProtocol = &s iNdEx = postIndex default: iNdEx = preIndex @@ -38914,7 +40299,7 @@ func (m *EndpointAddress) Unmarshal(dAtA []byte) error { } return nil } -func (m *EndpointPort) Unmarshal(dAtA []byte) error { +func (m *EndpointSubset) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -38937,17 +40322,17 @@ func (m *EndpointPort) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EndpointPort: wiretype end group for non-group") + return fmt.Errorf("proto: EndpointSubset: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointPort: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EndpointSubset: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -38957,48 +40342,31 @@ func (m *EndpointPort) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Addresses = append(m.Addresses, EndpointAddress{}) + if err := m.Addresses[len(m.Addresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NotReadyAddresses", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -39008,29 +40376,31 @@ func (m *EndpointPort) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.Protocol = Protocol(dAtA[iNdEx:postIndex]) + m.NotReadyAddresses = append(m.NotReadyAddresses, EndpointAddress{}) + if err := m.NotReadyAddresses[len(m.NotReadyAddresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 4: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AppProtocol", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -39040,24 +40410,25 @@ func (m *EndpointPort) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - s := string(dAtA[iNdEx:postIndex]) - m.AppProtocol = &s + m.Ports = append(m.Ports, EndpointPort{}) + if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -39080,7 +40451,7 @@ func (m *EndpointPort) Unmarshal(dAtA []byte) error { } return nil } -func (m *EndpointSubset) Unmarshal(dAtA []byte) error { +func (m *Endpoints) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39103,15 +40474,15 @@ func (m *EndpointSubset) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EndpointSubset: wiretype end group for non-group") + return fmt.Errorf("proto: Endpoints: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointSubset: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Endpoints: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39138,48 +40509,13 @@ func (m *EndpointSubset) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Addresses = append(m.Addresses, EndpointAddress{}) - if err := m.Addresses[len(m.Addresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NotReadyAddresses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NotReadyAddresses = append(m.NotReadyAddresses, EndpointAddress{}) - if err := m.NotReadyAddresses[len(m.NotReadyAddresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Subsets", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39206,8 +40542,8 @@ func (m *EndpointSubset) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Ports = append(m.Ports, EndpointPort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Subsets = append(m.Subsets, EndpointSubset{}) + if err := m.Subsets[len(m.Subsets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -39232,7 +40568,7 @@ func (m *EndpointSubset) Unmarshal(dAtA []byte) error { } return nil } -func (m *Endpoints) Unmarshal(dAtA []byte) error { +func (m *EndpointsList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39255,15 +40591,15 @@ func (m *Endpoints) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Endpoints: wiretype end group for non-group") + return fmt.Errorf("proto: EndpointsList: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Endpoints: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EndpointsList: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39290,13 +40626,13 @@ func (m *Endpoints) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subsets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39323,8 +40659,8 @@ func (m *Endpoints) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Subsets = append(m.Subsets, EndpointSubset{}) - if err := m.Subsets[len(m.Subsets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Items = append(m.Items, Endpoints{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -39349,7 +40685,7 @@ func (m *Endpoints) Unmarshal(dAtA []byte) error { } return nil } -func (m *EndpointsList) Unmarshal(dAtA []byte) error { +func (m *EnvFromSource) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39372,15 +40708,47 @@ func (m *EndpointsList) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EndpointsList: wiretype end group for non-group") + return fmt.Errorf("proto: EnvFromSource: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointsList: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EnvFromSource: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfigMapRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39407,13 +40775,16 @@ func (m *EndpointsList) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.ConfigMapRef == nil { + m.ConfigMapRef = &ConfigMapEnvSource{} + } + if err := m.ConfigMapRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39440,8 +40811,10 @@ func (m *EndpointsList) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Items = append(m.Items, Endpoints{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.SecretRef == nil { + m.SecretRef = &SecretEnvSource{} + } + if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -39466,7 +40839,7 @@ func (m *EndpointsList) Unmarshal(dAtA []byte) error { } return nil } -func (m *EnvFromSource) Unmarshal(dAtA []byte) error { +func (m *EnvVar) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39489,15 +40862,15 @@ func (m *EnvFromSource) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EnvFromSource: wiretype end group for non-group") + return fmt.Errorf("proto: EnvVar: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EnvFromSource: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EnvVar: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -39525,13 +40898,13 @@ func (m *EnvFromSource) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Prefix = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigMapRef", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -39541,31 +40914,27 @@ func (m *EnvFromSource) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ConfigMapRef == nil { - m.ConfigMapRef = &ConfigMapEnvSource{} - } - if err := m.ConfigMapRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Value = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ValueFrom", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39592,10 +40961,10 @@ func (m *EnvFromSource) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SecretRef == nil { - m.SecretRef = &SecretEnvSource{} + if m.ValueFrom == nil { + m.ValueFrom = &EnvVarSource{} } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ValueFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -39620,7 +40989,7 @@ func (m *EnvFromSource) Unmarshal(dAtA []byte) error { } return nil } -func (m *EnvVar) Unmarshal(dAtA []byte) error { +func (m *EnvVarSource) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39643,79 +41012,15 @@ func (m *EnvVar) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EnvVar: wiretype end group for non-group") + return fmt.Errorf("proto: EnvVarSource: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EnvVar: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EnvVarSource: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueFrom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FieldRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39742,66 +41047,16 @@ func (m *EnvVar) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ValueFrom == nil { - m.ValueFrom = &EnvVarSource{} + if m.FieldRef == nil { + m.FieldRef = &ObjectFieldSelector{} } - if err := m.ValueFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.FieldRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EnvVarSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EnvVarSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EnvVarSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldRef", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ResourceFieldRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39828,16 +41083,16 @@ func (m *EnvVarSource) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.FieldRef == nil { - m.FieldRef = &ObjectFieldSelector{} + if m.ResourceFieldRef == nil { + m.ResourceFieldRef = &ResourceFieldSelector{} } - if err := m.FieldRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ResourceFieldRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceFieldRef", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ConfigMapKeyRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39864,16 +41119,16 @@ func (m *EnvVarSource) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ResourceFieldRef == nil { - m.ResourceFieldRef = &ResourceFieldSelector{} + if m.ConfigMapKeyRef == nil { + m.ConfigMapKeyRef = &ConfigMapKeySelector{} } - if err := m.ResourceFieldRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ConfigMapKeyRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigMapKeyRef", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SecretKeyRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39900,16 +41155,16 @@ func (m *EnvVarSource) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ConfigMapKeyRef == nil { - m.ConfigMapKeyRef = &ConfigMapKeySelector{} + if m.SecretKeyRef == nil { + m.SecretKeyRef = &SecretKeySelector{} } - if err := m.ConfigMapKeyRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SecretKeyRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretKeyRef", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FileKeyRef", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39936,10 +41191,10 @@ func (m *EnvVarSource) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SecretKeyRef == nil { - m.SecretKeyRef = &SecretKeySelector{} + if m.FileKeyRef == nil { + m.FileKeyRef = &FileKeySelector{} } - if err := m.SecretKeyRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.FileKeyRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -40700,46 +41955,116 @@ func (m *EphemeralContainerCommon) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EnvFrom = append(m.EnvFrom, EnvFromSource{}) - if err := m.EnvFrom[len(m.EnvFrom)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TerminationMessagePolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated + m.EnvFrom = append(m.EnvFrom, EnvFromSource{}) + if err := m.EnvFrom[len(m.EnvFrom)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TerminationMessagePolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TerminationMessagePolicy = TerminationMessagePolicy(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeDevices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VolumeDevices = append(m.VolumeDevices, VolumeDevice{}) + if err := m.VolumeDevices[len(m.VolumeDevices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartupProbe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StartupProbe == nil { + m.StartupProbe = &Probe{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.StartupProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.TerminationMessagePolicy = TerminationMessagePolicy(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 21: + case 23: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeDevices", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ResizePolicy", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -40766,16 +42091,16 @@ func (m *EphemeralContainerCommon) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.VolumeDevices = append(m.VolumeDevices, VolumeDevice{}) - if err := m.VolumeDevices[len(m.VolumeDevices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.ResizePolicy = append(m.ResizePolicy, ContainerResizePolicy{}) + if err := m.ResizePolicy[len(m.ResizePolicy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 22: + case 24: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartupProbe", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicy", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -40785,31 +42110,28 @@ func (m *EphemeralContainerCommon) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - if m.StartupProbe == nil { - m.StartupProbe = &Probe{} - } - if err := m.StartupProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + s := ContainerRestartPolicy(dAtA[iNdEx:postIndex]) + m.RestartPolicy = &s iNdEx = postIndex - case 23: + case 25: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResizePolicy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicyRules", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -40836,44 +42158,11 @@ func (m *EphemeralContainerCommon) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ResizePolicy = append(m.ResizePolicy, ContainerResizePolicy{}) - if err := m.ResizePolicy[len(m.ResizePolicy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.RestartPolicyRules = append(m.RestartPolicyRules, ContainerRestartRule{}) + if err := m.RestartPolicyRules[len(m.RestartPolicyRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := ContainerRestartPolicy(dAtA[iNdEx:postIndex]) - m.RestartPolicy = &s - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) @@ -42113,6 +43402,173 @@ func (m *FCVolumeSource) Unmarshal(dAtA []byte) error { } return nil } +func (m *FileKeySelector) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FileKeySelector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FileKeySelector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VolumeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Optional = &b + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *FlexPersistentVolumeSource) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -55916,17 +57372,297 @@ func (m *PodAntiAffinity) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PodAntiAffinity: wiretype end group for non-group") + return fmt.Errorf("proto: PodAntiAffinity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodAntiAffinity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequiredDuringSchedulingIgnoredDuringExecution", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequiredDuringSchedulingIgnoredDuringExecution = append(m.RequiredDuringSchedulingIgnoredDuringExecution, PodAffinityTerm{}) + if err := m.RequiredDuringSchedulingIgnoredDuringExecution[len(m.RequiredDuringSchedulingIgnoredDuringExecution)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreferredDuringSchedulingIgnoredDuringExecution", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreferredDuringSchedulingIgnoredDuringExecution = append(m.PreferredDuringSchedulingIgnoredDuringExecution, WeightedPodAffinityTerm{}) + if err := m.PreferredDuringSchedulingIgnoredDuringExecution[len(m.PreferredDuringSchedulingIgnoredDuringExecution)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodAttachOptions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodAttachOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodAttachOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Stdin = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Stdout = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Stderr = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTY", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TTY = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Container = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodCertificateProjection) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodCertificateProjection: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PodAntiAffinity: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PodCertificateProjection: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequiredDuringSchedulingIgnoredDuringExecution", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SignerName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -55936,31 +57672,29 @@ func (m *PodAntiAffinity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.RequiredDuringSchedulingIgnoredDuringExecution = append(m.RequiredDuringSchedulingIgnoredDuringExecution, PodAffinityTerm{}) - if err := m.RequiredDuringSchedulingIgnoredDuringExecution[len(m.RequiredDuringSchedulingIgnoredDuringExecution)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.SignerName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreferredDuringSchedulingIgnoredDuringExecution", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyType", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -55970,81 +57704,29 @@ func (m *PodAntiAffinity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.PreferredDuringSchedulingIgnoredDuringExecution = append(m.PreferredDuringSchedulingIgnoredDuringExecution, WeightedPodAffinityTerm{}) - if err := m.PreferredDuringSchedulingIgnoredDuringExecution[len(m.PreferredDuringSchedulingIgnoredDuringExecution)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.KeyType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodAttachOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodAttachOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodAttachOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MaxExpirationSeconds", wireType) } - var v int + var v int32 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -56054,17 +57736,17 @@ func (m *PodAttachOptions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= int32(b&0x7F) << shift if b < 0x80 { break } } - m.Stdin = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) + m.MaxExpirationSeconds = &v + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CredentialBundlePath", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -56074,37 +57756,29 @@ func (m *PodAttachOptions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.Stdout = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated } - m.Stderr = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TTY", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - var v int + m.CredentialBundlePath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyPath", wireType) + } + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -56114,15 +57788,27 @@ func (m *PodAttachOptions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.TTY = bool(v != 0) - case 5: + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeyPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CertificateChainPath", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -56150,7 +57836,7 @@ func (m *PodAttachOptions) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Container = string(dAtA[iNdEx:postIndex]) + m.CertificateChainPath = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -56607,15 +58293,210 @@ func (m *PodDNSConfigOption) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PodDNSConfigOption: wiretype end group for non-group") + return fmt.Errorf("proto: PodDNSConfigOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodDNSConfigOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodExecOptions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodExecOptions: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PodDNSConfigOption: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PodExecOptions: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Stdin = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Stdout = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Stderr = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTY", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TTY = bool(v != 0) + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -56643,11 +58524,11 @@ func (m *PodDNSConfigOption) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Container = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -56675,8 +58556,7 @@ func (m *PodDNSConfigOption) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - s := string(dAtA[iNdEx:postIndex]) - m.Value = &s + m.Command = append(m.Command, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -56699,7 +58579,7 @@ func (m *PodDNSConfigOption) Unmarshal(dAtA []byte) error { } return nil } -func (m *PodExecOptions) Unmarshal(dAtA []byte) error { +func (m *PodExtendedResourceClaimStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -56722,97 +58602,17 @@ func (m *PodExecOptions) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PodExecOptions: wiretype end group for non-group") + return fmt.Errorf("proto: PodExtendedResourceClaimStatus: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PodExecOptions: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PodExtendedResourceClaimStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stdin = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stdout = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stderr = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TTY", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TTY = bool(v != 0) - case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RequestMappings", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -56822,27 +58622,29 @@ func (m *PodExecOptions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenerated } if postIndex > l { return io.ErrUnexpectedEOF } - m.Container = string(dAtA[iNdEx:postIndex]) + m.RequestMappings = append(m.RequestMappings, ContainerExtendedResourceRequest{}) + if err := m.RequestMappings[len(m.RequestMappings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 6: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ResourceClaimName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -56870,7 +58672,7 @@ func (m *PodExecOptions) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Command = append(m.Command, string(dAtA[iNdEx:postIndex])) + m.ResourceClaimName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -60088,6 +61890,39 @@ func (m *PodSpec) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 41: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostnameOverride", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HostnameOverride = &s + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) @@ -60687,6 +62522,42 @@ func (m *PodStatus) Unmarshal(dAtA []byte) error { break } } + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtendedResourceClaimStatus", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtendedResourceClaimStatus == nil { + m.ExtendedResourceClaimStatus = &PodExtendedResourceClaimStatus{} + } + if err := m.ExtendedResourceClaimStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) @@ -73489,6 +75360,42 @@ func (m *VolumeProjection) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodCertificate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PodCertificate == nil { + m.PodCertificate = &PodCertificateProjection{} + } + if err := m.PodCertificate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) diff --git a/vendor/k8s.io/api/core/v1/generated.proto b/vendor/k8s.io/api/core/v1/generated.proto index 9b48fb1c39..fb26953147 100644 --- a/vendor/k8s.io/api/core/v1/generated.proto +++ b/vendor/k8s.io/api/core/v1/generated.proto @@ -737,8 +737,8 @@ message Container { repeated ContainerPort ports = 6; // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple + // The keys defined within a source may consist of any printable ASCII characters except '='. + // When a key exists in multiple // sources, the value associated with the last source will take precedence. // Values defined by an Env with a duplicate key will take precedence. // Cannot be updated. @@ -768,10 +768,10 @@ message Container { repeated ContainerResizePolicy resizePolicy = 23; // RestartPolicy defines the restart behavior of individual containers in a pod. - // This field may only be set for init containers, and the only allowed value is "Always". - // For non-init containers or when this field is not specified, + // This overrides the pod-level restart policy. When this field is not specified, // the restart behavior is defined by the Pod's restart policy and the container type. - // Setting the RestartPolicy as "Always" for the init container will have the following effect: + // Additionally, setting the RestartPolicy as "Always" for the init container will + // have the following effect: // this init container will be continually restarted on // exit until all regular containers have terminated. Once all regular // containers have completed, all init containers with restartPolicy "Always" @@ -786,6 +786,22 @@ message Container { // +optional optional string restartPolicy = 24; + // Represents a list of rules to be checked to determine if the + // container should be restarted on exit. The rules are evaluated in + // order. Once a rule matches a container exit condition, the remaining + // rules are ignored. If no rule matches the container exit condition, + // the Container-level restart policy determines the whether the container + // is restarted or not. Constraints on the rules: + // - At most 20 rules are allowed. + // - Rules can have the same action. + // - Identical rules are not forbidden in validations. + // When rules are specified, container MUST set RestartPolicy explicitly + // even it if matches the Pod's RestartPolicy. + // +featureGate=ContainerRestartRules + // +optional + // +listType=atomic + repeated ContainerRestartRule restartPolicyRules = 25; + // Pod volumes to mount into the container's filesystem. // Cannot be updated. // +optional @@ -888,6 +904,19 @@ message Container { optional bool tty = 18; } +// ContainerExtendedResourceRequest has the mapping of container name, +// extended resource name to the device request name. +message ContainerExtendedResourceRequest { + // The name of the container requesting resources. + optional string containerName = 1; + + // The name of the extended resource in that container which gets backed by DRA. + optional string resourceName = 2; + + // The name of the request in the special ResourceClaim which corresponds to the extended resource. + optional string requestName = 3; +} + // Describe a container image message ContainerImage { // Names by which this image is known. @@ -942,6 +971,39 @@ message ContainerResizePolicy { optional string restartPolicy = 2; } +// ContainerRestartRule describes how a container exit is handled. +message ContainerRestartRule { + // Specifies the action taken on a container exit if the requirements + // are satisfied. The only possible value is "Restart" to restart the + // container. + // +required + optional string action = 1; + + // Represents the exit codes to check on container exits. + // +optional + // +oneOf=when + optional ContainerRestartRuleOnExitCodes exitCodes = 2; +} + +// ContainerRestartRuleOnExitCodes describes the condition +// for handling an exited container based on its exit codes. +message ContainerRestartRuleOnExitCodes { + // Represents the relationship between the container exit code(s) and the + // specified values. Possible values are: + // - In: the requirement is satisfied if the container exit code is in the + // set of specified values. + // - NotIn: the requirement is satisfied if the container exit code is + // not in the set of specified values. + // +required + optional string operator = 1; + + // Specifies the set of values to check for container exit codes. + // At most 255 elements are allowed. + // +optional + // +listType=set + repeated int32 values = 2; +} + // ContainerState holds a possible state of container. // Only one of its members may be specified. // If none of them is specified, the default one is ContainerStateWaiting. @@ -1344,7 +1406,8 @@ message EndpointsList { // EnvFromSource represents the source of a set of ConfigMaps or Secrets message EnvFromSource { - // Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. + // Optional text to prepend to the name of each environment variable. + // May consist of any printable ASCII characters except '='. // +optional optional string prefix = 1; @@ -1359,7 +1422,8 @@ message EnvFromSource { // EnvVar represents an environment variable present in a Container. message EnvVar { - // Name of the environment variable. Must be a C_IDENTIFIER. + // Name of the environment variable. + // May consist of any printable ASCII characters except '='. optional string name = 1; // Variable references $(VAR_NAME) are expanded @@ -1398,6 +1462,13 @@ message EnvVarSource { // Selects a key of a secret in the pod's namespace // +optional optional SecretKeySelector secretKeyRef = 4; + + // FileKeyRef selects a key of the env file. + // Requires the EnvFiles feature gate to be enabled. + // + // +featureGate=EnvFiles + // +optional + optional FileKeySelector fileKeyRef = 5; } // An EphemeralContainer is a temporary container that you may add to an existing Pod for @@ -1479,8 +1550,8 @@ message EphemeralContainerCommon { repeated ContainerPort ports = 6; // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple + // The keys defined within a source may consist of any printable ASCII characters except '='. + // When a key exists in multiple // sources, the value associated with the last source will take precedence. // Values defined by an Env with a duplicate key will take precedence. // Cannot be updated. @@ -1510,12 +1581,19 @@ message EphemeralContainerCommon { // Restart policy for the container to manage the restart behavior of each // container within a pod. - // This may only be set for init containers. You cannot set this field on - // ephemeral containers. + // You cannot set this field on ephemeral containers. // +featureGate=SidecarContainers // +optional optional string restartPolicy = 24; + // Represents a list of rules to be checked to determine if the + // container should be restarted on exit. You cannot set this field on + // ephemeral containers. + // +featureGate=ContainerRestartRules + // +optional + // +listType=atomic + repeated ContainerRestartRule restartPolicyRules = 25; + // Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. // Cannot be updated. // +optional @@ -1776,6 +1854,36 @@ message FCVolumeSource { repeated string wwids = 5; } +// FileKeySelector selects a key of the env file. +// +structType=atomic +message FileKeySelector { + // The name of the volume mount containing the env file. + // +required + optional string volumeName = 1; + + // The path within the volume from which to select the file. + // Must be relative and may not contain the '..' path or start with '..'. + // +required + optional string path = 2; + + // The key within the env file. An invalid key will prevent the pod from starting. + // The keys defined within a source may consist of any printable ASCII characters except '='. + // During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters. + // +required + optional string key = 3; + + // Specify whether the file or its key must be defined. If the file or key + // does not exist, then the env var is not published. + // If optional is set to true and the specified key does not exist, + // the environment variable will not be set in the Pod's containers. + // + // If optional is set to false and the specified key does not exist, + // an error will be returned during Pod creation. + // +optional + // +default=false + optional bool optional = 4; +} + // FlexPersistentVolumeSource represents a generic persistent volume resource that is // provisioned/attached using an exec based plugin. message FlexPersistentVolumeSource { @@ -1949,7 +2057,6 @@ message GlusterfsPersistentVolumeSource { // Glusterfs volumes do not support ownership management or SELinux relabeling. message GlusterfsVolumeSource { // endpoints is the endpoint name that details Glusterfs topology. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod optional string endpoints = 1; // path is the Glusterfs volume path. @@ -3160,15 +3267,13 @@ message PersistentVolumeClaimSpec { // volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. // If specified, the CSI driver will create or update the volume with the attributes defined // in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, - // it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass - // will be applied to the claim but it's not allowed to reset this field to empty string once it is set. - // If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass - // will be set by the persistentvolume controller if it exists. + // it can be changed after the claim is created. An empty string or nil value indicates that no + // VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, + // this field can be reset to its previous value (including nil) to cancel the modification. // If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be // set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource // exists. // More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ - // (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). // +featureGate=VolumeAttributesClass // +optional optional string volumeAttributesClassName = 9; @@ -3267,14 +3372,12 @@ message PersistentVolumeClaimStatus { // currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. // When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim - // This is a beta field and requires enabling VolumeAttributesClass feature (off by default). // +featureGate=VolumeAttributesClass // +optional optional string currentVolumeAttributesClassName = 8; // ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. // When this is unset, there is no ModifyVolume operation being attempted. - // This is a beta field and requires enabling VolumeAttributesClass feature (off by default). // +featureGate=VolumeAttributesClass // +optional optional ModifyVolumeStatus modifyVolumeStatus = 9; @@ -3515,7 +3618,6 @@ message PersistentVolumeSpec { // after a volume has been updated successfully to a new class. // For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound // PersistentVolumeClaims during the binding process. - // This is a beta field and requires enabling VolumeAttributesClass feature (off by default). // +featureGate=VolumeAttributesClass // +optional optional string volumeAttributesClassName = 10; @@ -3684,8 +3786,8 @@ message PodAntiAffinity { // most preferred is the one with the greatest sum of weights, i.e. // for each node that meets all of the scheduling requirements (resource // request, requiredDuringScheduling anti-affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + // compute a sum by iterating through the elements of this field and subtracting + // "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the // node(s) with the highest sum are the most preferred. // +optional // +listType=atomic @@ -3725,6 +3827,79 @@ message PodAttachOptions { optional string container = 5; } +// PodCertificateProjection provides a private key and X.509 certificate in the +// pod filesystem. +message PodCertificateProjection { + // Kubelet's generated CSRs will be addressed to this signer. + // + // +required + optional string signerName = 1; + + // The type of keypair Kubelet will generate for the pod. + // + // Valid values are "RSA3072", "RSA4096", "ECDSAP256", "ECDSAP384", + // "ECDSAP521", and "ED25519". + // + // +required + optional string keyType = 2; + + // maxExpirationSeconds is the maximum lifetime permitted for the + // certificate. + // + // Kubelet copies this value verbatim into the PodCertificateRequests it + // generates for this projection. + // + // If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver + // will reject values shorter than 3600 (1 hour). The maximum allowable + // value is 7862400 (91 days). + // + // The signer implementation is then free to issue a certificate with any + // lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 + // seconds (1 hour). This constraint is enforced by kube-apiserver. + // `kubernetes.io` signers will never issue certificates with a lifetime + // longer than 24 hours. + // + // +optional + optional int32 maxExpirationSeconds = 3; + + // Write the credential bundle at this path in the projected volume. + // + // The credential bundle is a single file that contains multiple PEM blocks. + // The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private + // key. + // + // The remaining blocks are CERTIFICATE blocks, containing the issued + // certificate chain from the signer (leaf and any intermediates). + // + // Using credentialBundlePath lets your Pod's application code make a single + // atomic read that retrieves a consistent key and certificate chain. If you + // project them to separate files, your application code will need to + // additionally check that the leaf certificate was issued to the key. + // + // +optional + optional string credentialBundlePath = 4; + + // Write the key at this path in the projected volume. + // + // Most applications should use credentialBundlePath. When using keyPath + // and certificateChainPath, your application needs to check that the key + // and leaf certificate are consistent, because it is possible to read the + // files mid-rotation. + // + // +optional + optional string keyPath = 5; + + // Write the certificate chain at this path in the projected volume. + // + // Most applications should use credentialBundlePath. When using keyPath + // and certificateChainPath, your application needs to check that the key + // and leaf certificate are consistent, because it is possible to read the + // files mid-rotation. + // + // +optional + optional string certificateChainPath = 6; +} + // PodCondition contains details for the current condition of this pod. message PodCondition { // Type is the type of the condition. @@ -3829,6 +4004,20 @@ message PodExecOptions { repeated string command = 6; } +// PodExtendedResourceClaimStatus is stored in the PodStatus for the extended +// resource requests backed by DRA. It stores the generated name for +// the corresponding special ResourceClaim created by the scheduler. +message PodExtendedResourceClaimStatus { + // RequestMappings identifies the mapping of to device request + // in the generated ResourceClaim. + // +listType=atomic + repeated ContainerExtendedResourceRequest requestMappings = 1; + + // ResourceClaimName is the name of the ResourceClaim that was + // generated for the Pod in the namespace of the Pod. + optional string resourceClaimName = 2; +} + // PodIP represents a single IP address allocated to the pod. message PodIP { // IP is the IP address assigned to the pod @@ -4269,7 +4458,9 @@ message PodSpec { optional string nodeName = 10; // Host networking requested for this pod. Use the host's network namespace. - // If this option is set, the ports that will be used must be specified. + // When using HostNetwork you should specify ports so the scheduler is aware. + // When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, + // and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. // Default to false. // +k8s:conversion-gen=false // +optional @@ -4434,6 +4625,7 @@ message PodSpec { // - spec.hostPID // - spec.hostIPC // - spec.hostUsers + // - spec.resources // - spec.securityContext.appArmorProfile // - spec.securityContext.seLinuxOptions // - spec.securityContext.seccompProfile @@ -4504,7 +4696,7 @@ message PodSpec { // Resources is the total amount of CPU and Memory resources required by all // containers in the pod. It supports specifying Requests and Limits for - // "cpu" and "memory" resource names only. ResourceClaims are not supported. + // "cpu", "memory" and "hugepages-" resource names only. ResourceClaims are not supported. // // This field enables fine-grained control over resource allocation for the // entire pod, allowing resource sharing among containers in a pod. @@ -4516,6 +4708,21 @@ message PodSpec { // +featureGate=PodLevelResources // +optional optional ResourceRequirements resources = 40; + + // HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. + // This field only specifies the pod's hostname and does not affect its DNS records. + // When this field is set to a non-empty string: + // - It takes precedence over the values set in `hostname` and `subdomain`. + // - The Pod's hostname will be set to this value. + // - `setHostnameAsFQDN` must be nil or set to false. + // - `hostNetwork` must be set to false. + // + // This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. + // Requires the HostnameOverride feature gate to be enabled. + // + // +featureGate=HostnameOverride + // +optional + optional string hostnameOverride = 41; } // PodStatus represents information about the status of a pod. Status may trail the actual @@ -4674,6 +4881,11 @@ message PodStatus { // +featureGate=DynamicResourceAllocation // +optional repeated PodResourceClaimStatus resourceClaimStatuses = 15; + + // Status of extended resource claim backed by DRA. + // +featureGate=DRAExtendedResource + // +optional + optional PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; } // PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded @@ -5298,7 +5510,7 @@ message ResourceRequirements { // Claims lists the names of resources, defined in spec.resourceClaims, // that are used by this container. // - // This is an alpha field and requires enabling the + // This field depends on the // DynamicResourceAllocation feature gate. // // This field is immutable. It can only be set for containers. @@ -6301,7 +6513,6 @@ message Taint { optional string effect = 3; // TimeAdded represents the time at which the taint was added. - // It is only written for NoExecute taints. // +optional optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; } @@ -6682,6 +6893,44 @@ message VolumeProjection { // +featureGate=ClusterTrustBundleProjection // +optional optional ClusterTrustBundleProjection clusterTrustBundle = 5; + + // Projects an auto-rotating credential bundle (private key and certificate + // chain) that the pod can use either as a TLS client or server. + // + // Kubelet generates a private key and uses it to send a + // PodCertificateRequest to the named signer. Once the signer approves the + // request and issues a certificate chain, Kubelet writes the key and + // certificate chain to the pod filesystem. The pod does not start until + // certificates have been issued for each podCertificate projected volume + // source in its spec. + // + // Kubelet will begin trying to rotate the certificate at the time indicated + // by the signer using the PodCertificateRequest.Status.BeginRefreshAt + // timestamp. + // + // Kubelet can write a single file, indicated by the credentialBundlePath + // field, or separate files, indicated by the keyPath and + // certificateChainPath fields. + // + // The credential bundle is a single file in PEM format. The first PEM + // entry is the private key (in PKCS#8 format), and the remaining PEM + // entries are the certificate chain issued by the signer (typically, + // signers will return their certificate chain in leaf-to-root order). + // + // Prefer using the credential bundle format, since your application code + // can read it atomically. If you use keyPath and certificateChainPath, + // your application must make two separate file reads. If these coincide + // with a certificate rotation, it is possible that the private key and leaf + // certificate you read may not correspond to each other. Your application + // will need to check for this condition, and re-read until they are + // consistent. + // + // The named signer controls chooses the format of the certificate it + // issues; consult the signer implementation's documentation to learn how to + // use the certificates it issues. + // + // +featureGate=PodCertificateProjection +optional + optional PodCertificateProjection podCertificate = 6; } // VolumeResourceRequirements describes the storage resource requirements for a volume. @@ -6753,13 +7002,12 @@ message VolumeSource { // iscsi represents an ISCSI Disk resource that is attached to a // kubelet's host machine and then exposed to the pod. - // More info: https://examples.k8s.io/volumes/iscsi/README.md + // More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi // +optional optional ISCSIVolumeSource iscsi = 8; // glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. // Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md // +optional optional GlusterfsVolumeSource glusterfs = 9; @@ -6771,7 +7019,6 @@ message VolumeSource { // rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. // Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. - // More info: https://examples.k8s.io/volumes/rbd/README.md // +optional optional RBDVolumeSource rbd = 11; diff --git a/vendor/k8s.io/api/core/v1/types.go b/vendor/k8s.io/api/core/v1/types.go index f7641e485a..08b6d351cc 100644 --- a/vendor/k8s.io/api/core/v1/types.go +++ b/vendor/k8s.io/api/core/v1/types.go @@ -91,12 +91,11 @@ type VolumeSource struct { NFS *NFSVolumeSource `json:"nfs,omitempty" protobuf:"bytes,7,opt,name=nfs"` // iscsi represents an ISCSI Disk resource that is attached to a // kubelet's host machine and then exposed to the pod. - // More info: https://examples.k8s.io/volumes/iscsi/README.md + // More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi // +optional ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty" protobuf:"bytes,8,opt,name=iscsi"` // glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. // Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md // +optional Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty" protobuf:"bytes,9,opt,name=glusterfs"` // persistentVolumeClaimVolumeSource represents a reference to a @@ -106,7 +105,6 @@ type VolumeSource struct { PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaim"` // rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. // Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. - // More info: https://examples.k8s.io/volumes/rbd/README.md // +optional RBD *RBDVolumeSource `json:"rbd,omitempty" protobuf:"bytes,11,opt,name=rbd"` // flexVolume represents a generic volume resource that is @@ -437,7 +435,6 @@ type PersistentVolumeSpec struct { // after a volume has been updated successfully to a new class. // For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound // PersistentVolumeClaims during the binding process. - // This is a beta field and requires enabling VolumeAttributesClass feature (off by default). // +featureGate=VolumeAttributesClass // +optional VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty" protobuf:"bytes,10,opt,name=volumeAttributesClassName"` @@ -616,15 +613,13 @@ type PersistentVolumeClaimSpec struct { // volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. // If specified, the CSI driver will create or update the volume with the attributes defined // in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, - // it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass - // will be applied to the claim but it's not allowed to reset this field to empty string once it is set. - // If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass - // will be set by the persistentvolume controller if it exists. + // it can be changed after the claim is created. An empty string or nil value indicates that no + // VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, + // this field can be reset to its previous value (including nil) to cancel the modification. // If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be // set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource // exists. // More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ - // (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). // +featureGate=VolumeAttributesClass // +optional VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty" protobuf:"bytes,9,opt,name=volumeAttributesClassName"` @@ -851,13 +846,11 @@ type PersistentVolumeClaimStatus struct { AllocatedResourceStatuses map[ResourceName]ClaimResourceStatus `json:"allocatedResourceStatuses,omitempty" protobuf:"bytes,7,rep,name=allocatedResourceStatuses"` // currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. // When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim - // This is a beta field and requires enabling VolumeAttributesClass feature (off by default). // +featureGate=VolumeAttributesClass // +optional CurrentVolumeAttributesClassName *string `json:"currentVolumeAttributesClassName,omitempty" protobuf:"bytes,8,opt,name=currentVolumeAttributesClassName"` // ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. // When this is unset, there is no ModifyVolume operation being attempted. - // This is a beta field and requires enabling VolumeAttributesClass feature (off by default). // +featureGate=VolumeAttributesClass // +optional ModifyVolumeStatus *ModifyVolumeStatus `json:"modifyVolumeStatus,omitempty" protobuf:"bytes,9,opt,name=modifyVolumeStatus"` @@ -972,7 +965,6 @@ type EmptyDirVolumeSource struct { // Glusterfs volumes do not support ownership management or SELinux relabeling. type GlusterfsVolumeSource struct { // endpoints is the endpoint name that details Glusterfs topology. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod EndpointsName string `json:"endpoints" protobuf:"bytes,1,opt,name=endpoints"` // path is the Glusterfs volume path. @@ -1993,6 +1985,79 @@ type ClusterTrustBundleProjection struct { Path string `json:"path" protobuf:"bytes,4,rep,name=path"` } +// PodCertificateProjection provides a private key and X.509 certificate in the +// pod filesystem. +type PodCertificateProjection struct { + // Kubelet's generated CSRs will be addressed to this signer. + // + // +required + SignerName string `json:"signerName,omitempty" protobuf:"bytes,1,rep,name=signerName"` + + // The type of keypair Kubelet will generate for the pod. + // + // Valid values are "RSA3072", "RSA4096", "ECDSAP256", "ECDSAP384", + // "ECDSAP521", and "ED25519". + // + // +required + KeyType string `json:"keyType,omitempty" protobuf:"bytes,2,rep,name=keyType"` + + // maxExpirationSeconds is the maximum lifetime permitted for the + // certificate. + // + // Kubelet copies this value verbatim into the PodCertificateRequests it + // generates for this projection. + // + // If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver + // will reject values shorter than 3600 (1 hour). The maximum allowable + // value is 7862400 (91 days). + // + // The signer implementation is then free to issue a certificate with any + // lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 + // seconds (1 hour). This constraint is enforced by kube-apiserver. + // `kubernetes.io` signers will never issue certificates with a lifetime + // longer than 24 hours. + // + // +optional + MaxExpirationSeconds *int32 `json:"maxExpirationSeconds,omitempty" protobuf:"varint,3,opt,name=maxExpirationSeconds"` + + // Write the credential bundle at this path in the projected volume. + // + // The credential bundle is a single file that contains multiple PEM blocks. + // The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private + // key. + // + // The remaining blocks are CERTIFICATE blocks, containing the issued + // certificate chain from the signer (leaf and any intermediates). + // + // Using credentialBundlePath lets your Pod's application code make a single + // atomic read that retrieves a consistent key and certificate chain. If you + // project them to separate files, your application code will need to + // additionally check that the leaf certificate was issued to the key. + // + // +optional + CredentialBundlePath string `json:"credentialBundlePath,omitempty" protobuf:"bytes,4,rep,name=credentialBundlePath"` + + // Write the key at this path in the projected volume. + // + // Most applications should use credentialBundlePath. When using keyPath + // and certificateChainPath, your application needs to check that the key + // and leaf certificate are consistent, because it is possible to read the + // files mid-rotation. + // + // +optional + KeyPath string `json:"keyPath,omitempty" protobuf:"bytes,5,rep,name=keyPath"` + + // Write the certificate chain at this path in the projected volume. + // + // Most applications should use credentialBundlePath. When using keyPath + // and certificateChainPath, your application needs to check that the key + // and leaf certificate are consistent, because it is possible to read the + // files mid-rotation. + // + // +optional + CertificateChainPath string `json:"certificateChainPath,omitempty" protobuf:"bytes,6,rep,name=certificateChainPath"` +} + // Represents a projected volume source type ProjectedVolumeSource struct { // sources is the list of volume projections. Each entry in this list @@ -2043,6 +2108,44 @@ type VolumeProjection struct { // +featureGate=ClusterTrustBundleProjection // +optional ClusterTrustBundle *ClusterTrustBundleProjection `json:"clusterTrustBundle,omitempty" protobuf:"bytes,5,opt,name=clusterTrustBundle"` + + // Projects an auto-rotating credential bundle (private key and certificate + // chain) that the pod can use either as a TLS client or server. + // + // Kubelet generates a private key and uses it to send a + // PodCertificateRequest to the named signer. Once the signer approves the + // request and issues a certificate chain, Kubelet writes the key and + // certificate chain to the pod filesystem. The pod does not start until + // certificates have been issued for each podCertificate projected volume + // source in its spec. + // + // Kubelet will begin trying to rotate the certificate at the time indicated + // by the signer using the PodCertificateRequest.Status.BeginRefreshAt + // timestamp. + // + // Kubelet can write a single file, indicated by the credentialBundlePath + // field, or separate files, indicated by the keyPath and + // certificateChainPath fields. + // + // The credential bundle is a single file in PEM format. The first PEM + // entry is the private key (in PKCS#8 format), and the remaining PEM + // entries are the certificate chain issued by the signer (typically, + // signers will return their certificate chain in leaf-to-root order). + // + // Prefer using the credential bundle format, since your application code + // can read it atomically. If you use keyPath and certificateChainPath, + // your application must make two separate file reads. If these coincide + // with a certificate rotation, it is possible that the private key and leaf + // certificate you read may not correspond to each other. Your application + // will need to check for this condition, and re-read until they are + // consistent. + // + // The named signer controls chooses the format of the certificate it + // issues; consult the signer implementation's documentation to learn how to + // use the certificates it issues. + // + // +featureGate=PodCertificateProjection +optional + PodCertificate *PodCertificateProjection `json:"podCertificate,omitempty" protobuf:"bytes,6,opt,name=podCertificate"` } const ( @@ -2351,7 +2454,8 @@ type VolumeDevice struct { // EnvVar represents an environment variable present in a Container. type EnvVar struct { - // Name of the environment variable. Must be a C_IDENTIFIER. + // Name of the environment variable. + // May consist of any printable ASCII characters except '='. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Optional: no more than one of the following may be specified. @@ -2388,6 +2492,39 @@ type EnvVarSource struct { // Selects a key of a secret in the pod's namespace // +optional SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty" protobuf:"bytes,4,opt,name=secretKeyRef"` + // FileKeyRef selects a key of the env file. + // Requires the EnvFiles feature gate to be enabled. + // + // +featureGate=EnvFiles + // +optional + FileKeyRef *FileKeySelector `json:"fileKeyRef,omitempty" protobuf:"bytes,5,opt,name=fileKeyRef"` +} + +// FileKeySelector selects a key of the env file. +// +structType=atomic +type FileKeySelector struct { + // The name of the volume mount containing the env file. + // +required + VolumeName string `json:"volumeName" protobuf:"bytes,1,opt,name=volumeName"` + // The path within the volume from which to select the file. + // Must be relative and may not contain the '..' path or start with '..'. + // +required + Path string `json:"path" protobuf:"bytes,2,opt,name=path"` + // The key within the env file. An invalid key will prevent the pod from starting. + // The keys defined within a source may consist of any printable ASCII characters except '='. + // During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters. + // +required + Key string `json:"key" protobuf:"bytes,3,opt,name=key"` + // Specify whether the file or its key must be defined. If the file or key + // does not exist, then the env var is not published. + // If optional is set to true and the specified key does not exist, + // the environment variable will not be set in the Pod's containers. + // + // If optional is set to false and the specified key does not exist, + // an error will be returned during Pod creation. + // +optional + // +default=false + Optional *bool `json:"optional,omitempty" protobuf:"varint,4,opt,name=optional"` } // ObjectFieldSelector selects an APIVersioned field of an object. @@ -2439,7 +2576,8 @@ type SecretKeySelector struct { // EnvFromSource represents the source of a set of ConfigMaps or Secrets type EnvFromSource struct { - // Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. + // Optional text to prepend to the name of each environment variable. + // May consist of any printable ASCII characters except '='. // +optional Prefix string `json:"prefix,omitempty" protobuf:"bytes,1,opt,name=prefix"` // The ConfigMap to select from @@ -2697,7 +2835,7 @@ type ResourceRequirements struct { // Claims lists the names of resources, defined in spec.resourceClaims, // that are used by this container. // - // This is an alpha field and requires enabling the + // This field depends on the // DynamicResourceAllocation feature gate. // // This field is immutable. It can only be set for containers. @@ -2805,8 +2943,8 @@ type Container struct { // +listMapKey=protocol Ports []ContainerPort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,6,rep,name=ports"` // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple + // The keys defined within a source may consist of any printable ASCII characters except '='. + // When a key exists in multiple // sources, the value associated with the last source will take precedence. // Values defined by an Env with a duplicate key will take precedence. // Cannot be updated. @@ -2832,10 +2970,10 @@ type Container struct { // +listType=atomic ResizePolicy []ContainerResizePolicy `json:"resizePolicy,omitempty" protobuf:"bytes,23,rep,name=resizePolicy"` // RestartPolicy defines the restart behavior of individual containers in a pod. - // This field may only be set for init containers, and the only allowed value is "Always". - // For non-init containers or when this field is not specified, + // This overrides the pod-level restart policy. When this field is not specified, // the restart behavior is defined by the Pod's restart policy and the container type. - // Setting the RestartPolicy as "Always" for the init container will have the following effect: + // Additionally, setting the RestartPolicy as "Always" for the init container will + // have the following effect: // this init container will be continually restarted on // exit until all regular containers have terminated. Once all regular // containers have completed, all init containers with restartPolicy "Always" @@ -2849,6 +2987,21 @@ type Container struct { // +featureGate=SidecarContainers // +optional RestartPolicy *ContainerRestartPolicy `json:"restartPolicy,omitempty" protobuf:"bytes,24,opt,name=restartPolicy,casttype=ContainerRestartPolicy"` + // Represents a list of rules to be checked to determine if the + // container should be restarted on exit. The rules are evaluated in + // order. Once a rule matches a container exit condition, the remaining + // rules are ignored. If no rule matches the container exit condition, + // the Container-level restart policy determines the whether the container + // is restarted or not. Constraints on the rules: + // - At most 20 rules are allowed. + // - Rules can have the same action. + // - Identical rules are not forbidden in validations. + // When rules are specified, container MUST set RestartPolicy explicitly + // even it if matches the Pod's RestartPolicy. + // +featureGate=ContainerRestartRules + // +optional + // +listType=atomic + RestartPolicyRules []ContainerRestartRule `json:"restartPolicyRules,omitempty" protobuf:"bytes,25,rep,name=restartPolicyRules"` // Pod volumes to mount into the container's filesystem. // Cannot be updated. // +optional @@ -3478,11 +3631,64 @@ const ( ) // ContainerRestartPolicy is the restart policy for a single container. -// This may only be set for init containers and only allowed value is "Always". +// The only allowed values are "Always", "Never", and "OnFailure". type ContainerRestartPolicy string const ( - ContainerRestartPolicyAlways ContainerRestartPolicy = "Always" + ContainerRestartPolicyAlways ContainerRestartPolicy = "Always" + ContainerRestartPolicyNever ContainerRestartPolicy = "Never" + ContainerRestartPolicyOnFailure ContainerRestartPolicy = "OnFailure" +) + +// ContainerRestartRule describes how a container exit is handled. +type ContainerRestartRule struct { + // Specifies the action taken on a container exit if the requirements + // are satisfied. The only possible value is "Restart" to restart the + // container. + // +required + Action ContainerRestartRuleAction `json:"action,omitempty" proto:"bytes,1,opt,name=action" protobuf:"bytes,1,opt,name=action,casttype=ContainerRestartRuleAction"` + + // Represents the exit codes to check on container exits. + // +optional + // +oneOf=when + ExitCodes *ContainerRestartRuleOnExitCodes `json:"exitCodes,omitempty" proto:"bytes,2,opt,name=exitCodes" protobuf:"bytes,2,opt,name=exitCodes"` +} + +// ContainerRestartRuleAction describes the action to take when the +// container exits. +type ContainerRestartRuleAction string + +// The only valid action is Restart. +const ( + ContainerRestartRuleActionRestart ContainerRestartRuleAction = "Restart" +) + +// ContainerRestartRuleOnExitCodes describes the condition +// for handling an exited container based on its exit codes. +type ContainerRestartRuleOnExitCodes struct { + // Represents the relationship between the container exit code(s) and the + // specified values. Possible values are: + // - In: the requirement is satisfied if the container exit code is in the + // set of specified values. + // - NotIn: the requirement is satisfied if the container exit code is + // not in the set of specified values. + // +required + Operator ContainerRestartRuleOnExitCodesOperator `json:"operator,omitempty" proto:"bytes,1,opt,name=operator" protobuf:"bytes,1,opt,name=operator,casttype=ContainerRestartRuleOnExitCodesOperator"` + + // Specifies the set of values to check for container exit codes. + // At most 255 elements are allowed. + // +optional + // +listType=set + Values []int32 `json:"values,omitempty" proto:"varint,2,rep,name=values" protobuf:"varint,2,rep,name=values"` +} + +// ContainerRestartRuleOnExitCodesOperator describes the operator +// to take for the exit codes. +type ContainerRestartRuleOnExitCodesOperator string + +const ( + ContainerRestartRuleOnExitCodesOpIn ContainerRestartRuleOnExitCodesOperator = "In" + ContainerRestartRuleOnExitCodesOpNotIn ContainerRestartRuleOnExitCodesOperator = "NotIn" ) // DNSPolicy defines how a pod's DNS will be configured. @@ -3678,8 +3884,8 @@ type PodAntiAffinity struct { // most preferred is the one with the greatest sum of weights, i.e. // for each node that meets all of the scheduling requirements (resource // request, requiredDuringScheduling anti-affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + // compute a sum by iterating through the elements of this field and subtracting + // "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the // node(s) with the highest sum are the most preferred. // +optional // +listType=atomic @@ -3806,7 +4012,6 @@ type Taint struct { // Valid effects are NoSchedule, PreferNoSchedule and NoExecute. Effect TaintEffect `json:"effect" protobuf:"bytes,3,opt,name=effect,casttype=TaintEffect"` // TimeAdded represents the time at which the taint was added. - // It is only written for NoExecute taints. // +optional TimeAdded *metav1.Time `json:"timeAdded,omitempty" protobuf:"bytes,4,opt,name=timeAdded"` } @@ -3983,7 +4188,9 @@ type PodSpec struct { // +optional NodeName string `json:"nodeName,omitempty" protobuf:"bytes,10,opt,name=nodeName"` // Host networking requested for this pod. Use the host's network namespace. - // If this option is set, the ports that will be used must be specified. + // When using HostNetwork you should specify ports so the scheduler is aware. + // When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, + // and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. // Default to false. // +k8s:conversion-gen=false // +optional @@ -4126,6 +4333,7 @@ type PodSpec struct { // - spec.hostPID // - spec.hostIPC // - spec.hostUsers + // - spec.resources // - spec.securityContext.appArmorProfile // - spec.securityContext.seLinuxOptions // - spec.securityContext.seccompProfile @@ -4194,7 +4402,7 @@ type PodSpec struct { ResourceClaims []PodResourceClaim `json:"resourceClaims,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name" protobuf:"bytes,39,rep,name=resourceClaims"` // Resources is the total amount of CPU and Memory resources required by all // containers in the pod. It supports specifying Requests and Limits for - // "cpu" and "memory" resource names only. ResourceClaims are not supported. + // "cpu", "memory" and "hugepages-" resource names only. ResourceClaims are not supported. // // This field enables fine-grained control over resource allocation for the // entire pod, allowing resource sharing among containers in a pod. @@ -4206,6 +4414,20 @@ type PodSpec struct { // +featureGate=PodLevelResources // +optional Resources *ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,40,opt,name=resources"` + // HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. + // This field only specifies the pod's hostname and does not affect its DNS records. + // When this field is set to a non-empty string: + // - It takes precedence over the values set in `hostname` and `subdomain`. + // - The Pod's hostname will be set to this value. + // - `setHostnameAsFQDN` must be nil or set to false. + // - `hostNetwork` must be set to false. + // + // This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. + // Requires the HostnameOverride feature gate to be enabled. + // + // +featureGate=HostnameOverride + // +optional + HostnameOverride *string `json:"hostnameOverride,omitempty" protobuf:"bytes,41,opt,name=hostnameOverride"` } // PodResourceClaim references exactly one ResourceClaim, either directly @@ -4267,6 +4489,31 @@ type PodResourceClaimStatus struct { ResourceClaimName *string `json:"resourceClaimName,omitempty" protobuf:"bytes,2,opt,name=resourceClaimName"` } +// PodExtendedResourceClaimStatus is stored in the PodStatus for the extended +// resource requests backed by DRA. It stores the generated name for +// the corresponding special ResourceClaim created by the scheduler. +type PodExtendedResourceClaimStatus struct { + // RequestMappings identifies the mapping of to device request + // in the generated ResourceClaim. + // +listType=atomic + RequestMappings []ContainerExtendedResourceRequest `json:"requestMappings" protobuf:"bytes,1,rep,name=requestMappings"` + + // ResourceClaimName is the name of the ResourceClaim that was + // generated for the Pod in the namespace of the Pod. + ResourceClaimName string `json:"resourceClaimName" protobuf:"bytes,2,name=resourceClaimName"` +} + +// ContainerExtendedResourceRequest has the mapping of container name, +// extended resource name to the device request name. +type ContainerExtendedResourceRequest struct { + // The name of the container requesting resources. + ContainerName string `json:"containerName" protobuf:"bytes,1,name=containerName"` + // The name of the extended resource in that container which gets backed by DRA. + ResourceName string `json:"resourceName" protobuf:"bytes,2,name=resourceName"` + // The name of the request in the special ResourceClaim which corresponds to the extended resource. + RequestName string `json:"requestName" protobuf:"bytes,3,name=requestName"` +} + // OSName is the set of OS'es that can be used in OS. type OSName string @@ -4799,8 +5046,8 @@ type EphemeralContainerCommon struct { // +listMapKey=protocol Ports []ContainerPort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,6,rep,name=ports"` // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple + // The keys defined within a source may consist of any printable ASCII characters except '='. + // When a key exists in multiple // sources, the value associated with the last source will take precedence. // Values defined by an Env with a duplicate key will take precedence. // Cannot be updated. @@ -4826,11 +5073,17 @@ type EphemeralContainerCommon struct { ResizePolicy []ContainerResizePolicy `json:"resizePolicy,omitempty" protobuf:"bytes,23,rep,name=resizePolicy"` // Restart policy for the container to manage the restart behavior of each // container within a pod. - // This may only be set for init containers. You cannot set this field on - // ephemeral containers. + // You cannot set this field on ephemeral containers. // +featureGate=SidecarContainers // +optional RestartPolicy *ContainerRestartPolicy `json:"restartPolicy,omitempty" protobuf:"bytes,24,opt,name=restartPolicy,casttype=ContainerRestartPolicy"` + // Represents a list of rules to be checked to determine if the + // container should be restarted on exit. You cannot set this field on + // ephemeral containers. + // +featureGate=ContainerRestartRules + // +optional + // +listType=atomic + RestartPolicyRules []ContainerRestartRule `json:"restartPolicyRules,omitempty" protobuf:"bytes,25,rep,name=restartPolicyRules"` // Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. // Cannot be updated. // +optional @@ -5091,6 +5344,10 @@ type PodStatus struct { // +featureGate=DynamicResourceAllocation // +optional ResourceClaimStatuses []PodResourceClaimStatus `json:"resourceClaimStatuses,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name" protobuf:"bytes,15,rep,name=resourceClaimStatuses"` + // Status of extended resource claim backed by DRA. + // +featureGate=DRAExtendedResource + // +optional + ExtendedResourceClaimStatus *PodExtendedResourceClaimStatus `json:"extendedResourceClaimStatus,omitempty" protobuf:"bytes,18,opt,name=extendedResourceClaimStatus"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -5311,6 +5568,7 @@ type ReplicationControllerCondition struct { // +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.0 +// +k8s:supportsSubresource=/scale // ReplicationController represents the configuration of a replication controller. type ReplicationController struct { diff --git a/vendor/k8s.io/api/core/v1/types_swagger_doc_generated.go b/vendor/k8s.io/api/core/v1/types_swagger_doc_generated.go index 9e987eefdd..1204307667 100644 --- a/vendor/k8s.io/api/core/v1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/api/core/v1/types_swagger_doc_generated.go @@ -356,11 +356,12 @@ var map_Container = map[string]string{ "args": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", "workingDir": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", "ports": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", - "envFrom": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "envFrom": "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", "env": "List of environment variables to set in the container. Cannot be updated.", "resources": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", "resizePolicy": "Resources resize policy for the container.", - "restartPolicy": "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", + "restartPolicy": "RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", + "restartPolicyRules": "Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy.", "volumeMounts": "Pod volumes to mount into the container's filesystem. Cannot be updated.", "volumeDevices": "volumeDevices is the list of block devices to be used by the container.", "livenessProbe": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", @@ -380,6 +381,17 @@ func (Container) SwaggerDoc() map[string]string { return map_Container } +var map_ContainerExtendedResourceRequest = map[string]string{ + "": "ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.", + "containerName": "The name of the container requesting resources.", + "resourceName": "The name of the extended resource in that container which gets backed by DRA.", + "requestName": "The name of the request in the special ResourceClaim which corresponds to the extended resource.", +} + +func (ContainerExtendedResourceRequest) SwaggerDoc() map[string]string { + return map_ContainerExtendedResourceRequest +} + var map_ContainerImage = map[string]string{ "": "Describe a container image", "names": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", @@ -413,6 +425,26 @@ func (ContainerResizePolicy) SwaggerDoc() map[string]string { return map_ContainerResizePolicy } +var map_ContainerRestartRule = map[string]string{ + "": "ContainerRestartRule describes how a container exit is handled.", + "action": "Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container.", + "exitCodes": "Represents the exit codes to check on container exits.", +} + +func (ContainerRestartRule) SwaggerDoc() map[string]string { + return map_ContainerRestartRule +} + +var map_ContainerRestartRuleOnExitCodes = map[string]string{ + "": "ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.", + "operator": "Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the\n set of specified values.\n- NotIn: the requirement is satisfied if the container exit code is\n not in the set of specified values.", + "values": "Specifies the set of values to check for container exit codes. At most 255 elements are allowed.", +} + +func (ContainerRestartRuleOnExitCodes) SwaggerDoc() map[string]string { + return map_ContainerRestartRuleOnExitCodes +} + var map_ContainerState = map[string]string{ "": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", "waiting": "Details about a waiting container", @@ -597,7 +629,7 @@ func (EndpointsList) SwaggerDoc() map[string]string { var map_EnvFromSource = map[string]string{ "": "EnvFromSource represents the source of a set of ConfigMaps or Secrets", - "prefix": "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.", + "prefix": "Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='.", "configMapRef": "The ConfigMap to select from", "secretRef": "The Secret to select from", } @@ -608,7 +640,7 @@ func (EnvFromSource) SwaggerDoc() map[string]string { var map_EnvVar = map[string]string{ "": "EnvVar represents an environment variable present in a Container.", - "name": "Name of the environment variable. Must be a C_IDENTIFIER.", + "name": "Name of the environment variable. May consist of any printable ASCII characters except '='.", "value": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", "valueFrom": "Source for the environment variable's value. Cannot be used if value is not empty.", } @@ -623,6 +655,7 @@ var map_EnvVarSource = map[string]string{ "resourceFieldRef": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", "configMapKeyRef": "Selects a key of a ConfigMap.", "secretKeyRef": "Selects a key of a secret in the pod's namespace", + "fileKeyRef": "FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.", } func (EnvVarSource) SwaggerDoc() map[string]string { @@ -646,11 +679,12 @@ var map_EphemeralContainerCommon = map[string]string{ "args": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", "workingDir": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", "ports": "Ports are not allowed for ephemeral containers.", - "envFrom": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "envFrom": "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", "env": "List of environment variables to set in the container. Cannot be updated.", "resources": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", "resizePolicy": "Resources resize policy for the container.", - "restartPolicy": "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + "restartPolicy": "Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers.", + "restartPolicyRules": "Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers.", "volumeMounts": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", "volumeDevices": "volumeDevices is the list of block devices to be used by the container.", "livenessProbe": "Probes are not allowed for ephemeral containers.", @@ -754,6 +788,18 @@ func (FCVolumeSource) SwaggerDoc() map[string]string { return map_FCVolumeSource } +var map_FileKeySelector = map[string]string{ + "": "FileKeySelector selects a key of the env file.", + "volumeName": "The name of the volume mount containing the env file.", + "path": "The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'.", + "key": "The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.", + "optional": "Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers.\n\nIf optional is set to false and the specified key does not exist, an error will be returned during Pod creation.", +} + +func (FileKeySelector) SwaggerDoc() map[string]string { + return map_FileKeySelector +} + var map_FlexPersistentVolumeSource = map[string]string{ "": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", "driver": "driver is the name of the driver to use for this volume.", @@ -837,7 +883,7 @@ func (GlusterfsPersistentVolumeSource) SwaggerDoc() map[string]string { var map_GlusterfsVolumeSource = map[string]string{ "": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "endpoints": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "endpoints": "endpoints is the endpoint name that details Glusterfs topology.", "path": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "readOnly": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", } @@ -1446,7 +1492,7 @@ var map_PersistentVolumeClaimSpec = map[string]string{ "volumeMode": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", "dataSource": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.", "dataSourceRef": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "volumeAttributesClassName": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", + "volumeAttributesClassName": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/", } func (PersistentVolumeClaimSpec) SwaggerDoc() map[string]string { @@ -1461,8 +1507,8 @@ var map_PersistentVolumeClaimStatus = map[string]string{ "conditions": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", "allocatedResources": "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", "allocatedResourceStatuses": "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", - "currentVolumeAttributesClassName": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", - "modifyVolumeStatus": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "currentVolumeAttributesClassName": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim", + "modifyVolumeStatus": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted.", } func (PersistentVolumeClaimStatus) SwaggerDoc() map[string]string { @@ -1539,7 +1585,7 @@ var map_PersistentVolumeSpec = map[string]string{ "mountOptions": "mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", "volumeMode": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.", "nodeAffinity": "nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.", - "volumeAttributesClassName": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "volumeAttributesClassName": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.", } func (PersistentVolumeSpec) SwaggerDoc() map[string]string { @@ -1606,7 +1652,7 @@ func (PodAffinityTerm) SwaggerDoc() map[string]string { var map_PodAntiAffinity = map[string]string{ "": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", "requiredDuringSchedulingIgnoredDuringExecution": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", - "preferredDuringSchedulingIgnoredDuringExecution": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "preferredDuringSchedulingIgnoredDuringExecution": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", } func (PodAntiAffinity) SwaggerDoc() map[string]string { @@ -1626,6 +1672,20 @@ func (PodAttachOptions) SwaggerDoc() map[string]string { return map_PodAttachOptions } +var map_PodCertificateProjection = map[string]string{ + "": "PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.", + "signerName": "Kubelet's generated CSRs will be addressed to this signer.", + "keyType": "The type of keypair Kubelet will generate for the pod.\n\nValid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\".", + "maxExpirationSeconds": "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nKubelet copies this value verbatim into the PodCertificateRequests it generates for this projection.\n\nIf omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days).\n\nThe signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours.", + "credentialBundlePath": "Write the credential bundle at this path in the projected volume.\n\nThe credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key.\n\nThe remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates).\n\nUsing credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key.", + "keyPath": "Write the key at this path in the projected volume.\n\nMost applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.", + "certificateChainPath": "Write the certificate chain at this path in the projected volume.\n\nMost applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.", +} + +func (PodCertificateProjection) SwaggerDoc() map[string]string { + return map_PodCertificateProjection +} + var map_PodCondition = map[string]string{ "": "PodCondition contains details for the current condition of this pod.", "type": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", @@ -1676,6 +1736,16 @@ func (PodExecOptions) SwaggerDoc() map[string]string { return map_PodExecOptions } +var map_PodExtendedResourceClaimStatus = map[string]string{ + "": "PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler.", + "requestMappings": "RequestMappings identifies the mapping of to device request in the generated ResourceClaim.", + "resourceClaimName": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod.", +} + +func (PodExtendedResourceClaimStatus) SwaggerDoc() map[string]string { + return map_PodExtendedResourceClaimStatus +} + var map_PodIP = map[string]string{ "": "PodIP represents a single IP address allocated to the pod.", "ip": "IP is the IP address assigned to the pod", @@ -1824,7 +1894,7 @@ var map_PodSpec = map[string]string{ "serviceAccount": "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", "automountServiceAccountToken": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", "nodeName": "NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename", - "hostNetwork": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", + "hostNetwork": "Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false.", "hostPID": "Use the host's pid namespace. Optional: Default to false.", "hostIPC": "Use the host's ipc namespace. Optional: Default to false.", "shareProcessNamespace": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.", @@ -1846,11 +1916,12 @@ var map_PodSpec = map[string]string{ "overhead": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md", "topologySpreadConstraints": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.", "setHostnameAsFQDN": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", - "os": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup", + "os": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.resources - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup", "hostUsers": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", "schedulingGates": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.", "resourceClaims": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", - "resources": "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\" and \"memory\" resource names only. ResourceClaims are not supported.\n\nThis field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.\n\nThis is an alpha field and requires enabling the PodLevelResources feature gate.", + "resources": "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\", \"memory\" and \"hugepages-\" resource names only. ResourceClaims are not supported.\n\nThis field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.\n\nThis is an alpha field and requires enabling the PodLevelResources feature gate.", + "hostnameOverride": "HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false.\n\nThis field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled.", } func (PodSpec) SwaggerDoc() map[string]string { @@ -1858,24 +1929,25 @@ func (PodSpec) SwaggerDoc() map[string]string { } var map_PodStatus = map[string]string{ - "": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", - "observedGeneration": "If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.", - "phase": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", - "conditions": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "message": "A human readable message indicating details about why the pod is in this condition.", - "reason": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", - "nominatedNodeName": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", - "hostIP": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", - "hostIPs": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.", - "podIP": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", - "podIPs": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", - "startTime": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", - "initContainerStatuses": "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status", - "containerStatuses": "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", - "qosClass": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes", - "ephemeralContainerStatuses": "Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", - "resize": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.", - "resourceClaimStatuses": "Status of resource claims.", + "": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", + "observedGeneration": "If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.", + "phase": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", + "conditions": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "message": "A human readable message indicating details about why the pod is in this condition.", + "reason": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + "nominatedNodeName": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", + "hostIP": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", + "hostIPs": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.", + "podIP": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", + "podIPs": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", + "startTime": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", + "initContainerStatuses": "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status", + "containerStatuses": "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "qosClass": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes", + "ephemeralContainerStatuses": "Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "resize": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.", + "resourceClaimStatuses": "Status of resource claims.", + "extendedResourceClaimStatus": "Status of extended resource claim backed by DRA.", } func (PodStatus) SwaggerDoc() map[string]string { @@ -2205,7 +2277,7 @@ var map_ResourceRequirements = map[string]string{ "": "ResourceRequirements describes the compute resource requirements.", "limits": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", "requests": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "claims": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + "claims": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis field depends on the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", } func (ResourceRequirements) SwaggerDoc() map[string]string { @@ -2587,7 +2659,7 @@ var map_Taint = map[string]string{ "key": "Required. The taint key to be applied to a node.", "value": "The taint value corresponding to the taint key.", "effect": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", - "timeAdded": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", + "timeAdded": "TimeAdded represents the time at which the taint was added.", } func (Taint) SwaggerDoc() map[string]string { @@ -2727,6 +2799,7 @@ var map_VolumeProjection = map[string]string{ "configMap": "configMap information about the configMap data to project", "serviceAccountToken": "serviceAccountToken is information about the serviceAccountToken data to project", "clusterTrustBundle": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time.", + "podCertificate": "Projects an auto-rotating credential bundle (private key and certificate chain) that the pod can use either as a TLS client or server.\n\nKubelet generates a private key and uses it to send a PodCertificateRequest to the named signer. Once the signer approves the request and issues a certificate chain, Kubelet writes the key and certificate chain to the pod filesystem. The pod does not start until certificates have been issued for each podCertificate projected volume source in its spec.\n\nKubelet will begin trying to rotate the certificate at the time indicated by the signer using the PodCertificateRequest.Status.BeginRefreshAt timestamp.\n\nKubelet can write a single file, indicated by the credentialBundlePath field, or separate files, indicated by the keyPath and certificateChainPath fields.\n\nThe credential bundle is a single file in PEM format. The first PEM entry is the private key (in PKCS#8 format), and the remaining PEM entries are the certificate chain issued by the signer (typically, signers will return their certificate chain in leaf-to-root order).\n\nPrefer using the credential bundle format, since your application code can read it atomically. If you use keyPath and certificateChainPath, your application must make two separate file reads. If these coincide with a certificate rotation, it is possible that the private key and leaf certificate you read may not correspond to each other. Your application will need to check for this condition, and re-read until they are consistent.\n\nThe named signer controls chooses the format of the certificate it issues; consult the signer implementation's documentation to learn how to use the certificates it issues.", } func (VolumeProjection) SwaggerDoc() map[string]string { @@ -2752,10 +2825,10 @@ var map_VolumeSource = map[string]string{ "gitRepo": "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", "secret": "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", "nfs": "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "iscsi": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md", - "glusterfs": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + "iscsi": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", + "glusterfs": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.", "persistentVolumeClaim": "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "rbd": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", + "rbd": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.", "flexVolume": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", "cinder": "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "cephfs": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", diff --git a/vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go b/vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go index 619c525427..bcd91bd019 100644 --- a/vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go @@ -829,6 +829,13 @@ func (in *Container) DeepCopyInto(out *Container) { *out = new(ContainerRestartPolicy) **out = **in } + if in.RestartPolicyRules != nil { + in, out := &in.RestartPolicyRules, &out.RestartPolicyRules + *out = make([]ContainerRestartRule, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } if in.VolumeMounts != nil { in, out := &in.VolumeMounts, &out.VolumeMounts *out = make([]VolumeMount, len(*in)) @@ -879,6 +886,22 @@ func (in *Container) DeepCopy() *Container { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ContainerExtendedResourceRequest) DeepCopyInto(out *ContainerExtendedResourceRequest) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerExtendedResourceRequest. +func (in *ContainerExtendedResourceRequest) DeepCopy() *ContainerExtendedResourceRequest { + if in == nil { + return nil + } + out := new(ContainerExtendedResourceRequest) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ContainerImage) DeepCopyInto(out *ContainerImage) { *out = *in @@ -932,6 +955,48 @@ func (in *ContainerResizePolicy) DeepCopy() *ContainerResizePolicy { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ContainerRestartRule) DeepCopyInto(out *ContainerRestartRule) { + *out = *in + if in.ExitCodes != nil { + in, out := &in.ExitCodes, &out.ExitCodes + *out = new(ContainerRestartRuleOnExitCodes) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerRestartRule. +func (in *ContainerRestartRule) DeepCopy() *ContainerRestartRule { + if in == nil { + return nil + } + out := new(ContainerRestartRule) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ContainerRestartRuleOnExitCodes) DeepCopyInto(out *ContainerRestartRuleOnExitCodes) { + *out = *in + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]int32, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerRestartRuleOnExitCodes. +func (in *ContainerRestartRuleOnExitCodes) DeepCopy() *ContainerRestartRuleOnExitCodes { + if in == nil { + return nil + } + out := new(ContainerRestartRuleOnExitCodes) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ContainerState) DeepCopyInto(out *ContainerState) { *out = *in @@ -1433,6 +1498,11 @@ func (in *EnvVarSource) DeepCopyInto(out *EnvVarSource) { *out = new(SecretKeySelector) (*in).DeepCopyInto(*out) } + if in.FileKeyRef != nil { + in, out := &in.FileKeyRef, &out.FileKeyRef + *out = new(FileKeySelector) + (*in).DeepCopyInto(*out) + } return } @@ -1506,6 +1576,13 @@ func (in *EphemeralContainerCommon) DeepCopyInto(out *EphemeralContainerCommon) *out = new(ContainerRestartPolicy) **out = **in } + if in.RestartPolicyRules != nil { + in, out := &in.RestartPolicyRules, &out.RestartPolicyRules + *out = make([]ContainerRestartRule, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } if in.VolumeMounts != nil { in, out := &in.VolumeMounts, &out.VolumeMounts *out = make([]VolumeMount, len(*in)) @@ -1736,6 +1813,27 @@ func (in *FCVolumeSource) DeepCopy() *FCVolumeSource { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FileKeySelector) DeepCopyInto(out *FileKeySelector) { + *out = *in + if in.Optional != nil { + in, out := &in.Optional, &out.Optional + *out = new(bool) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileKeySelector. +func (in *FileKeySelector) DeepCopy() *FileKeySelector { + if in == nil { + return nil + } + out := new(FileKeySelector) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FlexPersistentVolumeSource) DeepCopyInto(out *FlexPersistentVolumeSource) { *out = *in @@ -3797,6 +3895,27 @@ func (in *PodAttachOptions) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PodCertificateProjection) DeepCopyInto(out *PodCertificateProjection) { + *out = *in + if in.MaxExpirationSeconds != nil { + in, out := &in.MaxExpirationSeconds, &out.MaxExpirationSeconds + *out = new(int32) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCertificateProjection. +func (in *PodCertificateProjection) DeepCopy() *PodCertificateProjection { + if in == nil { + return nil + } + out := new(PodCertificateProjection) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodCondition) DeepCopyInto(out *PodCondition) { *out = *in @@ -3899,6 +4018,27 @@ func (in *PodExecOptions) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PodExtendedResourceClaimStatus) DeepCopyInto(out *PodExtendedResourceClaimStatus) { + *out = *in + if in.RequestMappings != nil { + in, out := &in.RequestMappings, &out.RequestMappings + *out = make([]ContainerExtendedResourceRequest, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodExtendedResourceClaimStatus. +func (in *PodExtendedResourceClaimStatus) DeepCopy() *PodExtendedResourceClaimStatus { + if in == nil { + return nil + } + out := new(PodExtendedResourceClaimStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodIP) DeepCopyInto(out *PodIP) { *out = *in @@ -4412,6 +4552,11 @@ func (in *PodSpec) DeepCopyInto(out *PodSpec) { *out = new(ResourceRequirements) (*in).DeepCopyInto(*out) } + if in.HostnameOverride != nil { + in, out := &in.HostnameOverride, &out.HostnameOverride + *out = new(string) + **out = **in + } return } @@ -4477,6 +4622,11 @@ func (in *PodStatus) DeepCopyInto(out *PodStatus) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.ExtendedResourceClaimStatus != nil { + in, out := &in.ExtendedResourceClaimStatus, &out.ExtendedResourceClaimStatus + *out = new(PodExtendedResourceClaimStatus) + (*in).DeepCopyInto(*out) + } return } @@ -6412,6 +6562,11 @@ func (in *VolumeProjection) DeepCopyInto(out *VolumeProjection) { *out = new(ClusterTrustBundleProjection) (*in).DeepCopyInto(*out) } + if in.PodCertificate != nil { + in, out := &in.PodCertificate, &out.PodCertificate + *out = new(PodCertificateProjection) + (*in).DeepCopyInto(*out) + } return } diff --git a/vendor/k8s.io/api/extensions/v1beta1/doc.go b/vendor/k8s.io/api/extensions/v1beta1/doc.go index 7770fab5d2..be710973cb 100644 --- a/vendor/k8s.io/api/extensions/v1beta1/doc.go +++ b/vendor/k8s.io/api/extensions/v1beta1/doc.go @@ -18,5 +18,7 @@ limitations under the License. // +k8s:protobuf-gen=package // +k8s:openapi-gen=true // +k8s:prerelease-lifecycle-gen=true +// +k8s:validation-gen=TypeMeta +// +k8s:validation-gen-input=k8s.io/api/extensions/v1beta1 package v1beta1 diff --git a/vendor/k8s.io/api/extensions/v1beta1/generated.proto b/vendor/k8s.io/api/extensions/v1beta1/generated.proto index 70fcec0cc5..fed0b4835d 100644 --- a/vendor/k8s.io/api/extensions/v1beta1/generated.proto +++ b/vendor/k8s.io/api/extensions/v1beta1/generated.proto @@ -980,7 +980,7 @@ message RollingUpdateDaemonSet { // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated - // pod is immediatedly created on that node without considering surge limits. + // pod is immediately created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may @@ -1039,6 +1039,9 @@ message Scale { message ScaleSpec { // desired number of instances for the scaled object. // +optional + // +k8s:optional + // +default=0 + // +k8s:minimum=0 optional int32 replicas = 1; } diff --git a/vendor/k8s.io/api/extensions/v1beta1/types.go b/vendor/k8s.io/api/extensions/v1beta1/types.go index b80a7a7e16..c7b50e0590 100644 --- a/vendor/k8s.io/api/extensions/v1beta1/types.go +++ b/vendor/k8s.io/api/extensions/v1beta1/types.go @@ -27,6 +27,9 @@ import ( type ScaleSpec struct { // desired number of instances for the scaled object. // +optional + // +k8s:optional + // +default=0 + // +k8s:minimum=0 Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` } @@ -54,6 +57,7 @@ type ScaleStatus struct { // +k8s:prerelease-lifecycle-gen:introduced=1.1 // +k8s:prerelease-lifecycle-gen:deprecated=1.2 // +k8s:prerelease-lifecycle-gen:removed=1.16 +// +k8s:isSubresource=/scale // represents a scaling request for a resource. type Scale struct { @@ -398,7 +402,7 @@ type RollingUpdateDaemonSet struct { // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod // on that node is marked deleted. If the old pod becomes unavailable for any // reason (Ready transitions to false, is evicted, or is drained) an updated - // pod is immediatedly created on that node without considering surge limits. + // pod is immediately created on that node without considering surge limits. // Allowing surge implies the possibility that the resources consumed by the // daemonset on any given node can double if the readiness check fails, and // so resource intensive daemonsets should take into account that they may diff --git a/vendor/k8s.io/api/extensions/v1beta1/types_swagger_doc_generated.go b/vendor/k8s.io/api/extensions/v1beta1/types_swagger_doc_generated.go index 923fab3aa1..8a158233ef 100644 --- a/vendor/k8s.io/api/extensions/v1beta1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/api/extensions/v1beta1/types_swagger_doc_generated.go @@ -482,7 +482,7 @@ func (RollbackConfig) SwaggerDoc() map[string]string { var map_RollingUpdateDaemonSet = map[string]string{ "": "Spec to control the desired behavior of daemon set rolling update.", "maxUnavailable": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", - "maxSurge": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate.", + "maxSurge": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate.", } func (RollingUpdateDaemonSet) SwaggerDoc() map[string]string { diff --git a/vendor/k8s.io/api/extensions/v1beta1/zz_generated.validations.go b/vendor/k8s.io/api/extensions/v1beta1/zz_generated.validations.go new file mode 100644 index 0000000000..6d2a1666ae --- /dev/null +++ b/vendor/k8s.io/api/extensions/v1beta1/zz_generated.validations.go @@ -0,0 +1,78 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by validation-gen. DO NOT EDIT. + +package v1beta1 + +import ( + context "context" + fmt "fmt" + + operation "k8s.io/apimachinery/pkg/api/operation" + safe "k8s.io/apimachinery/pkg/api/safe" + validate "k8s.io/apimachinery/pkg/api/validate" + runtime "k8s.io/apimachinery/pkg/runtime" + field "k8s.io/apimachinery/pkg/util/validation/field" +) + +func init() { localSchemeBuilder.Register(RegisterValidations) } + +// RegisterValidations adds validation functions to the given scheme. +// Public to allow building arbitrary schemes. +func RegisterValidations(scheme *runtime.Scheme) error { + scheme.AddValidationFunc((*Scale)(nil), func(ctx context.Context, op operation.Operation, obj, oldObj interface{}) field.ErrorList { + switch op.Request.SubresourcePath() { + case "/scale": + return Validate_Scale(ctx, op, nil /* fldPath */, obj.(*Scale), safe.Cast[*Scale](oldObj)) + } + return field.ErrorList{field.InternalError(nil, fmt.Errorf("no validation found for %T, subresource: %v", obj, op.Request.SubresourcePath()))} + }) + return nil +} + +func Validate_Scale(ctx context.Context, op operation.Operation, fldPath *field.Path, obj, oldObj *Scale) (errs field.ErrorList) { + // field Scale.TypeMeta has no validation + // field Scale.ObjectMeta has no validation + + // field Scale.Spec + errs = append(errs, + func(fldPath *field.Path, obj, oldObj *ScaleSpec) (errs field.ErrorList) { + errs = append(errs, Validate_ScaleSpec(ctx, op, fldPath, obj, oldObj)...) + return + }(fldPath.Child("spec"), &obj.Spec, safe.Field(oldObj, func(oldObj *Scale) *ScaleSpec { return &oldObj.Spec }))...) + + // field Scale.Status has no validation + return errs +} + +func Validate_ScaleSpec(ctx context.Context, op operation.Operation, fldPath *field.Path, obj, oldObj *ScaleSpec) (errs field.ErrorList) { + // field ScaleSpec.Replicas + errs = append(errs, + func(fldPath *field.Path, obj, oldObj *int32) (errs field.ErrorList) { + // optional value-type fields with zero-value defaults are purely documentation + if op.Type == operation.Update && (obj == oldObj || (obj != nil && oldObj != nil && *obj == *oldObj)) { + return nil // no changes + } + errs = append(errs, validate.Minimum(ctx, op, fldPath, obj, oldObj, 0)...) + return + }(fldPath.Child("replicas"), &obj.Replicas, safe.Field(oldObj, func(oldObj *ScaleSpec) *int32 { return &oldObj.Replicas }))...) + + return errs +} diff --git a/vendor/k8s.io/api/networking/v1/generated.proto b/vendor/k8s.io/api/networking/v1/generated.proto index e3e3e9215e..16a2792aa6 100644 --- a/vendor/k8s.io/api/networking/v1/generated.proto +++ b/vendor/k8s.io/api/networking/v1/generated.proto @@ -534,11 +534,12 @@ message NetworkPolicyPort { // NetworkPolicySpec provides the specification of a NetworkPolicy message NetworkPolicySpec { // podSelector selects the pods to which this NetworkPolicy object applies. - // The array of ingress rules is applied to any pods selected by this field. + // The array of rules is applied to any pods selected by this field. An empty + // selector matches all pods in the policy's namespace. // Multiple network policies can select the same set of pods. In this case, // the ingress rules for each are combined additively. - // This field is NOT optional and follows standard label selector semantics. - // An empty podSelector matches all pods in this namespace. + // This field is optional. If it is not specified, it defaults to an empty selector. + // +optional optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1; // ingress is a list of ingress rules to be applied to the selected pods. diff --git a/vendor/k8s.io/api/networking/v1/types.go b/vendor/k8s.io/api/networking/v1/types.go index 216647ceeb..7d9a4fc94c 100644 --- a/vendor/k8s.io/api/networking/v1/types.go +++ b/vendor/k8s.io/api/networking/v1/types.go @@ -60,11 +60,12 @@ const ( // NetworkPolicySpec provides the specification of a NetworkPolicy type NetworkPolicySpec struct { // podSelector selects the pods to which this NetworkPolicy object applies. - // The array of ingress rules is applied to any pods selected by this field. + // The array of rules is applied to any pods selected by this field. An empty + // selector matches all pods in the policy's namespace. // Multiple network policies can select the same set of pods. In this case, // the ingress rules for each are combined additively. - // This field is NOT optional and follows standard label selector semantics. - // An empty podSelector matches all pods in this namespace. + // This field is optional. If it is not specified, it defaults to an empty selector. + // +optional PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"` // ingress is a list of ingress rules to be applied to the selected pods. diff --git a/vendor/k8s.io/api/networking/v1/types_swagger_doc_generated.go b/vendor/k8s.io/api/networking/v1/types_swagger_doc_generated.go index 0e294848ba..6210bb7a5a 100644 --- a/vendor/k8s.io/api/networking/v1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/api/networking/v1/types_swagger_doc_generated.go @@ -313,7 +313,7 @@ func (NetworkPolicyPort) SwaggerDoc() map[string]string { var map_NetworkPolicySpec = map[string]string{ "": "NetworkPolicySpec provides the specification of a NetworkPolicy", - "podSelector": "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", + "podSelector": "podSelector selects the pods to which this NetworkPolicy object applies. The array of rules is applied to any pods selected by this field. An empty selector matches all pods in the policy's namespace. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is optional. If it is not specified, it defaults to an empty selector.", "ingress": "ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", "egress": "egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", "policyTypes": "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", diff --git a/vendor/k8s.io/api/networking/v1alpha1/generated.pb.go b/vendor/k8s.io/api/networking/v1alpha1/generated.pb.go deleted file mode 100644 index 0d42034837..0000000000 --- a/vendor/k8s.io/api/networking/v1alpha1/generated.pb.go +++ /dev/null @@ -1,1929 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/api/networking/v1alpha1/generated.proto - -package v1alpha1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -func (m *IPAddress) Reset() { *m = IPAddress{} } -func (*IPAddress) ProtoMessage() {} -func (*IPAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_c1cb39e7b48ce50d, []int{0} -} -func (m *IPAddress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IPAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IPAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPAddress.Merge(m, src) -} -func (m *IPAddress) XXX_Size() int { - return m.Size() -} -func (m *IPAddress) XXX_DiscardUnknown() { - xxx_messageInfo_IPAddress.DiscardUnknown(m) -} - -var xxx_messageInfo_IPAddress proto.InternalMessageInfo - -func (m *IPAddressList) Reset() { *m = IPAddressList{} } -func (*IPAddressList) ProtoMessage() {} -func (*IPAddressList) Descriptor() ([]byte, []int) { - return fileDescriptor_c1cb39e7b48ce50d, []int{1} -} -func (m *IPAddressList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IPAddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IPAddressList) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPAddressList.Merge(m, src) -} -func (m *IPAddressList) XXX_Size() int { - return m.Size() -} -func (m *IPAddressList) XXX_DiscardUnknown() { - xxx_messageInfo_IPAddressList.DiscardUnknown(m) -} - -var xxx_messageInfo_IPAddressList proto.InternalMessageInfo - -func (m *IPAddressSpec) Reset() { *m = IPAddressSpec{} } -func (*IPAddressSpec) ProtoMessage() {} -func (*IPAddressSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_c1cb39e7b48ce50d, []int{2} -} -func (m *IPAddressSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IPAddressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IPAddressSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPAddressSpec.Merge(m, src) -} -func (m *IPAddressSpec) XXX_Size() int { - return m.Size() -} -func (m *IPAddressSpec) XXX_DiscardUnknown() { - xxx_messageInfo_IPAddressSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_IPAddressSpec proto.InternalMessageInfo - -func (m *ParentReference) Reset() { *m = ParentReference{} } -func (*ParentReference) ProtoMessage() {} -func (*ParentReference) Descriptor() ([]byte, []int) { - return fileDescriptor_c1cb39e7b48ce50d, []int{3} -} -func (m *ParentReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ParentReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ParentReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_ParentReference.Merge(m, src) -} -func (m *ParentReference) XXX_Size() int { - return m.Size() -} -func (m *ParentReference) XXX_DiscardUnknown() { - xxx_messageInfo_ParentReference.DiscardUnknown(m) -} - -var xxx_messageInfo_ParentReference proto.InternalMessageInfo - -func (m *ServiceCIDR) Reset() { *m = ServiceCIDR{} } -func (*ServiceCIDR) ProtoMessage() {} -func (*ServiceCIDR) Descriptor() ([]byte, []int) { - return fileDescriptor_c1cb39e7b48ce50d, []int{4} -} -func (m *ServiceCIDR) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceCIDR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceCIDR) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceCIDR.Merge(m, src) -} -func (m *ServiceCIDR) XXX_Size() int { - return m.Size() -} -func (m *ServiceCIDR) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceCIDR.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceCIDR proto.InternalMessageInfo - -func (m *ServiceCIDRList) Reset() { *m = ServiceCIDRList{} } -func (*ServiceCIDRList) ProtoMessage() {} -func (*ServiceCIDRList) Descriptor() ([]byte, []int) { - return fileDescriptor_c1cb39e7b48ce50d, []int{5} -} -func (m *ServiceCIDRList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceCIDRList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceCIDRList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceCIDRList.Merge(m, src) -} -func (m *ServiceCIDRList) XXX_Size() int { - return m.Size() -} -func (m *ServiceCIDRList) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceCIDRList.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceCIDRList proto.InternalMessageInfo - -func (m *ServiceCIDRSpec) Reset() { *m = ServiceCIDRSpec{} } -func (*ServiceCIDRSpec) ProtoMessage() {} -func (*ServiceCIDRSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_c1cb39e7b48ce50d, []int{6} -} -func (m *ServiceCIDRSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceCIDRSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceCIDRSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceCIDRSpec.Merge(m, src) -} -func (m *ServiceCIDRSpec) XXX_Size() int { - return m.Size() -} -func (m *ServiceCIDRSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceCIDRSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceCIDRSpec proto.InternalMessageInfo - -func (m *ServiceCIDRStatus) Reset() { *m = ServiceCIDRStatus{} } -func (*ServiceCIDRStatus) ProtoMessage() {} -func (*ServiceCIDRStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_c1cb39e7b48ce50d, []int{7} -} -func (m *ServiceCIDRStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceCIDRStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceCIDRStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceCIDRStatus.Merge(m, src) -} -func (m *ServiceCIDRStatus) XXX_Size() int { - return m.Size() -} -func (m *ServiceCIDRStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceCIDRStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceCIDRStatus proto.InternalMessageInfo - -func init() { - proto.RegisterType((*IPAddress)(nil), "k8s.io.api.networking.v1alpha1.IPAddress") - proto.RegisterType((*IPAddressList)(nil), "k8s.io.api.networking.v1alpha1.IPAddressList") - proto.RegisterType((*IPAddressSpec)(nil), "k8s.io.api.networking.v1alpha1.IPAddressSpec") - proto.RegisterType((*ParentReference)(nil), "k8s.io.api.networking.v1alpha1.ParentReference") - proto.RegisterType((*ServiceCIDR)(nil), "k8s.io.api.networking.v1alpha1.ServiceCIDR") - proto.RegisterType((*ServiceCIDRList)(nil), "k8s.io.api.networking.v1alpha1.ServiceCIDRList") - proto.RegisterType((*ServiceCIDRSpec)(nil), "k8s.io.api.networking.v1alpha1.ServiceCIDRSpec") - proto.RegisterType((*ServiceCIDRStatus)(nil), "k8s.io.api.networking.v1alpha1.ServiceCIDRStatus") -} - -func init() { - proto.RegisterFile("k8s.io/api/networking/v1alpha1/generated.proto", fileDescriptor_c1cb39e7b48ce50d) -} - -var fileDescriptor_c1cb39e7b48ce50d = []byte{ - // 634 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xd3, 0x4a, - 0x18, 0x8d, 0xdb, 0xa4, 0xaa, 0x27, 0xb7, 0xb7, 0xb7, 0x5e, 0x45, 0x5d, 0x38, 0x91, 0xef, 0xa6, - 0x08, 0x3a, 0x26, 0x11, 0x42, 0x6c, 0x71, 0x2b, 0xa1, 0x4a, 0xd0, 0x96, 0xe9, 0x0a, 0xd4, 0x05, - 0xd3, 0xc9, 0x57, 0x67, 0x08, 0xfe, 0xd1, 0xcc, 0x24, 0xc0, 0x8e, 0x47, 0xe0, 0x05, 0x78, 0x0e, - 0x56, 0x20, 0xb1, 0xeb, 0xb2, 0xcb, 0xae, 0x2a, 0x6a, 0x5e, 0x04, 0xcd, 0xd8, 0xb1, 0x93, 0x46, - 0xfd, 0xdb, 0x74, 0xe7, 0xef, 0xcc, 0x39, 0x67, 0xbe, 0xf3, 0xcd, 0x8c, 0x8c, 0xf0, 0xf0, 0x99, - 0xc4, 0x3c, 0xf1, 0x69, 0xca, 0xfd, 0x18, 0xd4, 0xc7, 0x44, 0x0c, 0x79, 0x1c, 0xfa, 0xe3, 0x2e, - 0xfd, 0x90, 0x0e, 0x68, 0xd7, 0x0f, 0x21, 0x06, 0x41, 0x15, 0xf4, 0x71, 0x2a, 0x12, 0x95, 0x38, - 0x6e, 0xce, 0xc7, 0x34, 0xe5, 0xb8, 0xe2, 0xe3, 0x09, 0x7f, 0x7d, 0x33, 0xe4, 0x6a, 0x30, 0x3a, - 0xc2, 0x2c, 0x89, 0xfc, 0x30, 0x09, 0x13, 0xdf, 0xc8, 0x8e, 0x46, 0xc7, 0xa6, 0x32, 0x85, 0xf9, - 0xca, 0xed, 0xd6, 0x9f, 0x54, 0xdb, 0x47, 0x94, 0x0d, 0x78, 0x0c, 0xe2, 0xb3, 0x9f, 0x0e, 0x43, - 0x0d, 0x48, 0x3f, 0x02, 0x45, 0xfd, 0xf1, 0x5c, 0x13, 0xeb, 0xfe, 0x55, 0x2a, 0x31, 0x8a, 0x15, - 0x8f, 0x60, 0x4e, 0xf0, 0xf4, 0x26, 0x81, 0x64, 0x03, 0x88, 0xe8, 0x65, 0x9d, 0xf7, 0xd3, 0x42, - 0xf6, 0xce, 0xfe, 0xf3, 0x7e, 0x5f, 0x80, 0x94, 0xce, 0x3b, 0xb4, 0xac, 0x3b, 0xea, 0x53, 0x45, - 0x5b, 0x56, 0xc7, 0xda, 0x68, 0xf6, 0x1e, 0xe3, 0x6a, 0x1c, 0xa5, 0x31, 0x4e, 0x87, 0xa1, 0x06, - 0x24, 0xd6, 0x6c, 0x3c, 0xee, 0xe2, 0xbd, 0xa3, 0xf7, 0xc0, 0xd4, 0x2b, 0x50, 0x34, 0x70, 0x4e, - 0xce, 0xdb, 0xb5, 0xec, 0xbc, 0x8d, 0x2a, 0x8c, 0x94, 0xae, 0xce, 0x1e, 0xaa, 0xcb, 0x14, 0x58, - 0x6b, 0xc1, 0xb8, 0x6f, 0xe2, 0xeb, 0x87, 0x8d, 0xcb, 0xd6, 0x0e, 0x52, 0x60, 0xc1, 0x3f, 0x85, - 0x75, 0x5d, 0x57, 0xc4, 0x18, 0x79, 0x3f, 0x2c, 0xb4, 0x52, 0xb2, 0x5e, 0x72, 0xa9, 0x9c, 0xc3, - 0xb9, 0x10, 0xf8, 0x76, 0x21, 0xb4, 0xda, 0x44, 0xf8, 0xaf, 0xd8, 0x67, 0x79, 0x82, 0x4c, 0x05, - 0xd8, 0x45, 0x0d, 0xae, 0x20, 0x92, 0xad, 0x85, 0xce, 0xe2, 0x46, 0xb3, 0xf7, 0xe0, 0xd6, 0x09, - 0x82, 0x95, 0xc2, 0xb5, 0xb1, 0xa3, 0xf5, 0x24, 0xb7, 0xf1, 0xa2, 0xa9, 0xf6, 0x75, 0x2c, 0xe7, - 0x10, 0xd9, 0x29, 0x15, 0x10, 0x2b, 0x02, 0xc7, 0x45, 0xff, 0xfe, 0x4d, 0x9b, 0xec, 0x4f, 0x04, - 0x20, 0x20, 0x66, 0x10, 0xac, 0x64, 0xe7, 0x6d, 0xbb, 0x04, 0x49, 0x65, 0xe8, 0x7d, 0xb7, 0xd0, - 0xea, 0x25, 0xb6, 0xf3, 0x3f, 0x6a, 0x84, 0x22, 0x19, 0xa5, 0x66, 0x37, 0xbb, 0xea, 0xf3, 0x85, - 0x06, 0x49, 0xbe, 0xe6, 0x3c, 0x42, 0xcb, 0x02, 0x64, 0x32, 0x12, 0x0c, 0xcc, 0xe1, 0xd9, 0xd5, - 0x94, 0x48, 0x81, 0x93, 0x92, 0xe1, 0xf8, 0xc8, 0x8e, 0x69, 0x04, 0x32, 0xa5, 0x0c, 0x5a, 0x8b, - 0x86, 0xbe, 0x56, 0xd0, 0xed, 0xdd, 0xc9, 0x02, 0xa9, 0x38, 0x4e, 0x07, 0xd5, 0x75, 0xd1, 0xaa, - 0x1b, 0x6e, 0x79, 0xd0, 0x9a, 0x4b, 0xcc, 0x8a, 0xf7, 0x6d, 0x01, 0x35, 0x0f, 0x40, 0x8c, 0x39, - 0x83, 0xad, 0x9d, 0x6d, 0x72, 0x0f, 0x77, 0xf5, 0xf5, 0xcc, 0x5d, 0xbd, 0xf1, 0x10, 0xa6, 0x9a, - 0xbb, 0xea, 0xb6, 0x3a, 0x6f, 0xd0, 0x92, 0x54, 0x54, 0x8d, 0xa4, 0x19, 0x4a, 0xb3, 0xd7, 0xbd, - 0x8b, 0xa9, 0x11, 0x06, 0xff, 0x16, 0xb6, 0x4b, 0x79, 0x4d, 0x0a, 0x43, 0xef, 0x97, 0x85, 0x56, - 0xa7, 0xd8, 0xf7, 0xf0, 0x14, 0xf6, 0x67, 0x9f, 0xc2, 0xc3, 0x3b, 0x64, 0xb9, 0xe2, 0x31, 0xf4, - 0x66, 0x22, 0x98, 0xe7, 0xd0, 0x46, 0x0d, 0xc6, 0xfb, 0x42, 0xb6, 0xac, 0xce, 0xe2, 0x86, 0x1d, - 0xd8, 0x5a, 0xa3, 0x17, 0x25, 0xc9, 0x71, 0xef, 0x13, 0x5a, 0x9b, 0x1b, 0x92, 0xc3, 0x10, 0x62, - 0x49, 0xdc, 0xe7, 0x8a, 0x27, 0x71, 0x2e, 0x9d, 0x3d, 0xc0, 0x6b, 0xa2, 0x6f, 0x4d, 0x74, 0xd5, - 0xed, 0x28, 0x21, 0x49, 0xa6, 0x6c, 0x83, 0xed, 0x93, 0x0b, 0xb7, 0x76, 0x7a, 0xe1, 0xd6, 0xce, - 0x2e, 0xdc, 0xda, 0x97, 0xcc, 0xb5, 0x4e, 0x32, 0xd7, 0x3a, 0xcd, 0x5c, 0xeb, 0x2c, 0x73, 0xad, - 0xdf, 0x99, 0x6b, 0x7d, 0xfd, 0xe3, 0xd6, 0xde, 0xba, 0xd7, 0xff, 0x7f, 0xfe, 0x06, 0x00, 0x00, - 0xff, 0xff, 0xb1, 0xd0, 0x33, 0x02, 0xa0, 0x06, 0x00, 0x00, -} - -func (m *IPAddress) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IPAddress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IPAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IPAddressList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IPAddressList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IPAddressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IPAddressSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IPAddressSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IPAddressSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ParentRef != nil { - { - size, err := m.ParentRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ParentReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ParentReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ParentReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x22 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x1a - i -= len(m.Resource) - copy(dAtA[i:], m.Resource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) - i-- - dAtA[i] = 0x12 - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceCIDR) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceCIDR) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceCIDR) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceCIDRList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceCIDRList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceCIDRList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceCIDRSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceCIDRSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceCIDRSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CIDRs) > 0 { - for iNdEx := len(m.CIDRs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.CIDRs[iNdEx]) - copy(dAtA[i:], m.CIDRs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CIDRs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ServiceCIDRStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceCIDRStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceCIDRStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *IPAddress) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *IPAddressList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *IPAddressSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ParentRef != nil { - l = m.ParentRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ParentReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Resource) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ServiceCIDR) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ServiceCIDRList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ServiceCIDRSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.CIDRs) > 0 { - for _, s := range m.CIDRs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ServiceCIDRStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *IPAddress) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IPAddress{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IPAddressSpec", "IPAddressSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IPAddressList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]IPAddress{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "IPAddress", "IPAddress", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&IPAddressList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *IPAddressSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IPAddressSpec{`, - `ParentRef:` + strings.Replace(this.ParentRef.String(), "ParentReference", "ParentReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ParentReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ParentReference{`, - `Group:` + fmt.Sprintf("%v", this.Group) + `,`, - `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceCIDR) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceCIDR{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ServiceCIDRSpec", "ServiceCIDRSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ServiceCIDRStatus", "ServiceCIDRStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceCIDRList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ServiceCIDR{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ServiceCIDR", "ServiceCIDR", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ServiceCIDRList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ServiceCIDRSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceCIDRSpec{`, - `CIDRs:` + fmt.Sprintf("%v", this.CIDRs) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceCIDRStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]Condition{" - for _, f := range this.Conditions { - repeatedStringForConditions += fmt.Sprintf("%v", f) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&ServiceCIDRStatus{`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *IPAddress) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IPAddress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IPAddress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IPAddressList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IPAddressList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IPAddressList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, IPAddress{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IPAddressSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IPAddressSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IPAddressSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ParentRef == nil { - m.ParentRef = &ParentReference{} - } - if err := m.ParentRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ParentReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ParentReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ParentReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceCIDR) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceCIDR: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceCIDR: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceCIDRList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceCIDRList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceCIDRList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ServiceCIDR{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceCIDRSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceCIDRSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceCIDRSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CIDRs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CIDRs = append(m.CIDRs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceCIDRStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceCIDRStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceCIDRStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, v1.Condition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenerated - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") -) diff --git a/vendor/k8s.io/api/networking/v1alpha1/generated.proto b/vendor/k8s.io/api/networking/v1alpha1/generated.proto deleted file mode 100644 index 80ec6af735..0000000000 --- a/vendor/k8s.io/api/networking/v1alpha1/generated.proto +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - - -// This file was autogenerated by go-to-protobuf. Do not edit it manually! - -syntax = "proto2"; - -package k8s.io.api.networking.v1alpha1; - -import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "k8s.io/apimachinery/pkg/runtime/generated.proto"; -import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "k8s.io/api/networking/v1alpha1"; - -// IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs -// that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. -// An IP address can be represented in different formats, to guarantee the uniqueness of the IP, -// the name of the object is the IP address in canonical format, four decimal digits separated -// by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. -// Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 -// Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 -message IPAddress { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // spec is the desired state of the IPAddress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional IPAddressSpec spec = 2; -} - -// IPAddressList contains a list of IPAddress. -message IPAddressList { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of IPAddresses. - repeated IPAddress items = 2; -} - -// IPAddressSpec describe the attributes in an IP Address. -message IPAddressSpec { - // ParentRef references the resource that an IPAddress is attached to. - // An IPAddress must reference a parent object. - // +required - optional ParentReference parentRef = 1; -} - -// ParentReference describes a reference to a parent object. -message ParentReference { - // Group is the group of the object being referenced. - // +optional - optional string group = 1; - - // Resource is the resource of the object being referenced. - // +required - optional string resource = 2; - - // Namespace is the namespace of the object being referenced. - // +optional - optional string namespace = 3; - - // Name is the name of the object being referenced. - // +required - optional string name = 4; -} - -// ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). -// This range is used to allocate ClusterIPs to Service objects. -message ServiceCIDR { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // spec is the desired state of the ServiceCIDR. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ServiceCIDRSpec spec = 2; - - // status represents the current state of the ServiceCIDR. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ServiceCIDRStatus status = 3; -} - -// ServiceCIDRList contains a list of ServiceCIDR objects. -message ServiceCIDRList { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of ServiceCIDRs. - repeated ServiceCIDR items = 2; -} - -// ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. -message ServiceCIDRSpec { - // CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64") - // from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. - // The network address of each CIDR, the address that identifies the subnet of a host, is reserved - // and will not be allocated. The broadcast address for IPv4 CIDRs is also reserved and will not be - // allocated. - // This field is immutable. - // +optional - // +listType=atomic - repeated string cidrs = 1; -} - -// ServiceCIDRStatus describes the current state of the ServiceCIDR. -message ServiceCIDRStatus { - // conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. - // Current service state - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=map - // +listMapKey=type - repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; -} - diff --git a/vendor/k8s.io/api/networking/v1alpha1/types.go b/vendor/k8s.io/api/networking/v1alpha1/types.go deleted file mode 100644 index 0e454f0263..0000000000 --- a/vendor/k8s.io/api/networking/v1alpha1/types.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +k8s:prerelease-lifecycle-gen:introduced=1.27 - -// IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs -// that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. -// An IP address can be represented in different formats, to guarantee the uniqueness of the IP, -// the name of the object is the IP address in canonical format, four decimal digits separated -// by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. -// Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 -// Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 -type IPAddress struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // spec is the desired state of the IPAddress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec IPAddressSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// IPAddressSpec describe the attributes in an IP Address. -type IPAddressSpec struct { - // ParentRef references the resource that an IPAddress is attached to. - // An IPAddress must reference a parent object. - // +required - ParentRef *ParentReference `json:"parentRef,omitempty" protobuf:"bytes,1,opt,name=parentRef"` -} - -// ParentReference describes a reference to a parent object. -type ParentReference struct { - // Group is the group of the object being referenced. - // +optional - Group string `json:"group,omitempty" protobuf:"bytes,1,opt,name=group"` - // Resource is the resource of the object being referenced. - // +required - Resource string `json:"resource,omitempty" protobuf:"bytes,2,opt,name=resource"` - // Namespace is the namespace of the object being referenced. - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"` - // Name is the name of the object being referenced. - // +required - Name string `json:"name,omitempty" protobuf:"bytes,4,opt,name=name"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +k8s:prerelease-lifecycle-gen:introduced=1.27 - -// IPAddressList contains a list of IPAddress. -type IPAddressList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // items is the list of IPAddresses. - Items []IPAddress `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +k8s:prerelease-lifecycle-gen:introduced=1.27 - -// ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). -// This range is used to allocate ClusterIPs to Service objects. -type ServiceCIDR struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // spec is the desired state of the ServiceCIDR. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec ServiceCIDRSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - // status represents the current state of the ServiceCIDR. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status ServiceCIDRStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. -type ServiceCIDRSpec struct { - // CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64") - // from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. - // The network address of each CIDR, the address that identifies the subnet of a host, is reserved - // and will not be allocated. The broadcast address for IPv4 CIDRs is also reserved and will not be - // allocated. - // This field is immutable. - // +optional - // +listType=atomic - CIDRs []string `json:"cidrs,omitempty" protobuf:"bytes,1,opt,name=cidrs"` -} - -const ( - // ServiceCIDRConditionReady represents status of a ServiceCIDR that is ready to be used by the - // apiserver to allocate ClusterIPs for Services. - ServiceCIDRConditionReady = "Ready" - // ServiceCIDRReasonTerminating represents a reason where a ServiceCIDR is not ready because it is - // being deleted. - ServiceCIDRReasonTerminating = "Terminating" -) - -// ServiceCIDRStatus describes the current state of the ServiceCIDR. -type ServiceCIDRStatus struct { - // conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. - // Current service state - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=map - // +listMapKey=type - Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +k8s:prerelease-lifecycle-gen:introduced=1.27 - -// ServiceCIDRList contains a list of ServiceCIDR objects. -type ServiceCIDRList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // items is the list of ServiceCIDRs. - Items []ServiceCIDR `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/vendor/k8s.io/api/networking/v1alpha1/types_swagger_doc_generated.go b/vendor/k8s.io/api/networking/v1alpha1/types_swagger_doc_generated.go deleted file mode 100644 index 4c8eb57a7a..0000000000 --- a/vendor/k8s.io/api/networking/v1alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -// This file contains a collection of methods that can be used from go-restful to -// generate Swagger API documentation for its models. Please read this PR for more -// information on the implementation: https://github.com/emicklei/go-restful/pull/215 -// -// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if -// they are on one line! For multiple line or blocks that you want to ignore use ---. -// Any context after a --- is ignored. -// -// Those methods can be generated by using hack/update-codegen.sh - -// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT. -var map_IPAddress = map[string]string{ - "": "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (IPAddress) SwaggerDoc() map[string]string { - return map_IPAddress -} - -var map_IPAddressList = map[string]string{ - "": "IPAddressList contains a list of IPAddress.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is the list of IPAddresses.", -} - -func (IPAddressList) SwaggerDoc() map[string]string { - return map_IPAddressList -} - -var map_IPAddressSpec = map[string]string{ - "": "IPAddressSpec describe the attributes in an IP Address.", - "parentRef": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.", -} - -func (IPAddressSpec) SwaggerDoc() map[string]string { - return map_IPAddressSpec -} - -var map_ParentReference = map[string]string{ - "": "ParentReference describes a reference to a parent object.", - "group": "Group is the group of the object being referenced.", - "resource": "Resource is the resource of the object being referenced.", - "namespace": "Namespace is the namespace of the object being referenced.", - "name": "Name is the name of the object being referenced.", -} - -func (ParentReference) SwaggerDoc() map[string]string { - return map_ParentReference -} - -var map_ServiceCIDR = map[string]string{ - "": "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (ServiceCIDR) SwaggerDoc() map[string]string { - return map_ServiceCIDR -} - -var map_ServiceCIDRList = map[string]string{ - "": "ServiceCIDRList contains a list of ServiceCIDR objects.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is the list of ServiceCIDRs.", -} - -func (ServiceCIDRList) SwaggerDoc() map[string]string { - return map_ServiceCIDRList -} - -var map_ServiceCIDRSpec = map[string]string{ - "": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", - "cidrs": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. The network address of each CIDR, the address that identifies the subnet of a host, is reserved and will not be allocated. The broadcast address for IPv4 CIDRs is also reserved and will not be allocated. This field is immutable.", -} - -func (ServiceCIDRSpec) SwaggerDoc() map[string]string { - return map_ServiceCIDRSpec -} - -var map_ServiceCIDRStatus = map[string]string{ - "": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", - "conditions": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", -} - -func (ServiceCIDRStatus) SwaggerDoc() map[string]string { - return map_ServiceCIDRStatus -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/vendor/k8s.io/api/networking/v1alpha1/well_known_labels.go b/vendor/k8s.io/api/networking/v1alpha1/well_known_labels.go deleted file mode 100644 index 5f9c23f708..0000000000 --- a/vendor/k8s.io/api/networking/v1alpha1/well_known_labels.go +++ /dev/null @@ -1,33 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -const ( - - // TODO: Use IPFamily as field with a field selector,And the value is set based on - // the name at create time and immutable. - // LabelIPAddressFamily is used to indicate the IP family of a Kubernetes IPAddress. - // This label simplify dual-stack client operations allowing to obtain the list of - // IP addresses filtered by family. - LabelIPAddressFamily = "ipaddress.kubernetes.io/ip-family" - // LabelManagedBy is used to indicate the controller or entity that manages - // an IPAddress. This label aims to enable different IPAddress - // objects to be managed by different controllers or entities within the - // same cluster. It is highly recommended to configure this label for all - // IPAddress objects. - LabelManagedBy = "ipaddress.kubernetes.io/managed-by" -) diff --git a/vendor/k8s.io/api/networking/v1alpha1/zz_generated.deepcopy.go b/vendor/k8s.io/api/networking/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 5c8f697ba3..0000000000 --- a/vendor/k8s.io/api/networking/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,229 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPAddress) DeepCopyInto(out *IPAddress) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddress. -func (in *IPAddress) DeepCopy() *IPAddress { - if in == nil { - return nil - } - out := new(IPAddress) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IPAddress) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPAddressList) DeepCopyInto(out *IPAddressList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]IPAddress, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressList. -func (in *IPAddressList) DeepCopy() *IPAddressList { - if in == nil { - return nil - } - out := new(IPAddressList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IPAddressList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPAddressSpec) DeepCopyInto(out *IPAddressSpec) { - *out = *in - if in.ParentRef != nil { - in, out := &in.ParentRef, &out.ParentRef - *out = new(ParentReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressSpec. -func (in *IPAddressSpec) DeepCopy() *IPAddressSpec { - if in == nil { - return nil - } - out := new(IPAddressSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ParentReference) DeepCopyInto(out *ParentReference) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParentReference. -func (in *ParentReference) DeepCopy() *ParentReference { - if in == nil { - return nil - } - out := new(ParentReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceCIDR) DeepCopyInto(out *ServiceCIDR) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDR. -func (in *ServiceCIDR) DeepCopy() *ServiceCIDR { - if in == nil { - return nil - } - out := new(ServiceCIDR) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ServiceCIDR) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceCIDRList) DeepCopyInto(out *ServiceCIDRList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ServiceCIDR, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRList. -func (in *ServiceCIDRList) DeepCopy() *ServiceCIDRList { - if in == nil { - return nil - } - out := new(ServiceCIDRList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ServiceCIDRList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceCIDRSpec) DeepCopyInto(out *ServiceCIDRSpec) { - *out = *in - if in.CIDRs != nil { - in, out := &in.CIDRs, &out.CIDRs - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRSpec. -func (in *ServiceCIDRSpec) DeepCopy() *ServiceCIDRSpec { - if in == nil { - return nil - } - out := new(ServiceCIDRSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceCIDRStatus) DeepCopyInto(out *ServiceCIDRStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRStatus. -func (in *ServiceCIDRStatus) DeepCopy() *ServiceCIDRStatus { - if in == nil { - return nil - } - out := new(ServiceCIDRStatus) - in.DeepCopyInto(out) - return out -} diff --git a/vendor/k8s.io/api/networking/v1alpha1/zz_generated.prerelease-lifecycle.go b/vendor/k8s.io/api/networking/v1alpha1/zz_generated.prerelease-lifecycle.go deleted file mode 100644 index 714e7b6253..0000000000 --- a/vendor/k8s.io/api/networking/v1alpha1/zz_generated.prerelease-lifecycle.go +++ /dev/null @@ -1,94 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by prerelease-lifecycle-gen. DO NOT EDIT. - -package v1alpha1 - -// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. -func (in *IPAddress) APILifecycleIntroduced() (major, minor int) { - return 1, 27 -} - -// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. -func (in *IPAddress) APILifecycleDeprecated() (major, minor int) { - return 1, 30 -} - -// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. -func (in *IPAddress) APILifecycleRemoved() (major, minor int) { - return 1, 33 -} - -// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. -func (in *IPAddressList) APILifecycleIntroduced() (major, minor int) { - return 1, 27 -} - -// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. -func (in *IPAddressList) APILifecycleDeprecated() (major, minor int) { - return 1, 30 -} - -// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. -func (in *IPAddressList) APILifecycleRemoved() (major, minor int) { - return 1, 33 -} - -// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. -func (in *ServiceCIDR) APILifecycleIntroduced() (major, minor int) { - return 1, 27 -} - -// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. -func (in *ServiceCIDR) APILifecycleDeprecated() (major, minor int) { - return 1, 30 -} - -// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. -func (in *ServiceCIDR) APILifecycleRemoved() (major, minor int) { - return 1, 33 -} - -// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go. -func (in *ServiceCIDRList) APILifecycleIntroduced() (major, minor int) { - return 1, 27 -} - -// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor. -func (in *ServiceCIDRList) APILifecycleDeprecated() (major, minor int) { - return 1, 30 -} - -// APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. -// It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. -func (in *ServiceCIDRList) APILifecycleRemoved() (major, minor int) { - return 1, 33 -} diff --git a/vendor/k8s.io/api/resource/v1/devicetaint.go b/vendor/k8s.io/api/resource/v1/devicetaint.go new file mode 100644 index 0000000000..a5c2e20a6e --- /dev/null +++ b/vendor/k8s.io/api/resource/v1/devicetaint.go @@ -0,0 +1,35 @@ +/* +Copyright 2025 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import "fmt" + +var _ fmt.Stringer = DeviceTaint{} + +// String converts to a string in the format '=:', '=:', ':', or ''. +func (t DeviceTaint) String() string { + if len(t.Effect) == 0 { + if len(t.Value) == 0 { + return fmt.Sprintf("%v", t.Key) + } + return fmt.Sprintf("%v=%v:", t.Key, t.Value) + } + if len(t.Value) == 0 { + return fmt.Sprintf("%v:%v", t.Key, t.Effect) + } + return fmt.Sprintf("%v=%v:%v", t.Key, t.Value, t.Effect) +} diff --git a/vendor/k8s.io/api/networking/v1alpha1/doc.go b/vendor/k8s.io/api/resource/v1/doc.go similarity index 83% rename from vendor/k8s.io/api/networking/v1alpha1/doc.go rename to vendor/k8s.io/api/resource/v1/doc.go index 55264ae707..c94ca75ddc 100644 --- a/vendor/k8s.io/api/networking/v1alpha1/doc.go +++ b/vendor/k8s.io/api/resource/v1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2022 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,10 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. */ +// +k8s:openapi-gen=true // +k8s:deepcopy-gen=package // +k8s:protobuf-gen=package -// +k8s:openapi-gen=true // +k8s:prerelease-lifecycle-gen=true -// +groupName=networking.k8s.io +// +groupName=resource.k8s.io -package v1alpha1 +// Package v1 is the v1 version of the resource API. +package v1 diff --git a/vendor/k8s.io/api/resource/v1/generated.pb.go b/vendor/k8s.io/api/resource/v1/generated.pb.go new file mode 100644 index 0000000000..5695e2c7e0 --- /dev/null +++ b/vendor/k8s.io/api/resource/v1/generated.pb.go @@ -0,0 +1,12777 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: k8s.io/api/resource/v1/generated.proto + +package v1 + +import ( + fmt "fmt" + + io "io" + + proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + v11 "k8s.io/api/core/v1" + resource "k8s.io/apimachinery/pkg/api/resource" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + + math "math" + math_bits "math/bits" + reflect "reflect" + strings "strings" + + k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +func (m *AllocatedDeviceStatus) Reset() { *m = AllocatedDeviceStatus{} } +func (*AllocatedDeviceStatus) ProtoMessage() {} +func (*AllocatedDeviceStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{0} +} +func (m *AllocatedDeviceStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AllocatedDeviceStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *AllocatedDeviceStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllocatedDeviceStatus.Merge(m, src) +} +func (m *AllocatedDeviceStatus) XXX_Size() int { + return m.Size() +} +func (m *AllocatedDeviceStatus) XXX_DiscardUnknown() { + xxx_messageInfo_AllocatedDeviceStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_AllocatedDeviceStatus proto.InternalMessageInfo + +func (m *AllocationResult) Reset() { *m = AllocationResult{} } +func (*AllocationResult) ProtoMessage() {} +func (*AllocationResult) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{1} +} +func (m *AllocationResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AllocationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *AllocationResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllocationResult.Merge(m, src) +} +func (m *AllocationResult) XXX_Size() int { + return m.Size() +} +func (m *AllocationResult) XXX_DiscardUnknown() { + xxx_messageInfo_AllocationResult.DiscardUnknown(m) +} + +var xxx_messageInfo_AllocationResult proto.InternalMessageInfo + +func (m *CELDeviceSelector) Reset() { *m = CELDeviceSelector{} } +func (*CELDeviceSelector) ProtoMessage() {} +func (*CELDeviceSelector) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{2} +} +func (m *CELDeviceSelector) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CELDeviceSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *CELDeviceSelector) XXX_Merge(src proto.Message) { + xxx_messageInfo_CELDeviceSelector.Merge(m, src) +} +func (m *CELDeviceSelector) XXX_Size() int { + return m.Size() +} +func (m *CELDeviceSelector) XXX_DiscardUnknown() { + xxx_messageInfo_CELDeviceSelector.DiscardUnknown(m) +} + +var xxx_messageInfo_CELDeviceSelector proto.InternalMessageInfo + +func (m *CapacityRequestPolicy) Reset() { *m = CapacityRequestPolicy{} } +func (*CapacityRequestPolicy) ProtoMessage() {} +func (*CapacityRequestPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{3} +} +func (m *CapacityRequestPolicy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CapacityRequestPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *CapacityRequestPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_CapacityRequestPolicy.Merge(m, src) +} +func (m *CapacityRequestPolicy) XXX_Size() int { + return m.Size() +} +func (m *CapacityRequestPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_CapacityRequestPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_CapacityRequestPolicy proto.InternalMessageInfo + +func (m *CapacityRequestPolicyRange) Reset() { *m = CapacityRequestPolicyRange{} } +func (*CapacityRequestPolicyRange) ProtoMessage() {} +func (*CapacityRequestPolicyRange) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{4} +} +func (m *CapacityRequestPolicyRange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CapacityRequestPolicyRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *CapacityRequestPolicyRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_CapacityRequestPolicyRange.Merge(m, src) +} +func (m *CapacityRequestPolicyRange) XXX_Size() int { + return m.Size() +} +func (m *CapacityRequestPolicyRange) XXX_DiscardUnknown() { + xxx_messageInfo_CapacityRequestPolicyRange.DiscardUnknown(m) +} + +var xxx_messageInfo_CapacityRequestPolicyRange proto.InternalMessageInfo + +func (m *CapacityRequirements) Reset() { *m = CapacityRequirements{} } +func (*CapacityRequirements) ProtoMessage() {} +func (*CapacityRequirements) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{5} +} +func (m *CapacityRequirements) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CapacityRequirements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *CapacityRequirements) XXX_Merge(src proto.Message) { + xxx_messageInfo_CapacityRequirements.Merge(m, src) +} +func (m *CapacityRequirements) XXX_Size() int { + return m.Size() +} +func (m *CapacityRequirements) XXX_DiscardUnknown() { + xxx_messageInfo_CapacityRequirements.DiscardUnknown(m) +} + +var xxx_messageInfo_CapacityRequirements proto.InternalMessageInfo + +func (m *Counter) Reset() { *m = Counter{} } +func (*Counter) ProtoMessage() {} +func (*Counter) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{6} +} +func (m *Counter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Counter) XXX_Merge(src proto.Message) { + xxx_messageInfo_Counter.Merge(m, src) +} +func (m *Counter) XXX_Size() int { + return m.Size() +} +func (m *Counter) XXX_DiscardUnknown() { + xxx_messageInfo_Counter.DiscardUnknown(m) +} + +var xxx_messageInfo_Counter proto.InternalMessageInfo + +func (m *CounterSet) Reset() { *m = CounterSet{} } +func (*CounterSet) ProtoMessage() {} +func (*CounterSet) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{7} +} +func (m *CounterSet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CounterSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *CounterSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_CounterSet.Merge(m, src) +} +func (m *CounterSet) XXX_Size() int { + return m.Size() +} +func (m *CounterSet) XXX_DiscardUnknown() { + xxx_messageInfo_CounterSet.DiscardUnknown(m) +} + +var xxx_messageInfo_CounterSet proto.InternalMessageInfo + +func (m *Device) Reset() { *m = Device{} } +func (*Device) ProtoMessage() {} +func (*Device) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{8} +} +func (m *Device) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Device) XXX_Merge(src proto.Message) { + xxx_messageInfo_Device.Merge(m, src) +} +func (m *Device) XXX_Size() int { + return m.Size() +} +func (m *Device) XXX_DiscardUnknown() { + xxx_messageInfo_Device.DiscardUnknown(m) +} + +var xxx_messageInfo_Device proto.InternalMessageInfo + +func (m *DeviceAllocationConfiguration) Reset() { *m = DeviceAllocationConfiguration{} } +func (*DeviceAllocationConfiguration) ProtoMessage() {} +func (*DeviceAllocationConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{9} +} +func (m *DeviceAllocationConfiguration) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceAllocationConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceAllocationConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceAllocationConfiguration.Merge(m, src) +} +func (m *DeviceAllocationConfiguration) XXX_Size() int { + return m.Size() +} +func (m *DeviceAllocationConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceAllocationConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceAllocationConfiguration proto.InternalMessageInfo + +func (m *DeviceAllocationResult) Reset() { *m = DeviceAllocationResult{} } +func (*DeviceAllocationResult) ProtoMessage() {} +func (*DeviceAllocationResult) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{10} +} +func (m *DeviceAllocationResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceAllocationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceAllocationResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceAllocationResult.Merge(m, src) +} +func (m *DeviceAllocationResult) XXX_Size() int { + return m.Size() +} +func (m *DeviceAllocationResult) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceAllocationResult.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceAllocationResult proto.InternalMessageInfo + +func (m *DeviceAttribute) Reset() { *m = DeviceAttribute{} } +func (*DeviceAttribute) ProtoMessage() {} +func (*DeviceAttribute) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{11} +} +func (m *DeviceAttribute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceAttribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceAttribute.Merge(m, src) +} +func (m *DeviceAttribute) XXX_Size() int { + return m.Size() +} +func (m *DeviceAttribute) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceAttribute.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceAttribute proto.InternalMessageInfo + +func (m *DeviceCapacity) Reset() { *m = DeviceCapacity{} } +func (*DeviceCapacity) ProtoMessage() {} +func (*DeviceCapacity) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{12} +} +func (m *DeviceCapacity) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceCapacity) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceCapacity.Merge(m, src) +} +func (m *DeviceCapacity) XXX_Size() int { + return m.Size() +} +func (m *DeviceCapacity) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceCapacity.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceCapacity proto.InternalMessageInfo + +func (m *DeviceClaim) Reset() { *m = DeviceClaim{} } +func (*DeviceClaim) ProtoMessage() {} +func (*DeviceClaim) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{13} +} +func (m *DeviceClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceClaim.Merge(m, src) +} +func (m *DeviceClaim) XXX_Size() int { + return m.Size() +} +func (m *DeviceClaim) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceClaim proto.InternalMessageInfo + +func (m *DeviceClaimConfiguration) Reset() { *m = DeviceClaimConfiguration{} } +func (*DeviceClaimConfiguration) ProtoMessage() {} +func (*DeviceClaimConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{14} +} +func (m *DeviceClaimConfiguration) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceClaimConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceClaimConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceClaimConfiguration.Merge(m, src) +} +func (m *DeviceClaimConfiguration) XXX_Size() int { + return m.Size() +} +func (m *DeviceClaimConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceClaimConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceClaimConfiguration proto.InternalMessageInfo + +func (m *DeviceClass) Reset() { *m = DeviceClass{} } +func (*DeviceClass) ProtoMessage() {} +func (*DeviceClass) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{15} +} +func (m *DeviceClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceClass.Merge(m, src) +} +func (m *DeviceClass) XXX_Size() int { + return m.Size() +} +func (m *DeviceClass) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceClass.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceClass proto.InternalMessageInfo + +func (m *DeviceClassConfiguration) Reset() { *m = DeviceClassConfiguration{} } +func (*DeviceClassConfiguration) ProtoMessage() {} +func (*DeviceClassConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{16} +} +func (m *DeviceClassConfiguration) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceClassConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceClassConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceClassConfiguration.Merge(m, src) +} +func (m *DeviceClassConfiguration) XXX_Size() int { + return m.Size() +} +func (m *DeviceClassConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceClassConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceClassConfiguration proto.InternalMessageInfo + +func (m *DeviceClassList) Reset() { *m = DeviceClassList{} } +func (*DeviceClassList) ProtoMessage() {} +func (*DeviceClassList) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{17} +} +func (m *DeviceClassList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceClassList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceClassList.Merge(m, src) +} +func (m *DeviceClassList) XXX_Size() int { + return m.Size() +} +func (m *DeviceClassList) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceClassList.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceClassList proto.InternalMessageInfo + +func (m *DeviceClassSpec) Reset() { *m = DeviceClassSpec{} } +func (*DeviceClassSpec) ProtoMessage() {} +func (*DeviceClassSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{18} +} +func (m *DeviceClassSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceClassSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceClassSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceClassSpec.Merge(m, src) +} +func (m *DeviceClassSpec) XXX_Size() int { + return m.Size() +} +func (m *DeviceClassSpec) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceClassSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceClassSpec proto.InternalMessageInfo + +func (m *DeviceConfiguration) Reset() { *m = DeviceConfiguration{} } +func (*DeviceConfiguration) ProtoMessage() {} +func (*DeviceConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{19} +} +func (m *DeviceConfiguration) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceConfiguration.Merge(m, src) +} +func (m *DeviceConfiguration) XXX_Size() int { + return m.Size() +} +func (m *DeviceConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceConfiguration proto.InternalMessageInfo + +func (m *DeviceConstraint) Reset() { *m = DeviceConstraint{} } +func (*DeviceConstraint) ProtoMessage() {} +func (*DeviceConstraint) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{20} +} +func (m *DeviceConstraint) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceConstraint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceConstraint) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceConstraint.Merge(m, src) +} +func (m *DeviceConstraint) XXX_Size() int { + return m.Size() +} +func (m *DeviceConstraint) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceConstraint.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceConstraint proto.InternalMessageInfo + +func (m *DeviceCounterConsumption) Reset() { *m = DeviceCounterConsumption{} } +func (*DeviceCounterConsumption) ProtoMessage() {} +func (*DeviceCounterConsumption) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{21} +} +func (m *DeviceCounterConsumption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceCounterConsumption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceCounterConsumption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceCounterConsumption.Merge(m, src) +} +func (m *DeviceCounterConsumption) XXX_Size() int { + return m.Size() +} +func (m *DeviceCounterConsumption) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceCounterConsumption.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceCounterConsumption proto.InternalMessageInfo + +func (m *DeviceRequest) Reset() { *m = DeviceRequest{} } +func (*DeviceRequest) ProtoMessage() {} +func (*DeviceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{22} +} +func (m *DeviceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceRequest.Merge(m, src) +} +func (m *DeviceRequest) XXX_Size() int { + return m.Size() +} +func (m *DeviceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceRequest proto.InternalMessageInfo + +func (m *DeviceRequestAllocationResult) Reset() { *m = DeviceRequestAllocationResult{} } +func (*DeviceRequestAllocationResult) ProtoMessage() {} +func (*DeviceRequestAllocationResult) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{23} +} +func (m *DeviceRequestAllocationResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceRequestAllocationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceRequestAllocationResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceRequestAllocationResult.Merge(m, src) +} +func (m *DeviceRequestAllocationResult) XXX_Size() int { + return m.Size() +} +func (m *DeviceRequestAllocationResult) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceRequestAllocationResult.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceRequestAllocationResult proto.InternalMessageInfo + +func (m *DeviceSelector) Reset() { *m = DeviceSelector{} } +func (*DeviceSelector) ProtoMessage() {} +func (*DeviceSelector) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{24} +} +func (m *DeviceSelector) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceSelector) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceSelector.Merge(m, src) +} +func (m *DeviceSelector) XXX_Size() int { + return m.Size() +} +func (m *DeviceSelector) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceSelector.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceSelector proto.InternalMessageInfo + +func (m *DeviceSubRequest) Reset() { *m = DeviceSubRequest{} } +func (*DeviceSubRequest) ProtoMessage() {} +func (*DeviceSubRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{25} +} +func (m *DeviceSubRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceSubRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceSubRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceSubRequest.Merge(m, src) +} +func (m *DeviceSubRequest) XXX_Size() int { + return m.Size() +} +func (m *DeviceSubRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceSubRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceSubRequest proto.InternalMessageInfo + +func (m *DeviceTaint) Reset() { *m = DeviceTaint{} } +func (*DeviceTaint) ProtoMessage() {} +func (*DeviceTaint) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{26} +} +func (m *DeviceTaint) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceTaint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceTaint) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceTaint.Merge(m, src) +} +func (m *DeviceTaint) XXX_Size() int { + return m.Size() +} +func (m *DeviceTaint) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceTaint.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceTaint proto.InternalMessageInfo + +func (m *DeviceToleration) Reset() { *m = DeviceToleration{} } +func (*DeviceToleration) ProtoMessage() {} +func (*DeviceToleration) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{27} +} +func (m *DeviceToleration) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeviceToleration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DeviceToleration) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeviceToleration.Merge(m, src) +} +func (m *DeviceToleration) XXX_Size() int { + return m.Size() +} +func (m *DeviceToleration) XXX_DiscardUnknown() { + xxx_messageInfo_DeviceToleration.DiscardUnknown(m) +} + +var xxx_messageInfo_DeviceToleration proto.InternalMessageInfo + +func (m *ExactDeviceRequest) Reset() { *m = ExactDeviceRequest{} } +func (*ExactDeviceRequest) ProtoMessage() {} +func (*ExactDeviceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{28} +} +func (m *ExactDeviceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExactDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ExactDeviceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExactDeviceRequest.Merge(m, src) +} +func (m *ExactDeviceRequest) XXX_Size() int { + return m.Size() +} +func (m *ExactDeviceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExactDeviceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExactDeviceRequest proto.InternalMessageInfo + +func (m *NetworkDeviceData) Reset() { *m = NetworkDeviceData{} } +func (*NetworkDeviceData) ProtoMessage() {} +func (*NetworkDeviceData) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{29} +} +func (m *NetworkDeviceData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkDeviceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkDeviceData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkDeviceData.Merge(m, src) +} +func (m *NetworkDeviceData) XXX_Size() int { + return m.Size() +} +func (m *NetworkDeviceData) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkDeviceData.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkDeviceData proto.InternalMessageInfo + +func (m *OpaqueDeviceConfiguration) Reset() { *m = OpaqueDeviceConfiguration{} } +func (*OpaqueDeviceConfiguration) ProtoMessage() {} +func (*OpaqueDeviceConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{30} +} +func (m *OpaqueDeviceConfiguration) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpaqueDeviceConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *OpaqueDeviceConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpaqueDeviceConfiguration.Merge(m, src) +} +func (m *OpaqueDeviceConfiguration) XXX_Size() int { + return m.Size() +} +func (m *OpaqueDeviceConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_OpaqueDeviceConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_OpaqueDeviceConfiguration proto.InternalMessageInfo + +func (m *ResourceClaim) Reset() { *m = ResourceClaim{} } +func (*ResourceClaim) ProtoMessage() {} +func (*ResourceClaim) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{31} +} +func (m *ResourceClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceClaim.Merge(m, src) +} +func (m *ResourceClaim) XXX_Size() int { + return m.Size() +} +func (m *ResourceClaim) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceClaim proto.InternalMessageInfo + +func (m *ResourceClaimConsumerReference) Reset() { *m = ResourceClaimConsumerReference{} } +func (*ResourceClaimConsumerReference) ProtoMessage() {} +func (*ResourceClaimConsumerReference) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{32} +} +func (m *ResourceClaimConsumerReference) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceClaimConsumerReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceClaimConsumerReference) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceClaimConsumerReference.Merge(m, src) +} +func (m *ResourceClaimConsumerReference) XXX_Size() int { + return m.Size() +} +func (m *ResourceClaimConsumerReference) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceClaimConsumerReference.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceClaimConsumerReference proto.InternalMessageInfo + +func (m *ResourceClaimList) Reset() { *m = ResourceClaimList{} } +func (*ResourceClaimList) ProtoMessage() {} +func (*ResourceClaimList) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{33} +} +func (m *ResourceClaimList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceClaimList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceClaimList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceClaimList.Merge(m, src) +} +func (m *ResourceClaimList) XXX_Size() int { + return m.Size() +} +func (m *ResourceClaimList) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceClaimList.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceClaimList proto.InternalMessageInfo + +func (m *ResourceClaimSpec) Reset() { *m = ResourceClaimSpec{} } +func (*ResourceClaimSpec) ProtoMessage() {} +func (*ResourceClaimSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{34} +} +func (m *ResourceClaimSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceClaimSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceClaimSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceClaimSpec.Merge(m, src) +} +func (m *ResourceClaimSpec) XXX_Size() int { + return m.Size() +} +func (m *ResourceClaimSpec) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceClaimSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceClaimSpec proto.InternalMessageInfo + +func (m *ResourceClaimStatus) Reset() { *m = ResourceClaimStatus{} } +func (*ResourceClaimStatus) ProtoMessage() {} +func (*ResourceClaimStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{35} +} +func (m *ResourceClaimStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceClaimStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceClaimStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceClaimStatus.Merge(m, src) +} +func (m *ResourceClaimStatus) XXX_Size() int { + return m.Size() +} +func (m *ResourceClaimStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceClaimStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceClaimStatus proto.InternalMessageInfo + +func (m *ResourceClaimTemplate) Reset() { *m = ResourceClaimTemplate{} } +func (*ResourceClaimTemplate) ProtoMessage() {} +func (*ResourceClaimTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{36} +} +func (m *ResourceClaimTemplate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceClaimTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceClaimTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceClaimTemplate.Merge(m, src) +} +func (m *ResourceClaimTemplate) XXX_Size() int { + return m.Size() +} +func (m *ResourceClaimTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceClaimTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceClaimTemplate proto.InternalMessageInfo + +func (m *ResourceClaimTemplateList) Reset() { *m = ResourceClaimTemplateList{} } +func (*ResourceClaimTemplateList) ProtoMessage() {} +func (*ResourceClaimTemplateList) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{37} +} +func (m *ResourceClaimTemplateList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceClaimTemplateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceClaimTemplateList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceClaimTemplateList.Merge(m, src) +} +func (m *ResourceClaimTemplateList) XXX_Size() int { + return m.Size() +} +func (m *ResourceClaimTemplateList) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceClaimTemplateList.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceClaimTemplateList proto.InternalMessageInfo + +func (m *ResourceClaimTemplateSpec) Reset() { *m = ResourceClaimTemplateSpec{} } +func (*ResourceClaimTemplateSpec) ProtoMessage() {} +func (*ResourceClaimTemplateSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{38} +} +func (m *ResourceClaimTemplateSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceClaimTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceClaimTemplateSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceClaimTemplateSpec.Merge(m, src) +} +func (m *ResourceClaimTemplateSpec) XXX_Size() int { + return m.Size() +} +func (m *ResourceClaimTemplateSpec) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceClaimTemplateSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceClaimTemplateSpec proto.InternalMessageInfo + +func (m *ResourcePool) Reset() { *m = ResourcePool{} } +func (*ResourcePool) ProtoMessage() {} +func (*ResourcePool) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{39} +} +func (m *ResourcePool) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourcePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourcePool) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourcePool.Merge(m, src) +} +func (m *ResourcePool) XXX_Size() int { + return m.Size() +} +func (m *ResourcePool) XXX_DiscardUnknown() { + xxx_messageInfo_ResourcePool.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourcePool proto.InternalMessageInfo + +func (m *ResourceSlice) Reset() { *m = ResourceSlice{} } +func (*ResourceSlice) ProtoMessage() {} +func (*ResourceSlice) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{40} +} +func (m *ResourceSlice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceSlice) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceSlice.Merge(m, src) +} +func (m *ResourceSlice) XXX_Size() int { + return m.Size() +} +func (m *ResourceSlice) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceSlice.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceSlice proto.InternalMessageInfo + +func (m *ResourceSliceList) Reset() { *m = ResourceSliceList{} } +func (*ResourceSliceList) ProtoMessage() {} +func (*ResourceSliceList) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{41} +} +func (m *ResourceSliceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceSliceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceSliceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceSliceList.Merge(m, src) +} +func (m *ResourceSliceList) XXX_Size() int { + return m.Size() +} +func (m *ResourceSliceList) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceSliceList.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceSliceList proto.InternalMessageInfo + +func (m *ResourceSliceSpec) Reset() { *m = ResourceSliceSpec{} } +func (*ResourceSliceSpec) ProtoMessage() {} +func (*ResourceSliceSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_f4fc532aec02d243, []int{42} +} +func (m *ResourceSliceSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceSliceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceSliceSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceSliceSpec.Merge(m, src) +} +func (m *ResourceSliceSpec) XXX_Size() int { + return m.Size() +} +func (m *ResourceSliceSpec) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceSliceSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceSliceSpec proto.InternalMessageInfo + +func init() { + proto.RegisterType((*AllocatedDeviceStatus)(nil), "k8s.io.api.resource.v1.AllocatedDeviceStatus") + proto.RegisterType((*AllocationResult)(nil), "k8s.io.api.resource.v1.AllocationResult") + proto.RegisterType((*CELDeviceSelector)(nil), "k8s.io.api.resource.v1.CELDeviceSelector") + proto.RegisterType((*CapacityRequestPolicy)(nil), "k8s.io.api.resource.v1.CapacityRequestPolicy") + proto.RegisterType((*CapacityRequestPolicyRange)(nil), "k8s.io.api.resource.v1.CapacityRequestPolicyRange") + proto.RegisterType((*CapacityRequirements)(nil), "k8s.io.api.resource.v1.CapacityRequirements") + proto.RegisterMapType((map[QualifiedName]resource.Quantity)(nil), "k8s.io.api.resource.v1.CapacityRequirements.RequestsEntry") + proto.RegisterType((*Counter)(nil), "k8s.io.api.resource.v1.Counter") + proto.RegisterType((*CounterSet)(nil), "k8s.io.api.resource.v1.CounterSet") + proto.RegisterMapType((map[string]Counter)(nil), "k8s.io.api.resource.v1.CounterSet.CountersEntry") + proto.RegisterType((*Device)(nil), "k8s.io.api.resource.v1.Device") + proto.RegisterMapType((map[QualifiedName]DeviceAttribute)(nil), "k8s.io.api.resource.v1.Device.AttributesEntry") + proto.RegisterMapType((map[QualifiedName]DeviceCapacity)(nil), "k8s.io.api.resource.v1.Device.CapacityEntry") + proto.RegisterType((*DeviceAllocationConfiguration)(nil), "k8s.io.api.resource.v1.DeviceAllocationConfiguration") + proto.RegisterType((*DeviceAllocationResult)(nil), "k8s.io.api.resource.v1.DeviceAllocationResult") + proto.RegisterType((*DeviceAttribute)(nil), "k8s.io.api.resource.v1.DeviceAttribute") + proto.RegisterType((*DeviceCapacity)(nil), "k8s.io.api.resource.v1.DeviceCapacity") + proto.RegisterType((*DeviceClaim)(nil), "k8s.io.api.resource.v1.DeviceClaim") + proto.RegisterType((*DeviceClaimConfiguration)(nil), "k8s.io.api.resource.v1.DeviceClaimConfiguration") + proto.RegisterType((*DeviceClass)(nil), "k8s.io.api.resource.v1.DeviceClass") + proto.RegisterType((*DeviceClassConfiguration)(nil), "k8s.io.api.resource.v1.DeviceClassConfiguration") + proto.RegisterType((*DeviceClassList)(nil), "k8s.io.api.resource.v1.DeviceClassList") + proto.RegisterType((*DeviceClassSpec)(nil), "k8s.io.api.resource.v1.DeviceClassSpec") + proto.RegisterType((*DeviceConfiguration)(nil), "k8s.io.api.resource.v1.DeviceConfiguration") + proto.RegisterType((*DeviceConstraint)(nil), "k8s.io.api.resource.v1.DeviceConstraint") + proto.RegisterType((*DeviceCounterConsumption)(nil), "k8s.io.api.resource.v1.DeviceCounterConsumption") + proto.RegisterMapType((map[string]Counter)(nil), "k8s.io.api.resource.v1.DeviceCounterConsumption.CountersEntry") + proto.RegisterType((*DeviceRequest)(nil), "k8s.io.api.resource.v1.DeviceRequest") + proto.RegisterType((*DeviceRequestAllocationResult)(nil), "k8s.io.api.resource.v1.DeviceRequestAllocationResult") + proto.RegisterMapType((map[QualifiedName]resource.Quantity)(nil), "k8s.io.api.resource.v1.DeviceRequestAllocationResult.ConsumedCapacityEntry") + proto.RegisterType((*DeviceSelector)(nil), "k8s.io.api.resource.v1.DeviceSelector") + proto.RegisterType((*DeviceSubRequest)(nil), "k8s.io.api.resource.v1.DeviceSubRequest") + proto.RegisterType((*DeviceTaint)(nil), "k8s.io.api.resource.v1.DeviceTaint") + proto.RegisterType((*DeviceToleration)(nil), "k8s.io.api.resource.v1.DeviceToleration") + proto.RegisterType((*ExactDeviceRequest)(nil), "k8s.io.api.resource.v1.ExactDeviceRequest") + proto.RegisterType((*NetworkDeviceData)(nil), "k8s.io.api.resource.v1.NetworkDeviceData") + proto.RegisterType((*OpaqueDeviceConfiguration)(nil), "k8s.io.api.resource.v1.OpaqueDeviceConfiguration") + proto.RegisterType((*ResourceClaim)(nil), "k8s.io.api.resource.v1.ResourceClaim") + proto.RegisterType((*ResourceClaimConsumerReference)(nil), "k8s.io.api.resource.v1.ResourceClaimConsumerReference") + proto.RegisterType((*ResourceClaimList)(nil), "k8s.io.api.resource.v1.ResourceClaimList") + proto.RegisterType((*ResourceClaimSpec)(nil), "k8s.io.api.resource.v1.ResourceClaimSpec") + proto.RegisterType((*ResourceClaimStatus)(nil), "k8s.io.api.resource.v1.ResourceClaimStatus") + proto.RegisterType((*ResourceClaimTemplate)(nil), "k8s.io.api.resource.v1.ResourceClaimTemplate") + proto.RegisterType((*ResourceClaimTemplateList)(nil), "k8s.io.api.resource.v1.ResourceClaimTemplateList") + proto.RegisterType((*ResourceClaimTemplateSpec)(nil), "k8s.io.api.resource.v1.ResourceClaimTemplateSpec") + proto.RegisterType((*ResourcePool)(nil), "k8s.io.api.resource.v1.ResourcePool") + proto.RegisterType((*ResourceSlice)(nil), "k8s.io.api.resource.v1.ResourceSlice") + proto.RegisterType((*ResourceSliceList)(nil), "k8s.io.api.resource.v1.ResourceSliceList") + proto.RegisterType((*ResourceSliceSpec)(nil), "k8s.io.api.resource.v1.ResourceSliceSpec") +} + +func init() { + proto.RegisterFile("k8s.io/api/resource/v1/generated.proto", fileDescriptor_f4fc532aec02d243) +} + +var fileDescriptor_f4fc532aec02d243 = []byte{ + // 3028 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5b, 0x4d, 0x6c, 0x24, 0x47, + 0xf5, 0x77, 0xcf, 0xcc, 0x8e, 0xc7, 0x6f, 0x6c, 0xaf, 0x5d, 0xbb, 0xeb, 0x4c, 0xfc, 0xff, 0xc7, + 0xe3, 0xf4, 0x92, 0xc4, 0x49, 0x76, 0xc7, 0x6b, 0x8b, 0x44, 0x51, 0x12, 0x10, 0x1e, 0xdb, 0x9b, + 0x38, 0xfb, 0x11, 0xa7, 0xc6, 0x6b, 0x36, 0x28, 0x84, 0xb4, 0x7b, 0xca, 0x76, 0xe3, 0x9e, 0xee, + 0x49, 0x77, 0x8d, 0x77, 0xcd, 0x29, 0xe2, 0x00, 0x57, 0x04, 0x12, 0x02, 0x24, 0x24, 0x94, 0x03, + 0x12, 0x17, 0x84, 0x38, 0x11, 0x04, 0x28, 0xc7, 0x08, 0x29, 0x28, 0x17, 0xa4, 0x20, 0xa1, 0x81, + 0x1d, 0x4e, 0x48, 0x08, 0x89, 0x0b, 0x07, 0x1f, 0x10, 0xaa, 0xea, 0xaa, 0xfe, 0x9a, 0x6e, 0x4f, + 0xdb, 0x59, 0xaf, 0x96, 0x9b, 0xe7, 0xd5, 0x7b, 0xbf, 0xaa, 0x7a, 0xf5, 0xbe, 0xea, 0x75, 0x19, + 0x9e, 0xdc, 0x7b, 0xc1, 0xad, 0x19, 0xf6, 0xbc, 0xd6, 0x36, 0xe6, 0x1d, 0xe2, 0xda, 0x1d, 0x47, + 0x27, 0xf3, 0xfb, 0x0b, 0xf3, 0x3b, 0xc4, 0x22, 0x8e, 0x46, 0x49, 0xb3, 0xd6, 0x76, 0x6c, 0x6a, + 0xa3, 0x29, 0x8f, 0xaf, 0xa6, 0xb5, 0x8d, 0x9a, 0xe4, 0xab, 0xed, 0x2f, 0x4c, 0x5f, 0xde, 0x31, + 0xe8, 0x6e, 0x67, 0xab, 0xa6, 0xdb, 0xad, 0xf9, 0x1d, 0x7b, 0xc7, 0x9e, 0xe7, 0xec, 0x5b, 0x9d, + 0x6d, 0xfe, 0x8b, 0xff, 0xe0, 0x7f, 0x79, 0x30, 0xd3, 0x6a, 0x68, 0x3a, 0xdd, 0x76, 0x92, 0xa6, + 0x9a, 0xfe, 0x7c, 0xc0, 0xd3, 0xd2, 0xf4, 0x5d, 0xc3, 0x22, 0xce, 0xc1, 0x7c, 0x7b, 0x6f, 0x27, + 0xba, 0xc6, 0xe3, 0x48, 0xb9, 0xf3, 0x2d, 0x42, 0xb5, 0xa4, 0xb9, 0xe6, 0xd3, 0xa4, 0x9c, 0x8e, + 0x45, 0x8d, 0x56, 0xff, 0x34, 0xcf, 0x0f, 0x12, 0x70, 0xf5, 0x5d, 0xd2, 0xd2, 0xe2, 0x72, 0xea, + 0x87, 0x79, 0xb8, 0xb0, 0x64, 0x9a, 0xb6, 0xce, 0x68, 0x2b, 0x64, 0xdf, 0xd0, 0x49, 0x83, 0x6a, + 0xb4, 0xe3, 0xa2, 0x27, 0xa1, 0xd8, 0x74, 0x8c, 0x7d, 0xe2, 0x54, 0x94, 0x59, 0x65, 0x6e, 0xa4, + 0x3e, 0xfe, 0x51, 0xb7, 0x3a, 0xd4, 0xeb, 0x56, 0x8b, 0x2b, 0x9c, 0x8a, 0xc5, 0x28, 0x9a, 0x85, + 0x42, 0xdb, 0xb6, 0xcd, 0x4a, 0x8e, 0x73, 0x8d, 0x0a, 0xae, 0xc2, 0xba, 0x6d, 0x9b, 0x98, 0x8f, + 0x70, 0x24, 0x8e, 0x5c, 0xc9, 0xc7, 0x90, 0x38, 0x15, 0x8b, 0x51, 0xf4, 0x04, 0x0c, 0xbb, 0xbb, + 0x9a, 0x43, 0xd6, 0x56, 0x2a, 0xc3, 0x9c, 0xb1, 0xdc, 0xeb, 0x56, 0x87, 0x1b, 0x1e, 0x09, 0xcb, + 0x31, 0xa4, 0x03, 0xe8, 0xb6, 0xd5, 0x34, 0xa8, 0x61, 0x5b, 0x6e, 0xa5, 0x30, 0x9b, 0x9f, 0x2b, + 0x2f, 0xce, 0xd7, 0x02, 0x3b, 0xf0, 0xf7, 0x5f, 0x6b, 0xef, 0xed, 0x30, 0x82, 0x5b, 0x63, 0x6a, + 0xae, 0xed, 0x2f, 0xd4, 0x96, 0xa5, 0x5c, 0x1d, 0x89, 0x35, 0x80, 0x4f, 0x72, 0x71, 0x08, 0x16, + 0x5d, 0x83, 0x42, 0x53, 0xa3, 0x5a, 0xe5, 0xcc, 0xac, 0x32, 0x57, 0x5e, 0xbc, 0x9c, 0x0a, 0x2f, + 0xd4, 0x5b, 0xc3, 0xda, 0x9d, 0xd5, 0xbb, 0x94, 0x58, 0x2e, 0x03, 0x2f, 0x31, 0x05, 0xac, 0x68, + 0x54, 0xc3, 0x1c, 0x04, 0xbd, 0x05, 0x65, 0x8b, 0xd0, 0x3b, 0xb6, 0xb3, 0xc7, 0x88, 0x95, 0x22, + 0xc7, 0x7c, 0xba, 0x96, 0x6c, 0xba, 0xb5, 0x9b, 0x82, 0x95, 0x2b, 0x85, 0x09, 0xd4, 0xcf, 0xf6, + 0xba, 0xd5, 0xf2, 0xcd, 0x00, 0x01, 0x87, 0xe1, 0xd4, 0xdf, 0xe4, 0x60, 0x42, 0x1c, 0xa1, 0x61, + 0x5b, 0x98, 0xb8, 0x1d, 0x93, 0xa2, 0x37, 0x61, 0xd8, 0xd3, 0xaa, 0xcb, 0x8f, 0xaf, 0xbc, 0x58, + 0x4b, 0x9b, 0xce, 0x9b, 0x27, 0x0e, 0x50, 0x3f, 0x2b, 0x14, 0x34, 0xec, 0x8d, 0xbb, 0x58, 0xe2, + 0xa1, 0x4d, 0x18, 0xb5, 0xec, 0x26, 0x69, 0x10, 0x93, 0xe8, 0xd4, 0x76, 0xf8, 0xa1, 0x96, 0x17, + 0x67, 0xc3, 0xf8, 0xcc, 0x85, 0xf8, 0x56, 0x42, 0x7c, 0xf5, 0x89, 0x5e, 0xb7, 0x3a, 0x1a, 0xa6, + 0xe0, 0x08, 0x0e, 0xea, 0xc0, 0x39, 0xcd, 0x5f, 0xc5, 0x86, 0xd1, 0x22, 0x2e, 0xd5, 0x5a, 0x6d, + 0x71, 0x02, 0xcf, 0x64, 0x3b, 0x60, 0x26, 0x56, 0x7f, 0xa4, 0xd7, 0xad, 0x9e, 0x5b, 0xea, 0x87, + 0xc2, 0x49, 0xf8, 0xea, 0x2b, 0x30, 0xb9, 0xbc, 0x7a, 0x5d, 0x98, 0xbe, 0x5c, 0xcb, 0x22, 0x00, + 0xb9, 0xdb, 0x76, 0x88, 0xcb, 0xce, 0x53, 0x38, 0x80, 0x6f, 0x32, 0xab, 0xfe, 0x08, 0x0e, 0x71, + 0xa9, 0x1f, 0xe4, 0xe0, 0xc2, 0xb2, 0xd6, 0xd6, 0x74, 0x83, 0x1e, 0x60, 0xf2, 0x6e, 0x87, 0xb8, + 0x74, 0xdd, 0x36, 0x0d, 0xfd, 0x00, 0xdd, 0x62, 0x87, 0xb1, 0xad, 0x75, 0x4c, 0x9a, 0x70, 0x18, + 0x7d, 0xbb, 0x09, 0x4e, 0xe7, 0x8d, 0x8e, 0x66, 0x51, 0x83, 0x1e, 0x78, 0x8e, 0xb0, 0xe2, 0x41, + 0x60, 0x89, 0x85, 0x08, 0x94, 0xf7, 0x35, 0xd3, 0x68, 0x6e, 0x6a, 0x66, 0x87, 0xb8, 0x95, 0x3c, + 0xf7, 0x84, 0xe3, 0x42, 0x9f, 0x13, 0xbb, 0x2a, 0x6f, 0x06, 0x50, 0x38, 0x8c, 0x8b, 0xb6, 0x00, + 0xf8, 0x4f, 0xac, 0x59, 0x3b, 0xa4, 0x52, 0xe0, 0x1b, 0x58, 0x4c, 0xb3, 0xa6, 0x44, 0x05, 0x70, + 0xc9, 0xfa, 0x38, 0xd3, 0xdd, 0xa6, 0x8f, 0x84, 0x43, 0xa8, 0xea, 0x7b, 0x39, 0x98, 0x4e, 0x17, + 0x45, 0x6b, 0x90, 0x6f, 0x19, 0xd6, 0x09, 0x95, 0x37, 0xdc, 0xeb, 0x56, 0xf3, 0x37, 0x0c, 0x0b, + 0x33, 0x0c, 0x0e, 0xa5, 0xdd, 0xe5, 0xd1, 0xea, 0xa4, 0x50, 0xda, 0x5d, 0xcc, 0x30, 0xd0, 0x75, + 0x28, 0xb8, 0x94, 0xb4, 0x85, 0x03, 0x1c, 0x17, 0x8b, 0x07, 0x89, 0x06, 0x25, 0x6d, 0xcc, 0x51, + 0xd4, 0xff, 0x28, 0x70, 0x3e, 0xac, 0x02, 0xc3, 0x21, 0x2d, 0x62, 0x51, 0x17, 0x1d, 0x40, 0xc9, + 0xf1, 0x54, 0xc2, 0x7c, 0x99, 0x9d, 0xf1, 0x8b, 0x59, 0xb4, 0x2f, 0xe5, 0x6b, 0x42, 0x9f, 0xee, + 0xaa, 0x45, 0x9d, 0x83, 0xfa, 0xe3, 0xe2, 0xbc, 0x4b, 0x92, 0xfc, 0xcd, 0xbf, 0x54, 0xc7, 0xde, + 0xe8, 0x68, 0xa6, 0xb1, 0x6d, 0x90, 0xe6, 0x4d, 0xad, 0x45, 0xb0, 0x3f, 0xdd, 0xf4, 0x1e, 0x8c, + 0x45, 0xa4, 0xd1, 0x04, 0xe4, 0xf7, 0xc8, 0x81, 0xe7, 0x10, 0x98, 0xfd, 0x89, 0x56, 0xe0, 0xcc, + 0x3e, 0xb3, 0x93, 0x93, 0x69, 0x14, 0x7b, 0xc2, 0x2f, 0xe6, 0x5e, 0x50, 0xd4, 0xb7, 0x61, 0x78, + 0xd9, 0xee, 0x58, 0x94, 0x38, 0xa8, 0x21, 0x41, 0x4f, 0x76, 0xe2, 0x63, 0x62, 0x8f, 0x67, 0xb8, + 0x05, 0x8b, 0x39, 0xd4, 0x7f, 0x28, 0x00, 0x62, 0x82, 0x06, 0xa1, 0x2c, 0x6f, 0x59, 0x5a, 0x8b, + 0x08, 0xe7, 0xf6, 0xf3, 0x16, 0xd7, 0x00, 0x1f, 0x41, 0x6f, 0x43, 0x49, 0xf7, 0xf8, 0xdd, 0x4a, + 0x8e, 0x2b, 0xfe, 0x4a, 0xaa, 0xe2, 0x7d, 0x5c, 0xf9, 0xa7, 0x50, 0xf7, 0x84, 0x54, 0xb7, 0x24, + 0x63, 0x1f, 0x73, 0xfa, 0x2d, 0x18, 0x8b, 0x30, 0x27, 0x68, 0xf7, 0xb9, 0xa8, 0x76, 0xab, 0x03, + 0xe6, 0x0f, 0xab, 0xf3, 0xdf, 0x25, 0x10, 0x09, 0x36, 0xc3, 0x56, 0x5d, 0x00, 0x8d, 0x52, 0xc7, + 0xd8, 0xea, 0x50, 0x22, 0x37, 0x3b, 0x20, 0x63, 0xd4, 0x96, 0x7c, 0x01, 0x6f, 0xab, 0x17, 0x65, + 0x7c, 0x0c, 0x06, 0xfa, 0x6d, 0x2b, 0x34, 0x0d, 0xda, 0x83, 0x92, 0x2e, 0x0c, 0x56, 0x04, 0xaf, + 0x4b, 0x03, 0xa6, 0x94, 0xf6, 0x1d, 0x33, 0x65, 0x49, 0x4e, 0x30, 0x65, 0x39, 0x01, 0xda, 0x87, + 0x09, 0xdd, 0xb6, 0xdc, 0x4e, 0x8b, 0xb8, 0x52, 0xe9, 0xa2, 0x76, 0xb8, 0x72, 0xf4, 0xa4, 0x82, + 0x7b, 0x99, 0x0b, 0xb7, 0x79, 0xf1, 0x50, 0x11, 0x13, 0x4f, 0x2c, 0xc7, 0x10, 0x71, 0xdf, 0x1c, + 0x68, 0x0e, 0x4a, 0x2c, 0xcb, 0xb1, 0xd5, 0xf0, 0x54, 0x36, 0x52, 0x1f, 0x65, 0x4b, 0xbe, 0x29, + 0x68, 0xd8, 0x1f, 0xed, 0xcb, 0xab, 0xc5, 0xfb, 0x94, 0x57, 0xe7, 0xa0, 0xa4, 0x99, 0x26, 0x63, + 0x70, 0x79, 0x5d, 0x55, 0xf2, 0x56, 0xb0, 0x24, 0x68, 0xd8, 0x1f, 0x45, 0xd7, 0xa0, 0x48, 0x35, + 0xc3, 0xa2, 0x6e, 0xa5, 0xc4, 0x35, 0x73, 0xf1, 0x68, 0xcd, 0x6c, 0x30, 0xde, 0xa0, 0x9a, 0xe3, + 0x3f, 0x5d, 0x2c, 0x20, 0xd0, 0x02, 0x94, 0xb7, 0x0c, 0xab, 0xe9, 0x6e, 0xd8, 0x0c, 0xbc, 0x32, + 0xc2, 0x67, 0xe6, 0x95, 0x4c, 0x3d, 0x20, 0xe3, 0x30, 0x0f, 0x5a, 0x86, 0x49, 0xf6, 0xd3, 0xb0, + 0x76, 0x82, 0xaa, 0xac, 0x02, 0xb3, 0xf9, 0xb9, 0x91, 0xfa, 0x85, 0x5e, 0xb7, 0x3a, 0x59, 0x8f, + 0x0f, 0xe2, 0x7e, 0x7e, 0x74, 0x1b, 0x2a, 0x82, 0x78, 0x55, 0x33, 0xcc, 0x8e, 0x43, 0x42, 0x58, + 0x65, 0x8e, 0xf5, 0xff, 0xbd, 0x6e, 0xb5, 0x52, 0x4f, 0xe1, 0xc1, 0xa9, 0xd2, 0x0c, 0x99, 0x15, + 0x10, 0x77, 0x6e, 0x74, 0x4c, 0x6a, 0xb4, 0xcd, 0x50, 0xcd, 0xe4, 0x56, 0x46, 0xf9, 0xf6, 0x38, + 0xf2, 0x52, 0x0a, 0x0f, 0x4e, 0x95, 0x9e, 0xde, 0x86, 0xb3, 0x31, 0x6f, 0x4a, 0x88, 0x05, 0x5f, + 0x88, 0xc6, 0x82, 0xa7, 0x06, 0x14, 0x74, 0x12, 0x2f, 0x14, 0x13, 0xa6, 0x75, 0x18, 0x8b, 0xb8, + 0x50, 0xc2, 0x2c, 0x2f, 0x47, 0x67, 0x79, 0x72, 0x80, 0x73, 0xc8, 0x84, 0x13, 0x0a, 0x3c, 0xdf, + 0xce, 0xc1, 0x63, 0xf1, 0xa2, 0x72, 0xd9, 0xb6, 0xb6, 0x8d, 0x9d, 0x8e, 0xc3, 0x7f, 0xa0, 0x2f, + 0x41, 0xd1, 0x03, 0x12, 0x11, 0x69, 0x4e, 0x9a, 0x50, 0x83, 0x53, 0x0f, 0xbb, 0xd5, 0xa9, 0xb8, + 0xa8, 0x37, 0x82, 0x85, 0x1c, 0xb3, 0x69, 0x3f, 0x27, 0xe6, 0xf8, 0xa1, 0x8e, 0x86, 0x73, 0x5a, + 0x90, 0xc2, 0xd0, 0x37, 0xe0, 0x5c, 0x53, 0xf8, 0x71, 0x68, 0x09, 0x22, 0x67, 0x3f, 0x3b, 0xc8, + 0xf5, 0x43, 0x22, 0xf5, 0xff, 0x13, 0xab, 0x3c, 0x97, 0x30, 0x88, 0x93, 0x26, 0x51, 0xff, 0xa4, + 0xc0, 0x54, 0x72, 0x79, 0x8d, 0xde, 0x81, 0x61, 0x87, 0xff, 0x25, 0x73, 0xfa, 0x73, 0x47, 0x2f, + 0x45, 0xec, 0x2c, 0xbd, 0x4c, 0xf7, 0x7e, 0xbb, 0x58, 0xc2, 0xa2, 0xaf, 0x42, 0x51, 0xe7, 0xab, + 0x11, 0xe1, 0xfc, 0xb9, 0xac, 0x17, 0x80, 0xe8, 0xae, 0x7d, 0xf7, 0xf6, 0xc8, 0x58, 0x80, 0xaa, + 0x3f, 0x53, 0xe0, 0x6c, 0xcc, 0xd2, 0xd0, 0x0c, 0xe4, 0x0d, 0x8b, 0x72, 0xcb, 0xc9, 0x7b, 0x07, + 0xb2, 0x66, 0x51, 0x2f, 0x07, 0xb3, 0x01, 0xf4, 0x38, 0x14, 0xb6, 0xd8, 0x55, 0x31, 0xcf, 0x9d, + 0x65, 0xac, 0xd7, 0xad, 0x8e, 0xd4, 0x6d, 0xdb, 0xf4, 0x38, 0xf8, 0x10, 0x7a, 0x0a, 0x8a, 0x2e, + 0x75, 0x0c, 0x6b, 0x87, 0x17, 0x9a, 0x23, 0x5e, 0xc0, 0x68, 0x70, 0x8a, 0xc7, 0x26, 0x86, 0xd1, + 0x33, 0x30, 0xbc, 0x4f, 0x1c, 0x5e, 0x9e, 0x7b, 0x61, 0x95, 0x87, 0xc1, 0x4d, 0x8f, 0xe4, 0xb1, + 0x4a, 0x06, 0xf5, 0x63, 0x05, 0xc6, 0xa3, 0xf6, 0x7a, 0x2a, 0x15, 0x06, 0xda, 0x86, 0x31, 0x27, + 0x5c, 0xbc, 0x0a, 0x1f, 0xba, 0x7c, 0xac, 0x62, 0xb9, 0x3e, 0xd9, 0xeb, 0x56, 0xc7, 0xa2, 0x45, + 0x70, 0x14, 0x56, 0xfd, 0x71, 0x0e, 0xca, 0x62, 0x3f, 0xa6, 0x66, 0xb4, 0x50, 0xa3, 0xaf, 0x42, + 0x7c, 0x22, 0x93, 0x35, 0x05, 0xd5, 0x49, 0x82, 0xe3, 0x7c, 0x0d, 0xca, 0x2c, 0x99, 0x51, 0xc7, + 0xcb, 0x08, 0x9e, 0x11, 0xcd, 0x0d, 0x74, 0x18, 0x21, 0x10, 0xdc, 0x2b, 0x02, 0x9a, 0x8b, 0xc3, + 0x88, 0xe8, 0xb6, 0x6f, 0xa0, 0xf9, 0x4c, 0x79, 0x98, 0x6d, 0x35, 0x9b, 0x6d, 0x7e, 0xa8, 0x40, + 0x25, 0x4d, 0x28, 0x12, 0x3a, 0x94, 0x93, 0x84, 0x8e, 0xdc, 0x83, 0x08, 0x1d, 0xbf, 0x56, 0x42, + 0x47, 0xec, 0xba, 0xe8, 0x1d, 0x28, 0xb1, 0x3b, 0x2e, 0xef, 0x49, 0x78, 0x26, 0x7b, 0x25, 0xdb, + 0x8d, 0xf8, 0xf5, 0xad, 0xaf, 0x13, 0x9d, 0xde, 0x20, 0x54, 0x0b, 0x2e, 0xb0, 0x01, 0x0d, 0xfb, + 0xa8, 0x68, 0x0d, 0x0a, 0x6e, 0x9b, 0xe8, 0xd9, 0xb2, 0x0b, 0x5f, 0x54, 0xa3, 0x4d, 0xf4, 0xa0, + 0x9a, 0x64, 0xbf, 0x30, 0x87, 0x50, 0xbf, 0x1f, 0xd6, 0xbf, 0xeb, 0x46, 0xf5, 0x9f, 0xa2, 0x55, + 0xe5, 0x41, 0x68, 0xf5, 0x03, 0x3f, 0x68, 0xf1, 0x85, 0x5d, 0x37, 0x5c, 0x8a, 0xde, 0xea, 0xd3, + 0x6c, 0x2d, 0x9b, 0x66, 0x99, 0x34, 0xd7, 0xab, 0xef, 0x45, 0x92, 0x12, 0xd2, 0xea, 0xab, 0x70, + 0xc6, 0xa0, 0xa4, 0x25, 0xfd, 0xe7, 0x62, 0x06, 0xb5, 0x06, 0xc1, 0x65, 0x8d, 0x49, 0x62, 0x0f, + 0x40, 0xfd, 0x6e, 0x2e, 0xb2, 0x76, 0xa6, 0x6e, 0xf4, 0x65, 0x18, 0x71, 0x45, 0x99, 0x27, 0x3d, + 0x7f, 0x40, 0xc2, 0xf6, 0xab, 0xc6, 0x49, 0x31, 0xc9, 0x88, 0xa4, 0xb8, 0x38, 0xc0, 0x0a, 0xf9, + 0x66, 0x2e, 0xa3, 0x6f, 0xc6, 0x8e, 0x39, 0xcd, 0x37, 0xd1, 0x75, 0x38, 0x4f, 0xee, 0x52, 0x62, + 0x35, 0x49, 0x13, 0x0b, 0x1c, 0x5e, 0x1b, 0x7b, 0xe1, 0xbe, 0xd2, 0xeb, 0x56, 0xcf, 0xaf, 0x26, + 0x8c, 0xe3, 0x44, 0x29, 0xd5, 0x84, 0xa4, 0xc3, 0x47, 0xb7, 0xa0, 0x68, 0xb7, 0xb5, 0x77, 0xfd, + 0xf0, 0xbe, 0x90, 0xb6, 0xfc, 0xd7, 0x39, 0x57, 0x92, 0x71, 0x01, 0x5b, 0xbb, 0x37, 0x8c, 0x05, + 0x98, 0xfa, 0x77, 0x05, 0x26, 0xe2, 0x81, 0xee, 0x18, 0xf1, 0x64, 0x1d, 0xc6, 0x5b, 0x1a, 0xd5, + 0x77, 0xfd, 0x84, 0x29, 0x7a, 0xa6, 0x73, 0xbd, 0x6e, 0x75, 0xfc, 0x46, 0x64, 0xe4, 0xb0, 0x5b, + 0x45, 0x57, 0x3b, 0xa6, 0x79, 0x10, 0xbd, 0xce, 0xc4, 0xe4, 0xd1, 0x9b, 0x30, 0xd9, 0x34, 0x5c, + 0x6a, 0x58, 0x3a, 0x0d, 0x40, 0xbd, 0x26, 0xeb, 0xb3, 0xac, 0x60, 0x5e, 0x89, 0x0f, 0xa6, 0xe0, + 0xf6, 0xa3, 0xa8, 0x3f, 0xca, 0xf9, 0x3e, 0xdc, 0x77, 0x01, 0x42, 0x8b, 0x00, 0xba, 0x7f, 0xe3, + 0x8d, 0xb7, 0xc7, 0x82, 0xbb, 0x30, 0x0e, 0x71, 0x21, 0xb3, 0xef, 0x36, 0xfd, 0xc5, 0xe3, 0x5e, + 0xbc, 0x1e, 0x9a, 0xbb, 0xf5, 0x3f, 0x15, 0x18, 0x8b, 0x64, 0xd2, 0x0c, 0x57, 0xec, 0x37, 0x60, + 0x98, 0xdc, 0xd5, 0x74, 0x6a, 0xca, 0xb2, 0xe0, 0x99, 0xb4, 0x09, 0x57, 0x19, 0x5b, 0x34, 0x51, + 0xf3, 0x06, 0xe0, 0xaa, 0x27, 0x8e, 0x25, 0x0e, 0xda, 0x85, 0xf1, 0x6d, 0xc3, 0x71, 0xe9, 0xd2, + 0xbe, 0x66, 0x98, 0xda, 0x96, 0x49, 0x44, 0x26, 0x1d, 0x90, 0xa5, 0x1b, 0x9d, 0x2d, 0x89, 0x3b, + 0x25, 0x16, 0x3a, 0x7e, 0x35, 0x82, 0x83, 0x63, 0xb8, 0xea, 0x1f, 0x8b, 0xb2, 0xa6, 0x4f, 0x29, + 0x44, 0xd1, 0xd3, 0xac, 0xa0, 0xe5, 0x43, 0x42, 0x07, 0xa1, 0xca, 0x94, 0x93, 0xb1, 0x1c, 0x0f, + 0x7d, 0x59, 0xc8, 0x65, 0xfa, 0xb2, 0x90, 0xcf, 0xf0, 0x65, 0xa1, 0x70, 0xe4, 0x97, 0x85, 0x05, + 0x28, 0x6b, 0xcd, 0x96, 0x61, 0x2d, 0xe9, 0x3a, 0x71, 0x5d, 0x5e, 0x30, 0x8a, 0xbb, 0xe8, 0x52, + 0x40, 0xc6, 0x61, 0x1e, 0x56, 0xfe, 0x50, 0xdb, 0x24, 0x8e, 0xb8, 0xdf, 0x15, 0xb3, 0x28, 0x76, + 0xc3, 0x17, 0x08, 0xca, 0x9f, 0x80, 0xe6, 0xe2, 0x30, 0x62, 0xf2, 0x65, 0x77, 0xf8, 0x3e, 0x5e, + 0x76, 0x4b, 0x9f, 0xe9, 0xb2, 0xfb, 0x5a, 0xf0, 0x31, 0x66, 0x84, 0xeb, 0xf6, 0x4a, 0xe8, 0x63, + 0xcc, 0x61, 0xb7, 0xfa, 0x78, 0xda, 0x07, 0x27, 0x7a, 0xd0, 0x26, 0x6e, 0xed, 0x56, 0xf8, 0x8b, + 0xcd, 0xfb, 0x8a, 0xdf, 0x7c, 0x69, 0xca, 0x9a, 0x97, 0xdf, 0xeb, 0xcb, 0x8b, 0xd7, 0x4e, 0x74, + 0xed, 0xa9, 0x2d, 0xc7, 0xd0, 0xbc, 0x80, 0xf0, 0x74, 0xac, 0x2f, 0xd3, 0x4c, 0x6f, 0x0c, 0xf5, + 0xad, 0x67, 0xda, 0x85, 0x0b, 0x89, 0xa8, 0xa7, 0xda, 0xf3, 0xdc, 0x94, 0x17, 0x13, 0xbf, 0x5b, + 0xb3, 0x02, 0x79, 0x9d, 0x98, 0x22, 0x6f, 0xa5, 0x7e, 0x23, 0xea, 0xfb, 0x62, 0xe1, 0xb5, 0xa6, + 0x97, 0x57, 0xaf, 0x63, 0x26, 0xae, 0x7e, 0xab, 0x20, 0x33, 0x55, 0xe0, 0xec, 0x19, 0x62, 0xd4, + 0x12, 0x9c, 0x6d, 0x06, 0x09, 0x9d, 0xe7, 0x65, 0xcf, 0x45, 0x1f, 0x11, 0xcc, 0xe1, 0x0a, 0x84, + 0xcb, 0xc5, 0xf9, 0xa3, 0x25, 0x49, 0xfe, 0x3e, 0x96, 0x24, 0x9b, 0x30, 0x1e, 0x7c, 0xbe, 0xb9, + 0x61, 0x37, 0xa5, 0xcf, 0xd7, 0x64, 0x08, 0x5b, 0x8a, 0x8c, 0x1e, 0x76, 0xab, 0xe7, 0xe3, 0x37, + 0x5b, 0x46, 0xc7, 0x31, 0x14, 0x74, 0x11, 0xce, 0xf0, 0xac, 0xc1, 0xa3, 0x42, 0x3e, 0x28, 0xbe, + 0x78, 0xd8, 0xc7, 0xde, 0xd8, 0xe9, 0x47, 0x83, 0xcd, 0x50, 0x2f, 0x74, 0x98, 0x9f, 0xfd, 0xa5, + 0xe3, 0x34, 0xf9, 0xbd, 0x9a, 0xc3, 0x1f, 0xf1, 0xb1, 0xd4, 0x7f, 0xf9, 0xf7, 0x08, 0xde, 0x9e, + 0x43, 0x8f, 0x85, 0x8c, 0xb9, 0x5e, 0x16, 0xcb, 0xca, 0x5f, 0x23, 0x07, 0x9e, 0x65, 0x5f, 0x0c, + 0x5b, 0xf6, 0x48, 0xca, 0x35, 0xf7, 0x25, 0x28, 0x92, 0xed, 0x6d, 0xa2, 0x53, 0x11, 0x99, 0x65, + 0xe3, 0xb7, 0xb8, 0xca, 0xa9, 0x87, 0xac, 0xf0, 0x08, 0xa6, 0xf4, 0x88, 0x58, 0x88, 0x30, 0xfb, + 0xa0, 0x46, 0x8b, 0x2c, 0x35, 0x9b, 0xa4, 0x29, 0x3e, 0x26, 0x1d, 0xe7, 0xdb, 0x1e, 0x6f, 0x1a, + 0x6c, 0x48, 0x00, 0x1c, 0x60, 0xbd, 0x58, 0xfa, 0xc1, 0x4f, 0xaa, 0x43, 0xef, 0xfd, 0x79, 0x76, + 0x48, 0x7d, 0x3f, 0x27, 0x8d, 0x3f, 0x50, 0xf7, 0xa0, 0x8d, 0xbf, 0x0a, 0x25, 0xbb, 0xcd, 0x78, + 0x6d, 0x99, 0x95, 0x2e, 0xc9, 0xea, 0xe2, 0x75, 0x41, 0x3f, 0xec, 0x56, 0x2b, 0x71, 0x58, 0x39, + 0x86, 0x7d, 0xe9, 0x40, 0x85, 0xf9, 0x4c, 0x2a, 0x2c, 0x1c, 0x5f, 0x85, 0xcb, 0x30, 0x19, 0x98, + 0x4e, 0x83, 0xe8, 0xb6, 0xd5, 0x74, 0x85, 0xf5, 0xf2, 0xcc, 0xb1, 0x11, 0x1f, 0xc4, 0xfd, 0xfc, + 0xea, 0x0f, 0x0b, 0x80, 0xfa, 0x0b, 0x8d, 0xa4, 0x08, 0xa0, 0x7c, 0x96, 0x08, 0x90, 0x3b, 0xd5, + 0x08, 0x90, 0xbf, 0xbf, 0x11, 0xa0, 0x70, 0x44, 0x04, 0x78, 0x18, 0x4b, 0x88, 0xd3, 0x0a, 0x1a, + 0x3f, 0x57, 0x60, 0xb2, 0xef, 0x15, 0x02, 0x7a, 0x09, 0xc6, 0x0c, 0x56, 0x08, 0x6f, 0x6b, 0xe2, + 0xca, 0xe6, 0x19, 0xc6, 0x05, 0xb1, 0xcc, 0xb1, 0xb5, 0xf0, 0x20, 0x8e, 0xf2, 0xa2, 0x47, 0x21, + 0x6f, 0xb4, 0x65, 0xaf, 0x96, 0xe7, 0xaa, 0xb5, 0x75, 0x17, 0x33, 0x1a, 0x33, 0xb9, 0x5d, 0xcd, + 0x69, 0xde, 0xd1, 0x1c, 0xe6, 0xc9, 0x0e, 0xd3, 0x6e, 0x3e, 0x6a, 0x72, 0xaf, 0x46, 0x87, 0x71, + 0x9c, 0x5f, 0xfd, 0xa9, 0x02, 0x8f, 0xa6, 0x5e, 0xe5, 0x32, 0xbf, 0x64, 0xd1, 0x00, 0xda, 0x9a, + 0xa3, 0xb5, 0x88, 0xb8, 0xa3, 0x9c, 0xe0, 0xe5, 0x87, 0x7f, 0x09, 0x5a, 0xf7, 0x81, 0x70, 0x08, + 0x54, 0xfd, 0x5e, 0x0e, 0xc6, 0xe4, 0x05, 0xd6, 0xeb, 0xdd, 0x9d, 0x7e, 0x63, 0xe7, 0x5a, 0xa4, + 0xb1, 0x93, 0x5a, 0x52, 0x44, 0x96, 0x95, 0xd6, 0xda, 0x41, 0x0d, 0x28, 0xba, 0xfc, 0x7d, 0xd0, + 0xa0, 0x0e, 0x7a, 0x14, 0x8e, 0x8b, 0x04, 0x8a, 0xf7, 0x7e, 0x63, 0x01, 0xa5, 0xf6, 0x14, 0x98, + 0x89, 0xf0, 0x8b, 0x42, 0xcc, 0xc1, 0x64, 0x9b, 0x38, 0xc4, 0xd2, 0x09, 0xba, 0x04, 0x25, 0xad, + 0x6d, 0xbc, 0xe2, 0xd8, 0x9d, 0xb6, 0x38, 0x45, 0xff, 0xf6, 0xb7, 0xb4, 0xbe, 0xc6, 0xe9, 0xd8, + 0xe7, 0x60, 0xdc, 0x72, 0x2d, 0xc2, 0x96, 0x42, 0x9d, 0x4e, 0x8f, 0x8e, 0x7d, 0x0e, 0xbf, 0x2e, + 0x2a, 0xa4, 0xd6, 0x45, 0x75, 0xc8, 0x77, 0x8c, 0xa6, 0x68, 0x34, 0x5f, 0x91, 0xc9, 0xe3, 0x56, + 0xd6, 0x42, 0x98, 0x09, 0xab, 0xbf, 0x55, 0x60, 0x32, 0xb2, 0xc9, 0x07, 0xd0, 0x7d, 0x7a, 0x2d, + 0xda, 0x7d, 0x7a, 0x22, 0xd3, 0x61, 0xa5, 0xf4, 0x9f, 0xf4, 0xd8, 0xf2, 0x79, 0x03, 0xea, 0x66, + 0xfc, 0x99, 0xd1, 0xc5, 0x0c, 0x4d, 0xdc, 0xf4, 0xb7, 0x45, 0xea, 0xaf, 0x72, 0x70, 0x2e, 0xc1, + 0x72, 0xd0, 0x6d, 0x80, 0x20, 0x68, 0x8b, 0xa9, 0x52, 0x23, 0x69, 0xdf, 0x47, 0x12, 0xfe, 0xf2, + 0x24, 0x44, 0x0d, 0x61, 0xa1, 0x16, 0x94, 0x1d, 0xe2, 0x12, 0x67, 0x9f, 0x34, 0xaf, 0xf2, 0xdc, + 0xcf, 0x14, 0xf5, 0x7c, 0x26, 0x45, 0xf5, 0x59, 0x69, 0x10, 0xb2, 0x71, 0x00, 0x89, 0xc3, 0xf8, + 0xe8, 0x76, 0xa0, 0x30, 0xef, 0xeb, 0xf3, 0xe5, 0x01, 0xbb, 0x88, 0xbe, 0xca, 0x3b, 0x42, 0x75, + 0x7f, 0x50, 0xe0, 0x42, 0x64, 0x79, 0x1b, 0xa4, 0xd5, 0x36, 0x35, 0x4a, 0x1e, 0x40, 0x88, 0x69, + 0x44, 0x42, 0xcc, 0x42, 0x26, 0xed, 0xc9, 0xe5, 0xa5, 0x76, 0x91, 0x3f, 0x56, 0xe0, 0xd1, 0x44, + 0x89, 0x07, 0xe0, 0x38, 0x38, 0xea, 0x38, 0x97, 0x8f, 0xb5, 0xa3, 0x14, 0x07, 0xfa, 0x7d, 0xda, + 0x7e, 0xb8, 0x27, 0xfd, 0x6f, 0xe5, 0x01, 0xf5, 0x17, 0x0a, 0x8c, 0x4a, 0xce, 0x75, 0xdb, 0x36, + 0x33, 0x5c, 0x2e, 0x17, 0x01, 0xc4, 0xeb, 0x53, 0xf9, 0x15, 0x25, 0x1f, 0xac, 0xf8, 0x15, 0x7f, + 0x04, 0x87, 0xb8, 0xd0, 0x6b, 0x80, 0xe4, 0xda, 0x1a, 0xa6, 0xec, 0x09, 0xf2, 0x90, 0x9e, 0xaf, + 0x4f, 0x0b, 0x59, 0x84, 0xfb, 0x38, 0x70, 0x82, 0x94, 0xfa, 0x3b, 0x25, 0xc8, 0xbd, 0x9c, 0xfc, + 0xf0, 0xe9, 0x9c, 0x2f, 0x2b, 0x55, 0xe7, 0xe1, 0x0c, 0xc2, 0x39, 0x1f, 0xc2, 0x0c, 0xc2, 0xd7, + 0x95, 0xe2, 0x00, 0xbf, 0x2c, 0xc4, 0xd6, 0xcf, 0x0d, 0x3f, 0x6b, 0x75, 0x76, 0x35, 0xf4, 0xce, + 0xb8, 0xbc, 0xf8, 0xb9, 0x41, 0x0b, 0x61, 0x46, 0x99, 0xd8, 0x33, 0x0c, 0x3f, 0xc8, 0xc9, 0x1f, + 0xeb, 0x41, 0x4e, 0xe1, 0x14, 0x1e, 0xe4, 0x9c, 0x39, 0xf2, 0x41, 0xce, 0x5a, 0x90, 0x2d, 0xbc, + 0xdb, 0xc3, 0xcc, 0xd1, 0xe9, 0xf5, 0x88, 0x57, 0xbb, 0x18, 0xa6, 0xda, 0xc4, 0xf1, 0xc8, 0xc1, + 0xda, 0x98, 0x27, 0x7a, 0x6f, 0x82, 0xa6, 0x7b, 0xdd, 0xea, 0xd4, 0x7a, 0x22, 0x07, 0x4e, 0x91, + 0x44, 0x5b, 0x30, 0xce, 0x5b, 0x7c, 0x4d, 0xff, 0x45, 0x95, 0xf7, 0x6e, 0x48, 0x1d, 0xfc, 0x4c, + 0x2e, 0xe8, 0x3c, 0x37, 0x22, 0x08, 0x38, 0x86, 0x58, 0x7f, 0xf9, 0xa3, 0x7b, 0x33, 0x43, 0x9f, + 0xdc, 0x9b, 0x19, 0xfa, 0xf4, 0xde, 0xcc, 0xd0, 0x7b, 0xbd, 0x19, 0xe5, 0xa3, 0xde, 0x8c, 0xf2, + 0x49, 0x6f, 0x46, 0xf9, 0xb4, 0x37, 0xa3, 0xfc, 0xb5, 0x37, 0xa3, 0x7c, 0xe7, 0x6f, 0x33, 0x43, + 0x5f, 0x99, 0x4a, 0xfe, 0x77, 0x81, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x0c, 0xec, 0x16, + 0x47, 0x30, 0x00, 0x00, +} + +func (m *AllocatedDeviceStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AllocatedDeviceStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AllocatedDeviceStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ShareID != nil { + i -= len(*m.ShareID) + copy(dAtA[i:], *m.ShareID) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ShareID))) + i-- + dAtA[i] = 0x3a + } + if m.NetworkData != nil { + { + size, err := m.NetworkData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.Data != nil { + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + i -= len(m.Device) + copy(dAtA[i:], m.Device) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Device))) + i-- + dAtA[i] = 0x1a + i -= len(m.Pool) + copy(dAtA[i:], m.Pool) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Pool))) + i-- + dAtA[i] = 0x12 + i -= len(m.Driver) + copy(dAtA[i:], m.Driver) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *AllocationResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AllocationResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AllocationResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AllocationTimestamp != nil { + { + size, err := m.AllocationTimestamp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.NodeSelector != nil { + { + size, err := m.NodeSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + { + size, err := m.Devices.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *CELDeviceSelector) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CELDeviceSelector) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CELDeviceSelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Expression) + copy(dAtA[i:], m.Expression) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Expression))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *CapacityRequestPolicy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CapacityRequestPolicy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CapacityRequestPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ValidRange != nil { + { + size, err := m.ValidRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.ValidValues) > 0 { + for iNdEx := len(m.ValidValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ValidValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Default != nil { + { + size, err := m.Default.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CapacityRequestPolicyRange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CapacityRequestPolicyRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CapacityRequestPolicyRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Step != nil { + { + size, err := m.Step.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Max != nil { + { + size, err := m.Max.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Min != nil { + { + size, err := m.Min.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CapacityRequirements) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CapacityRequirements) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CapacityRequirements) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Requests) > 0 { + keysForRequests := make([]string, 0, len(m.Requests)) + for k := range m.Requests { + keysForRequests = append(keysForRequests, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForRequests) + for iNdEx := len(keysForRequests) - 1; iNdEx >= 0; iNdEx-- { + v := m.Requests[QualifiedName(keysForRequests[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForRequests[iNdEx]) + copy(dAtA[i:], keysForRequests[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForRequests[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Counter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Counter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Counter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *CounterSet) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CounterSet) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CounterSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Counters) > 0 { + keysForCounters := make([]string, 0, len(m.Counters)) + for k := range m.Counters { + keysForCounters = append(keysForCounters, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCounters) + for iNdEx := len(keysForCounters) - 1; iNdEx >= 0; iNdEx-- { + v := m.Counters[string(keysForCounters[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForCounters[iNdEx]) + copy(dAtA[i:], keysForCounters[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForCounters[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Device) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Device) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Device) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AllowMultipleAllocations != nil { + i-- + if *m.AllowMultipleAllocations { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if len(m.BindingFailureConditions) > 0 { + for iNdEx := len(m.BindingFailureConditions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BindingFailureConditions[iNdEx]) + copy(dAtA[i:], m.BindingFailureConditions[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.BindingFailureConditions[iNdEx]))) + i-- + dAtA[i] = 0x5a + } + } + if len(m.BindingConditions) > 0 { + for iNdEx := len(m.BindingConditions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BindingConditions[iNdEx]) + copy(dAtA[i:], m.BindingConditions[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.BindingConditions[iNdEx]))) + i-- + dAtA[i] = 0x52 + } + } + if m.BindsToNode != nil { + i-- + if *m.BindsToNode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if len(m.Taints) > 0 { + for iNdEx := len(m.Taints) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Taints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if m.AllNodes != nil { + i-- + if *m.AllNodes { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.NodeSelector != nil { + { + size, err := m.NodeSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.NodeName != nil { + i -= len(*m.NodeName) + copy(dAtA[i:], *m.NodeName) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.NodeName))) + i-- + dAtA[i] = 0x2a + } + if len(m.ConsumesCounters) > 0 { + for iNdEx := len(m.ConsumesCounters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ConsumesCounters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Capacity) > 0 { + keysForCapacity := make([]string, 0, len(m.Capacity)) + for k := range m.Capacity { + keysForCapacity = append(keysForCapacity, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) + for iNdEx := len(keysForCapacity) - 1; iNdEx >= 0; iNdEx-- { + v := m.Capacity[QualifiedName(keysForCapacity[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForCapacity[iNdEx]) + copy(dAtA[i:], keysForCapacity[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForCapacity[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Attributes) > 0 { + keysForAttributes := make([]string, 0, len(m.Attributes)) + for k := range m.Attributes { + keysForAttributes = append(keysForAttributes, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAttributes) + for iNdEx := len(keysForAttributes) - 1; iNdEx >= 0; iNdEx-- { + v := m.Attributes[QualifiedName(keysForAttributes[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForAttributes[iNdEx]) + copy(dAtA[i:], keysForAttributes[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAttributes[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceAllocationConfiguration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceAllocationConfiguration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceAllocationConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.DeviceConfiguration.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Requests[iNdEx]) + copy(dAtA[i:], m.Requests[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Requests[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceAllocationResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceAllocationResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceAllocationResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Config) > 0 { + for iNdEx := len(m.Config) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Config[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Results) > 0 { + for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DeviceAttribute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceAttribute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.VersionValue != nil { + i -= len(*m.VersionValue) + copy(dAtA[i:], *m.VersionValue) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.VersionValue))) + i-- + dAtA[i] = 0x2a + } + if m.StringValue != nil { + i -= len(*m.StringValue) + copy(dAtA[i:], *m.StringValue) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.StringValue))) + i-- + dAtA[i] = 0x22 + } + if m.BoolValue != nil { + i-- + if *m.BoolValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.IntValue != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.IntValue)) + i-- + dAtA[i] = 0x10 + } + return len(dAtA) - i, nil +} + +func (m *DeviceCapacity) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceCapacity) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceCapacity) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RequestPolicy != nil { + { + size, err := m.RequestPolicy.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceClaim) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Config) > 0 { + for iNdEx := len(m.Config) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Config[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Constraints) > 0 { + for iNdEx := len(m.Constraints) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Constraints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DeviceClaimConfiguration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceClaimConfiguration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceClaimConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.DeviceConfiguration.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Requests[iNdEx]) + copy(dAtA[i:], m.Requests[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Requests[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DeviceClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceClassConfiguration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceClassConfiguration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceClassConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.DeviceConfiguration.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceClassList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceClassList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceClassSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceClassSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceClassSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ExtendedResourceName != nil { + i -= len(*m.ExtendedResourceName) + copy(dAtA[i:], *m.ExtendedResourceName) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ExtendedResourceName))) + i-- + dAtA[i] = 0x22 + } + if len(m.Config) > 0 { + for iNdEx := len(m.Config) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Config[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Selectors) > 0 { + for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Selectors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DeviceConfiguration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceConfiguration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opaque != nil { + { + size, err := m.Opaque.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DeviceConstraint) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceConstraint) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceConstraint) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DistinctAttribute != nil { + i -= len(*m.DistinctAttribute) + copy(dAtA[i:], *m.DistinctAttribute) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.DistinctAttribute))) + i-- + dAtA[i] = 0x1a + } + if m.MatchAttribute != nil { + i -= len(*m.MatchAttribute) + copy(dAtA[i:], *m.MatchAttribute) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchAttribute))) + i-- + dAtA[i] = 0x12 + } + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Requests[iNdEx]) + copy(dAtA[i:], m.Requests[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Requests[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DeviceCounterConsumption) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceCounterConsumption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceCounterConsumption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Counters) > 0 { + keysForCounters := make([]string, 0, len(m.Counters)) + for k := range m.Counters { + keysForCounters = append(keysForCounters, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCounters) + for iNdEx := len(keysForCounters) - 1; iNdEx >= 0; iNdEx-- { + v := m.Counters[string(keysForCounters[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForCounters[iNdEx]) + copy(dAtA[i:], keysForCounters[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForCounters[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.CounterSet) + copy(dAtA[i:], m.CounterSet) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CounterSet))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FirstAvailable) > 0 { + for iNdEx := len(m.FirstAvailable) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FirstAvailable[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Exactly != nil { + { + size, err := m.Exactly.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceRequestAllocationResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceRequestAllocationResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceRequestAllocationResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ConsumedCapacity) > 0 { + keysForConsumedCapacity := make([]string, 0, len(m.ConsumedCapacity)) + for k := range m.ConsumedCapacity { + keysForConsumedCapacity = append(keysForConsumedCapacity, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForConsumedCapacity) + for iNdEx := len(keysForConsumedCapacity) - 1; iNdEx >= 0; iNdEx-- { + v := m.ConsumedCapacity[QualifiedName(keysForConsumedCapacity[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForConsumedCapacity[iNdEx]) + copy(dAtA[i:], keysForConsumedCapacity[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForConsumedCapacity[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x52 + } + } + if m.ShareID != nil { + i -= len(*m.ShareID) + copy(dAtA[i:], *m.ShareID) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ShareID))) + i-- + dAtA[i] = 0x4a + } + if len(m.BindingFailureConditions) > 0 { + for iNdEx := len(m.BindingFailureConditions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BindingFailureConditions[iNdEx]) + copy(dAtA[i:], m.BindingFailureConditions[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.BindingFailureConditions[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if len(m.BindingConditions) > 0 { + for iNdEx := len(m.BindingConditions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BindingConditions[iNdEx]) + copy(dAtA[i:], m.BindingConditions[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.BindingConditions[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if len(m.Tolerations) > 0 { + for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.AdminAccess != nil { + i-- + if *m.AdminAccess { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + i -= len(m.Device) + copy(dAtA[i:], m.Device) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Device))) + i-- + dAtA[i] = 0x22 + i -= len(m.Pool) + copy(dAtA[i:], m.Pool) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Pool))) + i-- + dAtA[i] = 0x1a + i -= len(m.Driver) + copy(dAtA[i:], m.Driver) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) + i-- + dAtA[i] = 0x12 + i -= len(m.Request) + copy(dAtA[i:], m.Request) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Request))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceSelector) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceSelector) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceSelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CEL != nil { + { + size, err := m.CEL.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DeviceSubRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceSubRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceSubRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Capacity != nil { + { + size, err := m.Capacity.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if len(m.Tolerations) > 0 { + for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + i = encodeVarintGenerated(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x28 + i -= len(m.AllocationMode) + copy(dAtA[i:], m.AllocationMode) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllocationMode))) + i-- + dAtA[i] = 0x22 + if len(m.Selectors) > 0 { + for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Selectors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + i -= len(m.DeviceClassName) + copy(dAtA[i:], m.DeviceClassName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DeviceClassName))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceTaint) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceTaint) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceTaint) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TimeAdded != nil { + { + size, err := m.TimeAdded.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + i -= len(m.Effect) + copy(dAtA[i:], m.Effect) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Effect))) + i-- + dAtA[i] = 0x1a + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DeviceToleration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeviceToleration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeviceToleration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TolerationSeconds != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.TolerationSeconds)) + i-- + dAtA[i] = 0x28 + } + i -= len(m.Effect) + copy(dAtA[i:], m.Effect) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Effect))) + i-- + dAtA[i] = 0x22 + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x1a + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ExactDeviceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ExactDeviceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExactDeviceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Capacity != nil { + { + size, err := m.Capacity.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if len(m.Tolerations) > 0 { + for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.AdminAccess != nil { + i-- + if *m.AdminAccess { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + i = encodeVarintGenerated(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x20 + i -= len(m.AllocationMode) + copy(dAtA[i:], m.AllocationMode) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllocationMode))) + i-- + dAtA[i] = 0x1a + if len(m.Selectors) > 0 { + for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Selectors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.DeviceClassName) + copy(dAtA[i:], m.DeviceClassName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DeviceClassName))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkDeviceData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkDeviceData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkDeviceData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.HardwareAddress) + copy(dAtA[i:], m.HardwareAddress) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.HardwareAddress))) + i-- + dAtA[i] = 0x1a + if len(m.IPs) > 0 { + for iNdEx := len(m.IPs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.IPs[iNdEx]) + copy(dAtA[i:], m.IPs[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.IPs[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.InterfaceName) + copy(dAtA[i:], m.InterfaceName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.InterfaceName))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *OpaqueDeviceConfiguration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OpaqueDeviceConfiguration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpaqueDeviceConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Parameters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.Driver) + copy(dAtA[i:], m.Driver) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceClaim) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceClaimConsumerReference) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceClaimConsumerReference) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceClaimConsumerReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.UID) + copy(dAtA[i:], m.UID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) + i-- + dAtA[i] = 0x2a + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x22 + i -= len(m.Resource) + copy(dAtA[i:], m.Resource) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) + i-- + dAtA[i] = 0x1a + i -= len(m.APIGroup) + copy(dAtA[i:], m.APIGroup) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceClaimList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceClaimList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceClaimList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceClaimSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceClaimSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceClaimSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Devices.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceClaimStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceClaimStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceClaimStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Devices) > 0 { + for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Devices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.ReservedFor) > 0 { + for iNdEx := len(m.ReservedFor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ReservedFor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Allocation != nil { + { + size, err := m.Allocation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ResourceClaimTemplate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceClaimTemplate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceClaimTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceClaimTemplateList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceClaimTemplateList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceClaimTemplateList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceClaimTemplateSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceClaimTemplateSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceClaimTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourcePool) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourcePool) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourcePool) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i = encodeVarintGenerated(dAtA, i, uint64(m.ResourceSliceCount)) + i-- + dAtA[i] = 0x18 + i = encodeVarintGenerated(dAtA, i, uint64(m.Generation)) + i-- + dAtA[i] = 0x10 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceSlice) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceSlice) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceSliceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceSliceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceSliceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceSliceSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceSliceSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceSliceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SharedCounters) > 0 { + for iNdEx := len(m.SharedCounters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SharedCounters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if m.PerDeviceNodeSelection != nil { + i-- + if *m.PerDeviceNodeSelection { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if len(m.Devices) > 0 { + for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Devices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.AllNodes != nil { + i-- + if *m.AllNodes { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.NodeSelector != nil { + { + size, err := m.NodeSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.NodeName != nil { + i -= len(*m.NodeName) + copy(dAtA[i:], *m.NodeName) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.NodeName))) + i-- + dAtA[i] = 0x1a + } + { + size, err := m.Pool.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.Driver) + copy(dAtA[i:], m.Driver) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + offset -= sovGenerated(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AllocatedDeviceStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Driver) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Pool) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Device) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.NetworkData != nil { + l = m.NetworkData.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ShareID != nil { + l = len(*m.ShareID) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *AllocationResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Devices.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.NodeSelector != nil { + l = m.NodeSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.AllocationTimestamp != nil { + l = m.AllocationTimestamp.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *CELDeviceSelector) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Expression) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *CapacityRequestPolicy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Default != nil { + l = m.Default.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.ValidValues) > 0 { + for _, e := range m.ValidValues { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.ValidRange != nil { + l = m.ValidRange.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *CapacityRequestPolicyRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Min != nil { + l = m.Min.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Max != nil { + l = m.Max.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Step != nil { + l = m.Step.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *CapacityRequirements) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { + for k, v := range m.Requests { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *Counter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Value.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *CounterSet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Counters) > 0 { + for k, v := range m.Counters { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *Device) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Attributes) > 0 { + for k, v := range m.Attributes { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Capacity) > 0 { + for k, v := range m.Capacity { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.ConsumesCounters) > 0 { + for _, e := range m.ConsumesCounters { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.NodeName != nil { + l = len(*m.NodeName) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.NodeSelector != nil { + l = m.NodeSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.AllNodes != nil { + n += 2 + } + if len(m.Taints) > 0 { + for _, e := range m.Taints { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.BindsToNode != nil { + n += 2 + } + if len(m.BindingConditions) > 0 { + for _, s := range m.BindingConditions { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.BindingFailureConditions) > 0 { + for _, s := range m.BindingFailureConditions { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.AllowMultipleAllocations != nil { + n += 2 + } + return n +} + +func (m *DeviceAllocationConfiguration) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Source) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Requests) > 0 { + for _, s := range m.Requests { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.DeviceConfiguration.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *DeviceAllocationResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Results) > 0 { + for _, e := range m.Results { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Config) > 0 { + for _, e := range m.Config { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *DeviceAttribute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IntValue != nil { + n += 1 + sovGenerated(uint64(*m.IntValue)) + } + if m.BoolValue != nil { + n += 2 + } + if m.StringValue != nil { + l = len(*m.StringValue) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.VersionValue != nil { + l = len(*m.VersionValue) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *DeviceCapacity) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Value.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.RequestPolicy != nil { + l = m.RequestPolicy.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *DeviceClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { + for _, e := range m.Requests { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Constraints) > 0 { + for _, e := range m.Constraints { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Config) > 0 { + for _, e := range m.Config { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *DeviceClaimConfiguration) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { + for _, s := range m.Requests { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.DeviceConfiguration.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *DeviceClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *DeviceClassConfiguration) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.DeviceConfiguration.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *DeviceClassList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *DeviceClassSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Selectors) > 0 { + for _, e := range m.Selectors { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Config) > 0 { + for _, e := range m.Config { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.ExtendedResourceName != nil { + l = len(*m.ExtendedResourceName) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *DeviceConfiguration) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Opaque != nil { + l = m.Opaque.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *DeviceConstraint) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { + for _, s := range m.Requests { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.MatchAttribute != nil { + l = len(*m.MatchAttribute) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.DistinctAttribute != nil { + l = len(*m.DistinctAttribute) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *DeviceCounterConsumption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CounterSet) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Counters) > 0 { + for k, v := range m.Counters { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *DeviceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if m.Exactly != nil { + l = m.Exactly.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.FirstAvailable) > 0 { + for _, e := range m.FirstAvailable { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *DeviceRequestAllocationResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Request) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Driver) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Pool) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Device) + n += 1 + l + sovGenerated(uint64(l)) + if m.AdminAccess != nil { + n += 2 + } + if len(m.Tolerations) > 0 { + for _, e := range m.Tolerations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.BindingConditions) > 0 { + for _, s := range m.BindingConditions { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.BindingFailureConditions) > 0 { + for _, s := range m.BindingFailureConditions { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.ShareID != nil { + l = len(*m.ShareID) + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.ConsumedCapacity) > 0 { + for k, v := range m.ConsumedCapacity { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *DeviceSelector) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CEL != nil { + l = m.CEL.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *DeviceSubRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DeviceClassName) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Selectors) > 0 { + for _, e := range m.Selectors { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.AllocationMode) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Count)) + if len(m.Tolerations) > 0 { + for _, e := range m.Tolerations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Capacity != nil { + l = m.Capacity.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *DeviceTaint) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Effect) + n += 1 + l + sovGenerated(uint64(l)) + if m.TimeAdded != nil { + l = m.TimeAdded.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *DeviceToleration) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Operator) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Effect) + n += 1 + l + sovGenerated(uint64(l)) + if m.TolerationSeconds != nil { + n += 1 + sovGenerated(uint64(*m.TolerationSeconds)) + } + return n +} + +func (m *ExactDeviceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DeviceClassName) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Selectors) > 0 { + for _, e := range m.Selectors { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.AllocationMode) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Count)) + if m.AdminAccess != nil { + n += 2 + } + if len(m.Tolerations) > 0 { + for _, e := range m.Tolerations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Capacity != nil { + l = m.Capacity.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *NetworkDeviceData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.InterfaceName) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.IPs) > 0 { + for _, s := range m.IPs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.HardwareAddress) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *OpaqueDeviceConfiguration) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Driver) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Parameters.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResourceClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResourceClaimConsumerReference) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.APIGroup) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Resource) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.UID) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResourceClaimList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ResourceClaimSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Devices.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResourceClaimStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Allocation != nil { + l = m.Allocation.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.ReservedFor) > 0 { + for _, e := range m.ReservedFor { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Devices) > 0 { + for _, e := range m.Devices { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ResourceClaimTemplate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResourceClaimTemplateList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ResourceClaimTemplateSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResourcePool) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Generation)) + n += 1 + sovGenerated(uint64(m.ResourceSliceCount)) + return n +} + +func (m *ResourceSlice) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResourceSliceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ResourceSliceSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Driver) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Pool.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.NodeName != nil { + l = len(*m.NodeName) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.NodeSelector != nil { + l = m.NodeSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.AllNodes != nil { + n += 2 + } + if len(m.Devices) > 0 { + for _, e := range m.Devices { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.PerDeviceNodeSelection != nil { + n += 2 + } + if len(m.SharedCounters) > 0 { + for _, e := range m.SharedCounters { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func sovGenerated(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *AllocatedDeviceStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForConditions := "[]Condition{" + for _, f := range this.Conditions { + repeatedStringForConditions += fmt.Sprintf("%v", f) + "," + } + repeatedStringForConditions += "}" + s := strings.Join([]string{`&AllocatedDeviceStatus{`, + `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, + `Pool:` + fmt.Sprintf("%v", this.Pool) + `,`, + `Device:` + fmt.Sprintf("%v", this.Device) + `,`, + `Conditions:` + repeatedStringForConditions + `,`, + `Data:` + strings.Replace(fmt.Sprintf("%v", this.Data), "RawExtension", "runtime.RawExtension", 1) + `,`, + `NetworkData:` + strings.Replace(this.NetworkData.String(), "NetworkDeviceData", "NetworkDeviceData", 1) + `,`, + `ShareID:` + valueToStringGenerated(this.ShareID) + `,`, + `}`, + }, "") + return s +} +func (this *AllocationResult) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AllocationResult{`, + `Devices:` + strings.Replace(strings.Replace(this.Devices.String(), "DeviceAllocationResult", "DeviceAllocationResult", 1), `&`, ``, 1) + `,`, + `NodeSelector:` + strings.Replace(fmt.Sprintf("%v", this.NodeSelector), "NodeSelector", "v11.NodeSelector", 1) + `,`, + `AllocationTimestamp:` + strings.Replace(fmt.Sprintf("%v", this.AllocationTimestamp), "Time", "v1.Time", 1) + `,`, + `}`, + }, "") + return s +} +func (this *CELDeviceSelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CELDeviceSelector{`, + `Expression:` + fmt.Sprintf("%v", this.Expression) + `,`, + `}`, + }, "") + return s +} +func (this *CapacityRequestPolicy) String() string { + if this == nil { + return "nil" + } + repeatedStringForValidValues := "[]Quantity{" + for _, f := range this.ValidValues { + repeatedStringForValidValues += fmt.Sprintf("%v", f) + "," + } + repeatedStringForValidValues += "}" + s := strings.Join([]string{`&CapacityRequestPolicy{`, + `Default:` + strings.Replace(fmt.Sprintf("%v", this.Default), "Quantity", "resource.Quantity", 1) + `,`, + `ValidValues:` + repeatedStringForValidValues + `,`, + `ValidRange:` + strings.Replace(this.ValidRange.String(), "CapacityRequestPolicyRange", "CapacityRequestPolicyRange", 1) + `,`, + `}`, + }, "") + return s +} +func (this *CapacityRequestPolicyRange) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CapacityRequestPolicyRange{`, + `Min:` + strings.Replace(fmt.Sprintf("%v", this.Min), "Quantity", "resource.Quantity", 1) + `,`, + `Max:` + strings.Replace(fmt.Sprintf("%v", this.Max), "Quantity", "resource.Quantity", 1) + `,`, + `Step:` + strings.Replace(fmt.Sprintf("%v", this.Step), "Quantity", "resource.Quantity", 1) + `,`, + `}`, + }, "") + return s +} +func (this *CapacityRequirements) String() string { + if this == nil { + return "nil" + } + keysForRequests := make([]string, 0, len(this.Requests)) + for k := range this.Requests { + keysForRequests = append(keysForRequests, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForRequests) + mapStringForRequests := "map[QualifiedName]resource.Quantity{" + for _, k := range keysForRequests { + mapStringForRequests += fmt.Sprintf("%v: %v,", k, this.Requests[QualifiedName(k)]) + } + mapStringForRequests += "}" + s := strings.Join([]string{`&CapacityRequirements{`, + `Requests:` + mapStringForRequests + `,`, + `}`, + }, "") + return s +} +func (this *Counter) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Counter{`, + `Value:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Value), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *CounterSet) String() string { + if this == nil { + return "nil" + } + keysForCounters := make([]string, 0, len(this.Counters)) + for k := range this.Counters { + keysForCounters = append(keysForCounters, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCounters) + mapStringForCounters := "map[string]Counter{" + for _, k := range keysForCounters { + mapStringForCounters += fmt.Sprintf("%v: %v,", k, this.Counters[k]) + } + mapStringForCounters += "}" + s := strings.Join([]string{`&CounterSet{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Counters:` + mapStringForCounters + `,`, + `}`, + }, "") + return s +} +func (this *Device) String() string { + if this == nil { + return "nil" + } + repeatedStringForConsumesCounters := "[]DeviceCounterConsumption{" + for _, f := range this.ConsumesCounters { + repeatedStringForConsumesCounters += strings.Replace(strings.Replace(f.String(), "DeviceCounterConsumption", "DeviceCounterConsumption", 1), `&`, ``, 1) + "," + } + repeatedStringForConsumesCounters += "}" + repeatedStringForTaints := "[]DeviceTaint{" + for _, f := range this.Taints { + repeatedStringForTaints += fmt.Sprintf("%v", f) + "," + } + repeatedStringForTaints += "}" + keysForAttributes := make([]string, 0, len(this.Attributes)) + for k := range this.Attributes { + keysForAttributes = append(keysForAttributes, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAttributes) + mapStringForAttributes := "map[QualifiedName]DeviceAttribute{" + for _, k := range keysForAttributes { + mapStringForAttributes += fmt.Sprintf("%v: %v,", k, this.Attributes[QualifiedName(k)]) + } + mapStringForAttributes += "}" + keysForCapacity := make([]string, 0, len(this.Capacity)) + for k := range this.Capacity { + keysForCapacity = append(keysForCapacity, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) + mapStringForCapacity := "map[QualifiedName]DeviceCapacity{" + for _, k := range keysForCapacity { + mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[QualifiedName(k)]) + } + mapStringForCapacity += "}" + s := strings.Join([]string{`&Device{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Attributes:` + mapStringForAttributes + `,`, + `Capacity:` + mapStringForCapacity + `,`, + `ConsumesCounters:` + repeatedStringForConsumesCounters + `,`, + `NodeName:` + valueToStringGenerated(this.NodeName) + `,`, + `NodeSelector:` + strings.Replace(fmt.Sprintf("%v", this.NodeSelector), "NodeSelector", "v11.NodeSelector", 1) + `,`, + `AllNodes:` + valueToStringGenerated(this.AllNodes) + `,`, + `Taints:` + repeatedStringForTaints + `,`, + `BindsToNode:` + valueToStringGenerated(this.BindsToNode) + `,`, + `BindingConditions:` + fmt.Sprintf("%v", this.BindingConditions) + `,`, + `BindingFailureConditions:` + fmt.Sprintf("%v", this.BindingFailureConditions) + `,`, + `AllowMultipleAllocations:` + valueToStringGenerated(this.AllowMultipleAllocations) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceAllocationConfiguration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeviceAllocationConfiguration{`, + `Source:` + fmt.Sprintf("%v", this.Source) + `,`, + `Requests:` + fmt.Sprintf("%v", this.Requests) + `,`, + `DeviceConfiguration:` + strings.Replace(strings.Replace(this.DeviceConfiguration.String(), "DeviceConfiguration", "DeviceConfiguration", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceAllocationResult) String() string { + if this == nil { + return "nil" + } + repeatedStringForResults := "[]DeviceRequestAllocationResult{" + for _, f := range this.Results { + repeatedStringForResults += strings.Replace(strings.Replace(f.String(), "DeviceRequestAllocationResult", "DeviceRequestAllocationResult", 1), `&`, ``, 1) + "," + } + repeatedStringForResults += "}" + repeatedStringForConfig := "[]DeviceAllocationConfiguration{" + for _, f := range this.Config { + repeatedStringForConfig += strings.Replace(strings.Replace(f.String(), "DeviceAllocationConfiguration", "DeviceAllocationConfiguration", 1), `&`, ``, 1) + "," + } + repeatedStringForConfig += "}" + s := strings.Join([]string{`&DeviceAllocationResult{`, + `Results:` + repeatedStringForResults + `,`, + `Config:` + repeatedStringForConfig + `,`, + `}`, + }, "") + return s +} +func (this *DeviceAttribute) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeviceAttribute{`, + `IntValue:` + valueToStringGenerated(this.IntValue) + `,`, + `BoolValue:` + valueToStringGenerated(this.BoolValue) + `,`, + `StringValue:` + valueToStringGenerated(this.StringValue) + `,`, + `VersionValue:` + valueToStringGenerated(this.VersionValue) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceCapacity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeviceCapacity{`, + `Value:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Value), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, + `RequestPolicy:` + strings.Replace(this.RequestPolicy.String(), "CapacityRequestPolicy", "CapacityRequestPolicy", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceClaim) String() string { + if this == nil { + return "nil" + } + repeatedStringForRequests := "[]DeviceRequest{" + for _, f := range this.Requests { + repeatedStringForRequests += strings.Replace(strings.Replace(f.String(), "DeviceRequest", "DeviceRequest", 1), `&`, ``, 1) + "," + } + repeatedStringForRequests += "}" + repeatedStringForConstraints := "[]DeviceConstraint{" + for _, f := range this.Constraints { + repeatedStringForConstraints += strings.Replace(strings.Replace(f.String(), "DeviceConstraint", "DeviceConstraint", 1), `&`, ``, 1) + "," + } + repeatedStringForConstraints += "}" + repeatedStringForConfig := "[]DeviceClaimConfiguration{" + for _, f := range this.Config { + repeatedStringForConfig += strings.Replace(strings.Replace(f.String(), "DeviceClaimConfiguration", "DeviceClaimConfiguration", 1), `&`, ``, 1) + "," + } + repeatedStringForConfig += "}" + s := strings.Join([]string{`&DeviceClaim{`, + `Requests:` + repeatedStringForRequests + `,`, + `Constraints:` + repeatedStringForConstraints + `,`, + `Config:` + repeatedStringForConfig + `,`, + `}`, + }, "") + return s +} +func (this *DeviceClaimConfiguration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeviceClaimConfiguration{`, + `Requests:` + fmt.Sprintf("%v", this.Requests) + `,`, + `DeviceConfiguration:` + strings.Replace(strings.Replace(this.DeviceConfiguration.String(), "DeviceConfiguration", "DeviceConfiguration", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceClass) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeviceClass{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DeviceClassSpec", "DeviceClassSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceClassConfiguration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeviceClassConfiguration{`, + `DeviceConfiguration:` + strings.Replace(strings.Replace(this.DeviceConfiguration.String(), "DeviceConfiguration", "DeviceConfiguration", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceClassList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]DeviceClass{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "DeviceClass", "DeviceClass", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&DeviceClassList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *DeviceClassSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForSelectors := "[]DeviceSelector{" + for _, f := range this.Selectors { + repeatedStringForSelectors += strings.Replace(strings.Replace(f.String(), "DeviceSelector", "DeviceSelector", 1), `&`, ``, 1) + "," + } + repeatedStringForSelectors += "}" + repeatedStringForConfig := "[]DeviceClassConfiguration{" + for _, f := range this.Config { + repeatedStringForConfig += strings.Replace(strings.Replace(f.String(), "DeviceClassConfiguration", "DeviceClassConfiguration", 1), `&`, ``, 1) + "," + } + repeatedStringForConfig += "}" + s := strings.Join([]string{`&DeviceClassSpec{`, + `Selectors:` + repeatedStringForSelectors + `,`, + `Config:` + repeatedStringForConfig + `,`, + `ExtendedResourceName:` + valueToStringGenerated(this.ExtendedResourceName) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceConfiguration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeviceConfiguration{`, + `Opaque:` + strings.Replace(this.Opaque.String(), "OpaqueDeviceConfiguration", "OpaqueDeviceConfiguration", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceConstraint) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeviceConstraint{`, + `Requests:` + fmt.Sprintf("%v", this.Requests) + `,`, + `MatchAttribute:` + valueToStringGenerated(this.MatchAttribute) + `,`, + `DistinctAttribute:` + valueToStringGenerated(this.DistinctAttribute) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceCounterConsumption) String() string { + if this == nil { + return "nil" + } + keysForCounters := make([]string, 0, len(this.Counters)) + for k := range this.Counters { + keysForCounters = append(keysForCounters, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForCounters) + mapStringForCounters := "map[string]Counter{" + for _, k := range keysForCounters { + mapStringForCounters += fmt.Sprintf("%v: %v,", k, this.Counters[k]) + } + mapStringForCounters += "}" + s := strings.Join([]string{`&DeviceCounterConsumption{`, + `CounterSet:` + fmt.Sprintf("%v", this.CounterSet) + `,`, + `Counters:` + mapStringForCounters + `,`, + `}`, + }, "") + return s +} +func (this *DeviceRequest) String() string { + if this == nil { + return "nil" + } + repeatedStringForFirstAvailable := "[]DeviceSubRequest{" + for _, f := range this.FirstAvailable { + repeatedStringForFirstAvailable += strings.Replace(strings.Replace(f.String(), "DeviceSubRequest", "DeviceSubRequest", 1), `&`, ``, 1) + "," + } + repeatedStringForFirstAvailable += "}" + s := strings.Join([]string{`&DeviceRequest{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Exactly:` + strings.Replace(this.Exactly.String(), "ExactDeviceRequest", "ExactDeviceRequest", 1) + `,`, + `FirstAvailable:` + repeatedStringForFirstAvailable + `,`, + `}`, + }, "") + return s +} +func (this *DeviceRequestAllocationResult) String() string { + if this == nil { + return "nil" + } + repeatedStringForTolerations := "[]DeviceToleration{" + for _, f := range this.Tolerations { + repeatedStringForTolerations += strings.Replace(strings.Replace(f.String(), "DeviceToleration", "DeviceToleration", 1), `&`, ``, 1) + "," + } + repeatedStringForTolerations += "}" + keysForConsumedCapacity := make([]string, 0, len(this.ConsumedCapacity)) + for k := range this.ConsumedCapacity { + keysForConsumedCapacity = append(keysForConsumedCapacity, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForConsumedCapacity) + mapStringForConsumedCapacity := "map[QualifiedName]resource.Quantity{" + for _, k := range keysForConsumedCapacity { + mapStringForConsumedCapacity += fmt.Sprintf("%v: %v,", k, this.ConsumedCapacity[QualifiedName(k)]) + } + mapStringForConsumedCapacity += "}" + s := strings.Join([]string{`&DeviceRequestAllocationResult{`, + `Request:` + fmt.Sprintf("%v", this.Request) + `,`, + `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, + `Pool:` + fmt.Sprintf("%v", this.Pool) + `,`, + `Device:` + fmt.Sprintf("%v", this.Device) + `,`, + `AdminAccess:` + valueToStringGenerated(this.AdminAccess) + `,`, + `Tolerations:` + repeatedStringForTolerations + `,`, + `BindingConditions:` + fmt.Sprintf("%v", this.BindingConditions) + `,`, + `BindingFailureConditions:` + fmt.Sprintf("%v", this.BindingFailureConditions) + `,`, + `ShareID:` + valueToStringGenerated(this.ShareID) + `,`, + `ConsumedCapacity:` + mapStringForConsumedCapacity + `,`, + `}`, + }, "") + return s +} +func (this *DeviceSelector) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeviceSelector{`, + `CEL:` + strings.Replace(this.CEL.String(), "CELDeviceSelector", "CELDeviceSelector", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceSubRequest) String() string { + if this == nil { + return "nil" + } + repeatedStringForSelectors := "[]DeviceSelector{" + for _, f := range this.Selectors { + repeatedStringForSelectors += strings.Replace(strings.Replace(f.String(), "DeviceSelector", "DeviceSelector", 1), `&`, ``, 1) + "," + } + repeatedStringForSelectors += "}" + repeatedStringForTolerations := "[]DeviceToleration{" + for _, f := range this.Tolerations { + repeatedStringForTolerations += strings.Replace(strings.Replace(f.String(), "DeviceToleration", "DeviceToleration", 1), `&`, ``, 1) + "," + } + repeatedStringForTolerations += "}" + s := strings.Join([]string{`&DeviceSubRequest{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `DeviceClassName:` + fmt.Sprintf("%v", this.DeviceClassName) + `,`, + `Selectors:` + repeatedStringForSelectors + `,`, + `AllocationMode:` + fmt.Sprintf("%v", this.AllocationMode) + `,`, + `Count:` + fmt.Sprintf("%v", this.Count) + `,`, + `Tolerations:` + repeatedStringForTolerations + `,`, + `Capacity:` + strings.Replace(this.Capacity.String(), "CapacityRequirements", "CapacityRequirements", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeviceToleration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeviceToleration{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `Effect:` + fmt.Sprintf("%v", this.Effect) + `,`, + `TolerationSeconds:` + valueToStringGenerated(this.TolerationSeconds) + `,`, + `}`, + }, "") + return s +} +func (this *ExactDeviceRequest) String() string { + if this == nil { + return "nil" + } + repeatedStringForSelectors := "[]DeviceSelector{" + for _, f := range this.Selectors { + repeatedStringForSelectors += strings.Replace(strings.Replace(f.String(), "DeviceSelector", "DeviceSelector", 1), `&`, ``, 1) + "," + } + repeatedStringForSelectors += "}" + repeatedStringForTolerations := "[]DeviceToleration{" + for _, f := range this.Tolerations { + repeatedStringForTolerations += strings.Replace(strings.Replace(f.String(), "DeviceToleration", "DeviceToleration", 1), `&`, ``, 1) + "," + } + repeatedStringForTolerations += "}" + s := strings.Join([]string{`&ExactDeviceRequest{`, + `DeviceClassName:` + fmt.Sprintf("%v", this.DeviceClassName) + `,`, + `Selectors:` + repeatedStringForSelectors + `,`, + `AllocationMode:` + fmt.Sprintf("%v", this.AllocationMode) + `,`, + `Count:` + fmt.Sprintf("%v", this.Count) + `,`, + `AdminAccess:` + valueToStringGenerated(this.AdminAccess) + `,`, + `Tolerations:` + repeatedStringForTolerations + `,`, + `Capacity:` + strings.Replace(this.Capacity.String(), "CapacityRequirements", "CapacityRequirements", 1) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkDeviceData) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkDeviceData{`, + `InterfaceName:` + fmt.Sprintf("%v", this.InterfaceName) + `,`, + `IPs:` + fmt.Sprintf("%v", this.IPs) + `,`, + `HardwareAddress:` + fmt.Sprintf("%v", this.HardwareAddress) + `,`, + `}`, + }, "") + return s +} +func (this *OpaqueDeviceConfiguration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&OpaqueDeviceConfiguration{`, + `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, + `Parameters:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Parameters), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceClaim) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceClaim{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceClaimSpec", "ResourceClaimSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ResourceClaimStatus", "ResourceClaimStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceClaimConsumerReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceClaimConsumerReference{`, + `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, + `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceClaimList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]ResourceClaim{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceClaim", "ResourceClaim", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&ResourceClaimList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *ResourceClaimSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceClaimSpec{`, + `Devices:` + strings.Replace(strings.Replace(this.Devices.String(), "DeviceClaim", "DeviceClaim", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceClaimStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForReservedFor := "[]ResourceClaimConsumerReference{" + for _, f := range this.ReservedFor { + repeatedStringForReservedFor += strings.Replace(strings.Replace(f.String(), "ResourceClaimConsumerReference", "ResourceClaimConsumerReference", 1), `&`, ``, 1) + "," + } + repeatedStringForReservedFor += "}" + repeatedStringForDevices := "[]AllocatedDeviceStatus{" + for _, f := range this.Devices { + repeatedStringForDevices += strings.Replace(strings.Replace(f.String(), "AllocatedDeviceStatus", "AllocatedDeviceStatus", 1), `&`, ``, 1) + "," + } + repeatedStringForDevices += "}" + s := strings.Join([]string{`&ResourceClaimStatus{`, + `Allocation:` + strings.Replace(this.Allocation.String(), "AllocationResult", "AllocationResult", 1) + `,`, + `ReservedFor:` + repeatedStringForReservedFor + `,`, + `Devices:` + repeatedStringForDevices + `,`, + `}`, + }, "") + return s +} +func (this *ResourceClaimTemplate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceClaimTemplate{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceClaimTemplateSpec", "ResourceClaimTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceClaimTemplateList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]ResourceClaimTemplate{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceClaimTemplate", "ResourceClaimTemplate", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&ResourceClaimTemplateList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *ResourceClaimTemplateSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceClaimTemplateSpec{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceClaimSpec", "ResourceClaimSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourcePool) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourcePool{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Generation:` + fmt.Sprintf("%v", this.Generation) + `,`, + `ResourceSliceCount:` + fmt.Sprintf("%v", this.ResourceSliceCount) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceSlice) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceSlice{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceSliceSpec", "ResourceSliceSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceSliceList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]ResourceSlice{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceSlice", "ResourceSlice", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&ResourceSliceList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *ResourceSliceSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForDevices := "[]Device{" + for _, f := range this.Devices { + repeatedStringForDevices += strings.Replace(strings.Replace(f.String(), "Device", "Device", 1), `&`, ``, 1) + "," + } + repeatedStringForDevices += "}" + repeatedStringForSharedCounters := "[]CounterSet{" + for _, f := range this.SharedCounters { + repeatedStringForSharedCounters += strings.Replace(strings.Replace(f.String(), "CounterSet", "CounterSet", 1), `&`, ``, 1) + "," + } + repeatedStringForSharedCounters += "}" + s := strings.Join([]string{`&ResourceSliceSpec{`, + `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, + `Pool:` + strings.Replace(strings.Replace(this.Pool.String(), "ResourcePool", "ResourcePool", 1), `&`, ``, 1) + `,`, + `NodeName:` + valueToStringGenerated(this.NodeName) + `,`, + `NodeSelector:` + strings.Replace(fmt.Sprintf("%v", this.NodeSelector), "NodeSelector", "v11.NodeSelector", 1) + `,`, + `AllNodes:` + valueToStringGenerated(this.AllNodes) + `,`, + `Devices:` + repeatedStringForDevices + `,`, + `PerDeviceNodeSelection:` + valueToStringGenerated(this.PerDeviceNodeSelection) + `,`, + `SharedCounters:` + repeatedStringForSharedCounters + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *AllocatedDeviceStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AllocatedDeviceStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AllocatedDeviceStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Driver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pool = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Device = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, v1.Condition{}) + if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Data == nil { + m.Data = &runtime.RawExtension{} + } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NetworkData == nil { + m.NetworkData = &NetworkDeviceData{} + } + if err := m.NetworkData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShareID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ShareID = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AllocationResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AllocationResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AllocationResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Devices.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NodeSelector == nil { + m.NodeSelector = &v11.NodeSelector{} + } + if err := m.NodeSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AllocationTimestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AllocationTimestamp == nil { + m.AllocationTimestamp = &v1.Time{} + } + if err := m.AllocationTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CELDeviceSelector) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CELDeviceSelector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CELDeviceSelector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Expression = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CapacityRequestPolicy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CapacityRequestPolicy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CapacityRequestPolicy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Default", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Default == nil { + m.Default = &resource.Quantity{} + } + if err := m.Default.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidValues = append(m.ValidValues, resource.Quantity{}) + if err := m.ValidValues[len(m.ValidValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValidRange == nil { + m.ValidRange = &CapacityRequestPolicyRange{} + } + if err := m.ValidRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CapacityRequestPolicyRange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CapacityRequestPolicyRange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CapacityRequestPolicyRange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Min == nil { + m.Min = &resource.Quantity{} + } + if err := m.Min.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Max == nil { + m.Max = &resource.Quantity{} + } + if err := m.Max.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Step == nil { + m.Step = &resource.Quantity{} + } + if err := m.Step.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CapacityRequirements) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CapacityRequirements: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CapacityRequirements: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Requests == nil { + m.Requests = make(map[QualifiedName]resource.Quantity) + } + var mapkey QualifiedName + mapvalue := &resource.Quantity{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = QualifiedName(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &resource.Quantity{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Requests[QualifiedName(mapkey)] = *mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Counter) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Counter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Counter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CounterSet) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CounterSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CounterSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = make(map[string]Counter) + } + var mapkey string + mapvalue := &Counter{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Counter{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Counters[mapkey] = *mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Device) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Device: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Device: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = make(map[QualifiedName]DeviceAttribute) + } + var mapkey QualifiedName + mapvalue := &DeviceAttribute{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = QualifiedName(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &DeviceAttribute{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Attributes[QualifiedName(mapkey)] = *mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Capacity == nil { + m.Capacity = make(map[QualifiedName]DeviceCapacity) + } + var mapkey QualifiedName + mapvalue := &DeviceCapacity{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = QualifiedName(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &DeviceCapacity{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Capacity[QualifiedName(mapkey)] = *mapvalue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumesCounters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConsumesCounters = append(m.ConsumesCounters, DeviceCounterConsumption{}) + if err := m.ConsumesCounters[len(m.ConsumesCounters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NodeName = &s + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NodeSelector == nil { + m.NodeSelector = &v11.NodeSelector{} + } + if err := m.NodeSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllNodes", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AllNodes = &b + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Taints", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Taints = append(m.Taints, DeviceTaint{}) + if err := m.Taints[len(m.Taints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindsToNode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BindsToNode = &b + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingConditions", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BindingConditions = append(m.BindingConditions, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingFailureConditions", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BindingFailureConditions = append(m.BindingFailureConditions, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowMultipleAllocations", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AllowMultipleAllocations = &b + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceAllocationConfiguration) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceAllocationConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceAllocationConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Source = AllocationConfigSource(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requests = append(m.Requests, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeviceConfiguration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DeviceConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceAllocationResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceAllocationResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceAllocationResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Results = append(m.Results, DeviceRequestAllocationResult{}) + if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Config = append(m.Config, DeviceAllocationConfiguration{}) + if err := m.Config[len(m.Config)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceAttribute) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceAttribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceAttribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IntValue", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IntValue = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BoolValue = &b + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.StringValue = &s + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VersionValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceCapacity) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceCapacity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceCapacity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestPolicy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RequestPolicy == nil { + m.RequestPolicy = &CapacityRequestPolicy{} + } + if err := m.RequestPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceClaim) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requests = append(m.Requests, DeviceRequest{}) + if err := m.Requests[len(m.Requests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Constraints", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Constraints = append(m.Constraints, DeviceConstraint{}) + if err := m.Constraints[len(m.Constraints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Config = append(m.Config, DeviceClaimConfiguration{}) + if err := m.Config[len(m.Config)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceClaimConfiguration) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceClaimConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceClaimConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requests = append(m.Requests, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeviceConfiguration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DeviceConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceClassConfiguration) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceClassConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceClassConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeviceConfiguration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DeviceConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceClassList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceClassList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceClassList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, DeviceClass{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceClassSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceClassSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceClassSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Selectors = append(m.Selectors, DeviceSelector{}) + if err := m.Selectors[len(m.Selectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Config = append(m.Config, DeviceClassConfiguration{}) + if err := m.Config[len(m.Config)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtendedResourceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ExtendedResourceName = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceConfiguration) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opaque == nil { + m.Opaque = &OpaqueDeviceConfiguration{} + } + if err := m.Opaque.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceConstraint) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceConstraint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceConstraint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requests = append(m.Requests, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchAttribute", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := FullyQualifiedName(dAtA[iNdEx:postIndex]) + m.MatchAttribute = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistinctAttribute", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := FullyQualifiedName(dAtA[iNdEx:postIndex]) + m.DistinctAttribute = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceCounterConsumption) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceCounterConsumption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceCounterConsumption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterSet", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CounterSet = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = make(map[string]Counter) + } + var mapkey string + mapvalue := &Counter{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Counter{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Counters[mapkey] = *mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Exactly", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Exactly == nil { + m.Exactly = &ExactDeviceRequest{} + } + if err := m.Exactly.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FirstAvailable", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FirstAvailable = append(m.FirstAvailable, DeviceSubRequest{}) + if err := m.FirstAvailable[len(m.FirstAvailable)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceRequestAllocationResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceRequestAllocationResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceRequestAllocationResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Request = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Driver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pool = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Device = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminAccess", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AdminAccess = &b + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tolerations = append(m.Tolerations, DeviceToleration{}) + if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingConditions", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BindingConditions = append(m.BindingConditions, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingFailureConditions", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BindingFailureConditions = append(m.BindingFailureConditions, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShareID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) + m.ShareID = &s + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumedCapacity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ConsumedCapacity == nil { + m.ConsumedCapacity = make(map[QualifiedName]resource.Quantity) + } + var mapkey QualifiedName + mapvalue := &resource.Quantity{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = QualifiedName(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &resource.Quantity{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ConsumedCapacity[QualifiedName(mapkey)] = *mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceSelector) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceSelector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceSelector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CEL", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CEL == nil { + m.CEL = &CELDeviceSelector{} + } + if err := m.CEL.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceSubRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceSubRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceSubRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeviceClassName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DeviceClassName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Selectors = append(m.Selectors, DeviceSelector{}) + if err := m.Selectors[len(m.Selectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AllocationMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AllocationMode = DeviceAllocationMode(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Count |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tolerations = append(m.Tolerations, DeviceToleration{}) + if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Capacity == nil { + m.Capacity = &CapacityRequirements{} + } + if err := m.Capacity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceTaint) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceTaint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceTaint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Effect", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Effect = DeviceTaintEffect(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeAdded", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TimeAdded == nil { + m.TimeAdded = &v1.Time{} + } + if err := m.TimeAdded.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeviceToleration) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeviceToleration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeviceToleration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = DeviceTolerationOperator(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Effect", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Effect = DeviceTaintEffect(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TolerationSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TolerationSeconds = &v + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExactDeviceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExactDeviceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExactDeviceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeviceClassName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DeviceClassName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Selectors = append(m.Selectors, DeviceSelector{}) + if err := m.Selectors[len(m.Selectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AllocationMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AllocationMode = DeviceAllocationMode(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Count |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminAccess", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AdminAccess = &b + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tolerations = append(m.Tolerations, DeviceToleration{}) + if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Capacity == nil { + m.Capacity = &CapacityRequirements{} + } + if err := m.Capacity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkDeviceData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkDeviceData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkDeviceData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InterfaceName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IPs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IPs = append(m.IPs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HardwareAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HardwareAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OpaqueDeviceConfiguration) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OpaqueDeviceConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpaqueDeviceConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Driver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceClaim) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceClaimConsumerReference) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceClaimConsumerReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceClaimConsumerReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.APIGroup = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Resource = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceClaimList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceClaimList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceClaimList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ResourceClaim{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceClaimSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceClaimSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceClaimSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Devices.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceClaimStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceClaimStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceClaimStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Allocation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Allocation == nil { + m.Allocation = &AllocationResult{} + } + if err := m.Allocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReservedFor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReservedFor = append(m.ReservedFor, ResourceClaimConsumerReference{}) + if err := m.ReservedFor[len(m.ReservedFor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Devices = append(m.Devices, AllocatedDeviceStatus{}) + if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceClaimTemplate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceClaimTemplate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceClaimTemplate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceClaimTemplateList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceClaimTemplateList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceClaimTemplateList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ResourceClaimTemplate{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceClaimTemplateSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceClaimTemplateSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceClaimTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourcePool) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourcePool: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourcePool: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Generation", wireType) + } + m.Generation = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Generation |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceSliceCount", wireType) + } + m.ResourceSliceCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ResourceSliceCount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceSlice) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceSlice: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceSlice: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceSliceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceSliceList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceSliceList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ResourceSlice{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceSliceSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceSliceSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceSliceSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Driver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Pool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NodeName = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NodeSelector == nil { + m.NodeSelector = &v11.NodeSelector{} + } + if err := m.NodeSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllNodes", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AllNodes = &b + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Devices = append(m.Devices, Device{}) + if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PerDeviceNodeSelection", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PerDeviceNodeSelection = &b + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharedCounters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SharedCounters = append(m.SharedCounters, CounterSet{}) + if err := m.SharedCounters[len(m.SharedCounters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenerated + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenerated + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") +) diff --git a/vendor/k8s.io/api/resource/v1/generated.proto b/vendor/k8s.io/api/resource/v1/generated.proto new file mode 100644 index 0000000000..816a430c26 --- /dev/null +++ b/vendor/k8s.io/api/resource/v1/generated.proto @@ -0,0 +1,1589 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = "proto2"; + +package k8s.io.api.resource.v1; + +import "k8s.io/api/core/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; +import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "k8s.io/api/resource/v1"; + +// AllocatedDeviceStatus contains the status of an allocated device, if the +// driver chooses to report it. This may include driver-specific information. +// +// The combination of Driver, Pool, Device, and ShareID must match the corresponding key +// in Status.Allocation.Devices. +message AllocatedDeviceStatus { + // Driver specifies the name of the DRA driver whose kubelet + // plugin should be invoked to process the allocation once the claim is + // needed on a node. + // + // Must be a DNS subdomain and should end with a DNS domain owned by the + // vendor of the driver. + // + // +required + optional string driver = 1; + + // This name together with the driver name and the device name field + // identify which device was allocated (`//`). + // + // Must not be longer than 253 characters and may contain one or more + // DNS sub-domains separated by slashes. + // + // +required + optional string pool = 2; + + // Device references one device instance via its name in the driver's + // resource pool. It must be a DNS label. + // + // +required + optional string device = 3; + + // ShareID uniquely identifies an individual allocation share of the device. + // + // +optional + // +featureGate=DRAConsumableCapacity + optional string shareID = 7; + + // Conditions contains the latest observation of the device's state. + // If the device has been configured according to the class and claim + // config references, the `Ready` condition should be True. + // + // Must not contain more than 8 entries. + // + // +optional + // +listType=map + // +listMapKey=type + repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + + // Data contains arbitrary driver-specific data. + // + // The length of the raw data must be smaller or equal to 10 Ki. + // + // +optional + optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + + // NetworkData contains network-related information specific to the device. + // + // +optional + optional NetworkDeviceData networkData = 6; +} + +// AllocationResult contains attributes of an allocated resource. +message AllocationResult { + // Devices is the result of allocating devices. + // + // +optional + optional DeviceAllocationResult devices = 1; + + // NodeSelector defines where the allocated resources are available. If + // unset, they are available everywhere. + // + // +optional + optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + + // AllocationTimestamp stores the time when the resources were allocated. + // This field is not guaranteed to be set, in which case that time is unknown. + // + // This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus + // feature gate. + // + // +optional + // +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; +} + +// CELDeviceSelector contains a CEL expression for selecting a device. +message CELDeviceSelector { + // Expression is a CEL expression which evaluates a single device. It + // must evaluate to true when the device under consideration satisfies + // the desired criteria, and false when it does not. Any other result + // is an error and causes allocation of devices to abort. + // + // The expression's input is an object named "device", which carries + // the following properties: + // - driver (string): the name of the driver which defines this device. + // - attributes (map[string]object): the device's attributes, grouped by prefix + // (e.g. device.attributes["dra.example.com"] evaluates to an object with all + // of the attributes which were prefixed by "dra.example.com". + // - capacity (map[string]object): the device's capacities, grouped by prefix. + // - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device + // (v1.34+ with the DRAConsumableCapacity feature enabled). + // + // Example: Consider a device with driver="dra.example.com", which exposes + // two attributes named "model" and "ext.example.com/family" and which + // exposes one capacity named "modules". This input to this expression + // would have the following fields: + // + // device.driver + // device.attributes["dra.example.com"].model + // device.attributes["ext.example.com"].family + // device.capacity["dra.example.com"].modules + // + // The device.driver field can be used to check for a specific driver, + // either as a high-level precondition (i.e. you only want to consider + // devices from this driver) or as part of a multi-clause expression + // that is meant to consider devices from different drivers. + // + // The value type of each attribute is defined by the device + // definition, and users who write these expressions must consult the + // documentation for their specific drivers. The value type of each + // capacity is Quantity. + // + // If an unknown prefix is used as a lookup in either device.attributes + // or device.capacity, an empty map will be returned. Any reference to + // an unknown field will cause an evaluation error and allocation to + // abort. + // + // A robust expression should check for the existence of attributes + // before referencing them. + // + // For ease of use, the cel.bind() function is enabled, and can be used + // to simplify expressions that access multiple attributes with the + // same domain. For example: + // + // cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool) + // + // The length of the expression must be smaller or equal to 10 Ki. The + // cost of evaluating it is also limited based on the estimated number + // of logical steps. + // + // +required + optional string expression = 1; +} + +// CapacityRequestPolicy defines how requests consume device capacity. +// +// Must not set more than one ValidRequestValues. +message CapacityRequestPolicy { + // Default specifies how much of this capacity is consumed by a request + // that does not contain an entry for it in DeviceRequest's Capacity. + // + // +optional + optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + + // ValidValues defines a set of acceptable quantity values in consuming requests. + // + // Must not contain more than 10 entries. + // Must be sorted in ascending order. + // + // If this field is set, + // Default must be defined and it must be included in ValidValues list. + // + // If the requested amount does not match any valid value but smaller than some valid values, + // the scheduler calculates the smallest valid value that is greater than or equal to the request. + // That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). + // + // If the requested amount exceeds all valid values, the request violates the policy, + // and this device cannot be allocated. + // + // +optional + // +listType=atomic + // +oneOf=ValidRequestValues + repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + + // ValidRange defines an acceptable quantity value range in consuming requests. + // + // If this field is set, + // Default must be defined and it must fall within the defined ValidRange. + // + // If the requested amount does not fall within the defined range, the request violates the policy, + // and this device cannot be allocated. + // + // If the request doesn't contain this capacity entry, Default value is used. + // + // +optional + // +oneOf=ValidRequestValues + optional CapacityRequestPolicyRange validRange = 4; +} + +// CapacityRequestPolicyRange defines a valid range for consumable capacity values. +// +// - If the requested amount is less than Min, it is rounded up to the Min value. +// - If Step is set and the requested amount is between Min and Max but not aligned with Step, +// it will be rounded up to the next value equal to Min + (n * Step). +// - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). +// - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, +// and the device cannot be allocated. +message CapacityRequestPolicyRange { + // Min specifies the minimum capacity allowed for a consumption request. + // + // Min must be greater than or equal to zero, + // and less than or equal to the capacity value. + // requestPolicy.default must be more than or equal to the minimum. + // + // +required + optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + + // Max defines the upper limit for capacity that can be requested. + // + // Max must be less than or equal to the capacity value. + // Min and requestPolicy.default must be less than or equal to the maximum. + // + // +optional + optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + + // Step defines the step size between valid capacity amounts within the range. + // + // Max (if set) and requestPolicy.default must be a multiple of Step. + // Min + Step must be less than or equal to the capacity value. + // + // +optional + optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; +} + +// CapacityRequirements defines the capacity requirements for a specific device request. +message CapacityRequirements { + // Requests represent individual device resource requests for distinct resources, + // all of which must be provided by the device. + // + // This value is used as an additional filtering condition against the available capacity on the device. + // This is semantically equivalent to a CEL selector with + // `device.capacity[]..compareTo(quantity()) >= 0`. + // For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. + // + // When a requestPolicy is defined, the requested amount is adjusted upward + // to the nearest valid value based on the policy. + // If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— + // the device is considered ineligible for allocation. + // + // For any capacity that is not explicitly requested: + // - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity + // (i.e., the whole device is claimed). + // - If a requestPolicy is set, the default consumed capacity is determined according to that policy. + // + // If the device allows multiple allocation, + // the aggregated amount across all requests must not exceed the capacity value. + // The consumed capacity, which may be adjusted based on the requestPolicy if defined, + // is recorded in the resource claim’s status.devices[*].consumedCapacity field. + // + // +optional + map requests = 1; +} + +// Counter describes a quantity associated with a device. +message Counter { + // Value defines how much of a certain device counter is available. + // + // +required + optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; +} + +// CounterSet defines a named set of counters +// that are available to be used by devices defined in the +// ResourceSlice. +// +// The counters are not allocatable by themselves, but +// can be referenced by devices. When a device is allocated, +// the portion of counters it uses will no longer be available for use +// by other devices. +message CounterSet { + // Name defines the name of the counter set. + // It must be a DNS label. + // + // +required + optional string name = 1; + + // Counters defines the set of counters for this CounterSet + // The name of each counter must be unique in that set and must be a DNS label. + // + // The maximum number of counters in all sets is 32. + // + // +required + map counters = 2; +} + +// Device represents one individual hardware instance that can be selected based +// on its attributes. Besides the name, exactly one field must be set. +message Device { + // Name is unique identifier among all devices managed by + // the driver in the pool. It must be a DNS label. + // + // +required + optional string name = 1; + + // Attributes defines the set of attributes for this device. + // The name of each attribute must be unique in that set. + // + // The maximum number of attributes and capacities combined is 32. + // + // +optional + map attributes = 2; + + // Capacity defines the set of capacities for this device. + // The name of each capacity must be unique in that set. + // + // The maximum number of attributes and capacities combined is 32. + // + // +optional + map capacity = 3; + + // ConsumesCounters defines a list of references to sharedCounters + // and the set of counters that the device will + // consume from those counter sets. + // + // There can only be a single entry per counterSet. + // + // The total number of device counter consumption entries + // must be <= 32. In addition, the total number in the + // entire ResourceSlice must be <= 1024 (for example, + // 64 devices with 16 counters each). + // + // +optional + // +listType=atomic + // +featureGate=DRAPartitionableDevices + repeated DeviceCounterConsumption consumesCounters = 4; + + // NodeName identifies the node where the device is available. + // + // Must only be set if Spec.PerDeviceNodeSelection is set to true. + // At most one of NodeName, NodeSelector and AllNodes can be set. + // + // +optional + // +oneOf=DeviceNodeSelection + // +featureGate=DRAPartitionableDevices + optional string nodeName = 5; + + // NodeSelector defines the nodes where the device is available. + // + // Must use exactly one term. + // + // Must only be set if Spec.PerDeviceNodeSelection is set to true. + // At most one of NodeName, NodeSelector and AllNodes can be set. + // + // +optional + // +oneOf=DeviceNodeSelection + // +featureGate=DRAPartitionableDevices + optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + + // AllNodes indicates that all nodes have access to the device. + // + // Must only be set if Spec.PerDeviceNodeSelection is set to true. + // At most one of NodeName, NodeSelector and AllNodes can be set. + // + // +optional + // +oneOf=DeviceNodeSelection + // +featureGate=DRAPartitionableDevices + optional bool allNodes = 7; + + // If specified, these are the driver-defined taints. + // + // The maximum number of taints is 4. + // + // This is an alpha field and requires enabling the DRADeviceTaints + // feature gate. + // + // +optional + // +listType=atomic + // +featureGate=DRADeviceTaints + repeated DeviceTaint taints = 8; + + // BindsToNode indicates if the usage of an allocation involving this device + // has to be limited to exactly the node that was chosen when allocating the claim. + // If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector + // to match the node where the allocation was made. + // + // This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus + // feature gates. + // + // +optional + // +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus + optional bool bindsToNode = 9; + + // BindingConditions defines the conditions for proceeding with binding. + // All of these conditions must be set in the per-device status + // conditions with a value of True to proceed with binding the pod to the node + // while scheduling the pod. + // + // The maximum number of binding conditions is 4. + // + // The conditions must be a valid condition type string. + // + // This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus + // feature gates. + // + // +optional + // +listType=atomic + // +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus + repeated string bindingConditions = 10; + + // BindingFailureConditions defines the conditions for binding failure. + // They may be set in the per-device status conditions. + // If any is set to "True", a binding failure occurred. + // + // The maximum number of binding failure conditions is 4. + // + // The conditions must be a valid condition type string. + // + // This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus + // feature gates. + // + // +optional + // +listType=atomic + // +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus + repeated string bindingFailureConditions = 11; + + // AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. + // + // If AllowMultipleAllocations is set to true, the device can be allocated more than once, + // and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. + // + // +optional + // +featureGate=DRAConsumableCapacity + optional bool allowMultipleAllocations = 12; +} + +// DeviceAllocationConfiguration gets embedded in an AllocationResult. +message DeviceAllocationConfiguration { + // Source records whether the configuration comes from a class and thus + // is not something that a normal user would have been able to set + // or from a claim. + // + // +required + optional string source = 1; + + // Requests lists the names of requests where the configuration applies. + // If empty, its applies to all requests. + // + // References to subrequests must include the name of the main request + // and may include the subrequest using the format

[/]. If just + // the main request is given, the configuration applies to all subrequests. + // + // +optional + // +listType=atomic + repeated string requests = 2; + + optional DeviceConfiguration deviceConfiguration = 3; +} + +// DeviceAllocationResult is the result of allocating devices. +message DeviceAllocationResult { + // Results lists all allocated devices. + // + // +optional + // +listType=atomic + repeated DeviceRequestAllocationResult results = 1; + + // This field is a combination of all the claim and class configuration parameters. + // Drivers can distinguish between those based on a flag. + // + // This includes configuration parameters for drivers which have no allocated + // devices in the result because it is up to the drivers which configuration + // parameters they support. They can silently ignore unknown configuration + // parameters. + // + // +optional + // +listType=atomic + repeated DeviceAllocationConfiguration config = 2; +} + +// DeviceAttribute must have exactly one field set. +message DeviceAttribute { + // IntValue is a number. + // + // +optional + // +oneOf=ValueType + optional int64 int = 2; + + // BoolValue is a true/false value. + // + // +optional + // +oneOf=ValueType + optional bool bool = 3; + + // StringValue is a string. Must not be longer than 64 characters. + // + // +optional + // +oneOf=ValueType + optional string string = 4; + + // VersionValue is a semantic version according to semver.org spec 2.0.0. + // Must not be longer than 64 characters. + // + // +optional + // +oneOf=ValueType + optional string version = 5; +} + +// DeviceCapacity describes a quantity associated with a device. +message DeviceCapacity { + // Value defines how much of a certain capacity that device has. + // + // This field reflects the fixed total capacity and does not change. + // The consumed amount is tracked separately by scheduler + // and does not affect this value. + // + // +required + optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + + // RequestPolicy defines how this DeviceCapacity must be consumed + // when the device is allowed to be shared by multiple allocations. + // + // The Device must have allowMultipleAllocations set to true in order to set a requestPolicy. + // + // If unset, capacity requests are unconstrained: + // requests can consume any amount of capacity, as long as the total consumed + // across all allocations does not exceed the device's defined capacity. + // If request is also unset, default is the full capacity value. + // + // +optional + // +featureGate=DRAConsumableCapacity + optional CapacityRequestPolicy requestPolicy = 2; +} + +// DeviceClaim defines how to request devices with a ResourceClaim. +message DeviceClaim { + // Requests represent individual requests for distinct devices which + // must all be satisfied. If empty, nothing needs to be allocated. + // + // +optional + // +listType=atomic + repeated DeviceRequest requests = 1; + + // These constraints must be satisfied by the set of devices that get + // allocated for the claim. + // + // +optional + // +listType=atomic + repeated DeviceConstraint constraints = 2; + + // This field holds configuration for multiple potential drivers which + // could satisfy requests in this claim. It is ignored while allocating + // the claim. + // + // +optional + // +listType=atomic + repeated DeviceClaimConfiguration config = 3; +} + +// DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. +message DeviceClaimConfiguration { + // Requests lists the names of requests where the configuration applies. + // If empty, it applies to all requests. + // + // References to subrequests must include the name of the main request + // and may include the subrequest using the format
[/]. If just + // the main request is given, the configuration applies to all subrequests. + // + // +optional + // +listType=atomic + repeated string requests = 1; + + optional DeviceConfiguration deviceConfiguration = 2; +} + +// DeviceClass is a vendor- or admin-provided resource that contains +// device configuration and selectors. It can be referenced in +// the device requests of a claim to apply these presets. +// Cluster scoped. +// +// This is an alpha type and requires enabling the DynamicResourceAllocation +// feature gate. +message DeviceClass { + // Standard object metadata + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + // Spec defines what can be allocated and how to configure it. + // + // This is mutable. Consumers have to be prepared for classes changing + // at any time, either because they get updated or replaced. Claim + // allocations are done once based on whatever was set in classes at + // the time of allocation. + // + // Changing the spec automatically increments the metadata.generation number. + optional DeviceClassSpec spec = 2; +} + +// DeviceClassConfiguration is used in DeviceClass. +message DeviceClassConfiguration { + optional DeviceConfiguration deviceConfiguration = 1; +} + +// DeviceClassList is a collection of classes. +message DeviceClassList { + // Standard list metadata + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + // Items is the list of resource classes. + repeated DeviceClass items = 2; +} + +// DeviceClassSpec is used in a [DeviceClass] to define what can be allocated +// and how to configure it. +message DeviceClassSpec { + // Each selector must be satisfied by a device which is claimed via this class. + // + // +optional + // +listType=atomic + repeated DeviceSelector selectors = 1; + + // Config defines configuration parameters that apply to each device that is claimed via this class. + // Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor + // configuration applies to exactly one driver. + // + // They are passed to the driver, but are not considered while allocating the claim. + // + // +optional + // +listType=atomic + repeated DeviceClassConfiguration config = 2; + + // ExtendedResourceName is the extended resource name for the devices of this class. + // The devices of this class can be used to satisfy a pod's extended resource requests. + // It has the same format as the name of a pod's extended resource. + // It should be unique among all the device classes in a cluster. + // If two device classes have the same name, then the class created later + // is picked to satisfy a pod's extended resource requests. + // If two classes are created at the same time, then the name of the class + // lexicographically sorted first is picked. + // + // This is an alpha field. + // +optional + // +featureGate=DRAExtendedResource + optional string extendedResourceName = 4; +} + +// DeviceConfiguration must have exactly one field set. It gets embedded +// inline in some other structs which have other fields, so field names must +// not conflict with those. +message DeviceConfiguration { + // Opaque provides driver-specific configuration parameters. + // + // +optional + // +oneOf=ConfigurationType + optional OpaqueDeviceConfiguration opaque = 1; +} + +// DeviceConstraint must have exactly one field set besides Requests. +message DeviceConstraint { + // Requests is a list of the one or more requests in this claim which + // must co-satisfy this constraint. If a request is fulfilled by + // multiple devices, then all of the devices must satisfy the + // constraint. If this is not specified, this constraint applies to all + // requests in this claim. + // + // References to subrequests must include the name of the main request + // and may include the subrequest using the format
[/]. If just + // the main request is given, the constraint applies to all subrequests. + // + // +optional + // +listType=atomic + repeated string requests = 1; + + // MatchAttribute requires that all devices in question have this + // attribute and that its type and value are the same across those + // devices. + // + // For example, if you specified "dra.example.com/numa" (a hypothetical example!), + // then only devices in the same NUMA node will be chosen. A device which + // does not have that attribute will not be chosen. All devices should + // use a value of the same type for this attribute because that is part of + // its specification, but if one device doesn't, then it also will not be + // chosen. + // + // Must include the domain qualifier. + // + // +optional + // +oneOf=ConstraintType + optional string matchAttribute = 2; + + // DistinctAttribute requires that all devices in question have this + // attribute and that its type and value are unique across those devices. + // + // This acts as the inverse of MatchAttribute. + // + // This constraint is used to avoid allocating multiple requests to the same device + // by ensuring attribute-level differentiation. + // + // This is useful for scenarios where resource requests must be fulfilled by separate physical devices. + // For example, a container requests two network interfaces that must be allocated from two different physical NICs. + // + // +optional + // +oneOf=ConstraintType + // +featureGate=DRAConsumableCapacity + optional string distinctAttribute = 3; +} + +// DeviceCounterConsumption defines a set of counters that +// a device will consume from a CounterSet. +message DeviceCounterConsumption { + // CounterSet is the name of the set from which the + // counters defined will be consumed. + // + // +required + optional string counterSet = 1; + + // Counters defines the counters that will be consumed by the device. + // + // The maximum number counters in a device is 32. + // In addition, the maximum number of all counters + // in all devices is 1024 (for example, 64 devices with + // 16 counters each). + // + // +required + map counters = 2; +} + +// DeviceRequest is a request for devices required for a claim. +// This is typically a request for a single resource like a device, but can +// also ask for several identical devices. With FirstAvailable it is also +// possible to provide a prioritized list of requests. +message DeviceRequest { + // Name can be used to reference this request in a pod.spec.containers[].resources.claims + // entry and in a constraint of the claim. + // + // References using the name in the DeviceRequest will uniquely + // identify a request when the Exactly field is set. When the + // FirstAvailable field is set, a reference to the name of the + // DeviceRequest will match whatever subrequest is chosen by the + // scheduler. + // + // Must be a DNS label. + // + // +required + optional string name = 1; + + // Exactly specifies the details for a single request that must + // be met exactly for the request to be satisfied. + // + // One of Exactly or FirstAvailable must be set. + // + // +optional + // +oneOf=deviceRequestType + optional ExactDeviceRequest exactly = 2; + + // FirstAvailable contains subrequests, of which exactly one will be + // selected by the scheduler. It tries to + // satisfy them in the order in which they are listed here. So if + // there are two entries in the list, the scheduler will only check + // the second one if it determines that the first one can not be used. + // + // DRA does not yet implement scoring, so the scheduler will + // select the first set of devices that satisfies all the + // requests in the claim. And if the requirements can + // be satisfied on more than one node, other scheduling features + // will determine which node is chosen. This means that the set of + // devices allocated to a claim might not be the optimal set + // available to the cluster. Scoring will be implemented later. + // + // +optional + // +oneOf=deviceRequestType + // +listType=atomic + // +featureGate=DRAPrioritizedList + repeated DeviceSubRequest firstAvailable = 3; +} + +// DeviceRequestAllocationResult contains the allocation result for one request. +message DeviceRequestAllocationResult { + // Request is the name of the request in the claim which caused this + // device to be allocated. If it references a subrequest in the + // firstAvailable list on a DeviceRequest, this field must + // include both the name of the main request and the subrequest + // using the format
/. + // + // Multiple devices may have been allocated per request. + // + // +required + optional string request = 1; + + // Driver specifies the name of the DRA driver whose kubelet + // plugin should be invoked to process the allocation once the claim is + // needed on a node. + // + // Must be a DNS subdomain and should end with a DNS domain owned by the + // vendor of the driver. + // + // +required + optional string driver = 2; + + // This name together with the driver name and the device name field + // identify which device was allocated (`//`). + // + // Must not be longer than 253 characters and may contain one or more + // DNS sub-domains separated by slashes. + // + // +required + optional string pool = 3; + + // Device references one device instance via its name in the driver's + // resource pool. It must be a DNS label. + // + // +required + optional string device = 4; + + // AdminAccess indicates that this device was allocated for + // administrative access. See the corresponding request field + // for a definition of mode. + // + // This is an alpha field and requires enabling the DRAAdminAccess + // feature gate. Admin access is disabled if this field is unset or + // set to false, otherwise it is enabled. + // + // +optional + // +featureGate=DRAAdminAccess + optional bool adminAccess = 5; + + // A copy of all tolerations specified in the request at the time + // when the device got allocated. + // + // The maximum number of tolerations is 16. + // + // This is an alpha field and requires enabling the DRADeviceTaints + // feature gate. + // + // +optional + // +listType=atomic + // +featureGate=DRADeviceTaints + repeated DeviceToleration tolerations = 6; + + // BindingConditions contains a copy of the BindingConditions + // from the corresponding ResourceSlice at the time of allocation. + // + // This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus + // feature gates. + // + // +optional + // +listType=atomic + // +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus + repeated string bindingConditions = 7; + + // BindingFailureConditions contains a copy of the BindingFailureConditions + // from the corresponding ResourceSlice at the time of allocation. + // + // This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus + // feature gates. + // + // +optional + // +listType=atomic + // +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus + repeated string bindingFailureConditions = 8; + + // ShareID uniquely identifies an individual allocation share of the device, + // used when the device supports multiple simultaneous allocations. + // It serves as an additional map key to differentiate concurrent shares + // of the same device. + // + // +optional + // +featureGate=DRAConsumableCapacity + optional string shareID = 9; + + // ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. + // The consumed amount may differ from the requested amount: it is rounded up to the nearest valid + // value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). + // + // The total consumed capacity for each device must not exceed the DeviceCapacity's Value. + // + // This field is populated only for devices that allow multiple allocations. + // All capacity entries are included, even if the consumed amount is zero. + // + // +optional + // +featureGate=DRAConsumableCapacity + map consumedCapacity = 10; +} + +// DeviceSelector must have exactly one field set. +message DeviceSelector { + // CEL contains a CEL expression for selecting a device. + // + // +optional + // +oneOf=SelectorType + optional CELDeviceSelector cel = 1; +} + +// DeviceSubRequest describes a request for device provided in the +// claim.spec.devices.requests[].firstAvailable array. Each +// is typically a request for a single resource like a device, but can +// also ask for several identical devices. +// +// DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the +// AdminAccess field as that one is only supported when requesting a +// specific device. +message DeviceSubRequest { + // Name can be used to reference this subrequest in the list of constraints + // or the list of configurations for the claim. References must use the + // format
/. + // + // Must be a DNS label. + // + // +required + optional string name = 1; + + // DeviceClassName references a specific DeviceClass, which can define + // additional configuration and selectors to be inherited by this + // subrequest. + // + // A class is required. Which classes are available depends on the cluster. + // + // Administrators may use this to restrict which devices may get + // requested by only installing classes with selectors for permitted + // devices. If users are free to request anything without restrictions, + // then administrators can create an empty DeviceClass for users + // to reference. + // + // +required + optional string deviceClassName = 2; + + // Selectors define criteria which must be satisfied by a specific + // device in order for that device to be considered for this + // subrequest. All selectors must be satisfied for a device to be + // considered. + // + // +optional + // +listType=atomic + repeated DeviceSelector selectors = 3; + + // AllocationMode and its related fields define how devices are allocated + // to satisfy this subrequest. Supported values are: + // + // - ExactCount: This request is for a specific number of devices. + // This is the default. The exact number is provided in the + // count field. + // + // - All: This subrequest is for all of the matching devices in a pool. + // Allocation will fail if some devices are already allocated, + // unless adminAccess is requested. + // + // If AllocationMode is not specified, the default mode is ExactCount. If + // the mode is ExactCount and count is not specified, the default count is + // one. Any other subrequests must specify this field. + // + // More modes may get added in the future. Clients must refuse to handle + // requests with unknown modes. + // + // +optional + optional string allocationMode = 4; + + // Count is used only when the count mode is "ExactCount". Must be greater than zero. + // If AllocationMode is ExactCount and this field is not specified, the default is one. + // + // +optional + // +oneOf=AllocationMode + optional int64 count = 5; + + // If specified, the request's tolerations. + // + // Tolerations for NoSchedule are required to allocate a + // device which has a taint with that effect. The same applies + // to NoExecute. + // + // In addition, should any of the allocated devices get tainted + // with NoExecute after allocation and that effect is not tolerated, + // then all pods consuming the ResourceClaim get deleted to evict + // them. The scheduler will not let new pods reserve the claim while + // it has these tainted devices. Once all pods are evicted, the + // claim will get deallocated. + // + // The maximum number of tolerations is 16. + // + // This is an alpha field and requires enabling the DRADeviceTaints + // feature gate. + // + // +optional + // +listType=atomic + // +featureGate=DRADeviceTaints + repeated DeviceToleration tolerations = 6; + + // Capacity define resource requirements against each capacity. + // + // If this field is unset and the device supports multiple allocations, + // the default value will be applied to each capacity according to requestPolicy. + // For the capacity that has no requestPolicy, default is the full capacity value. + // + // Applies to each device allocation. + // If Count > 1, + // the request fails if there aren't enough devices that meet the requirements. + // If AllocationMode is set to All, + // the request fails if there are devices that otherwise match the request, + // and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request. + // + // +optional + // +featureGate=DRAConsumableCapacity + optional CapacityRequirements capacity = 7; +} + +// The device this taint is attached to has the "effect" on +// any claim which does not tolerate the taint and, through the claim, +// to pods using the claim. +// +// +protobuf.options.(gogoproto.goproto_stringer)=false +message DeviceTaint { + // The taint key to be applied to a device. + // Must be a label name. + // + // +required + optional string key = 1; + + // The taint value corresponding to the taint key. + // Must be a label value. + // + // +optional + optional string value = 2; + + // The effect of the taint on claims that do not tolerate the taint + // and through such claims on the pods using them. + // Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for + // nodes is not valid here. + // + // +required + optional string effect = 3; + + // TimeAdded represents the time at which the taint was added. + // Added automatically during create or update if not set. + // + // +optional + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; +} + +// The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches +// the triple using the matching operator . +message DeviceToleration { + // Key is the taint key that the toleration applies to. Empty means match all taint keys. + // If the key is empty, operator must be Exists; this combination means to match all values and all keys. + // Must be a label name. + // + // +optional + optional string key = 1; + + // Operator represents a key's relationship to the value. + // Valid operators are Exists and Equal. Defaults to Equal. + // Exists is equivalent to wildcard for value, so that a ResourceClaim can + // tolerate all taints of a particular category. + // + // +optional + // +default="Equal" + optional string operator = 2; + + // Value is the taint value the toleration matches to. + // If the operator is Exists, the value must be empty, otherwise just a regular string. + // Must be a label value. + // + // +optional + optional string value = 3; + + // Effect indicates the taint effect to match. Empty means match all taint effects. + // When specified, allowed values are NoSchedule and NoExecute. + // + // +optional + optional string effect = 4; + + // TolerationSeconds represents the period of time the toleration (which must be + // of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, + // it is not set, which means tolerate the taint forever (do not evict). Zero and + // negative values will be treated as 0 (evict immediately) by the system. + // If larger than zero, the time when the pod needs to be evicted is calculated as